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 beqaabu committed Aug 9, 2024
1 parent 936d8d6 commit 97a8ded
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 94 deletions.
2 changes: 1 addition & 1 deletion creditcoin-js/creditcoin.json

Large diffs are not rendered by default.

19 changes: 0 additions & 19 deletions creditcoin-js/src/interfaces/augment-api-tx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ import type {
PalletCreditcoinDealOrderId,
PalletCreditcoinLoanTerms,
PalletCreditcoinOcwErrorsVerificationFailureCause,
PalletCreditcoinOcwTasksCollectCoinsDeployedContract,
PalletCreditcoinOfferId,
PalletCreditcoinOwnershipProof,
PalletCreditcoinTaskId,
Expand Down Expand Up @@ -553,24 +552,6 @@ declare module '@polkadot/api-base/types/submittable' {
(who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>,
[AccountId32]
>;
/**
* 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]
>;
setGateFaucet: AugmentedSubmittable<
(address: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>,
[AccountId32]
>;
/**
* Generic tx
**/
Expand Down
64 changes: 29 additions & 35 deletions creditcoin-js/src/interfaces/lookup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1832,12 +1832,6 @@ export default {
address: 'Bytes',
ownershipProof: 'PalletCreditcoinOwnershipProof',
},
set_gate_contract: {
contract: 'PalletCreditcoinOcwTasksCollectCoinsDeployedContract',
},
set_gate_faucet: {
address: 'AccountId32',
},
},
},
/**
Expand Down Expand Up @@ -1894,14 +1888,7 @@ export default {
},
},
/**
* Lookup264: pallet_creditcoin::ocw::tasks::collect_coins::DeployedContract
**/
PalletCreditcoinOcwTasksCollectCoinsDeployedContract: {
address: 'H160',
chain: 'PalletCreditcoinBlockchain',
},
/**
* Lookup266: pallet_scheduler::pallet::Call<T>
* Lookup264: pallet_scheduler::pallet::Call<T>
**/
PalletSchedulerCall: {
_enum: {
Expand Down Expand Up @@ -1941,7 +1928,7 @@ export default {
},
},
/**
* Lookup268: pallet_identity::pallet::Call<T>
* Lookup266: pallet_identity::pallet::Call<T>
**/
PalletIdentityCall: {
_enum: {
Expand Down Expand Up @@ -2001,7 +1988,7 @@ export default {
},
},
/**
* Lookup269: pallet_identity::types::IdentityInfo<FieldLimit>
* Lookup267: pallet_identity::types::IdentityInfo<FieldLimit>
**/
PalletIdentityIdentityInfo: {
additional: 'Vec<(Data,Data)>',
Expand All @@ -2015,7 +2002,7 @@ export default {
twitter: 'Data',
},
/**
* Lookup305: pallet_identity::types::BitFlags<pallet_identity::types::IdentityField>
* Lookup303: pallet_identity::types::BitFlags<pallet_identity::types::IdentityField>
**/
PalletIdentityBitFlags: {
_bitLength: 64,
Expand All @@ -2029,7 +2016,7 @@ export default {
Twitter: 128,
},
/**
* Lookup306: pallet_identity::types::IdentityField
* Lookup304: pallet_identity::types::IdentityField
**/
PalletIdentityIdentityField: {
_enum: [
Expand Down Expand Up @@ -2165,7 +2152,7 @@ export default {
],
},
/**
* Lookup307: pallet_identity::types::Judgement<Balance>
* Lookup305: pallet_identity::types::Judgement<Balance>
**/
PalletIdentityJudgement: {
_enum: {
Expand All @@ -2179,7 +2166,7 @@ export default {
},
},
/**
* Lookup308: pallet_utility::pallet::Call<T>
* Lookup306: pallet_utility::pallet::Call<T>
**/
PalletUtilityCall: {
_enum: {
Expand Down Expand Up @@ -2207,7 +2194,7 @@ export default {
},
},
/**
* Lookup310: creditcoin_node_runtime::OriginCaller
* Lookup308: creditcoin_node_runtime::OriginCaller
**/
CreditcoinNodeRuntimeOriginCaller: {
_enum: {
Expand All @@ -2216,7 +2203,7 @@ export default {
},
},
/**
* Lookup311: frame_support::dispatch::RawOrigin<sp_core::crypto::AccountId32>
* Lookup309: frame_support::dispatch::RawOrigin<sp_core::crypto::AccountId32>
**/
FrameSupportDispatchRawOrigin: {
_enum: {
Expand All @@ -2226,11 +2213,11 @@ export default {
},
},
/**
* Lookup312: sp_core::Void
* Lookup310: sp_core::Void
**/
SpCoreVoid: 'Null',
/**
* Lookup313: pallet_proxy::pallet::Call<T>
* Lookup311: pallet_proxy::pallet::Call<T>
**/
PalletProxyCall: {
_enum: {
Expand Down Expand Up @@ -2283,7 +2270,7 @@ export default {
},
},
/**
* Lookup315: pallet_fast_unstake::pallet::Call<T>
* Lookup313: pallet_fast_unstake::pallet::Call<T>
**/
PalletFastUnstakeCall: {
_enum: {
Expand All @@ -2295,7 +2282,7 @@ export default {
},
},
/**
* Lookup316: pallet_nomination_pools::pallet::Call<T>
* Lookup314: pallet_nomination_pools::pallet::Call<T>
**/
PalletNominationPoolsCall: {
_enum: {
Expand Down Expand Up @@ -2389,7 +2376,7 @@ export default {
},
},
/**
* Lookup317: pallet_nomination_pools::BondExtra<Balance>
* Lookup315: pallet_nomination_pools::BondExtra<Balance>
**/
PalletNominationPoolsBondExtra: {
_enum: {
Expand All @@ -2398,7 +2385,7 @@ export default {
},
},
/**
* Lookup318: pallet_nomination_pools::ConfigOp<T>
* Lookup316: pallet_nomination_pools::ConfigOp<T>
**/
PalletNominationPoolsConfigOpU128: {
_enum: {
Expand All @@ -2408,7 +2395,7 @@ export default {
},
},
/**
* Lookup319: pallet_nomination_pools::ConfigOp<T>
* Lookup317: pallet_nomination_pools::ConfigOp<T>
**/
PalletNominationPoolsConfigOpU32: {
_enum: {
Expand All @@ -2418,7 +2405,7 @@ export default {
},
},
/**
* Lookup320: pallet_nomination_pools::ConfigOp<sp_arithmetic::per_things::Perbill>
* Lookup318: pallet_nomination_pools::ConfigOp<sp_arithmetic::per_things::Perbill>
**/
PalletNominationPoolsConfigOpPerbill: {
_enum: {
Expand All @@ -2428,7 +2415,7 @@ export default {
},
},
/**
* Lookup321: pallet_nomination_pools::ConfigOp<sp_core::crypto::AccountId32>
* Lookup319: pallet_nomination_pools::ConfigOp<sp_core::crypto::AccountId32>
**/
PalletNominationPoolsConfigOpAccountId32: {
_enum: {
Expand All @@ -2438,19 +2425,19 @@ export default {
},
},
/**
* Lookup322: pallet_nomination_pools::ClaimPermission
* Lookup320: pallet_nomination_pools::ClaimPermission
**/
PalletNominationPoolsClaimPermission: {
_enum: ['Permissioned', 'PermissionlessCompound', 'PermissionlessWithdraw', 'PermissionlessAll'],
},
/**
* Lookup323: pallet_sudo::pallet::Error<T>
* Lookup321: pallet_sudo::pallet::Error<T>
**/
PalletSudoError: {
_enum: ['RequireSudo'],
},
/**
* Lookup326: pallet_creditcoin::types::collect_coins::CollectedCoins<primitive_types::H256, Balance>
* Lookup324: pallet_creditcoin::types::collect_coins::CollectedCoins<primitive_types::H256, Balance>
**/
PalletCreditcoinCollectCoinsCollectedCoins: {
to: 'H256',
Expand All @@ -2459,11 +2446,18 @@ export default {
contractType: 'PalletCreditcoinCollectCoinsContractType',
},
/**
* Lookup327: pallet_creditcoin::types::collect_coins::ContractType
* Lookup325: pallet_creditcoin::types::collect_coins::ContractType
**/
PalletCreditcoinCollectCoinsContractType: {
_enum: ['GCRE', 'GATE'],
},
/**
* Lookup326: pallet_creditcoin::ocw::tasks::collect_coins::DeployedContract
**/
PalletCreditcoinOcwTasksCollectCoinsDeployedContract: {
address: 'H160',
chain: 'PalletCreditcoinBlockchain',
},
/**
* Lookup328: pallet_creditcoin::types::cleanup::StorageCleanupState<BlockNumber>
**/
Expand Down
Loading

0 comments on commit 97a8ded

Please sign in to comment.