Skip to content

Commit

Permalink
Release v1.2.7 (#904)
Browse files Browse the repository at this point in the history
* wip : fix e2e test

* fix calls

* clippy

* update version to v1.2.7

* update
  • Loading branch information
1xstj authored Jan 31, 2025
1 parent 7dcefc1 commit 1780f72
Show file tree
Hide file tree
Showing 10 changed files with 68 additions and 25 deletions.
34 changes: 17 additions & 17 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[workspace.package]
version = "1.2.5"
version = "1.2.7"
authors = ["Tangle Foundation."]
edition = "2021"
license = "Unlicense"
Expand Down
2 changes: 1 addition & 1 deletion runtime/mainnet/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("tangle"),
impl_name: create_runtime_str!("tangle"),
authoring_version: 1,
spec_version: 1205, // v1.2.5
spec_version: 1207, // v1.2.7
impl_version: 1,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand Down
2 changes: 1 addition & 1 deletion runtime/testnet/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("tangle-testnet"),
impl_name: create_runtime_str!("tangle-testnet"),
authoring_version: 1,
spec_version: 1205, // v1.2.5
spec_version: 1207, // v1.2.7
impl_version: 1,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand Down
Binary file modified tangle-subxt/metadata/tangle-testnet-runtime.scale
Binary file not shown.
4 changes: 4 additions & 0 deletions types/src/interfaces/augment-api-events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1050,6 +1050,10 @@ declare module '@polkadot/api-base/types/events' {
[key: string]: AugmentedEvent<ApiType>;
};
rewards: {
/**
* The number of blocks for APY calculation has been updated
**/
ApyBlocksUpdated: AugmentedEvent<ApiType, [blocks: u64], { blocks: u64 }>;
/**
* Asset has been updated to reward vault
**/
Expand Down
16 changes: 16 additions & 0 deletions types/src/interfaces/augment-api-tx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3529,6 +3529,18 @@ declare module '@polkadot/api-base/types/submittable' {
* Claim rewards for a specific asset and reward type
**/
claimRewards: AugmentedSubmittable<(asset: TanglePrimitivesServicesAsset | { Custom: any } | { Erc20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [TanglePrimitivesServicesAsset]>;
/**
* Claim rewards for another account
*
* The dispatch origin must be signed.
*
* Parameters:
* - `who`: The account to claim rewards for
* - `asset`: The asset to claim rewards for
*
* Emits `RewardsClaimed` event when successful.
**/
claimRewardsOther: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array, asset: TanglePrimitivesServicesAsset | { Custom: any } | { Erc20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, TanglePrimitivesServicesAsset]>;
/**
* Creates a new reward configuration for a specific vault.
*
Expand Down Expand Up @@ -3570,6 +3582,10 @@ declare module '@polkadot/api-base/types/submittable' {
* * [`Error::AssetNotInVault`] - Asset does not exist in vault
**/
manageAssetRewardVault: AugmentedSubmittable<(vaultId: u32 | AnyNumber | Uint8Array, assetId: TanglePrimitivesServicesAsset | { Custom: any } | { Erc20: any } | string | Uint8Array, action: PalletRewardsAssetAction | 'Add' | 'Remove' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, TanglePrimitivesServicesAsset, PalletRewardsAssetAction]>;
/**
* Update the number of blocks used for APY calculation
**/
updateApyBlocks: AugmentedSubmittable<(blocks: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;
/**
* Update the decay configuration
**/
Expand Down
14 changes: 12 additions & 2 deletions types/src/interfaces/lookup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1990,7 +1990,10 @@ export default {
},
DecayConfigUpdated: {
startPeriod: 'u64',
rate: 'Percent'
rate: 'Percent',
},
ApyBlocksUpdated: {
blocks: 'u64'
}
}
},
Expand Down Expand Up @@ -4540,6 +4543,10 @@ export default {
claim_rewards: {
asset: 'TanglePrimitivesServicesAsset',
},
claim_rewards_other: {
who: 'AccountId32',
asset: 'TanglePrimitivesServicesAsset',
},
manage_asset_reward_vault: {
vaultId: 'u32',
assetId: 'TanglePrimitivesServicesAsset',
Expand All @@ -4555,7 +4562,10 @@ export default {
},
update_decay_config: {
startPeriod: 'u64',
rate: 'Percent'
rate: 'Percent',
},
update_apy_blocks: {
blocks: 'u64'
}
}
},
Expand Down
17 changes: 15 additions & 2 deletions types/src/interfaces/types-lookup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2115,7 +2115,11 @@ declare module '@polkadot/types/lookup' {
readonly startPeriod: u64;
readonly rate: Percent;
} & Struct;
readonly type: 'RewardsClaimed' | 'IncentiveAPYAndCapSet' | 'BlueprintWhitelisted' | 'AssetUpdatedInVault' | 'VaultRewardConfigUpdated' | 'RewardVaultCreated' | 'TotalScoreUpdated' | 'TotalDepositUpdated' | 'DecayConfigUpdated';
readonly isApyBlocksUpdated: boolean;
readonly asApyBlocksUpdated: {
readonly blocks: u64;
} & Struct;
readonly type: 'RewardsClaimed' | 'IncentiveAPYAndCapSet' | 'BlueprintWhitelisted' | 'AssetUpdatedInVault' | 'VaultRewardConfigUpdated' | 'RewardVaultCreated' | 'TotalScoreUpdated' | 'TotalDepositUpdated' | 'DecayConfigUpdated' | 'ApyBlocksUpdated';
}

/** @name PalletRewardsAssetAction (150) */
Expand Down Expand Up @@ -4685,6 +4689,11 @@ declare module '@polkadot/types/lookup' {
readonly asClaimRewards: {
readonly asset: TanglePrimitivesServicesAsset;
} & Struct;
readonly isClaimRewardsOther: boolean;
readonly asClaimRewardsOther: {
readonly who: AccountId32;
readonly asset: TanglePrimitivesServicesAsset;
} & Struct;
readonly isManageAssetRewardVault: boolean;
readonly asManageAssetRewardVault: {
readonly vaultId: u32;
Expand All @@ -4706,7 +4715,11 @@ declare module '@polkadot/types/lookup' {
readonly startPeriod: u64;
readonly rate: Percent;
} & Struct;
readonly type: 'ClaimRewards' | 'ManageAssetRewardVault' | 'CreateRewardVault' | 'UpdateVaultRewardConfig' | 'UpdateDecayConfig';
readonly isUpdateApyBlocks: boolean;
readonly asUpdateApyBlocks: {
readonly blocks: u64;
} & Struct;
readonly type: 'ClaimRewards' | 'ClaimRewardsOther' | 'ManageAssetRewardVault' | 'CreateRewardVault' | 'UpdateVaultRewardConfig' | 'UpdateDecayConfig' | 'UpdateApyBlocks';
}

/** @name PalletSudoError (457) */
Expand Down
2 changes: 1 addition & 1 deletion types/src/metadata.json

Large diffs are not rendered by default.

0 comments on commit 1780f72

Please sign in to comment.