Skip to content

Commit

Permalink
Auto-update creditcoin-js type definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
gluwa-bot authored and atodorov committed Aug 25, 2023
1 parent 50de22f commit 1ea82c7
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 17 deletions.
2 changes: 1 addition & 1 deletion creditcoin-js/creditcoin.json

Large diffs are not rendered by default.

10 changes: 8 additions & 2 deletions creditcoin-js/src/interfaces/augment-api-query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import type {
PalletCreditcoinCollectCoinsCollectedCoins,
PalletCreditcoinDealOrder,
PalletCreditcoinLegacySighash,
PalletCreditcoinOcwTasksCollectCoinsGCreContract,
PalletCreditcoinOcwTasksCollectCoinsDeployedContract,
PalletCreditcoinOffer,
PalletCreditcoinTask,
PalletCreditcoinTransfer,
Expand Down Expand Up @@ -335,7 +335,7 @@ declare module '@polkadot/api-base/types/storage' {
QueryableStorageEntry<ApiType, [u32, H256]>;
collectCoinsContract: AugmentedQuery<
ApiType,
() => Observable<PalletCreditcoinOcwTasksCollectCoinsGCreContract>,
() => Observable<PalletCreditcoinOcwTasksCollectCoinsDeployedContract>,
[]
> &
QueryableStorageEntry<ApiType, []>;
Expand All @@ -354,6 +354,12 @@ declare module '@polkadot/api-base/types/storage' {
[u32, H256]
> &
QueryableStorageEntry<ApiType, [u32, H256]>;
gateConract: AugmentedQuery<
ApiType,
() => Observable<PalletCreditcoinOcwTasksCollectCoinsDeployedContract>,
[]
> &
QueryableStorageEntry<ApiType, []>;
legacyBalanceKeeper: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> &
QueryableStorageEntry<ApiType, []>;
legacyWallets: AugmentedQuery<
Expand Down
20 changes: 17 additions & 3 deletions creditcoin-js/src/interfaces/augment-api-tx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import type {
PalletCreditcoinDealOrderId,
PalletCreditcoinLoanTerms,
PalletCreditcoinOcwErrorsVerificationFailureCause,
PalletCreditcoinOcwTasksCollectCoinsGCreContract,
PalletCreditcoinOcwTasksCollectCoinsDeployedContract,
PalletCreditcoinOfferId,
PalletCreditcoinOwnershipProof,
PalletCreditcoinTaskId,
Expand Down Expand Up @@ -573,12 +573,26 @@ declare module '@polkadot/api-base/types/submittable' {
setCollectCoinsContract: AugmentedSubmittable<
(
contract:
| PalletCreditcoinOcwTasksCollectCoinsGCreContract
| PalletCreditcoinOcwTasksCollectCoinsDeployedContract
| { address?: any; chain?: any }
| string
| Uint8Array,
) => SubmittableExtrinsic<ApiType>,
[PalletCreditcoinOcwTasksCollectCoinsGCreContract]
[PalletCreditcoinOcwTasksCollectCoinsDeployedContract]
>;
/**
* Set the onchain details for the Gluwa GATE Contract, including its address and the blockchain where it is deployed.
* This extrinsic expects the caller to have root permissions.
**/
setGateContract: AugmentedSubmittable<
(
contract:
| PalletCreditcoinOcwTasksCollectCoinsDeployedContract
| { address?: any; chain?: any }
| string
| Uint8Array,
) => SubmittableExtrinsic<ApiType>,
[PalletCreditcoinOcwTasksCollectCoinsDeployedContract]
>;
/**
* Generic tx
Expand Down
11 changes: 7 additions & 4 deletions creditcoin-js/src/interfaces/lookup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -469,12 +469,12 @@ export default {
PalletCreditcoinCollectCoinsUnverifiedCollectedCoins: {
to: 'Bytes',
txId: 'Bytes',
contract: 'PalletCreditcoinOcwTasksCollectCoinsGCreContract',
contract: 'PalletCreditcoinOcwTasksCollectCoinsDeployedContract',
},
/**
* Lookup68: pallet_creditcoin::ocw::tasks::collect_coins::GCreContract
* Lookup68: pallet_creditcoin::ocw::tasks::collect_coins::DeployedContract
**/
PalletCreditcoinOcwTasksCollectCoinsGCreContract: {
PalletCreditcoinOcwTasksCollectCoinsDeployedContract: {
address: 'H160',
chain: 'PalletCreditcoinBlockchain',
},
Expand Down Expand Up @@ -1886,7 +1886,7 @@ export default {
},
__Unused19: 'Null',
set_collect_coins_contract: {
contract: 'PalletCreditcoinOcwTasksCollectCoinsGCreContract',
contract: 'PalletCreditcoinOcwTasksCollectCoinsDeployedContract',
},
remove_authority: {
who: 'AccountId32',
Expand All @@ -1896,6 +1896,9 @@ export default {
address: 'Bytes',
ownershipProof: 'PalletCreditcoinOwnershipProof',
},
set_gate_contract: {
contract: 'PalletCreditcoinOcwTasksCollectCoinsDeployedContract',
},
},
},
/**
Expand Down
4 changes: 2 additions & 2 deletions creditcoin-js/src/interfaces/registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ import type {
PalletCreditcoinLoanTermsInterestRate,
PalletCreditcoinLoanTermsInterestType,
PalletCreditcoinOcwErrorsVerificationFailureCause,
PalletCreditcoinOcwTasksCollectCoinsGCreContract,
PalletCreditcoinOcwTasksCollectCoinsDeployedContract,
PalletCreditcoinOffer,
PalletCreditcoinOfferId,
PalletCreditcoinOrderId,
Expand Down Expand Up @@ -294,7 +294,7 @@ declare module '@polkadot/types/types/registry' {
PalletCreditcoinLoanTermsInterestRate: PalletCreditcoinLoanTermsInterestRate;
PalletCreditcoinLoanTermsInterestType: PalletCreditcoinLoanTermsInterestType;
PalletCreditcoinOcwErrorsVerificationFailureCause: PalletCreditcoinOcwErrorsVerificationFailureCause;
PalletCreditcoinOcwTasksCollectCoinsGCreContract: PalletCreditcoinOcwTasksCollectCoinsGCreContract;
PalletCreditcoinOcwTasksCollectCoinsDeployedContract: PalletCreditcoinOcwTasksCollectCoinsDeployedContract;
PalletCreditcoinOffer: PalletCreditcoinOffer;
PalletCreditcoinOfferId: PalletCreditcoinOfferId;
PalletCreditcoinOrderId: PalletCreditcoinOrderId;
Expand Down
15 changes: 10 additions & 5 deletions creditcoin-js/src/interfaces/types-lookup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -594,11 +594,11 @@ declare module '@polkadot/types/lookup' {
interface PalletCreditcoinCollectCoinsUnverifiedCollectedCoins extends Struct {
readonly to: Bytes;
readonly txId: Bytes;
readonly contract: PalletCreditcoinOcwTasksCollectCoinsGCreContract;
readonly contract: PalletCreditcoinOcwTasksCollectCoinsDeployedContract;
}

/** @name PalletCreditcoinOcwTasksCollectCoinsGCreContract (68) */
interface PalletCreditcoinOcwTasksCollectCoinsGCreContract extends Struct {
/** @name PalletCreditcoinOcwTasksCollectCoinsDeployedContract (68) */
interface PalletCreditcoinOcwTasksCollectCoinsDeployedContract extends Struct {
readonly address: H160;
readonly chain: PalletCreditcoinBlockchain;
}
Expand Down Expand Up @@ -2142,7 +2142,7 @@ declare module '@polkadot/types/lookup' {
} & Struct;
readonly isSetCollectCoinsContract: boolean;
readonly asSetCollectCoinsContract: {
readonly contract: PalletCreditcoinOcwTasksCollectCoinsGCreContract;
readonly contract: PalletCreditcoinOcwTasksCollectCoinsDeployedContract;
} & Struct;
readonly isRemoveAuthority: boolean;
readonly asRemoveAuthority: {
Expand All @@ -2154,6 +2154,10 @@ declare module '@polkadot/types/lookup' {
readonly address: Bytes;
readonly ownershipProof: PalletCreditcoinOwnershipProof;
} & Struct;
readonly isSetGateContract: boolean;
readonly asSetGateContract: {
readonly contract: PalletCreditcoinOcwTasksCollectCoinsDeployedContract;
} & Struct;
readonly type:
| 'ClaimLegacyWallet'
| 'RegisterAddress'
Expand All @@ -2174,7 +2178,8 @@ declare module '@polkadot/types/lookup' {
| 'AddAuthority'
| 'SetCollectCoinsContract'
| 'RemoveAuthority'
| 'RegisterAddressV2';
| 'RegisterAddressV2'
| 'SetGateContract';
}

/** @name SpCoreEcdsaPublic (264) */
Expand Down

0 comments on commit 1ea82c7

Please sign in to comment.