Skip to content

Commit

Permalink
Merge pull request #118 from Itheum/d-david
Browse files Browse the repository at this point in the history
Bond new updates
  • Loading branch information
bucurdavid authored Mar 15, 2024
2 parents 476a6c2 + b6d7441 commit 20b2a6e
Show file tree
Hide file tree
Showing 14 changed files with 296 additions and 161 deletions.
36 changes: 0 additions & 36 deletions .husky/_/husky.sh

This file was deleted.

4 changes: 1 addition & 3 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
npx --no-install commitlint --edit $1
npx --no-install commitlint --edit
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm test
16 changes: 8 additions & 8 deletions package-lock.json

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

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@itheum/sdk-mx-data-nft",
"version": "3.0.0",
"version": "2.7.0-beta.11",
"description": "SDK for Itheum's Data NFT Technology on MultiversX Blockchain",
"main": "out/index.js",
"types": "out/index.d.js",
Expand All @@ -12,7 +12,7 @@
"lint": "tslint --project .",
"lint:fix": "tslint --project . --fix",
"build": "tsc -p tsconfig.json",
"prepare": "npm run build"
"prepare": "husky"
},
"author": "Itheum Protocol",
"license": "GPL-3.0-only",
Expand All @@ -32,7 +32,7 @@
"@semantic-release/release-notes-generator": "12.1.0",
"@types/jest": "29.5.11",
"commitlint": "18.4.4",
"husky": "^8.0.0",
"husky": "9.0.11",
"jest": "29.7.0",
"semantic-release": "23.0.2",
"ts-jest": "29.1.2",
Expand Down
224 changes: 145 additions & 79 deletions src/abis/core-mx-life-bonding-sc.abi.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"type": "u64"
},
{
"name": "lock_period",
"name": "lock_period_seconds",
"type": "u64"
}
],
Expand Down Expand Up @@ -108,83 +108,6 @@
],
"outputs": []
},
{
"name": "getAcceptedCallers",
"mutability": "readonly",
"inputs": [],
"outputs": [
{
"type": "variadic<Address>",
"multi_result": true
}
]
},
{
"name": "getBondPaymentToken",
"mutability": "readonly",
"inputs": [],
"outputs": [
{
"type": "TokenIdentifier"
}
]
},
{
"name": "getLockPeriods",
"mutability": "readonly",
"inputs": [],
"outputs": [
{
"type": "variadic<u64>",
"multi_result": true
}
]
},
{
"name": "getLockPeriodBondAmount",
"mutability": "readonly",
"inputs": [
{
"name": "lock_period",
"type": "u64"
}
],
"outputs": [
{
"type": "BigUint"
}
]
},
{
"name": "getMinimumPenalty",
"mutability": "readonly",
"inputs": [],
"outputs": [
{
"type": "u64"
}
]
},
{
"name": "getMaximumPenalty",
"mutability": "readonly",
"inputs": [],
"outputs": [
{
"type": "u64"
}
]
},
{
"name": "getWithdrawPenalty",
"mutability": "readonly",
"inputs": [],
"outputs": [
{
"type": "u64"
}
]
},
{
"name": "getCompensationBlacklist",
"mutability": "readonly",
Expand Down Expand Up @@ -395,6 +318,35 @@
}
]
},
{
"name": "getContractConfiguration",
"mutability": "readonly",
"inputs": [],
"outputs": [
{
"type": "ContractConfiguration"
}
]
},
{
"name": "initiateBond",
"mutability": "mutable",
"inputs": [
{
"name": "address",
"type": "Address"
},
{
"name": "token_identifier",
"type": "TokenIdentifier"
},
{
"name": "nonce",
"type": "u64"
}
],
"outputs": []
},
{
"name": "setBlacklist",
"mutability": "mutable",
Expand Down Expand Up @@ -533,7 +485,7 @@
"outputs": []
},
{
"name": "setPeriodsBonds",
"name": "addPeriodsBonds",
"mutability": "mutable",
"inputs": [
{
Expand Down Expand Up @@ -620,6 +572,83 @@
"type": "Address"
}
]
},
{
"name": "getAcceptedCallers",
"mutability": "readonly",
"inputs": [],
"outputs": [
{
"type": "variadic<Address>",
"multi_result": true
}
]
},
{
"name": "getBondPaymentToken",
"mutability": "readonly",
"inputs": [],
"outputs": [
{
"type": "TokenIdentifier"
}
]
},
{
"name": "getLockPeriods",
"mutability": "readonly",
"inputs": [],
"outputs": [
{
"type": "variadic<u64>",
"multi_result": true
}
]
},
{
"name": "getLockPeriodBondAmount",
"mutability": "readonly",
"inputs": [
{
"name": "lock_period",
"type": "u64"
}
],
"outputs": [
{
"type": "BigUint"
}
]
},
{
"name": "getMinimumPenalty",
"mutability": "readonly",
"inputs": [],
"outputs": [
{
"type": "u64"
}
]
},
{
"name": "getMaximumPenalty",
"mutability": "readonly",
"inputs": [],
"outputs": [
{
"type": "u64"
}
]
},
{
"name": "getWithdrawPenalty",
"mutability": "readonly",
"inputs": [],
"outputs": [
{
"type": "u64"
}
]
}
],
"events": [
Expand Down Expand Up @@ -1041,6 +1070,43 @@
}
]
},
"ContractConfiguration": {
"type": "struct",
"fields": [
{
"name": "contract_state",
"type": "State"
},
{
"name": "bond_payment_token_identifier",
"type": "TokenIdentifier"
},
{
"name": "lock_periods",
"type": "List<u64>"
},
{
"name": "bond_amounts",
"type": "List<BigUint>"
},
{
"name": "minimum_penalty",
"type": "u64"
},
{
"name": "maximum_penalty",
"type": "u64"
},
{
"name": "withdraw_penalty",
"type": "u64"
},
{
"name": "accepted_callers",
"type": "List<Address>"
}
]
},
"EsdtTokenPayment": {
"type": "struct",
"fields": [
Expand Down
Loading

0 comments on commit 20b2a6e

Please sign in to comment.