Skip to content

Commit

Permalink
Merge pull request #8 from mangata-finance/rc/definitions/2.1.0
Browse files Browse the repository at this point in the history
Update type definitions
  • Loading branch information
devdanco authored Dec 13, 2023
2 parents 4835f25 + 3ec03e2 commit cce100f
Show file tree
Hide file tree
Showing 7 changed files with 68 additions and 5 deletions.
14 changes: 13 additions & 1 deletion package-lock.json

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

2 changes: 1 addition & 1 deletion packages/sdk/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"options": {
"branches": [
"main",
{ "name": "rc/*", "channel": "rc", "prerelease": "rc" }
{ "name": "rc/sdk/*", "channel": "rc", "prerelease": "rc" }
],
"buildTarget": "@mangata-finance/sdk:build",
"repositoryUrl": "https://github.com/mangata-finance/mangata-dev-kit",
Expand Down
7 changes: 7 additions & 0 deletions packages/type-definitions/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# [2.1.0-rc.1](https://github.com/mangata-finance/mangata-dev-kit/compare/@mangata-finance/type-definitions-v2.0.0...@mangata-finance/type-definitions-v2.1.0-rc.1) (2023-12-13)


### Features

* add new rpc ([ab6ecec](https://github.com/mangata-finance/mangata-dev-kit/commit/ab6ecece584d2e9c04e30ee49073a2f504ad1ae4))

# [2.0.0](https://github.com/mangata-finance/types-definitions/compare/v1.0.0...v2.0.0) (2023-10-12)


Expand Down
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.1.0-rc.1",
"description": "Type definitions for Mangata Finance",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/type-definitions/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"options": {
"branches": [
"main",
{ "name": "rc/*", "channel": "rc", "prerelease": "rc" }
{ "name": "rc/definitions/*", "channel": "rc", "prerelease": "rc" }
],
"buildTarget": "@mangata-finance/type-definitions:build",
"repositoryUrl": "https://github.com/mangata-finance/mangata-dev-kit",
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 all amount of available 3rdparty rewards",
params: [
{
name: "account",
type: "AccountId"
}
],
type: "Balance"
}
}
};

Expand Down
2 changes: 1 addition & 1 deletion packages/types/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"options": {
"branches": [
"main",
{ "name": "rc/*", "channel": "rc", "prerelease": "rc" }
{ "name": "rc/types/*", "channel": "rc", "prerelease": "rc" }
],
"buildTarget": "@mangata-finance/types:build",
"repositoryUrl": "https://github.com/mangata-finance/mangata-dev-kit",
Expand Down

0 comments on commit cce100f

Please sign in to comment.