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 Oct 30, 2023
1 parent 123a78b commit b9c00d5
Show file tree
Hide file tree
Showing 6 changed files with 113 additions and 73 deletions.
2 changes: 1 addition & 1 deletion creditcoin-js/creditcoin.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions creditcoin-js/src/interfaces/augment-api-consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ declare module '@polkadot/api-base/types/consts' {
[key: string]: Codec;
};
creditcoin: {
perBlockCleanupLimit: u32 & AugmentedConst<ApiType>;
unverifiedTaskTimeout: u32 & AugmentedConst<ApiType>;
/**
* Generic const
Expand Down
7 changes: 7 additions & 0 deletions creditcoin-js/src/interfaces/augment-api-query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import type {
PalletCreditcoinAddress,
PalletCreditcoinAskOrder,
PalletCreditcoinBidOrder,
PalletCreditcoinCleanupStorageCleanupState,
PalletCreditcoinCollectCoinsCollectedCoins,
PalletCreditcoinDealOrder,
PalletCreditcoinLegacySighash,
Expand Down Expand Up @@ -333,6 +334,12 @@ declare module '@polkadot/api-base/types/storage' {
[u32, H256]
> &
QueryableStorageEntry<ApiType, [u32, H256]>;
cleanupState: AugmentedQuery<
ApiType,
() => Observable<Option<PalletCreditcoinCleanupStorageCleanupState>>,
[]
> &
QueryableStorageEntry<ApiType, []>;
collectCoinsContract: AugmentedQuery<
ApiType,
() => Observable<PalletCreditcoinOcwTasksCollectCoinsDeployedContract>,
Expand Down
87 changes: 51 additions & 36 deletions creditcoin-js/src/interfaces/lookup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2495,7 +2495,22 @@ export default {
_enum: ['RequireSudo'],
},
/**
* Lookup329: pallet_creditcoin::pallet::Error<T>
* Lookup329: pallet_creditcoin::types::cleanup::StorageCleanupState<BlockNumber>
**/
PalletCreditcoinCleanupStorageCleanupState: {
askOrders: 'PalletCreditcoinCleanupStorageItemCleanupState',
bidOrders: 'PalletCreditcoinCleanupStorageItemCleanupState',
offers: 'PalletCreditcoinCleanupStorageItemCleanupState',
},
/**
* Lookup330: pallet_creditcoin::types::cleanup::StorageItemCleanupState<BlockNumber>
**/
PalletCreditcoinCleanupStorageItemCleanupState: {
onBlock: 'u32',
cursor: 'Option<Bytes>',
},
/**
* Lookup333: pallet_creditcoin::pallet::Error<T>
**/
PalletCreditcoinError: {
_enum: [
Expand Down Expand Up @@ -2562,20 +2577,20 @@ export default {
],
},
/**
* Lookup331: pallet_difficulty::DifficultyAndTimestamp<Moment>
* Lookup335: pallet_difficulty::DifficultyAndTimestamp<Moment>
**/
PalletDifficultyDifficultyAndTimestamp: {
difficulty: 'U256',
timestamp: 'u64',
},
/**
* Lookup334: pallet_difficulty::pallet::Error<T>
* Lookup338: pallet_difficulty::pallet::Error<T>
**/
PalletDifficultyError: {
_enum: ['ZeroTargetTime', 'ZeroAdjustmentPeriod', 'NegativeAdjustmentPeriod'],
},
/**
* Lookup337: pallet_scheduler::Scheduled<Name, frame_support::traits::preimages::Bounded<creditcoin_node_runtime::RuntimeCall>, BlockNumber, creditcoin_node_runtime::OriginCaller, sp_core::crypto::AccountId32>
* Lookup341: pallet_scheduler::Scheduled<Name, frame_support::traits::preimages::Bounded<creditcoin_node_runtime::RuntimeCall>, BlockNumber, creditcoin_node_runtime::OriginCaller, sp_core::crypto::AccountId32>
**/
PalletSchedulerScheduled: {
maybeId: 'Option<[u8;32]>',
Expand All @@ -2585,7 +2600,7 @@ export default {
origin: 'CreditcoinNodeRuntimeOriginCaller',
},
/**
* Lookup338: frame_support::traits::preimages::Bounded<creditcoin_node_runtime::RuntimeCall>
* Lookup342: frame_support::traits::preimages::Bounded<creditcoin_node_runtime::RuntimeCall>
**/
FrameSupportPreimagesBounded: {
_enum: {
Expand All @@ -2606,13 +2621,13 @@ export default {
},
},
/**
* Lookup341: pallet_scheduler::pallet::Error<T>
* Lookup345: pallet_scheduler::pallet::Error<T>
**/
PalletSchedulerError: {
_enum: ['FailedToSchedule', 'NotFound', 'TargetBlockNumberInPast', 'RescheduleNoChange', 'Named'],
},
/**
* Lookup342: pallet_creditcoin::types::Task<sp_core::crypto::AccountId32, BlockNum, primitive_types::H256, Moment>
* Lookup346: pallet_creditcoin::types::Task<sp_core::crypto::AccountId32, BlockNum, primitive_types::H256, Moment>
**/
PalletCreditcoinTask: {
_enum: {
Expand All @@ -2621,7 +2636,7 @@ export default {
},
},
/**
* Lookup343: pallet_creditcoin::types::transfer::UnverifiedTransfer<sp_core::crypto::AccountId32, BlockNum, primitive_types::H256, Moment>
* Lookup347: pallet_creditcoin::types::transfer::UnverifiedTransfer<sp_core::crypto::AccountId32, BlockNum, primitive_types::H256, Moment>
**/
PalletCreditcoinTransferUnverifiedTransfer: {
transfer: 'PalletCreditcoinTransfer',
Expand All @@ -2630,29 +2645,29 @@ export default {
deadline: 'u32',
},
/**
* Lookup344: pallet_offchain_task_scheduler::pallet::Error<T>
* Lookup348: pallet_offchain_task_scheduler::pallet::Error<T>
**/
PalletOffchainTaskSchedulerError: {
_enum: ['OffchainSignedTxFailed', 'NoLocalAcctForSignedTx'],
},
/**
* Lookup345: pallet_identity::types::Registration<Balance, MaxJudgements, MaxAdditionalFields>
* Lookup349: pallet_identity::types::Registration<Balance, MaxJudgements, MaxAdditionalFields>
**/
PalletIdentityRegistration: {
judgements: 'Vec<(u32,PalletIdentityJudgement)>',
deposit: 'u128',
info: 'PalletIdentityIdentityInfo',
},
/**
* Lookup353: pallet_identity::types::RegistrarInfo<Balance, sp_core::crypto::AccountId32>
* Lookup357: pallet_identity::types::RegistrarInfo<Balance, sp_core::crypto::AccountId32>
**/
PalletIdentityRegistrarInfo: {
account: 'AccountId32',
fee: 'u128',
fields: 'PalletIdentityBitFlags',
},
/**
* Lookup355: pallet_identity::pallet::Error<T>
* Lookup359: pallet_identity::pallet::Error<T>
**/
PalletIdentityError: {
_enum: [
Expand All @@ -2677,29 +2692,29 @@ export default {
],
},
/**
* Lookup356: pallet_utility::pallet::Error<T>
* Lookup360: pallet_utility::pallet::Error<T>
**/
PalletUtilityError: {
_enum: ['TooManyCalls'],
},
/**
* Lookup359: pallet_proxy::ProxyDefinition<sp_core::crypto::AccountId32, ProxyType, BlockNumber>
* Lookup363: pallet_proxy::ProxyDefinition<sp_core::crypto::AccountId32, ProxyType, BlockNumber>
**/
PalletProxyProxyDefinition: {
delegate: 'AccountId32',
proxyType: 'Null',
delay: 'u32',
},
/**
* Lookup363: pallet_proxy::Announcement<sp_core::crypto::AccountId32, primitive_types::H256, BlockNumber>
* Lookup367: pallet_proxy::Announcement<sp_core::crypto::AccountId32, primitive_types::H256, BlockNumber>
**/
PalletProxyAnnouncement: {
real: 'AccountId32',
callHash: 'H256',
height: 'u32',
},
/**
* Lookup365: pallet_proxy::pallet::Error<T>
* Lookup369: pallet_proxy::pallet::Error<T>
**/
PalletProxyError: {
_enum: [
Expand All @@ -2714,20 +2729,20 @@ export default {
],
},
/**
* Lookup366: pallet_fast_unstake::types::UnstakeRequest<T>
* Lookup370: pallet_fast_unstake::types::UnstakeRequest<T>
**/
PalletFastUnstakeUnstakeRequest: {
stashes: 'Vec<(AccountId32,u128)>',
checked: 'Vec<u32>',
},
/**
* Lookup369: pallet_fast_unstake::pallet::Error<T>
* Lookup373: pallet_fast_unstake::pallet::Error<T>
**/
PalletFastUnstakeError: {
_enum: ['NotController', 'AlreadyQueued', 'NotFullyBonded', 'NotQueued', 'AlreadyHead', 'CallNotAllowed'],
},
/**
* Lookup370: pallet_nomination_pools::PoolMember<T>
* Lookup374: pallet_nomination_pools::PoolMember<T>
**/
PalletNominationPoolsPoolMember: {
poolId: 'u32',
Expand All @@ -2736,7 +2751,7 @@ export default {
unbondingEras: 'BTreeMap<u32, u128>',
},
/**
* Lookup375: pallet_nomination_pools::BondedPoolInner<T>
* Lookup379: pallet_nomination_pools::BondedPoolInner<T>
**/
PalletNominationPoolsBondedPoolInner: {
commission: 'PalletNominationPoolsCommission',
Expand All @@ -2746,7 +2761,7 @@ export default {
state: 'PalletNominationPoolsPoolState',
},
/**
* Lookup376: pallet_nomination_pools::Commission<T>
* Lookup380: pallet_nomination_pools::Commission<T>
**/
PalletNominationPoolsCommission: {
current: 'Option<(Perbill,AccountId32)>',
Expand All @@ -2755,7 +2770,7 @@ export default {
throttleFrom: 'Option<u32>',
},
/**
* Lookup379: pallet_nomination_pools::PoolRoles<sp_core::crypto::AccountId32>
* Lookup383: pallet_nomination_pools::PoolRoles<sp_core::crypto::AccountId32>
**/
PalletNominationPoolsPoolRoles: {
depositor: 'AccountId32',
Expand All @@ -2764,7 +2779,7 @@ export default {
bouncer: 'Option<AccountId32>',
},
/**
* Lookup380: pallet_nomination_pools::RewardPool<T>
* Lookup384: pallet_nomination_pools::RewardPool<T>
**/
PalletNominationPoolsRewardPool: {
lastRecordedRewardCounter: 'u128',
Expand All @@ -2774,25 +2789,25 @@ export default {
totalCommissionClaimed: 'u128',
},
/**
* Lookup381: pallet_nomination_pools::SubPools<T>
* Lookup385: pallet_nomination_pools::SubPools<T>
**/
PalletNominationPoolsSubPools: {
noEra: 'PalletNominationPoolsUnbondPool',
withEra: 'BTreeMap<u32, PalletNominationPoolsUnbondPool>',
},
/**
* Lookup382: pallet_nomination_pools::UnbondPool<T>
* Lookup386: pallet_nomination_pools::UnbondPool<T>
**/
PalletNominationPoolsUnbondPool: {
points: 'u128',
balance: 'u128',
},
/**
* Lookup387: frame_support::PalletId
* Lookup391: frame_support::PalletId
**/
FrameSupportPalletId: '[u8;8]',
/**
* Lookup388: pallet_nomination_pools::pallet::Error<T>
* Lookup392: pallet_nomination_pools::pallet::Error<T>
**/
PalletNominationPoolsError: {
_enum: {
Expand Down Expand Up @@ -2829,7 +2844,7 @@ export default {
},
},
/**
* Lookup389: pallet_nomination_pools::pallet::DefensiveError
* Lookup393: pallet_nomination_pools::pallet::DefensiveError
**/
PalletNominationPoolsDefensiveError: {
_enum: [
Expand All @@ -2841,35 +2856,35 @@ export default {
],
},
/**
* Lookup392: frame_system::extensions::check_non_zero_sender::CheckNonZeroSender<T>
* Lookup396: frame_system::extensions::check_non_zero_sender::CheckNonZeroSender<T>
**/
FrameSystemExtensionsCheckNonZeroSender: 'Null',
/**
* Lookup393: frame_system::extensions::check_spec_version::CheckSpecVersion<T>
* Lookup397: frame_system::extensions::check_spec_version::CheckSpecVersion<T>
**/
FrameSystemExtensionsCheckSpecVersion: 'Null',
/**
* Lookup394: frame_system::extensions::check_tx_version::CheckTxVersion<T>
* Lookup398: frame_system::extensions::check_tx_version::CheckTxVersion<T>
**/
FrameSystemExtensionsCheckTxVersion: 'Null',
/**
* Lookup395: frame_system::extensions::check_genesis::CheckGenesis<T>
* Lookup399: frame_system::extensions::check_genesis::CheckGenesis<T>
**/
FrameSystemExtensionsCheckGenesis: 'Null',
/**
* Lookup398: frame_system::extensions::check_nonce::CheckNonce<T>
* Lookup402: frame_system::extensions::check_nonce::CheckNonce<T>
**/
FrameSystemExtensionsCheckNonce: 'Compact<u32>',
/**
* Lookup399: frame_system::extensions::check_weight::CheckWeight<T>
* Lookup403: frame_system::extensions::check_weight::CheckWeight<T>
**/
FrameSystemExtensionsCheckWeight: 'Null',
/**
* Lookup400: pallet_transaction_payment::ChargeTransactionPayment<T>
* Lookup404: pallet_transaction_payment::ChargeTransactionPayment<T>
**/
PalletTransactionPaymentChargeTransactionPayment: 'Compact<u128>',
/**
* Lookup401: creditcoin_node_runtime::Runtime
* Lookup405: creditcoin_node_runtime::Runtime
**/
CreditcoinNodeRuntimeRuntime: 'Null',
};
4 changes: 4 additions & 0 deletions creditcoin-js/src/interfaces/registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ import type {
PalletCreditcoinBidOrderId,
PalletCreditcoinBlockchain,
PalletCreditcoinCall,
PalletCreditcoinCleanupStorageCleanupState,
PalletCreditcoinCleanupStorageItemCleanupState,
PalletCreditcoinCollectCoinsBurnDetails,
PalletCreditcoinCollectCoinsCollectedCoins,
PalletCreditcoinCollectCoinsContractType,
Expand Down Expand Up @@ -278,6 +280,8 @@ declare module '@polkadot/types/types/registry' {
PalletCreditcoinBidOrderId: PalletCreditcoinBidOrderId;
PalletCreditcoinBlockchain: PalletCreditcoinBlockchain;
PalletCreditcoinCall: PalletCreditcoinCall;
PalletCreditcoinCleanupStorageCleanupState: PalletCreditcoinCleanupStorageCleanupState;
PalletCreditcoinCleanupStorageItemCleanupState: PalletCreditcoinCleanupStorageItemCleanupState;
PalletCreditcoinCollectCoinsBurnDetails: PalletCreditcoinCollectCoinsBurnDetails;
PalletCreditcoinCollectCoinsCollectedCoins: PalletCreditcoinCollectCoinsCollectedCoins;
PalletCreditcoinCollectCoinsContractType: PalletCreditcoinCollectCoinsContractType;
Expand Down
Loading

0 comments on commit b9c00d5

Please sign in to comment.