Skip to content

Commit

Permalink
feat: add new rpc
Browse files Browse the repository at this point in the history
[only @mangata-finance/type-definitions]
  • Loading branch information
devdanco committed Nov 20, 2023
1 parent 24ed596 commit 2039480
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/type-definitions/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mangata-finance/type-definitions",
"version": "2.0.0",
"version": "2.0.1-feature-3rdparty-rewards-merge.0",
"description": "Type definitions for Mangata Finance",
"repository": {
"type": "git",
Expand Down
44 changes: 44 additions & 0 deletions packages/type-definitions/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,50 @@ export const mRpc = {
params: [],
type: "Vec<TokenId>"
}
},
pos: {
calculate_native_rewards_amount: {
description: "Calculates amount of available native rewards",
params: [
{
name: "account",
type: "AccountId"
},
{
name: "liquidity_token",
type: "TokenId"
}
],
type: "Balance"
},
calculate_3rdparty_rewards_amount: {
description: "Calculates amount of available 3rdparty rewards",
params: [
{
name: "account",
type: "AccountId"
},
{
name: "liquidity_token",
type: "TokenId"
},
{
name: "rewards_token",
type: "TokenId"
}
],
type: "Balance"
},
calculate_3rdparty_rewards_all: {
description: "Calculates amount of available 3rdparty rewards",
params: [
{
name: "account",
type: "AccountId"
}
],
type: "Balance"
}
}
};

Expand Down

0 comments on commit 2039480

Please sign in to comment.