Skip to content

Commit

Permalink
Merge pull request #13 from mangata-finance/rc/types/2.2.2
Browse files Browse the repository at this point in the history
Rc/types/2.2.2
  • Loading branch information
devdanco authored Dec 19, 2023
2 parents f6fbc74 + 2c9ee36 commit 8761fe2
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 7 deletions.
8 changes: 8 additions & 0 deletions packages/types/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## [2.2.2-rc.1](https://github.com/mangata-finance/mangata-dev-kit/compare/@mangata-finance/types-v2.2.1...@mangata-finance/types-v2.2.2-rc.1) (2023-12-19)


### Bug Fixes

* updates return type ([04a7092](https://github.com/mangata-finance/mangata-dev-kit/commit/04a7092c3e37ef812f00837e63d2f72aa38f2ea4))
* updates return type ([38e6535](https://github.com/mangata-finance/mangata-dev-kit/commit/38e65350ba5956bfaf8866491af08ed5c733b08e))

## [2.2.1](https://github.com/mangata-finance/mangata-dev-kit/compare/@mangata-finance/types-v2.2.0...@mangata-finance/types-v2.2.1) (2023-12-13)


Expand Down
2 changes: 1 addition & 1 deletion packages/types/metadata.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mangata-finance/types",
"version": "2.2.1",
"version": "2.2.2-rc.1",
"description": "Polkadot.js type definitions for Mangata Network",
"author": "Mangata Finance <solutions@mangata.finance>",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/types/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"executor": "nx:run-commands",
"options": {
"cwd": "packages/types",
"command": "echo '{\"id\":1,\"jsonrpc\":\"2.0\",\"method\":\"state_getMetadata\",\"params\":[]}' | websocat -n1 -B 99999999 ws://127.0.0.1:9947 > metadata.json"
"command": "echo '{\"id\":1,\"jsonrpc\":\"2.0\",\"method\":\"state_getMetadata\",\"params\":[]}' | websocat -n1 -B 99999999 ws://127.0.0.1:9946 > metadata.json"
}
},
"semantic-release": {
Expand Down
1 change: 1 addition & 0 deletions packages/types/src/interfaces/augment-api-events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,7 @@ declare module '@polkadot/api-base/types/events' {
ThirdPartyLiquidityActivated: AugmentedEvent<ApiType, [AccountId32, u32, u32, u128]>;
ThirdPartyLiquidityDeactivated: AugmentedEvent<ApiType, [AccountId32, u32, u32, u128]>;
ThirdPartyRewardsClaimed: AugmentedEvent<ApiType, [AccountId32, u32, u32, u128]>;
ThirdPartySuccessfulPoolPromotion: AugmentedEvent<ApiType, [AccountId32, u32, u32, u128]>;
/**
* Generic event
**/
Expand Down
2 changes: 1 addition & 1 deletion packages/types/src/interfaces/augment-api-rpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
/**
* Calculates all amount of available 3rdparty rewards
**/
calculate_3rdparty_rewards_all: AugmentedRpc<(account: AccountId | string | Uint8Array) => Observable<Balance>>;
calculate_3rdparty_rewards_all: AugmentedRpc<(account: AccountId | string | Uint8Array) => Observable<Vec<ITuple<[TokenId, TokenId, Balance]>>>>;
/**
* Calculates amount of available 3rdparty rewards
**/
Expand Down
3 changes: 2 additions & 1 deletion packages/types/src/interfaces/lookup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,8 @@ export default {
RewardsClaimed: '(AccountId32,u32,u128)',
ThirdPartyRewardsClaimed: '(AccountId32,u32,u32,u128)',
ThirdPartyLiquidityActivated: '(AccountId32,u32,u32,u128)',
ThirdPartyLiquidityDeactivated: '(AccountId32,u32,u32,u128)'
ThirdPartyLiquidityDeactivated: '(AccountId32,u32,u32,u128)',
ThirdPartySuccessfulPoolPromotion: '(AccountId32,u32,u32,u128)'
}
},
/**
Expand Down
2 changes: 1 addition & 1 deletion packages/types/src/interfaces/pos/definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default {
type: "AccountId"
}
],
type: "Balance"
type: "Vec<(TokenId, TokenId, Balance)>"
}
}
}
4 changes: 3 additions & 1 deletion packages/types/src/interfaces/types-lookup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,9 @@ declare module '@polkadot/types/lookup' {
readonly asThirdPartyLiquidityActivated: ITuple<[AccountId32, u32, u32, u128]>;
readonly isThirdPartyLiquidityDeactivated: boolean;
readonly asThirdPartyLiquidityDeactivated: ITuple<[AccountId32, u32, u32, u128]>;
readonly type: 'PoolPromotionUpdated' | 'LiquidityActivated' | 'LiquidityDeactivated' | 'RewardsClaimed' | 'ThirdPartyRewardsClaimed' | 'ThirdPartyLiquidityActivated' | 'ThirdPartyLiquidityDeactivated';
readonly isThirdPartySuccessfulPoolPromotion: boolean;
readonly asThirdPartySuccessfulPoolPromotion: ITuple<[AccountId32, u32, u32, u128]>;
readonly type: 'PoolPromotionUpdated' | 'LiquidityActivated' | 'LiquidityDeactivated' | 'RewardsClaimed' | 'ThirdPartyRewardsClaimed' | 'ThirdPartyLiquidityActivated' | 'ThirdPartyLiquidityDeactivated' | 'ThirdPartySuccessfulPoolPromotion';
}

/** @name PalletFeeLockEvent (53) */
Expand Down

0 comments on commit 8761fe2

Please sign in to comment.