@webb-tools/tangle-substrate-types 0.9.12 → 0.9.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.cjs CHANGED
@@ -2189,6 +2189,9 @@ function typesFromDefs(definitions, initTypes = {}) {
2189
2189
  DecayConfigUpdated: {
2190
2190
  startPeriod: 'u64',
2191
2191
  rate: 'Percent'
2192
+ },
2193
+ ApyBlocksUpdated: {
2194
+ blocks: 'u64'
2192
2195
  }
2193
2196
  }
2194
2197
  },
@@ -4667,6 +4670,10 @@ function typesFromDefs(definitions, initTypes = {}) {
4667
4670
  claim_rewards: {
4668
4671
  asset: 'TanglePrimitivesServicesAsset'
4669
4672
  },
4673
+ claim_rewards_other: {
4674
+ who: 'AccountId32',
4675
+ asset: 'TanglePrimitivesServicesAsset'
4676
+ },
4670
4677
  manage_asset_reward_vault: {
4671
4678
  vaultId: 'u32',
4672
4679
  assetId: 'TanglePrimitivesServicesAsset',
@@ -4683,6 +4690,9 @@ function typesFromDefs(definitions, initTypes = {}) {
4683
4690
  update_decay_config: {
4684
4691
  startPeriod: 'u64',
4685
4692
  rate: 'Percent'
4693
+ },
4694
+ update_apy_blocks: {
4695
+ blocks: 'u64'
4686
4696
  }
4687
4697
  }
4688
4698
  },
package/build/index.d.ts CHANGED
@@ -4918,6 +4918,12 @@ declare module '@polkadot/api-base/types/events' {
4918
4918
  [key: string]: AugmentedEvent<ApiType>;
4919
4919
  };
4920
4920
  rewards: {
4921
+ /**
4922
+ * The number of blocks for APY calculation has been updated
4923
+ **/
4924
+ ApyBlocksUpdated: AugmentedEvent<ApiType, [blocks: u64], {
4925
+ blocks: u64;
4926
+ }>;
4921
4927
  /**
4922
4928
  * Asset has been updated to reward vault
4923
4929
  **/
@@ -12144,6 +12150,22 @@ declare module '@polkadot/api-base/types/submittable' {
12144
12150
  } | {
12145
12151
  Erc20: any;
12146
12152
  } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [TanglePrimitivesServicesAsset]>;
12153
+ /**
12154
+ * Claim rewards for another account
12155
+ *
12156
+ * The dispatch origin must be signed.
12157
+ *
12158
+ * Parameters:
12159
+ * - `who`: The account to claim rewards for
12160
+ * - `asset`: The asset to claim rewards for
12161
+ *
12162
+ * Emits `RewardsClaimed` event when successful.
12163
+ **/
12164
+ claimRewardsOther: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array, asset: TanglePrimitivesServicesAsset | {
12165
+ Custom: any;
12166
+ } | {
12167
+ Erc20: any;
12168
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, TanglePrimitivesServicesAsset]>;
12147
12169
  /**
12148
12170
  * Creates a new reward configuration for a specific vault.
12149
12171
  *
@@ -12194,6 +12216,10 @@ declare module '@polkadot/api-base/types/submittable' {
12194
12216
  } | {
12195
12217
  Erc20: any;
12196
12218
  } | string | Uint8Array, action: PalletRewardsAssetAction | 'Add' | 'Remove' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, TanglePrimitivesServicesAsset, PalletRewardsAssetAction]>;
12219
+ /**
12220
+ * Update the number of blocks used for APY calculation
12221
+ **/
12222
+ updateApyBlocks: AugmentedSubmittable<(blocks: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;
12197
12223
  /**
12198
12224
  * Update the decay configuration
12199
12225
  **/
@@ -18407,7 +18433,11 @@ declare module '@polkadot/types/lookup' {
18407
18433
  readonly startPeriod: u64;
18408
18434
  readonly rate: Percent;
18409
18435
  } & Struct;
18410
- readonly type: 'RewardsClaimed' | 'IncentiveAPYAndCapSet' | 'BlueprintWhitelisted' | 'AssetUpdatedInVault' | 'VaultRewardConfigUpdated' | 'RewardVaultCreated' | 'TotalScoreUpdated' | 'TotalDepositUpdated' | 'DecayConfigUpdated';
18436
+ readonly isApyBlocksUpdated: boolean;
18437
+ readonly asApyBlocksUpdated: {
18438
+ readonly blocks: u64;
18439
+ } & Struct;
18440
+ readonly type: 'RewardsClaimed' | 'IncentiveAPYAndCapSet' | 'BlueprintWhitelisted' | 'AssetUpdatedInVault' | 'VaultRewardConfigUpdated' | 'RewardVaultCreated' | 'TotalScoreUpdated' | 'TotalDepositUpdated' | 'DecayConfigUpdated' | 'ApyBlocksUpdated';
18411
18441
  }
18412
18442
  /** @name PalletRewardsAssetAction (150) */
18413
18443
  interface PalletRewardsAssetAction extends Enum {
@@ -20847,6 +20877,11 @@ declare module '@polkadot/types/lookup' {
20847
20877
  readonly asClaimRewards: {
20848
20878
  readonly asset: TanglePrimitivesServicesAsset;
20849
20879
  } & Struct;
20880
+ readonly isClaimRewardsOther: boolean;
20881
+ readonly asClaimRewardsOther: {
20882
+ readonly who: AccountId32;
20883
+ readonly asset: TanglePrimitivesServicesAsset;
20884
+ } & Struct;
20850
20885
  readonly isManageAssetRewardVault: boolean;
20851
20886
  readonly asManageAssetRewardVault: {
20852
20887
  readonly vaultId: u32;
@@ -20868,7 +20903,11 @@ declare module '@polkadot/types/lookup' {
20868
20903
  readonly startPeriod: u64;
20869
20904
  readonly rate: Percent;
20870
20905
  } & Struct;
20871
- readonly type: 'ClaimRewards' | 'ManageAssetRewardVault' | 'CreateRewardVault' | 'UpdateVaultRewardConfig' | 'UpdateDecayConfig';
20906
+ readonly isUpdateApyBlocks: boolean;
20907
+ readonly asUpdateApyBlocks: {
20908
+ readonly blocks: u64;
20909
+ } & Struct;
20910
+ readonly type: 'ClaimRewards' | 'ClaimRewardsOther' | 'ManageAssetRewardVault' | 'CreateRewardVault' | 'UpdateVaultRewardConfig' | 'UpdateDecayConfig' | 'UpdateApyBlocks';
20872
20911
  }
20873
20912
  /** @name PalletSudoError (457) */
20874
20913
  interface PalletSudoError extends Enum {
@@ -24389,6 +24428,9 @@ declare const _default: {
24389
24428
  startPeriod: string;
24390
24429
  rate: string;
24391
24430
  };
24431
+ ApyBlocksUpdated: {
24432
+ blocks: string;
24433
+ };
24392
24434
  };
24393
24435
  };
24394
24436
  /**
@@ -26937,6 +26979,10 @@ declare const _default: {
26937
26979
  claim_rewards: {
26938
26980
  asset: string;
26939
26981
  };
26982
+ claim_rewards_other: {
26983
+ who: string;
26984
+ asset: string;
26985
+ };
26940
26986
  manage_asset_reward_vault: {
26941
26987
  vaultId: string;
26942
26988
  assetId: string;
@@ -26954,6 +27000,9 @@ declare const _default: {
26954
27000
  startPeriod: string;
26955
27001
  rate: string;
26956
27002
  };
27003
+ update_apy_blocks: {
27004
+ blocks: string;
27005
+ };
26957
27006
  };
26958
27007
  };
26959
27008
  /**
package/build/index.mjs CHANGED
@@ -2187,6 +2187,9 @@ function typesFromDefs(definitions, initTypes = {}) {
2187
2187
  DecayConfigUpdated: {
2188
2188
  startPeriod: 'u64',
2189
2189
  rate: 'Percent'
2190
+ },
2191
+ ApyBlocksUpdated: {
2192
+ blocks: 'u64'
2190
2193
  }
2191
2194
  }
2192
2195
  },
@@ -4665,6 +4668,10 @@ function typesFromDefs(definitions, initTypes = {}) {
4665
4668
  claim_rewards: {
4666
4669
  asset: 'TanglePrimitivesServicesAsset'
4667
4670
  },
4671
+ claim_rewards_other: {
4672
+ who: 'AccountId32',
4673
+ asset: 'TanglePrimitivesServicesAsset'
4674
+ },
4668
4675
  manage_asset_reward_vault: {
4669
4676
  vaultId: 'u32',
4670
4677
  assetId: 'TanglePrimitivesServicesAsset',
@@ -4681,6 +4688,9 @@ function typesFromDefs(definitions, initTypes = {}) {
4681
4688
  update_decay_config: {
4682
4689
  startPeriod: 'u64',
4683
4690
  rate: 'Percent'
4691
+ },
4692
+ update_apy_blocks: {
4693
+ blocks: 'u64'
4684
4694
  }
4685
4695
  }
4686
4696
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webb-tools/tangle-substrate-types",
3
- "version": "0.9.12",
3
+ "version": "0.9.13",
4
4
  "description": "Polkadot.js type definitions required for interacting with Webb's tangle network",
5
5
  "author": "Webb Developers <drew@webb.tools>",
6
6
  "license": "Apache-2.0",