Skip to content

Commit

Permalink
Merge pull request #459 from irisnet/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
hangts authored Nov 4, 2024
2 parents bb6bf44 + 1bb5952 commit 60bb1e0
Show file tree
Hide file tree
Showing 24 changed files with 1,221 additions and 1,051 deletions.
2 changes: 1 addition & 1 deletion dist/src/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@ var SdkError = exports.SdkError = /*#__PURE__*/function (_Error) {
}
(0, _inherits2["default"])(SdkError, _Error);
return (0, _createClass2["default"])(SdkError);
}( /*#__PURE__*/(0, _wrapNativeSuper2["default"])(Error));
}(/*#__PURE__*/(0, _wrapNativeSuper2["default"])(Error));
1 change: 0 additions & 1 deletion dist/src/helper/txHelper.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/// <reference types="node" />
import { Buffer } from 'buffer';
export declare class TxHelper {
static getHexPubkey(pubkey: string): string;
Expand Down
4 changes: 2 additions & 2 deletions dist/src/modules/bank.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ var Bank = exports.Bank = /*#__PURE__*/function () {
return (0, _createClass2["default"])(Bank, [{
key: "send",
value: (function () {
var _send = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(to, amount, baseTx) {
var _send = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(to, amount, baseTx) {
var from, msgs;
return _regenerator["default"].wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
Expand Down Expand Up @@ -91,7 +91,7 @@ var Bank = exports.Bank = /*#__PURE__*/function () {
}, {
key: "multiSend",
value: (function () {
var _multiSend = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(to, amount, baseTx) {
var _multiSend = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2(to, amount, baseTx) {
var from, coins, msgs;
return _regenerator["default"].wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
Expand Down
6 changes: 3 additions & 3 deletions dist/src/modules/coinswap.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ var Coinswap = exports.Coinswap = /*#__PURE__*/function () {
return (0, _createClass2["default"])(Coinswap, [{
key: "addLiquidity",
value: (function () {
var _addLiquidity = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(max_token, exact_standard_amt, min_liquidity, deadline, baseTx) {
var _addLiquidity = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(max_token, exact_standard_amt, min_liquidity, deadline, baseTx) {
var sender, msgs;
return _regenerator["default"].wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
Expand Down Expand Up @@ -84,7 +84,7 @@ var Coinswap = exports.Coinswap = /*#__PURE__*/function () {
}, {
key: "removeLiquidity",
value: (function () {
var _removeLiquidity = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(withdraw_liquidity, min_token, min_standard_amt, deadline, baseTx) {
var _removeLiquidity = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2(withdraw_liquidity, min_token, min_standard_amt, deadline, baseTx) {
var sender, msgs;
return _regenerator["default"].wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
Expand Down Expand Up @@ -125,7 +125,7 @@ var Coinswap = exports.Coinswap = /*#__PURE__*/function () {
}, {
key: "swapOrder",
value: (function () {
var _swapOrder = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(input, output, is_buy_order, deadline, baseTx) {
var _swapOrder = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3(input, output, is_buy_order, deadline, baseTx) {
var address, msgs;
return _regenerator["default"].wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
Expand Down
8 changes: 4 additions & 4 deletions dist/src/modules/distribution.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ var Distribution = exports.Distribution = /*#__PURE__*/function () {
}, {
key: "setWithdrawAddr",
value: (function () {
var _setWithdrawAddr = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(withdrawAddress, baseTx) {
var _setWithdrawAddr = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(withdrawAddress, baseTx) {
var from, msgs;
return _regenerator["default"].wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
Expand Down Expand Up @@ -124,7 +124,7 @@ var Distribution = exports.Distribution = /*#__PURE__*/function () {
}, {
key: "withdrawRewards",
value: (function () {
var _withdrawRewards = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(validatorAddr, baseTx) {
var _withdrawRewards = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2(validatorAddr, baseTx) {
var delegatorAddr, msgs;
return _regenerator["default"].wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
Expand Down Expand Up @@ -160,7 +160,7 @@ var Distribution = exports.Distribution = /*#__PURE__*/function () {
}, {
key: "withdrawValidatorCommission",
value: (function () {
var _withdrawValidatorCommission = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(validator_address, baseTx) {
var _withdrawValidatorCommission = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3(validator_address, baseTx) {
var msgs;
return _regenerator["default"].wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
Expand Down Expand Up @@ -200,7 +200,7 @@ var Distribution = exports.Distribution = /*#__PURE__*/function () {
}, {
key: "fundCommunityPool",
value: (function () {
var _fundCommunityPool = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee4(amount, baseTx) {
var _fundCommunityPool = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee4(amount, baseTx) {
var depositor, msgs;
return _regenerator["default"].wrap(function _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
Expand Down
6 changes: 3 additions & 3 deletions dist/src/modules/farm.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ var Farm = exports.Farm = /*#__PURE__*/function () {
return (0, _createClass2["default"])(Farm, [{
key: "stakeLp",
value: (function () {
var _stakeLp = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(pool_id, amount, baseTx) {
var _stakeLp = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(pool_id, amount, baseTx) {
var sender, msgs;
return _regenerator["default"].wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
Expand Down Expand Up @@ -71,7 +71,7 @@ var Farm = exports.Farm = /*#__PURE__*/function () {
* @returns
*/
function () {
var _unStakeLp = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(pool_id, amount, baseTx) {
var _unStakeLp = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2(pool_id, amount, baseTx) {
var sender, msgs;
return _regenerator["default"].wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
Expand Down Expand Up @@ -107,7 +107,7 @@ var Farm = exports.Farm = /*#__PURE__*/function () {
}, {
key: "harvestReward",
value: (function () {
var _harvestReward = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(pool_id, baseTx) {
var _harvestReward = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3(pool_id, baseTx) {
var sender, msgs;
return _regenerator["default"].wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
Expand Down
8 changes: 4 additions & 4 deletions dist/src/modules/gov.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ var Gov = exports.Gov = /*#__PURE__*/function () {
return (0, _createClass2["default"])(Gov, [{
key: "submitProposal",
value: (function () {
var _submitProposal = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(content, initial_deposit, baseTx) {
var _submitProposal = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(content, initial_deposit, baseTx) {
var from, msgs;
return _regenerator["default"].wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
Expand Down Expand Up @@ -82,7 +82,7 @@ var Gov = exports.Gov = /*#__PURE__*/function () {
}, {
key: "vote",
value: (function () {
var _vote = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(proposal_id, option, baseTx) {
var _vote = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2(proposal_id, option, baseTx) {
var from, msgs;
return _regenerator["default"].wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
Expand Down Expand Up @@ -120,7 +120,7 @@ var Gov = exports.Gov = /*#__PURE__*/function () {
}, {
key: "voteWeighted",
value: (function () {
var _voteWeighted = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(proposal_id, options, baseTx) {
var _voteWeighted = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3(proposal_id, options, baseTx) {
var from, msgs;
return _regenerator["default"].wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
Expand Down Expand Up @@ -158,7 +158,7 @@ var Gov = exports.Gov = /*#__PURE__*/function () {
}, {
key: "deposit",
value: (function () {
var _deposit = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee4(proposal_id, amount, baseTx) {
var _deposit = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee4(proposal_id, amount, baseTx) {
var from, msgs;
return _regenerator["default"].wrap(function _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
Expand Down
2 changes: 1 addition & 1 deletion dist/src/modules/ibc/ibc-nft-transfer.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var IbcNftTransfer = exports.IbcNftTransfer = /*#__PURE__*/function () {
return (0, _createClass2["default"])(IbcNftTransfer, [{
key: "transfer",
value: (function () {
var _transfer = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(param, baseTx) {
var _transfer = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(param, baseTx) {
var from, msgs;
return _regenerator["default"].wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
Expand Down
2 changes: 1 addition & 1 deletion dist/src/modules/ibc/ibc.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var Ibc = exports.Ibc = /*#__PURE__*/function () {
return (0, _createClass2["default"])(Ibc, [{
key: "transfer",
value: (function () {
var _transfer = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(param, baseTx) {
var _transfer = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(param, baseTx) {
var from, msgs;
return _regenerator["default"].wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
Expand Down
10 changes: 5 additions & 5 deletions dist/src/modules/nft.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ var Nft = exports.Nft = /*#__PURE__*/function () {
return (0, _createClass2["default"])(Nft, [{
key: "issueDenom",
value: (function () {
var _issueDenom = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(id, name, schema, option, baseTx) {
var _issueDenom = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(id, name, schema, option, baseTx) {
var sender, msgs;
return _regenerator["default"].wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
Expand Down Expand Up @@ -88,7 +88,7 @@ var Nft = exports.Nft = /*#__PURE__*/function () {
}, {
key: "mintNft",
value: (function () {
var _mintNft = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(id, denom_id, name, uri, uri_hash, data, recipient, baseTx) {
var _mintNft = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2(id, denom_id, name, uri, uri_hash, data, recipient, baseTx) {
var sender, msgs;
return _regenerator["default"].wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
Expand Down Expand Up @@ -141,7 +141,7 @@ var Nft = exports.Nft = /*#__PURE__*/function () {
}, {
key: "editNft",
value: (function () {
var _editNft = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(id, denom_id, new_property, baseTx) {
var _editNft = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3(id, denom_id, new_property, baseTx) {
var sender, msgs;
return _regenerator["default"].wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
Expand Down Expand Up @@ -181,7 +181,7 @@ var Nft = exports.Nft = /*#__PURE__*/function () {
}, {
key: "transferNft",
value: (function () {
var _transferNft = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee4(id, denom_id, recipient, new_property, baseTx) {
var _transferNft = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee4(id, denom_id, recipient, new_property, baseTx) {
var sender, msgs;
return _regenerator["default"].wrap(function _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
Expand Down Expand Up @@ -226,7 +226,7 @@ var Nft = exports.Nft = /*#__PURE__*/function () {
}, {
key: "burnNft",
value: (function () {
var _burnNft = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee5(id, denom_id, baseTx) {
var _burnNft = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee5(id, denom_id, baseTx) {
var sender, msgs;
return _regenerator["default"].wrap(function _callee5$(_context5) {
while (1) switch (_context5.prev = _context5.next) {
Expand Down
2 changes: 1 addition & 1 deletion dist/src/modules/random.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ var Random = exports.Random = /*#__PURE__*/function () {
}, {
key: "request",
value: (function () {
var _request = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(blockInterval, baseTx) {
var _request = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(blockInterval, baseTx) {
var consumer, msgs;
return _regenerator["default"].wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
Expand Down
Loading

0 comments on commit 60bb1e0

Please sign in to comment.