From 30a1be7afaf33c9dc38bb0c66ac5fa3fb9d04c82 Mon Sep 17 00:00:00 2001 From: KillianH Date: Tue, 27 Jul 2021 23:11:41 +0000 Subject: [PATCH 001/127] deploy: a40f3f580ffcd6212bc95a04649993a056e50c3a --- .nojekyll | 0 ast/source/.external-ecmascript.js.json | 2802 ++++ ast/source/index.js.json | 232 + ast/source/services/balance/balance.js.json | 12065 ++++++++++++++++ .../services/clients/clientCasper.js.json | 2012 +++ ast/source/services/clients/index.js.json | 232 + ...tractSmartContractDeployParameters.js.json | 3030 ++++ ...ntractStoredByHashDeployParameters.js.json | 7520 ++++++++++ .../deploys/auction/actions/addBid.js.json | 5262 +++++++ .../deploys/auction/actions/delegate.js.json | 5218 +++++++ .../deploys/auction/actions/index.js.json | 739 + .../auction/actions/undelegate.js.json | 5218 +++++++ .../auction/actions/withdrawBid.js.json | 4824 ++++++ .../services/deploys/auction/index.js.json | 232 + .../services/deploys/deployManager.js.json | 11234 ++++++++++++++ ast/source/services/deploys/index.js.json | 739 + .../smartContractDeployParameters.js.json | 7413 ++++++++++ .../transfer/TransferDeployParameters.js.json | 8105 +++++++++++ .../services/errors/extendableError.js.json | 3067 ++++ ast/source/services/errors/index.js.json | 908 ++ .../services/errors/insufficientFunds.js.json | 1343 ++ .../services/errors/noActiveKeyError.js.json | 1123 ++ .../errors/noStakeBalanceError.js.json | 1123 ++ .../errors/noValidatorBalanceError.js.json | 1123 ++ ast/source/services/errors/signError.js.json | 1123 ++ .../services/helpers/currencyUtils.js.json | 1364 ++ ast/source/services/helpers/index.js.json | 232 + ast/source/services/index.js.json | 1415 ++ .../services/keys/abstractKeyManager.js.json | 847 ++ ast/source/services/keys/index.js.json | 401 + .../services/results/addBidResult.js.json | 1726 +++ .../services/results/delegateResult.js.json | 1726 +++ .../services/results/deployResult.js.json | 4593 ++++++ ast/source/services/results/index.js.json | 1246 ++ .../results/smartContractResult.js.json | 1726 +++ .../services/results/transferResult.js.json | 1726 +++ .../services/results/undelegateResult.js.json | 1726 +++ .../results/withdrawBidResult.js.json | 1726 +++ .../services/signers/abstractSigner.js.json | 1158 ++ .../services/signers/casperSigner.js.json | 4792 ++++++ ast/source/services/signers/index.js.json | 401 + .../services/signers/localSigner.js.json | 3013 ++++ badge.svg | 17 + .../services/balance/balance.js~Balance.html | 736 + .../clients/clientCasper.js~ClientCasper.html | 385 + ...AbstractSmartContractDeployParameters.html | 575 + ...tContractStoredByHashDeployParameters.html | 1113 ++ .../auction/actions/addBid.js~AddBid.html | 770 + .../auction/actions/delegate.js~Delegate.html | 770 + .../actions/undelegate.js~Undelegate.html | 770 + .../actions/withdrawBid.js~WithdrawBid.html | 763 + .../deployManager.js~DeployManager.html | 652 + ...ters.js~SmartContractDeployParameters.html | 1043 ++ ...arameters.js~TransferDeployParameters.html | 1121 ++ .../extendableError.js~ExtendableError.html | 385 + ...nsufficientFunds.js~InsufficientFunds.html | 297 + .../noActiveKeyError.js~NoActiveKeyError.html | 280 + ...keBalanceError.js~NoStakeBalanceError.html | 280 + ...lanceError.js~NoValidatorBalanceError.html | 280 + .../errors/signError.js~SignError.html | 280 + .../currencyUtils.js~CurrencyUtils.html | 349 + ...tractKeyManager.js~AbstractKeyManager.html | 231 + .../results/addBidResult.js~AddBidResult.html | 532 + .../delegateResult.js~DelegateResult.html | 532 + .../results/deployResult.js~DeployResult.html | 759 + ...ContractResult.js~SmartContractResult.html | 532 + .../transferResult.js~TransferResult.html | 532 + .../undelegateResult.js~UndelegateResult.html | 532 + ...ithdrawBidResult.js~WithdrawBidResult.html | 532 + .../abstractSigner.js~AbstractSigner.html | 255 + .../signers/casperSigner.js~CasperSigner.html | 293 + .../signers/localSigner.js~LocalSigner.html | 290 + coverage.json | 152 + css/github.css | 83 + css/identifiers.css | 37 + css/manual.css | 134 + css/prettify-tomorrow.css | 132 + css/search.css | 84 + css/source.css | 55 + css/style.css | 608 + css/test.css | 58 + file/src/index.js.html | 86 + file/src/services/balance/balance.js.html | 165 + .../src/services/clients/clientCasper.js.html | 107 + file/src/services/clients/index.js.html | 86 + ...tractSmartContractDeployParameters.js.html | 137 + ...ntractStoredByHashDeployParameters.js.html | 160 + .../deploys/auction/actions/addBid.js.html | 134 + .../deploys/auction/actions/delegate.js.html | 134 + .../deploys/auction/actions/index.js.html | 89 + .../auction/actions/undelegate.js.html | 134 + .../auction/actions/withdrawBid.js.html | 132 + .../services/deploys/auction/index.js.html | 86 + .../services/deploys/deployManager.js.html | 160 + file/src/services/deploys/index.js.html | 89 + .../smartContractDeployParameters.js.html | 159 + .../transfer/TransferDeployParameters.js.html | 174 + .../services/errors/extendableError.js.html | 110 + file/src/services/errors/index.js.html | 90 + .../services/errors/insufficientFunds.js.html | 101 + .../services/errors/noActiveKeyError.js.html | 99 + .../errors/noStakeBalanceError.js.html | 99 + .../errors/noValidatorBalanceError.js.html | 99 + file/src/services/errors/signError.js.html | 99 + .../services/helpers/currencyUtils.js.html | 111 + file/src/services/helpers/index.js.html | 86 + file/src/services/index.js.html | 93 + .../services/keys/abstractKeyManager.js.html | 99 + file/src/services/keys/index.js.html | 87 + .../src/services/results/addBidResult.js.html | 109 + .../services/results/delegateResult.js.html | 109 + .../src/services/results/deployResult.js.html | 142 + file/src/services/results/index.js.html | 92 + .../results/smartContractResult.js.html | 108 + .../services/results/transferResult.js.html | 109 + .../services/results/undelegateResult.js.html | 109 + .../results/withdrawBidResult.js.html | 109 + .../services/signers/abstractSigner.js.html | 105 + .../src/services/signers/casperSigner.js.html | 119 + file/src/services/signers/index.js.html | 87 + file/src/services/signers/localSigner.js.html | 110 + identifiers.html | 1191 ++ image/badge.svg | 17 + image/esdoc-logo-mini-black.png | Bin 0 -> 5651 bytes image/esdoc-logo-mini.png | Bin 0 -> 6504 bytes image/manual-badge.svg | 17 + image/search.png | Bin 0 -> 12704 bytes index.html | 87 + index.json | 4347 ++++++ lint.json | 1 + script/inherited-summary.js | 28 + script/inner-link.js | 32 + script/manual.js | 12 + script/patch-for-local.js | 8 + script/prettify/Apache-License-2.0.txt | 202 + script/prettify/prettify.js | 46 + script/pretty-print.js | 25 + script/search.js | 117 + script/search_index.js | 1268 ++ script/test-summary.js | 54 + source.html | 423 + typedef/index.html | 165 + variable/index.html | 307 + 143 files changed, 146594 insertions(+) create mode 100644 .nojekyll create mode 100644 ast/source/.external-ecmascript.js.json create mode 100644 ast/source/index.js.json create mode 100644 ast/source/services/balance/balance.js.json create mode 100644 ast/source/services/clients/clientCasper.js.json create mode 100644 ast/source/services/clients/index.js.json create mode 100644 ast/source/services/deploys/abstractSmartContractDeployParameters.js.json create mode 100644 ast/source/services/deploys/abstractSmartContractStoredByHashDeployParameters.js.json create mode 100644 ast/source/services/deploys/auction/actions/addBid.js.json create mode 100644 ast/source/services/deploys/auction/actions/delegate.js.json create mode 100644 ast/source/services/deploys/auction/actions/index.js.json create mode 100644 ast/source/services/deploys/auction/actions/undelegate.js.json create mode 100644 ast/source/services/deploys/auction/actions/withdrawBid.js.json create mode 100644 ast/source/services/deploys/auction/index.js.json create mode 100644 ast/source/services/deploys/deployManager.js.json create mode 100644 ast/source/services/deploys/index.js.json create mode 100644 ast/source/services/deploys/smartContract/smartContractDeployParameters.js.json create mode 100644 ast/source/services/deploys/transfer/TransferDeployParameters.js.json create mode 100644 ast/source/services/errors/extendableError.js.json create mode 100644 ast/source/services/errors/index.js.json create mode 100644 ast/source/services/errors/insufficientFunds.js.json create mode 100644 ast/source/services/errors/noActiveKeyError.js.json create mode 100644 ast/source/services/errors/noStakeBalanceError.js.json create mode 100644 ast/source/services/errors/noValidatorBalanceError.js.json create mode 100644 ast/source/services/errors/signError.js.json create mode 100644 ast/source/services/helpers/currencyUtils.js.json create mode 100644 ast/source/services/helpers/index.js.json create mode 100644 ast/source/services/index.js.json create mode 100644 ast/source/services/keys/abstractKeyManager.js.json create mode 100644 ast/source/services/keys/index.js.json create mode 100644 ast/source/services/results/addBidResult.js.json create mode 100644 ast/source/services/results/delegateResult.js.json create mode 100644 ast/source/services/results/deployResult.js.json create mode 100644 ast/source/services/results/index.js.json create mode 100644 ast/source/services/results/smartContractResult.js.json create mode 100644 ast/source/services/results/transferResult.js.json create mode 100644 ast/source/services/results/undelegateResult.js.json create mode 100644 ast/source/services/results/withdrawBidResult.js.json create mode 100644 ast/source/services/signers/abstractSigner.js.json create mode 100644 ast/source/services/signers/casperSigner.js.json create mode 100644 ast/source/services/signers/index.js.json create mode 100644 ast/source/services/signers/localSigner.js.json create mode 100644 badge.svg create mode 100644 class/src/services/balance/balance.js~Balance.html create mode 100644 class/src/services/clients/clientCasper.js~ClientCasper.html create mode 100644 class/src/services/deploys/abstractSmartContractDeployParameters.js~AbstractSmartContractDeployParameters.html create mode 100644 class/src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters.html create mode 100644 class/src/services/deploys/auction/actions/addBid.js~AddBid.html create mode 100644 class/src/services/deploys/auction/actions/delegate.js~Delegate.html create mode 100644 class/src/services/deploys/auction/actions/undelegate.js~Undelegate.html create mode 100644 class/src/services/deploys/auction/actions/withdrawBid.js~WithdrawBid.html create mode 100644 class/src/services/deploys/deployManager.js~DeployManager.html create mode 100644 class/src/services/deploys/smartContract/smartContractDeployParameters.js~SmartContractDeployParameters.html create mode 100644 class/src/services/deploys/transfer/TransferDeployParameters.js~TransferDeployParameters.html create mode 100644 class/src/services/errors/extendableError.js~ExtendableError.html create mode 100644 class/src/services/errors/insufficientFunds.js~InsufficientFunds.html create mode 100644 class/src/services/errors/noActiveKeyError.js~NoActiveKeyError.html create mode 100644 class/src/services/errors/noStakeBalanceError.js~NoStakeBalanceError.html create mode 100644 class/src/services/errors/noValidatorBalanceError.js~NoValidatorBalanceError.html create mode 100644 class/src/services/errors/signError.js~SignError.html create mode 100644 class/src/services/helpers/currencyUtils.js~CurrencyUtils.html create mode 100644 class/src/services/keys/abstractKeyManager.js~AbstractKeyManager.html create mode 100644 class/src/services/results/addBidResult.js~AddBidResult.html create mode 100644 class/src/services/results/delegateResult.js~DelegateResult.html create mode 100644 class/src/services/results/deployResult.js~DeployResult.html create mode 100644 class/src/services/results/smartContractResult.js~SmartContractResult.html create mode 100644 class/src/services/results/transferResult.js~TransferResult.html create mode 100644 class/src/services/results/undelegateResult.js~UndelegateResult.html create mode 100644 class/src/services/results/withdrawBidResult.js~WithdrawBidResult.html create mode 100644 class/src/services/signers/abstractSigner.js~AbstractSigner.html create mode 100644 class/src/services/signers/casperSigner.js~CasperSigner.html create mode 100644 class/src/services/signers/localSigner.js~LocalSigner.html create mode 100644 coverage.json create mode 100644 css/github.css create mode 100644 css/identifiers.css create mode 100644 css/manual.css create mode 100644 css/prettify-tomorrow.css create mode 100644 css/search.css create mode 100644 css/source.css create mode 100644 css/style.css create mode 100644 css/test.css create mode 100644 file/src/index.js.html create mode 100644 file/src/services/balance/balance.js.html create mode 100644 file/src/services/clients/clientCasper.js.html create mode 100644 file/src/services/clients/index.js.html create mode 100644 file/src/services/deploys/abstractSmartContractDeployParameters.js.html create mode 100644 file/src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js.html create mode 100644 file/src/services/deploys/auction/actions/addBid.js.html create mode 100644 file/src/services/deploys/auction/actions/delegate.js.html create mode 100644 file/src/services/deploys/auction/actions/index.js.html create mode 100644 file/src/services/deploys/auction/actions/undelegate.js.html create mode 100644 file/src/services/deploys/auction/actions/withdrawBid.js.html create mode 100644 file/src/services/deploys/auction/index.js.html create mode 100644 file/src/services/deploys/deployManager.js.html create mode 100644 file/src/services/deploys/index.js.html create mode 100644 file/src/services/deploys/smartContract/smartContractDeployParameters.js.html create mode 100644 file/src/services/deploys/transfer/TransferDeployParameters.js.html create mode 100644 file/src/services/errors/extendableError.js.html create mode 100644 file/src/services/errors/index.js.html create mode 100644 file/src/services/errors/insufficientFunds.js.html create mode 100644 file/src/services/errors/noActiveKeyError.js.html create mode 100644 file/src/services/errors/noStakeBalanceError.js.html create mode 100644 file/src/services/errors/noValidatorBalanceError.js.html create mode 100644 file/src/services/errors/signError.js.html create mode 100644 file/src/services/helpers/currencyUtils.js.html create mode 100644 file/src/services/helpers/index.js.html create mode 100644 file/src/services/index.js.html create mode 100644 file/src/services/keys/abstractKeyManager.js.html create mode 100644 file/src/services/keys/index.js.html create mode 100644 file/src/services/results/addBidResult.js.html create mode 100644 file/src/services/results/delegateResult.js.html create mode 100644 file/src/services/results/deployResult.js.html create mode 100644 file/src/services/results/index.js.html create mode 100644 file/src/services/results/smartContractResult.js.html create mode 100644 file/src/services/results/transferResult.js.html create mode 100644 file/src/services/results/undelegateResult.js.html create mode 100644 file/src/services/results/withdrawBidResult.js.html create mode 100644 file/src/services/signers/abstractSigner.js.html create mode 100644 file/src/services/signers/casperSigner.js.html create mode 100644 file/src/services/signers/index.js.html create mode 100644 file/src/services/signers/localSigner.js.html create mode 100644 identifiers.html create mode 100644 image/badge.svg create mode 100644 image/esdoc-logo-mini-black.png create mode 100644 image/esdoc-logo-mini.png create mode 100644 image/manual-badge.svg create mode 100644 image/search.png create mode 100644 index.html create mode 100644 index.json create mode 100644 lint.json create mode 100644 script/inherited-summary.js create mode 100644 script/inner-link.js create mode 100644 script/manual.js create mode 100644 script/patch-for-local.js create mode 100644 script/prettify/Apache-License-2.0.txt create mode 100755 script/prettify/prettify.js create mode 100644 script/pretty-print.js create mode 100644 script/search.js create mode 100644 script/search_index.js create mode 100644 script/test-summary.js create mode 100644 source.html create mode 100644 typedef/index.html create mode 100644 variable/index.html diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/ast/source/.external-ecmascript.js.json b/ast/source/.external-ecmascript.js.json new file mode 100644 index 0000000..21893b9 --- /dev/null +++ b/ast/source/.external-ecmascript.js.json @@ -0,0 +1,2802 @@ +{ + "type": "File", + "start": 0, + "end": 6058, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 193, + "column": 0 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 6058, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 193, + "column": 0 + } + }, + "sourceType": "module", + "body": [], + "directives": [], + "leadingComments": null, + "innerComments": [ + { + "type": "CommentLine", + "value": " https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects", + "start": 0, + "end": 83, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 83 + } + } + }, + { + "type": "CommentLine", + "value": " Value properties", + "start": 85, + "end": 104, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 19 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Infinity} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Infinity\n ", + "start": 105, + "end": 226, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {NaN} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN\n ", + "start": 228, + "end": 339, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 10, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {undefined} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined\n ", + "start": 341, + "end": 464, + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {null} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null\n ", + "start": 466, + "end": 579, + "loc": { + "start": { + "line": 16, + "column": 0 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Fundamental objects", + "start": 581, + "end": 603, + "loc": { + "start": { + "line": 20, + "column": 0 + }, + "end": { + "line": 20, + "column": 22 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Object} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object\n ", + "start": 604, + "end": 721, + "loc": { + "start": { + "line": 21, + "column": 0 + }, + "end": { + "line": 23, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {object} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object\n ", + "start": 722, + "end": 839, + "loc": { + "start": { + "line": 24, + "column": 0 + }, + "end": { + "line": 26, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Function} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function\n ", + "start": 841, + "end": 962, + "loc": { + "start": { + "line": 28, + "column": 0 + }, + "end": { + "line": 30, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {function} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function\n ", + "start": 963, + "end": 1084, + "loc": { + "start": { + "line": 31, + "column": 0 + }, + "end": { + "line": 33, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Boolean} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean\n ", + "start": 1086, + "end": 1205, + "loc": { + "start": { + "line": 35, + "column": 0 + }, + "end": { + "line": 37, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {boolean} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean\n ", + "start": 1206, + "end": 1325, + "loc": { + "start": { + "line": 38, + "column": 0 + }, + "end": { + "line": 40, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Symbol} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol\n ", + "start": 1327, + "end": 1444, + "loc": { + "start": { + "line": 42, + "column": 0 + }, + "end": { + "line": 44, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Error} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error\n ", + "start": 1446, + "end": 1561, + "loc": { + "start": { + "line": 46, + "column": 0 + }, + "end": { + "line": 48, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {EvalError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError\n ", + "start": 1563, + "end": 1686, + "loc": { + "start": { + "line": 50, + "column": 0 + }, + "end": { + "line": 52, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {InternalError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/InternalError\n ", + "start": 1688, + "end": 1819, + "loc": { + "start": { + "line": 54, + "column": 0 + }, + "end": { + "line": 56, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {RangeError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError\n ", + "start": 1821, + "end": 1946, + "loc": { + "start": { + "line": 58, + "column": 0 + }, + "end": { + "line": 60, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {ReferenceError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError\n ", + "start": 1948, + "end": 2081, + "loc": { + "start": { + "line": 62, + "column": 0 + }, + "end": { + "line": 64, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {SyntaxError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError\n ", + "start": 2083, + "end": 2210, + "loc": { + "start": { + "line": 66, + "column": 0 + }, + "end": { + "line": 68, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {TypeError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError\n ", + "start": 2212, + "end": 2335, + "loc": { + "start": { + "line": 70, + "column": 0 + }, + "end": { + "line": 72, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {URIError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError\n ", + "start": 2337, + "end": 2458, + "loc": { + "start": { + "line": 74, + "column": 0 + }, + "end": { + "line": 76, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Numbers and dates", + "start": 2460, + "end": 2480, + "loc": { + "start": { + "line": 78, + "column": 0 + }, + "end": { + "line": 78, + "column": 20 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Number} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number\n ", + "start": 2481, + "end": 2598, + "loc": { + "start": { + "line": 79, + "column": 0 + }, + "end": { + "line": 81, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {number} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number\n ", + "start": 2599, + "end": 2716, + "loc": { + "start": { + "line": 82, + "column": 0 + }, + "end": { + "line": 84, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Date} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date\n ", + "start": 2718, + "end": 2831, + "loc": { + "start": { + "line": 86, + "column": 0 + }, + "end": { + "line": 88, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Text processing", + "start": 2833, + "end": 2851, + "loc": { + "start": { + "line": 90, + "column": 0 + }, + "end": { + "line": 90, + "column": 18 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {String} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String\n ", + "start": 2852, + "end": 2969, + "loc": { + "start": { + "line": 91, + "column": 0 + }, + "end": { + "line": 93, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {string} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String\n ", + "start": 2970, + "end": 3087, + "loc": { + "start": { + "line": 94, + "column": 0 + }, + "end": { + "line": 96, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {RegExp} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp\n ", + "start": 3089, + "end": 3206, + "loc": { + "start": { + "line": 98, + "column": 0 + }, + "end": { + "line": 100, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Indexed collections", + "start": 3208, + "end": 3230, + "loc": { + "start": { + "line": 102, + "column": 0 + }, + "end": { + "line": 102, + "column": 22 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array\n ", + "start": 3231, + "end": 3346, + "loc": { + "start": { + "line": 103, + "column": 0 + }, + "end": { + "line": 105, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Int8Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array\n ", + "start": 3348, + "end": 3471, + "loc": { + "start": { + "line": 107, + "column": 0 + }, + "end": { + "line": 109, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Uint8Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array\n ", + "start": 3472, + "end": 3597, + "loc": { + "start": { + "line": 110, + "column": 0 + }, + "end": { + "line": 112, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Uint8ClampedArray} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray\n ", + "start": 3599, + "end": 3738, + "loc": { + "start": { + "line": 114, + "column": 0 + }, + "end": { + "line": 116, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Int16Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array\n ", + "start": 3740, + "end": 3865, + "loc": { + "start": { + "line": 118, + "column": 0 + }, + "end": { + "line": 120, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Uint16Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array\n ", + "start": 3867, + "end": 3994, + "loc": { + "start": { + "line": 122, + "column": 0 + }, + "end": { + "line": 124, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Int32Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array\n ", + "start": 3996, + "end": 4121, + "loc": { + "start": { + "line": 126, + "column": 0 + }, + "end": { + "line": 128, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Uint32Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array\n ", + "start": 4123, + "end": 4250, + "loc": { + "start": { + "line": 130, + "column": 0 + }, + "end": { + "line": 132, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Float32Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array\n ", + "start": 4252, + "end": 4381, + "loc": { + "start": { + "line": 134, + "column": 0 + }, + "end": { + "line": 136, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Float64Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array\n ", + "start": 4383, + "end": 4512, + "loc": { + "start": { + "line": 138, + "column": 0 + }, + "end": { + "line": 140, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Keyed collections", + "start": 4514, + "end": 4534, + "loc": { + "start": { + "line": 142, + "column": 0 + }, + "end": { + "line": 142, + "column": 20 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Map} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map\n ", + "start": 4535, + "end": 4646, + "loc": { + "start": { + "line": 143, + "column": 0 + }, + "end": { + "line": 145, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Set} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set\n ", + "start": 4648, + "end": 4759, + "loc": { + "start": { + "line": 147, + "column": 0 + }, + "end": { + "line": 149, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {WeakMap} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap\n ", + "start": 4761, + "end": 4880, + "loc": { + "start": { + "line": 151, + "column": 0 + }, + "end": { + "line": 153, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {WeakSet} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet\n ", + "start": 4882, + "end": 5001, + "loc": { + "start": { + "line": 155, + "column": 0 + }, + "end": { + "line": 157, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Structured data", + "start": 5003, + "end": 5021, + "loc": { + "start": { + "line": 159, + "column": 0 + }, + "end": { + "line": 159, + "column": 18 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {ArrayBuffer} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer\n ", + "start": 5022, + "end": 5149, + "loc": { + "start": { + "line": 160, + "column": 0 + }, + "end": { + "line": 162, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {DataView} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView\n ", + "start": 5151, + "end": 5272, + "loc": { + "start": { + "line": 164, + "column": 0 + }, + "end": { + "line": 166, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {JSON} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON\n ", + "start": 5274, + "end": 5387, + "loc": { + "start": { + "line": 168, + "column": 0 + }, + "end": { + "line": 170, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Control abstraction objects", + "start": 5389, + "end": 5419, + "loc": { + "start": { + "line": 172, + "column": 0 + }, + "end": { + "line": 172, + "column": 30 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Promise} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise\n ", + "start": 5420, + "end": 5539, + "loc": { + "start": { + "line": 173, + "column": 0 + }, + "end": { + "line": 175, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Generator} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator\n ", + "start": 5541, + "end": 5664, + "loc": { + "start": { + "line": 177, + "column": 0 + }, + "end": { + "line": 179, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {GeneratorFunction} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction\n ", + "start": 5666, + "end": 5805, + "loc": { + "start": { + "line": 181, + "column": 0 + }, + "end": { + "line": 183, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Reflection", + "start": 5807, + "end": 5820, + "loc": { + "start": { + "line": 185, + "column": 0 + }, + "end": { + "line": 185, + "column": 13 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Reflect} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect\n ", + "start": 5821, + "end": 5940, + "loc": { + "start": { + "line": 186, + "column": 0 + }, + "end": { + "line": 188, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Proxy} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy\n ", + "start": 5942, + "end": 6057, + "loc": { + "start": { + "line": 190, + "column": 0 + }, + "end": { + "line": 192, + "column": 3 + } + } + } + ] + }, + "comments": [ + { + "type": "CommentLine", + "value": " https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects", + "start": 0, + "end": 83, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 83 + } + } + }, + { + "type": "CommentLine", + "value": " Value properties", + "start": 85, + "end": 104, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 19 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Infinity} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Infinity\n ", + "start": 105, + "end": 226, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {NaN} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN\n ", + "start": 228, + "end": 339, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 10, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {undefined} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined\n ", + "start": 341, + "end": 464, + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {null} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null\n ", + "start": 466, + "end": 579, + "loc": { + "start": { + "line": 16, + "column": 0 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Fundamental objects", + "start": 581, + "end": 603, + "loc": { + "start": { + "line": 20, + "column": 0 + }, + "end": { + "line": 20, + "column": 22 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Object} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object\n ", + "start": 604, + "end": 721, + "loc": { + "start": { + "line": 21, + "column": 0 + }, + "end": { + "line": 23, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {object} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object\n ", + "start": 722, + "end": 839, + "loc": { + "start": { + "line": 24, + "column": 0 + }, + "end": { + "line": 26, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Function} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function\n ", + "start": 841, + "end": 962, + "loc": { + "start": { + "line": 28, + "column": 0 + }, + "end": { + "line": 30, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {function} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function\n ", + "start": 963, + "end": 1084, + "loc": { + "start": { + "line": 31, + "column": 0 + }, + "end": { + "line": 33, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Boolean} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean\n ", + "start": 1086, + "end": 1205, + "loc": { + "start": { + "line": 35, + "column": 0 + }, + "end": { + "line": 37, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {boolean} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean\n ", + "start": 1206, + "end": 1325, + "loc": { + "start": { + "line": 38, + "column": 0 + }, + "end": { + "line": 40, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Symbol} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol\n ", + "start": 1327, + "end": 1444, + "loc": { + "start": { + "line": 42, + "column": 0 + }, + "end": { + "line": 44, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Error} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error\n ", + "start": 1446, + "end": 1561, + "loc": { + "start": { + "line": 46, + "column": 0 + }, + "end": { + "line": 48, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {EvalError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError\n ", + "start": 1563, + "end": 1686, + "loc": { + "start": { + "line": 50, + "column": 0 + }, + "end": { + "line": 52, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {InternalError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/InternalError\n ", + "start": 1688, + "end": 1819, + "loc": { + "start": { + "line": 54, + "column": 0 + }, + "end": { + "line": 56, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {RangeError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError\n ", + "start": 1821, + "end": 1946, + "loc": { + "start": { + "line": 58, + "column": 0 + }, + "end": { + "line": 60, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {ReferenceError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError\n ", + "start": 1948, + "end": 2081, + "loc": { + "start": { + "line": 62, + "column": 0 + }, + "end": { + "line": 64, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {SyntaxError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError\n ", + "start": 2083, + "end": 2210, + "loc": { + "start": { + "line": 66, + "column": 0 + }, + "end": { + "line": 68, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {TypeError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError\n ", + "start": 2212, + "end": 2335, + "loc": { + "start": { + "line": 70, + "column": 0 + }, + "end": { + "line": 72, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {URIError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError\n ", + "start": 2337, + "end": 2458, + "loc": { + "start": { + "line": 74, + "column": 0 + }, + "end": { + "line": 76, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Numbers and dates", + "start": 2460, + "end": 2480, + "loc": { + "start": { + "line": 78, + "column": 0 + }, + "end": { + "line": 78, + "column": 20 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Number} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number\n ", + "start": 2481, + "end": 2598, + "loc": { + "start": { + "line": 79, + "column": 0 + }, + "end": { + "line": 81, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {number} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number\n ", + "start": 2599, + "end": 2716, + "loc": { + "start": { + "line": 82, + "column": 0 + }, + "end": { + "line": 84, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Date} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date\n ", + "start": 2718, + "end": 2831, + "loc": { + "start": { + "line": 86, + "column": 0 + }, + "end": { + "line": 88, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Text processing", + "start": 2833, + "end": 2851, + "loc": { + "start": { + "line": 90, + "column": 0 + }, + "end": { + "line": 90, + "column": 18 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {String} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String\n ", + "start": 2852, + "end": 2969, + "loc": { + "start": { + "line": 91, + "column": 0 + }, + "end": { + "line": 93, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {string} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String\n ", + "start": 2970, + "end": 3087, + "loc": { + "start": { + "line": 94, + "column": 0 + }, + "end": { + "line": 96, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {RegExp} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp\n ", + "start": 3089, + "end": 3206, + "loc": { + "start": { + "line": 98, + "column": 0 + }, + "end": { + "line": 100, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Indexed collections", + "start": 3208, + "end": 3230, + "loc": { + "start": { + "line": 102, + "column": 0 + }, + "end": { + "line": 102, + "column": 22 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array\n ", + "start": 3231, + "end": 3346, + "loc": { + "start": { + "line": 103, + "column": 0 + }, + "end": { + "line": 105, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Int8Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array\n ", + "start": 3348, + "end": 3471, + "loc": { + "start": { + "line": 107, + "column": 0 + }, + "end": { + "line": 109, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Uint8Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array\n ", + "start": 3472, + "end": 3597, + "loc": { + "start": { + "line": 110, + "column": 0 + }, + "end": { + "line": 112, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Uint8ClampedArray} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray\n ", + "start": 3599, + "end": 3738, + "loc": { + "start": { + "line": 114, + "column": 0 + }, + "end": { + "line": 116, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Int16Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array\n ", + "start": 3740, + "end": 3865, + "loc": { + "start": { + "line": 118, + "column": 0 + }, + "end": { + "line": 120, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Uint16Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array\n ", + "start": 3867, + "end": 3994, + "loc": { + "start": { + "line": 122, + "column": 0 + }, + "end": { + "line": 124, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Int32Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array\n ", + "start": 3996, + "end": 4121, + "loc": { + "start": { + "line": 126, + "column": 0 + }, + "end": { + "line": 128, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Uint32Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array\n ", + "start": 4123, + "end": 4250, + "loc": { + "start": { + "line": 130, + "column": 0 + }, + "end": { + "line": 132, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Float32Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array\n ", + "start": 4252, + "end": 4381, + "loc": { + "start": { + "line": 134, + "column": 0 + }, + "end": { + "line": 136, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Float64Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array\n ", + "start": 4383, + "end": 4512, + "loc": { + "start": { + "line": 138, + "column": 0 + }, + "end": { + "line": 140, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Keyed collections", + "start": 4514, + "end": 4534, + "loc": { + "start": { + "line": 142, + "column": 0 + }, + "end": { + "line": 142, + "column": 20 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Map} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map\n ", + "start": 4535, + "end": 4646, + "loc": { + "start": { + "line": 143, + "column": 0 + }, + "end": { + "line": 145, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Set} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set\n ", + "start": 4648, + "end": 4759, + "loc": { + "start": { + "line": 147, + "column": 0 + }, + "end": { + "line": 149, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {WeakMap} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap\n ", + "start": 4761, + "end": 4880, + "loc": { + "start": { + "line": 151, + "column": 0 + }, + "end": { + "line": 153, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {WeakSet} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet\n ", + "start": 4882, + "end": 5001, + "loc": { + "start": { + "line": 155, + "column": 0 + }, + "end": { + "line": 157, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Structured data", + "start": 5003, + "end": 5021, + "loc": { + "start": { + "line": 159, + "column": 0 + }, + "end": { + "line": 159, + "column": 18 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {ArrayBuffer} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer\n ", + "start": 5022, + "end": 5149, + "loc": { + "start": { + "line": 160, + "column": 0 + }, + "end": { + "line": 162, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {DataView} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView\n ", + "start": 5151, + "end": 5272, + "loc": { + "start": { + "line": 164, + "column": 0 + }, + "end": { + "line": 166, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {JSON} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON\n ", + "start": 5274, + "end": 5387, + "loc": { + "start": { + "line": 168, + "column": 0 + }, + "end": { + "line": 170, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Control abstraction objects", + "start": 5389, + "end": 5419, + "loc": { + "start": { + "line": 172, + "column": 0 + }, + "end": { + "line": 172, + "column": 30 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Promise} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise\n ", + "start": 5420, + "end": 5539, + "loc": { + "start": { + "line": 173, + "column": 0 + }, + "end": { + "line": 175, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Generator} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator\n ", + "start": 5541, + "end": 5664, + "loc": { + "start": { + "line": 177, + "column": 0 + }, + "end": { + "line": 179, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {GeneratorFunction} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction\n ", + "start": 5666, + "end": 5805, + "loc": { + "start": { + "line": 181, + "column": 0 + }, + "end": { + "line": 183, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Reflection", + "start": 5807, + "end": 5820, + "loc": { + "start": { + "line": 185, + "column": 0 + }, + "end": { + "line": 185, + "column": 13 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Reflect} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect\n ", + "start": 5821, + "end": 5940, + "loc": { + "start": { + "line": 186, + "column": 0 + }, + "end": { + "line": 188, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Proxy} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy\n ", + "start": 5942, + "end": 6057, + "loc": { + "start": { + "line": 190, + "column": 0 + }, + "end": { + "line": 192, + "column": 3 + } + } + } + ], + "tokens": [ + { + "type": "CommentLine", + "value": " https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects", + "start": 0, + "end": 83, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 83 + } + } + }, + { + "type": "CommentLine", + "value": " Value properties", + "start": 85, + "end": 104, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 19 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Infinity} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Infinity\n ", + "start": 105, + "end": 226, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {NaN} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN\n ", + "start": 228, + "end": 339, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 10, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {undefined} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined\n ", + "start": 341, + "end": 464, + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {null} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null\n ", + "start": 466, + "end": 579, + "loc": { + "start": { + "line": 16, + "column": 0 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Fundamental objects", + "start": 581, + "end": 603, + "loc": { + "start": { + "line": 20, + "column": 0 + }, + "end": { + "line": 20, + "column": 22 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Object} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object\n ", + "start": 604, + "end": 721, + "loc": { + "start": { + "line": 21, + "column": 0 + }, + "end": { + "line": 23, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {object} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object\n ", + "start": 722, + "end": 839, + "loc": { + "start": { + "line": 24, + "column": 0 + }, + "end": { + "line": 26, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Function} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function\n ", + "start": 841, + "end": 962, + "loc": { + "start": { + "line": 28, + "column": 0 + }, + "end": { + "line": 30, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {function} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function\n ", + "start": 963, + "end": 1084, + "loc": { + "start": { + "line": 31, + "column": 0 + }, + "end": { + "line": 33, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Boolean} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean\n ", + "start": 1086, + "end": 1205, + "loc": { + "start": { + "line": 35, + "column": 0 + }, + "end": { + "line": 37, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {boolean} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean\n ", + "start": 1206, + "end": 1325, + "loc": { + "start": { + "line": 38, + "column": 0 + }, + "end": { + "line": 40, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Symbol} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol\n ", + "start": 1327, + "end": 1444, + "loc": { + "start": { + "line": 42, + "column": 0 + }, + "end": { + "line": 44, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Error} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error\n ", + "start": 1446, + "end": 1561, + "loc": { + "start": { + "line": 46, + "column": 0 + }, + "end": { + "line": 48, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {EvalError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError\n ", + "start": 1563, + "end": 1686, + "loc": { + "start": { + "line": 50, + "column": 0 + }, + "end": { + "line": 52, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {InternalError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/InternalError\n ", + "start": 1688, + "end": 1819, + "loc": { + "start": { + "line": 54, + "column": 0 + }, + "end": { + "line": 56, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {RangeError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError\n ", + "start": 1821, + "end": 1946, + "loc": { + "start": { + "line": 58, + "column": 0 + }, + "end": { + "line": 60, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {ReferenceError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError\n ", + "start": 1948, + "end": 2081, + "loc": { + "start": { + "line": 62, + "column": 0 + }, + "end": { + "line": 64, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {SyntaxError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError\n ", + "start": 2083, + "end": 2210, + "loc": { + "start": { + "line": 66, + "column": 0 + }, + "end": { + "line": 68, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {TypeError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError\n ", + "start": 2212, + "end": 2335, + "loc": { + "start": { + "line": 70, + "column": 0 + }, + "end": { + "line": 72, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {URIError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError\n ", + "start": 2337, + "end": 2458, + "loc": { + "start": { + "line": 74, + "column": 0 + }, + "end": { + "line": 76, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Numbers and dates", + "start": 2460, + "end": 2480, + "loc": { + "start": { + "line": 78, + "column": 0 + }, + "end": { + "line": 78, + "column": 20 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Number} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number\n ", + "start": 2481, + "end": 2598, + "loc": { + "start": { + "line": 79, + "column": 0 + }, + "end": { + "line": 81, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {number} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number\n ", + "start": 2599, + "end": 2716, + "loc": { + "start": { + "line": 82, + "column": 0 + }, + "end": { + "line": 84, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Date} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date\n ", + "start": 2718, + "end": 2831, + "loc": { + "start": { + "line": 86, + "column": 0 + }, + "end": { + "line": 88, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Text processing", + "start": 2833, + "end": 2851, + "loc": { + "start": { + "line": 90, + "column": 0 + }, + "end": { + "line": 90, + "column": 18 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {String} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String\n ", + "start": 2852, + "end": 2969, + "loc": { + "start": { + "line": 91, + "column": 0 + }, + "end": { + "line": 93, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {string} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String\n ", + "start": 2970, + "end": 3087, + "loc": { + "start": { + "line": 94, + "column": 0 + }, + "end": { + "line": 96, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {RegExp} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp\n ", + "start": 3089, + "end": 3206, + "loc": { + "start": { + "line": 98, + "column": 0 + }, + "end": { + "line": 100, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Indexed collections", + "start": 3208, + "end": 3230, + "loc": { + "start": { + "line": 102, + "column": 0 + }, + "end": { + "line": 102, + "column": 22 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array\n ", + "start": 3231, + "end": 3346, + "loc": { + "start": { + "line": 103, + "column": 0 + }, + "end": { + "line": 105, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Int8Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array\n ", + "start": 3348, + "end": 3471, + "loc": { + "start": { + "line": 107, + "column": 0 + }, + "end": { + "line": 109, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Uint8Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array\n ", + "start": 3472, + "end": 3597, + "loc": { + "start": { + "line": 110, + "column": 0 + }, + "end": { + "line": 112, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Uint8ClampedArray} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray\n ", + "start": 3599, + "end": 3738, + "loc": { + "start": { + "line": 114, + "column": 0 + }, + "end": { + "line": 116, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Int16Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array\n ", + "start": 3740, + "end": 3865, + "loc": { + "start": { + "line": 118, + "column": 0 + }, + "end": { + "line": 120, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Uint16Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array\n ", + "start": 3867, + "end": 3994, + "loc": { + "start": { + "line": 122, + "column": 0 + }, + "end": { + "line": 124, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Int32Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array\n ", + "start": 3996, + "end": 4121, + "loc": { + "start": { + "line": 126, + "column": 0 + }, + "end": { + "line": 128, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Uint32Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array\n ", + "start": 4123, + "end": 4250, + "loc": { + "start": { + "line": 130, + "column": 0 + }, + "end": { + "line": 132, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Float32Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array\n ", + "start": 4252, + "end": 4381, + "loc": { + "start": { + "line": 134, + "column": 0 + }, + "end": { + "line": 136, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Float64Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array\n ", + "start": 4383, + "end": 4512, + "loc": { + "start": { + "line": 138, + "column": 0 + }, + "end": { + "line": 140, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Keyed collections", + "start": 4514, + "end": 4534, + "loc": { + "start": { + "line": 142, + "column": 0 + }, + "end": { + "line": 142, + "column": 20 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Map} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map\n ", + "start": 4535, + "end": 4646, + "loc": { + "start": { + "line": 143, + "column": 0 + }, + "end": { + "line": 145, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Set} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set\n ", + "start": 4648, + "end": 4759, + "loc": { + "start": { + "line": 147, + "column": 0 + }, + "end": { + "line": 149, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {WeakMap} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap\n ", + "start": 4761, + "end": 4880, + "loc": { + "start": { + "line": 151, + "column": 0 + }, + "end": { + "line": 153, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {WeakSet} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet\n ", + "start": 4882, + "end": 5001, + "loc": { + "start": { + "line": 155, + "column": 0 + }, + "end": { + "line": 157, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Structured data", + "start": 5003, + "end": 5021, + "loc": { + "start": { + "line": 159, + "column": 0 + }, + "end": { + "line": 159, + "column": 18 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {ArrayBuffer} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer\n ", + "start": 5022, + "end": 5149, + "loc": { + "start": { + "line": 160, + "column": 0 + }, + "end": { + "line": 162, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {DataView} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView\n ", + "start": 5151, + "end": 5272, + "loc": { + "start": { + "line": 164, + "column": 0 + }, + "end": { + "line": 166, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {JSON} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON\n ", + "start": 5274, + "end": 5387, + "loc": { + "start": { + "line": 168, + "column": 0 + }, + "end": { + "line": 170, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Control abstraction objects", + "start": 5389, + "end": 5419, + "loc": { + "start": { + "line": 172, + "column": 0 + }, + "end": { + "line": 172, + "column": 30 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Promise} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise\n ", + "start": 5420, + "end": 5539, + "loc": { + "start": { + "line": 173, + "column": 0 + }, + "end": { + "line": 175, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Generator} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator\n ", + "start": 5541, + "end": 5664, + "loc": { + "start": { + "line": 177, + "column": 0 + }, + "end": { + "line": 179, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {GeneratorFunction} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction\n ", + "start": 5666, + "end": 5805, + "loc": { + "start": { + "line": 181, + "column": 0 + }, + "end": { + "line": 183, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Reflection", + "start": 5807, + "end": 5820, + "loc": { + "start": { + "line": 185, + "column": 0 + }, + "end": { + "line": 185, + "column": 13 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Reflect} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect\n ", + "start": 5821, + "end": 5940, + "loc": { + "start": { + "line": 186, + "column": 0 + }, + "end": { + "line": 188, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Proxy} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy\n ", + "start": 5942, + "end": 6057, + "loc": { + "start": { + "line": 190, + "column": 0 + }, + "end": { + "line": 192, + "column": 3 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6058, + "end": 6058, + "loc": { + "start": { + "line": 193, + "column": 0 + }, + "end": { + "line": 193, + "column": 0 + } + } + } + ] +} \ No newline at end of file diff --git a/ast/source/index.js.json b/ast/source/index.js.json new file mode 100644 index 0000000..bdf6917 --- /dev/null +++ b/ast/source/index.js.json @@ -0,0 +1,232 @@ +{ + "type": "File", + "start": 0, + "end": 27, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 27 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 27, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 27 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ExportAllDeclaration", + "start": 0, + "end": 27, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 27 + } + }, + "source": { + "type": "StringLiteral", + "start": 14, + "end": 26, + "loc": { + "start": { + "line": 1, + "column": 14 + }, + "end": { + "line": 1, + "column": 26 + } + }, + "extra": { + "rawValue": "./services", + "raw": "'./services'" + }, + "value": "./services" + } + } + ], + "directives": [] + }, + "comments": [], + "tokens": [ + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 0, + "end": 6, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 6 + } + } + }, + { + "type": { + "label": "*", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 10, + "updateContext": null + }, + "value": "*", + "start": 7, + "end": 8, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 9, + "end": 13, + "loc": { + "start": { + "line": 1, + "column": 9 + }, + "end": { + "line": 1, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./services", + "start": 14, + "end": 26, + "loc": { + "start": { + "line": 1, + "column": 14 + }, + "end": { + "line": 1, + "column": 26 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 26, + "end": 27, + "loc": { + "start": { + "line": 1, + "column": 26 + }, + "end": { + "line": 1, + "column": 27 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 27, + "end": 27, + "loc": { + "start": { + "line": 1, + "column": 27 + }, + "end": { + "line": 1, + "column": 27 + } + } + } + ] +} \ No newline at end of file diff --git a/ast/source/services/balance/balance.js.json b/ast/source/services/balance/balance.js.json new file mode 100644 index 0000000..b428f56 --- /dev/null +++ b/ast/source/services/balance/balance.js.json @@ -0,0 +1,12065 @@ +{ + "type": "File", + "start": 0, + "end": 2657, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 80, + "column": 1 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 2657, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 80, + "column": 1 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 71, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 71 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 8, + "end": 27, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 27 + } + }, + "imported": { + "type": "Identifier", + "start": 8, + "end": 27, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 27 + }, + "identifierName": "NoStakeBalanceError" + }, + "name": "NoStakeBalanceError" + }, + "local": { + "type": "Identifier", + "start": 8, + "end": 27, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 27 + }, + "identifierName": "NoStakeBalanceError" + }, + "name": "NoStakeBalanceError" + } + }, + { + "type": "ImportSpecifier", + "start": 29, + "end": 52, + "loc": { + "start": { + "line": 1, + "column": 29 + }, + "end": { + "line": 1, + "column": 52 + } + }, + "imported": { + "type": "Identifier", + "start": 29, + "end": 52, + "loc": { + "start": { + "line": 1, + "column": 29 + }, + "end": { + "line": 1, + "column": 52 + }, + "identifierName": "NoValidatorBalanceError" + }, + "name": "NoValidatorBalanceError" + }, + "local": { + "type": "Identifier", + "start": 29, + "end": 52, + "loc": { + "start": { + "line": 1, + "column": 29 + }, + "end": { + "line": 1, + "column": 52 + }, + "identifierName": "NoValidatorBalanceError" + }, + "name": "NoValidatorBalanceError" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 59, + "end": 70, + "loc": { + "start": { + "line": 1, + "column": 59 + }, + "end": { + "line": 1, + "column": 70 + } + }, + "extra": { + "rawValue": "../errors", + "raw": "\"../errors\"" + }, + "value": "../errors" + } + }, + { + "type": "ImportDeclaration", + "start": 72, + "end": 114, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 42 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 80, + "end": 91, + "loc": { + "start": { + "line": 2, + "column": 8 + }, + "end": { + "line": 2, + "column": 19 + } + }, + "imported": { + "type": "Identifier", + "start": 80, + "end": 91, + "loc": { + "start": { + "line": 2, + "column": 8 + }, + "end": { + "line": 2, + "column": 19 + }, + "identifierName": "CLPublicKey" + }, + "name": "CLPublicKey" + }, + "local": { + "type": "Identifier", + "start": 80, + "end": 91, + "loc": { + "start": { + "line": 2, + "column": 8 + }, + "end": { + "line": 2, + "column": 19 + }, + "identifierName": "CLPublicKey" + }, + "name": "CLPublicKey" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 98, + "end": 113, + "loc": { + "start": { + "line": 2, + "column": 26 + }, + "end": { + "line": 2, + "column": 41 + } + }, + "extra": { + "rawValue": "casper-js-sdk", + "raw": "\"casper-js-sdk\"" + }, + "value": "casper-js-sdk" + } + }, + { + "type": "ImportDeclaration", + "start": 115, + "end": 156, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 41 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 123, + "end": 136, + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 3, + "column": 21 + } + }, + "imported": { + "type": "Identifier", + "start": 123, + "end": 136, + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 3, + "column": 21 + }, + "identifierName": "CurrencyUtils" + }, + "name": "CurrencyUtils" + }, + "local": { + "type": "Identifier", + "start": 123, + "end": 136, + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 3, + "column": 21 + }, + "identifierName": "CurrencyUtils" + }, + "name": "CurrencyUtils" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 143, + "end": 155, + "loc": { + "start": { + "line": 3, + "column": 28 + }, + "end": { + "line": 3, + "column": 40 + } + }, + "extra": { + "rawValue": "../helpers", + "raw": "\"../helpers\"" + }, + "value": "../helpers" + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Balance class\n * Service used to retrieve different balances from the Casper network\n ", + "start": 158, + "end": 253, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 254, + "end": 2657, + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 80, + "column": 1 + } + }, + "specifiers": [], + "source": null, + "declaration": { + "type": "ClassDeclaration", + "start": 261, + "end": 2657, + "loc": { + "start": { + "line": 9, + "column": 7 + }, + "end": { + "line": 80, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 267, + "end": 274, + "loc": { + "start": { + "line": 9, + "column": 13 + }, + "end": { + "line": 9, + "column": 20 + }, + "identifierName": "Balance" + }, + "name": "Balance", + "leadingComments": null + }, + "superClass": null, + "body": { + "type": "ClassBody", + "start": 275, + "end": 2657, + "loc": { + "start": { + "line": 9, + "column": 21 + }, + "end": { + "line": 80, + "column": 1 + } + }, + "body": [ + { + "type": "ClassProperty", + "start": 320, + "end": 330, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 14 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 320, + "end": 330, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 14 + }, + "identifierName": "keyManager" + }, + "name": "keyManager", + "leadingComments": null, + "trailingComments": null + }, + "value": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "* @type {AbstractKeyManager} ", + "start": 282, + "end": 315, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 37 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "* @type {ClientCasper} ", + "start": 335, + "end": 362, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 31 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 367, + "end": 373, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 10 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 367, + "end": 373, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 10 + }, + "identifierName": "client" + }, + "name": "client", + "leadingComments": null, + "trailingComments": null + }, + "value": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "* @type {AbstractKeyManager} ", + "start": 282, + "end": 315, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 37 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {ClientCasper} ", + "start": 335, + "end": 362, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 31 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 378, + "end": 399, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 25 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 404, + "end": 413, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 16, + "column": 13 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 404, + "end": 413, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 16, + "column": 13 + }, + "identifierName": "validator" + }, + "name": "validator", + "leadingComments": null, + "trailingComments": null + }, + "value": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "* @type {AbstractKeyManager} ", + "start": 282, + "end": 315, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 37 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {ClientCasper} ", + "start": 335, + "end": 362, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 31 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 378, + "end": 399, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 25 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {AbstractKeyManager} keyManager - Instance of a KeyManager\n * @param {ClientCasper} client - Instance of CasperClient\n * @param {string} validator - Hash of the main validator\n ", + "start": 419, + "end": 654, + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 24, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 659, + "end": 812, + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 29, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 659, + "end": 670, + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 15 + }, + "identifierName": "constructor" + }, + "name": "constructor", + "leadingComments": null + }, + "kind": "constructor", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 671, + "end": 681, + "loc": { + "start": { + "line": 25, + "column": 16 + }, + "end": { + "line": 25, + "column": 26 + }, + "identifierName": "keyManager" + }, + "name": "keyManager" + }, + { + "type": "Identifier", + "start": 683, + "end": 689, + "loc": { + "start": { + "line": 25, + "column": 28 + }, + "end": { + "line": 25, + "column": 34 + }, + "identifierName": "client" + }, + "name": "client" + }, + { + "type": "Identifier", + "start": 691, + "end": 700, + "loc": { + "start": { + "line": 25, + "column": 36 + }, + "end": { + "line": 25, + "column": 45 + }, + "identifierName": "validator" + }, + "name": "validator" + } + ], + "body": { + "type": "BlockStatement", + "start": 702, + "end": 812, + "loc": { + "start": { + "line": 25, + "column": 47 + }, + "end": { + "line": 29, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 712, + "end": 741, + "loc": { + "start": { + "line": 26, + "column": 8 + }, + "end": { + "line": 26, + "column": 37 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 712, + "end": 740, + "loc": { + "start": { + "line": 26, + "column": 8 + }, + "end": { + "line": 26, + "column": 36 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 712, + "end": 727, + "loc": { + "start": { + "line": 26, + "column": 8 + }, + "end": { + "line": 26, + "column": 23 + } + }, + "object": { + "type": "ThisExpression", + "start": 712, + "end": 716, + "loc": { + "start": { + "line": 26, + "column": 8 + }, + "end": { + "line": 26, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 717, + "end": 727, + "loc": { + "start": { + "line": 26, + "column": 13 + }, + "end": { + "line": 26, + "column": 23 + }, + "identifierName": "keyManager" + }, + "name": "keyManager" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 730, + "end": 740, + "loc": { + "start": { + "line": 26, + "column": 26 + }, + "end": { + "line": 26, + "column": 36 + }, + "identifierName": "keyManager" + }, + "name": "keyManager" + } + } + }, + { + "type": "ExpressionStatement", + "start": 750, + "end": 771, + "loc": { + "start": { + "line": 27, + "column": 8 + }, + "end": { + "line": 27, + "column": 29 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 750, + "end": 770, + "loc": { + "start": { + "line": 27, + "column": 8 + }, + "end": { + "line": 27, + "column": 28 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 750, + "end": 761, + "loc": { + "start": { + "line": 27, + "column": 8 + }, + "end": { + "line": 27, + "column": 19 + } + }, + "object": { + "type": "ThisExpression", + "start": 750, + "end": 754, + "loc": { + "start": { + "line": 27, + "column": 8 + }, + "end": { + "line": 27, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 755, + "end": 761, + "loc": { + "start": { + "line": 27, + "column": 13 + }, + "end": { + "line": 27, + "column": 19 + }, + "identifierName": "client" + }, + "name": "client" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 764, + "end": 770, + "loc": { + "start": { + "line": 27, + "column": 22 + }, + "end": { + "line": 27, + "column": 28 + }, + "identifierName": "client" + }, + "name": "client" + } + } + }, + { + "type": "ExpressionStatement", + "start": 780, + "end": 806, + "loc": { + "start": { + "line": 28, + "column": 8 + }, + "end": { + "line": 28, + "column": 34 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 780, + "end": 806, + "loc": { + "start": { + "line": 28, + "column": 8 + }, + "end": { + "line": 28, + "column": 34 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 780, + "end": 794, + "loc": { + "start": { + "line": 28, + "column": 8 + }, + "end": { + "line": 28, + "column": 22 + } + }, + "object": { + "type": "ThisExpression", + "start": 780, + "end": 784, + "loc": { + "start": { + "line": 28, + "column": 8 + }, + "end": { + "line": 28, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 785, + "end": 794, + "loc": { + "start": { + "line": 28, + "column": 13 + }, + "end": { + "line": 28, + "column": 22 + }, + "identifierName": "validator" + }, + "name": "validator" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 797, + "end": 806, + "loc": { + "start": { + "line": 28, + "column": 25 + }, + "end": { + "line": 28, + "column": 34 + }, + "identifierName": "validator" + }, + "name": "validator" + } + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {AbstractKeyManager} keyManager - Instance of a KeyManager\n * @param {ClientCasper} client - Instance of CasperClient\n * @param {string} validator - Hash of the main validator\n ", + "start": 419, + "end": 654, + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 24, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Retrieve current user balance from the network.\n *\n * @return {Promise} - Current balance of the user\n ", + "start": 818, + "end": 954, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 35, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 959, + "end": 1174, + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 40, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 965, + "end": 977, + "loc": { + "start": { + "line": 36, + "column": 10 + }, + "end": { + "line": 36, + "column": 22 + }, + "identifierName": "fetchBalance" + }, + "name": "fetchBalance" + }, + "kind": "method", + "id": null, + "generator": false, + "expression": false, + "async": true, + "params": [], + "body": { + "type": "BlockStatement", + "start": 980, + "end": 1174, + "loc": { + "start": { + "line": 36, + "column": 25 + }, + "end": { + "line": 40, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 990, + "end": 1168, + "loc": { + "start": { + "line": 37, + "column": 8 + }, + "end": { + "line": 39, + "column": 10 + } + }, + "argument": { + "type": "CallExpression", + "start": 997, + "end": 1167, + "loc": { + "start": { + "line": 37, + "column": 15 + }, + "end": { + "line": 39, + "column": 9 + } + }, + "callee": { + "type": "MemberExpression", + "start": 997, + "end": 1031, + "loc": { + "start": { + "line": 37, + "column": 15 + }, + "end": { + "line": 37, + "column": 49 + } + }, + "object": { + "type": "Identifier", + "start": 997, + "end": 1010, + "loc": { + "start": { + "line": 37, + "column": 15 + }, + "end": { + "line": 37, + "column": 28 + }, + "identifierName": "CurrencyUtils" + }, + "name": "CurrencyUtils" + }, + "property": { + "type": "Identifier", + "start": 1011, + "end": 1031, + "loc": { + "start": { + "line": 37, + "column": 29 + }, + "end": { + "line": 37, + "column": 49 + }, + "identifierName": "convertMotesToCasper" + }, + "name": "convertMotesToCasper" + }, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 1045, + "end": 1157, + "loc": { + "start": { + "line": 38, + "column": 12 + }, + "end": { + "line": 38, + "column": 124 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1045, + "end": 1155, + "loc": { + "start": { + "line": 38, + "column": 12 + }, + "end": { + "line": 38, + "column": 122 + } + }, + "object": { + "type": "AwaitExpression", + "start": 1046, + "end": 1145, + "loc": { + "start": { + "line": 38, + "column": 13 + }, + "end": { + "line": 38, + "column": 112 + } + }, + "argument": { + "type": "CallExpression", + "start": 1052, + "end": 1145, + "loc": { + "start": { + "line": 38, + "column": 19 + }, + "end": { + "line": 38, + "column": 112 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1052, + "end": 1097, + "loc": { + "start": { + "line": 38, + "column": 19 + }, + "end": { + "line": 38, + "column": 64 + } + }, + "object": { + "type": "MemberExpression", + "start": 1052, + "end": 1076, + "loc": { + "start": { + "line": 38, + "column": 19 + }, + "end": { + "line": 38, + "column": 43 + } + }, + "object": { + "type": "MemberExpression", + "start": 1052, + "end": 1063, + "loc": { + "start": { + "line": 38, + "column": 19 + }, + "end": { + "line": 38, + "column": 30 + } + }, + "object": { + "type": "ThisExpression", + "start": 1052, + "end": 1056, + "loc": { + "start": { + "line": 38, + "column": 19 + }, + "end": { + "line": 38, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "start": 1057, + "end": 1063, + "loc": { + "start": { + "line": 38, + "column": 24 + }, + "end": { + "line": 38, + "column": 30 + }, + "identifierName": "client" + }, + "name": "client" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1064, + "end": 1076, + "loc": { + "start": { + "line": 38, + "column": 31 + }, + "end": { + "line": 38, + "column": 43 + }, + "identifierName": "casperClient" + }, + "name": "casperClient" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1077, + "end": 1097, + "loc": { + "start": { + "line": 38, + "column": 44 + }, + "end": { + "line": 38, + "column": 64 + }, + "identifierName": "balanceOfByPublicKey" + }, + "name": "balanceOfByPublicKey" + }, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 1098, + "end": 1144, + "loc": { + "start": { + "line": 38, + "column": 65 + }, + "end": { + "line": 38, + "column": 111 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1098, + "end": 1117, + "loc": { + "start": { + "line": 38, + "column": 65 + }, + "end": { + "line": 38, + "column": 84 + } + }, + "object": { + "type": "Identifier", + "start": 1098, + "end": 1109, + "loc": { + "start": { + "line": 38, + "column": 65 + }, + "end": { + "line": 38, + "column": 76 + }, + "identifierName": "CLPublicKey" + }, + "name": "CLPublicKey" + }, + "property": { + "type": "Identifier", + "start": 1110, + "end": 1117, + "loc": { + "start": { + "line": 38, + "column": 77 + }, + "end": { + "line": 38, + "column": 84 + }, + "identifierName": "fromHex" + }, + "name": "fromHex" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 1118, + "end": 1143, + "loc": { + "start": { + "line": 38, + "column": 85 + }, + "end": { + "line": 38, + "column": 110 + } + }, + "object": { + "type": "MemberExpression", + "start": 1118, + "end": 1133, + "loc": { + "start": { + "line": 38, + "column": 85 + }, + "end": { + "line": 38, + "column": 100 + } + }, + "object": { + "type": "ThisExpression", + "start": 1118, + "end": 1122, + "loc": { + "start": { + "line": 38, + "column": 85 + }, + "end": { + "line": 38, + "column": 89 + } + } + }, + "property": { + "type": "Identifier", + "start": 1123, + "end": 1133, + "loc": { + "start": { + "line": 38, + "column": 90 + }, + "end": { + "line": 38, + "column": 100 + }, + "identifierName": "keyManager" + }, + "name": "keyManager" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1134, + "end": 1143, + "loc": { + "start": { + "line": 38, + "column": 101 + }, + "end": { + "line": 38, + "column": 110 + }, + "identifierName": "activeKey" + }, + "name": "activeKey" + }, + "computed": false + } + ] + } + ] + }, + "extra": { + "parenthesized": true, + "parenStart": 1045 + } + }, + "property": { + "type": "Identifier", + "start": 1147, + "end": 1155, + "loc": { + "start": { + "line": 38, + "column": 114 + }, + "end": { + "line": 38, + "column": 122 + }, + "identifierName": "toNumber" + }, + "name": "toNumber" + }, + "computed": false + }, + "arguments": [] + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Retrieve current user balance from the network.\n *\n * @return {Promise} - Current balance of the user\n ", + "start": 818, + "end": 954, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 35, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Retrieve current user stake balance from the network.\n *\n * @return {Promise} - Current stake balance of the user\n ", + "start": 1180, + "end": 1328, + "loc": { + "start": { + "line": 42, + "column": 4 + }, + "end": { + "line": 46, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 1333, + "end": 1945, + "loc": { + "start": { + "line": 47, + "column": 4 + }, + "end": { + "line": 60, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1339, + "end": 1356, + "loc": { + "start": { + "line": 47, + "column": 10 + }, + "end": { + "line": 47, + "column": 27 + }, + "identifierName": "fetchStakeBalance" + }, + "name": "fetchStakeBalance" + }, + "kind": "method", + "id": null, + "generator": false, + "expression": false, + "async": true, + "params": [], + "body": { + "type": "BlockStatement", + "start": 1359, + "end": 1945, + "loc": { + "start": { + "line": 47, + "column": 30 + }, + "end": { + "line": 60, + "column": 5 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 1369, + "end": 1439, + "loc": { + "start": { + "line": 48, + "column": 8 + }, + "end": { + "line": 48, + "column": 78 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1375, + "end": 1439, + "loc": { + "start": { + "line": 48, + "column": 14 + }, + "end": { + "line": 48, + "column": 78 + } + }, + "id": { + "type": "Identifier", + "start": 1375, + "end": 1389, + "loc": { + "start": { + "line": 48, + "column": 14 + }, + "end": { + "line": 48, + "column": 28 + }, + "identifierName": "validatorsInfo" + }, + "name": "validatorsInfo" + }, + "init": { + "type": "AwaitExpression", + "start": 1392, + "end": 1439, + "loc": { + "start": { + "line": 48, + "column": 31 + }, + "end": { + "line": 48, + "column": 78 + } + }, + "argument": { + "type": "CallExpression", + "start": 1398, + "end": 1439, + "loc": { + "start": { + "line": 48, + "column": 37 + }, + "end": { + "line": 48, + "column": 78 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1398, + "end": 1437, + "loc": { + "start": { + "line": 48, + "column": 37 + }, + "end": { + "line": 48, + "column": 76 + } + }, + "object": { + "type": "MemberExpression", + "start": 1398, + "end": 1419, + "loc": { + "start": { + "line": 48, + "column": 37 + }, + "end": { + "line": 48, + "column": 58 + } + }, + "object": { + "type": "MemberExpression", + "start": 1398, + "end": 1409, + "loc": { + "start": { + "line": 48, + "column": 37 + }, + "end": { + "line": 48, + "column": 48 + } + }, + "object": { + "type": "ThisExpression", + "start": 1398, + "end": 1402, + "loc": { + "start": { + "line": 48, + "column": 37 + }, + "end": { + "line": 48, + "column": 41 + } + } + }, + "property": { + "type": "Identifier", + "start": 1403, + "end": 1409, + "loc": { + "start": { + "line": 48, + "column": 42 + }, + "end": { + "line": 48, + "column": 48 + }, + "identifierName": "client" + }, + "name": "client" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1410, + "end": 1419, + "loc": { + "start": { + "line": 48, + "column": 49 + }, + "end": { + "line": 48, + "column": 58 + }, + "identifierName": "casperRPC" + }, + "name": "casperRPC" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1420, + "end": 1437, + "loc": { + "start": { + "line": 48, + "column": 59 + }, + "end": { + "line": 48, + "column": 76 + }, + "identifierName": "getValidatorsInfo" + }, + "name": "getValidatorsInfo" + }, + "computed": false + }, + "arguments": [] + } + } + } + ], + "kind": "const" + }, + { + "type": "VariableDeclaration", + "start": 1448, + "end": 1592, + "loc": { + "start": { + "line": 49, + "column": 8 + }, + "end": { + "line": 51, + "column": 13 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1452, + "end": 1592, + "loc": { + "start": { + "line": 49, + "column": 12 + }, + "end": { + "line": 51, + "column": 13 + } + }, + "id": { + "type": "Identifier", + "start": 1452, + "end": 1461, + "loc": { + "start": { + "line": 49, + "column": 12 + }, + "end": { + "line": 49, + "column": 21 + }, + "identifierName": "validator" + }, + "name": "validator" + }, + "init": { + "type": "MemberExpression", + "start": 1464, + "end": 1592, + "loc": { + "start": { + "line": 49, + "column": 24 + }, + "end": { + "line": 51, + "column": 13 + } + }, + "object": { + "type": "CallExpression", + "start": 1464, + "end": 1589, + "loc": { + "start": { + "line": 49, + "column": 24 + }, + "end": { + "line": 51, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1464, + "end": 1504, + "loc": { + "start": { + "line": 49, + "column": 24 + }, + "end": { + "line": 49, + "column": 64 + } + }, + "object": { + "type": "MemberExpression", + "start": 1464, + "end": 1497, + "loc": { + "start": { + "line": 49, + "column": 24 + }, + "end": { + "line": 49, + "column": 57 + } + }, + "object": { + "type": "MemberExpression", + "start": 1464, + "end": 1492, + "loc": { + "start": { + "line": 49, + "column": 24 + }, + "end": { + "line": 49, + "column": 52 + } + }, + "object": { + "type": "Identifier", + "start": 1464, + "end": 1478, + "loc": { + "start": { + "line": 49, + "column": 24 + }, + "end": { + "line": 49, + "column": 38 + }, + "identifierName": "validatorsInfo" + }, + "name": "validatorsInfo" + }, + "property": { + "type": "Identifier", + "start": 1479, + "end": 1492, + "loc": { + "start": { + "line": 49, + "column": 39 + }, + "end": { + "line": 49, + "column": 52 + }, + "identifierName": "auction_state" + }, + "name": "auction_state" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1493, + "end": 1497, + "loc": { + "start": { + "line": 49, + "column": 53 + }, + "end": { + "line": 49, + "column": 57 + }, + "identifierName": "bids" + }, + "name": "bids" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1498, + "end": 1504, + "loc": { + "start": { + "line": 49, + "column": 58 + }, + "end": { + "line": 49, + "column": 64 + }, + "identifierName": "filter" + }, + "name": "filter" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 1505, + "end": 1588, + "loc": { + "start": { + "line": 49, + "column": 65 + }, + "end": { + "line": 51, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1505, + "end": 1514, + "loc": { + "start": { + "line": 49, + "column": 65 + }, + "end": { + "line": 49, + "column": 74 + }, + "identifierName": "validator" + }, + "name": "validator" + } + ], + "body": { + "type": "BlockStatement", + "start": 1518, + "end": 1588, + "loc": { + "start": { + "line": 49, + "column": 78 + }, + "end": { + "line": 51, + "column": 9 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 1532, + "end": 1578, + "loc": { + "start": { + "line": 50, + "column": 12 + }, + "end": { + "line": 50, + "column": 58 + } + }, + "argument": { + "type": "BinaryExpression", + "start": 1539, + "end": 1578, + "loc": { + "start": { + "line": 50, + "column": 19 + }, + "end": { + "line": 50, + "column": 58 + } + }, + "left": { + "type": "MemberExpression", + "start": 1539, + "end": 1559, + "loc": { + "start": { + "line": 50, + "column": 19 + }, + "end": { + "line": 50, + "column": 39 + } + }, + "object": { + "type": "Identifier", + "start": 1539, + "end": 1548, + "loc": { + "start": { + "line": 50, + "column": 19 + }, + "end": { + "line": 50, + "column": 28 + }, + "identifierName": "validator" + }, + "name": "validator" + }, + "property": { + "type": "Identifier", + "start": 1549, + "end": 1559, + "loc": { + "start": { + "line": 50, + "column": 29 + }, + "end": { + "line": 50, + "column": 39 + }, + "identifierName": "public_key" + }, + "name": "public_key" + }, + "computed": false + }, + "operator": "===", + "right": { + "type": "MemberExpression", + "start": 1564, + "end": 1578, + "loc": { + "start": { + "line": 50, + "column": 44 + }, + "end": { + "line": 50, + "column": 58 + } + }, + "object": { + "type": "ThisExpression", + "start": 1564, + "end": 1568, + "loc": { + "start": { + "line": 50, + "column": 44 + }, + "end": { + "line": 50, + "column": 48 + } + } + }, + "property": { + "type": "Identifier", + "start": 1569, + "end": 1578, + "loc": { + "start": { + "line": 50, + "column": 49 + }, + "end": { + "line": 50, + "column": 58 + }, + "identifierName": "validator" + }, + "name": "validator" + }, + "computed": false + } + } + } + ], + "directives": [] + } + } + ] + }, + "property": { + "type": "NumericLiteral", + "start": 1590, + "end": 1591, + "loc": { + "start": { + "line": 51, + "column": 11 + }, + "end": { + "line": 51, + "column": 12 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + }, + "computed": true + } + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 1602, + "end": 1750, + "loc": { + "start": { + "line": 53, + "column": 8 + }, + "end": { + "line": 55, + "column": 10 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1606, + "end": 1750, + "loc": { + "start": { + "line": 53, + "column": 12 + }, + "end": { + "line": 55, + "column": 10 + } + }, + "id": { + "type": "Identifier", + "start": 1606, + "end": 1620, + "loc": { + "start": { + "line": 53, + "column": 12 + }, + "end": { + "line": 53, + "column": 26 + }, + "identifierName": "stakingBalance" + }, + "name": "stakingBalance" + }, + "init": { + "type": "CallExpression", + "start": 1623, + "end": 1750, + "loc": { + "start": { + "line": 53, + "column": 29 + }, + "end": { + "line": 55, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1623, + "end": 1654, + "loc": { + "start": { + "line": 53, + "column": 29 + }, + "end": { + "line": 53, + "column": 60 + } + }, + "object": { + "type": "MemberExpression", + "start": 1623, + "end": 1647, + "loc": { + "start": { + "line": 53, + "column": 29 + }, + "end": { + "line": 53, + "column": 53 + } + }, + "object": { + "type": "MemberExpression", + "start": 1623, + "end": 1636, + "loc": { + "start": { + "line": 53, + "column": 29 + }, + "end": { + "line": 53, + "column": 42 + } + }, + "object": { + "type": "Identifier", + "start": 1623, + "end": 1632, + "loc": { + "start": { + "line": 53, + "column": 29 + }, + "end": { + "line": 53, + "column": 38 + }, + "identifierName": "validator" + }, + "name": "validator" + }, + "property": { + "type": "Identifier", + "start": 1633, + "end": 1636, + "loc": { + "start": { + "line": 53, + "column": 39 + }, + "end": { + "line": 53, + "column": 42 + }, + "identifierName": "bid" + }, + "name": "bid" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1637, + "end": 1647, + "loc": { + "start": { + "line": 53, + "column": 43 + }, + "end": { + "line": 53, + "column": 53 + }, + "identifierName": "delegators" + }, + "name": "delegators" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1648, + "end": 1654, + "loc": { + "start": { + "line": 53, + "column": 54 + }, + "end": { + "line": 53, + "column": 60 + }, + "identifierName": "filter" + }, + "name": "filter" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 1655, + "end": 1749, + "loc": { + "start": { + "line": 53, + "column": 61 + }, + "end": { + "line": 55, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1655, + "end": 1664, + "loc": { + "start": { + "line": 53, + "column": 61 + }, + "end": { + "line": 53, + "column": 70 + }, + "identifierName": "delegator" + }, + "name": "delegator" + } + ], + "body": { + "type": "BlockStatement", + "start": 1668, + "end": 1749, + "loc": { + "start": { + "line": 53, + "column": 74 + }, + "end": { + "line": 55, + "column": 9 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 1682, + "end": 1739, + "loc": { + "start": { + "line": 54, + "column": 12 + }, + "end": { + "line": 54, + "column": 69 + } + }, + "argument": { + "type": "BinaryExpression", + "start": 1689, + "end": 1739, + "loc": { + "start": { + "line": 54, + "column": 19 + }, + "end": { + "line": 54, + "column": 69 + } + }, + "left": { + "type": "MemberExpression", + "start": 1689, + "end": 1709, + "loc": { + "start": { + "line": 54, + "column": 19 + }, + "end": { + "line": 54, + "column": 39 + } + }, + "object": { + "type": "Identifier", + "start": 1689, + "end": 1698, + "loc": { + "start": { + "line": 54, + "column": 19 + }, + "end": { + "line": 54, + "column": 28 + }, + "identifierName": "delegator" + }, + "name": "delegator" + }, + "property": { + "type": "Identifier", + "start": 1699, + "end": 1709, + "loc": { + "start": { + "line": 54, + "column": 29 + }, + "end": { + "line": 54, + "column": 39 + }, + "identifierName": "public_key" + }, + "name": "public_key" + }, + "computed": false + }, + "operator": "===", + "right": { + "type": "MemberExpression", + "start": 1714, + "end": 1739, + "loc": { + "start": { + "line": 54, + "column": 44 + }, + "end": { + "line": 54, + "column": 69 + } + }, + "object": { + "type": "MemberExpression", + "start": 1714, + "end": 1729, + "loc": { + "start": { + "line": 54, + "column": 44 + }, + "end": { + "line": 54, + "column": 59 + } + }, + "object": { + "type": "ThisExpression", + "start": 1714, + "end": 1718, + "loc": { + "start": { + "line": 54, + "column": 44 + }, + "end": { + "line": 54, + "column": 48 + } + } + }, + "property": { + "type": "Identifier", + "start": 1719, + "end": 1729, + "loc": { + "start": { + "line": 54, + "column": 49 + }, + "end": { + "line": 54, + "column": 59 + }, + "identifierName": "keyManager" + }, + "name": "keyManager" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1730, + "end": 1739, + "loc": { + "start": { + "line": 54, + "column": 60 + }, + "end": { + "line": 54, + "column": 69 + }, + "identifierName": "activeKey" + }, + "name": "activeKey" + }, + "computed": false + } + } + } + ], + "directives": [] + } + } + ] + } + } + ], + "kind": "let" + }, + { + "type": "IfStatement", + "start": 1759, + "end": 1898, + "loc": { + "start": { + "line": 56, + "column": 8 + }, + "end": { + "line": 58, + "column": 9 + } + }, + "test": { + "type": "BinaryExpression", + "start": 1763, + "end": 1788, + "loc": { + "start": { + "line": 56, + "column": 12 + }, + "end": { + "line": 56, + "column": 37 + } + }, + "left": { + "type": "MemberExpression", + "start": 1763, + "end": 1784, + "loc": { + "start": { + "line": 56, + "column": 12 + }, + "end": { + "line": 56, + "column": 33 + } + }, + "object": { + "type": "Identifier", + "start": 1763, + "end": 1777, + "loc": { + "start": { + "line": 56, + "column": 12 + }, + "end": { + "line": 56, + "column": 26 + }, + "identifierName": "stakingBalance" + }, + "name": "stakingBalance" + }, + "property": { + "type": "Identifier", + "start": 1778, + "end": 1784, + "loc": { + "start": { + "line": 56, + "column": 27 + }, + "end": { + "line": 56, + "column": 33 + }, + "identifierName": "length" + }, + "name": "length" + }, + "computed": false + }, + "operator": ">", + "right": { + "type": "NumericLiteral", + "start": 1787, + "end": 1788, + "loc": { + "start": { + "line": 56, + "column": 36 + }, + "end": { + "line": 56, + "column": 37 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + } + }, + "consequent": { + "type": "BlockStatement", + "start": 1790, + "end": 1898, + "loc": { + "start": { + "line": 56, + "column": 39 + }, + "end": { + "line": 58, + "column": 9 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 1804, + "end": 1888, + "loc": { + "start": { + "line": 57, + "column": 12 + }, + "end": { + "line": 57, + "column": 96 + } + }, + "argument": { + "type": "CallExpression", + "start": 1811, + "end": 1888, + "loc": { + "start": { + "line": 57, + "column": 19 + }, + "end": { + "line": 57, + "column": 96 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1811, + "end": 1845, + "loc": { + "start": { + "line": 57, + "column": 19 + }, + "end": { + "line": 57, + "column": 53 + } + }, + "object": { + "type": "Identifier", + "start": 1811, + "end": 1824, + "loc": { + "start": { + "line": 57, + "column": 19 + }, + "end": { + "line": 57, + "column": 32 + }, + "identifierName": "CurrencyUtils" + }, + "name": "CurrencyUtils" + }, + "property": { + "type": "Identifier", + "start": 1825, + "end": 1845, + "loc": { + "start": { + "line": 57, + "column": 33 + }, + "end": { + "line": 57, + "column": 53 + }, + "identifierName": "convertMotesToCasper" + }, + "name": "convertMotesToCasper" + }, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 1846, + "end": 1887, + "loc": { + "start": { + "line": 57, + "column": 54 + }, + "end": { + "line": 57, + "column": 95 + } + }, + "callee": { + "type": "Identifier", + "start": 1846, + "end": 1854, + "loc": { + "start": { + "line": 57, + "column": 54 + }, + "end": { + "line": 57, + "column": 62 + }, + "identifierName": "parseInt" + }, + "name": "parseInt" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 1855, + "end": 1886, + "loc": { + "start": { + "line": 57, + "column": 63 + }, + "end": { + "line": 57, + "column": 94 + } + }, + "object": { + "type": "MemberExpression", + "start": 1855, + "end": 1872, + "loc": { + "start": { + "line": 57, + "column": 63 + }, + "end": { + "line": 57, + "column": 80 + } + }, + "object": { + "type": "Identifier", + "start": 1855, + "end": 1869, + "loc": { + "start": { + "line": 57, + "column": 63 + }, + "end": { + "line": 57, + "column": 77 + }, + "identifierName": "stakingBalance" + }, + "name": "stakingBalance" + }, + "property": { + "type": "NumericLiteral", + "start": 1870, + "end": 1871, + "loc": { + "start": { + "line": 57, + "column": 78 + }, + "end": { + "line": 57, + "column": 79 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + }, + "computed": true + }, + "property": { + "type": "Identifier", + "start": 1873, + "end": 1886, + "loc": { + "start": { + "line": 57, + "column": 81 + }, + "end": { + "line": 57, + "column": 94 + }, + "identifierName": "staked_amount" + }, + "name": "staked_amount" + }, + "computed": false + } + ] + } + ] + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "ThrowStatement", + "start": 1907, + "end": 1939, + "loc": { + "start": { + "line": 59, + "column": 8 + }, + "end": { + "line": 59, + "column": 40 + } + }, + "argument": { + "type": "NewExpression", + "start": 1913, + "end": 1938, + "loc": { + "start": { + "line": 59, + "column": 14 + }, + "end": { + "line": 59, + "column": 39 + } + }, + "callee": { + "type": "Identifier", + "start": 1917, + "end": 1936, + "loc": { + "start": { + "line": 59, + "column": 18 + }, + "end": { + "line": 59, + "column": 37 + }, + "identifierName": "NoStakeBalanceError" + }, + "name": "NoStakeBalanceError" + }, + "arguments": [] + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Retrieve current user stake balance from the network.\n *\n * @return {Promise} - Current stake balance of the user\n ", + "start": 1180, + "end": 1328, + "loc": { + "start": { + "line": 42, + "column": 4 + }, + "end": { + "line": 46, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Retrieve current validator balance from the network.\n *\n * @return {Promise} - Current balance of the validator\n ", + "start": 1951, + "end": 2097, + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 66, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 2102, + "end": 2655, + "loc": { + "start": { + "line": 67, + "column": 4 + }, + "end": { + "line": 79, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2108, + "end": 2129, + "loc": { + "start": { + "line": 67, + "column": 10 + }, + "end": { + "line": 67, + "column": 31 + }, + "identifierName": "fetchValidatorBalance" + }, + "name": "fetchValidatorBalance" + }, + "kind": "method", + "id": null, + "generator": false, + "expression": false, + "async": true, + "params": [], + "body": { + "type": "BlockStatement", + "start": 2132, + "end": 2655, + "loc": { + "start": { + "line": 67, + "column": 34 + }, + "end": { + "line": 79, + "column": 5 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 2142, + "end": 2212, + "loc": { + "start": { + "line": 68, + "column": 8 + }, + "end": { + "line": 68, + "column": 78 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 2148, + "end": 2212, + "loc": { + "start": { + "line": 68, + "column": 14 + }, + "end": { + "line": 68, + "column": 78 + } + }, + "id": { + "type": "Identifier", + "start": 2148, + "end": 2162, + "loc": { + "start": { + "line": 68, + "column": 14 + }, + "end": { + "line": 68, + "column": 28 + }, + "identifierName": "validatorsInfo" + }, + "name": "validatorsInfo" + }, + "init": { + "type": "AwaitExpression", + "start": 2165, + "end": 2212, + "loc": { + "start": { + "line": 68, + "column": 31 + }, + "end": { + "line": 68, + "column": 78 + } + }, + "argument": { + "type": "CallExpression", + "start": 2171, + "end": 2212, + "loc": { + "start": { + "line": 68, + "column": 37 + }, + "end": { + "line": 68, + "column": 78 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2171, + "end": 2210, + "loc": { + "start": { + "line": 68, + "column": 37 + }, + "end": { + "line": 68, + "column": 76 + } + }, + "object": { + "type": "MemberExpression", + "start": 2171, + "end": 2192, + "loc": { + "start": { + "line": 68, + "column": 37 + }, + "end": { + "line": 68, + "column": 58 + } + }, + "object": { + "type": "MemberExpression", + "start": 2171, + "end": 2182, + "loc": { + "start": { + "line": 68, + "column": 37 + }, + "end": { + "line": 68, + "column": 48 + } + }, + "object": { + "type": "ThisExpression", + "start": 2171, + "end": 2175, + "loc": { + "start": { + "line": 68, + "column": 37 + }, + "end": { + "line": 68, + "column": 41 + } + } + }, + "property": { + "type": "Identifier", + "start": 2176, + "end": 2182, + "loc": { + "start": { + "line": 68, + "column": 42 + }, + "end": { + "line": 68, + "column": 48 + }, + "identifierName": "client" + }, + "name": "client" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2183, + "end": 2192, + "loc": { + "start": { + "line": 68, + "column": 49 + }, + "end": { + "line": 68, + "column": 58 + }, + "identifierName": "casperRPC" + }, + "name": "casperRPC" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2193, + "end": 2210, + "loc": { + "start": { + "line": 68, + "column": 59 + }, + "end": { + "line": 68, + "column": 76 + }, + "identifierName": "getValidatorsInfo" + }, + "name": "getValidatorsInfo" + }, + "computed": false + }, + "arguments": [] + } + } + } + ], + "kind": "const" + }, + { + "type": "VariableDeclaration", + "start": 2221, + "end": 2376, + "loc": { + "start": { + "line": 69, + "column": 8 + }, + "end": { + "line": 71, + "column": 13 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 2225, + "end": 2376, + "loc": { + "start": { + "line": 69, + "column": 12 + }, + "end": { + "line": 71, + "column": 13 + } + }, + "id": { + "type": "Identifier", + "start": 2225, + "end": 2234, + "loc": { + "start": { + "line": 69, + "column": 12 + }, + "end": { + "line": 69, + "column": 21 + }, + "identifierName": "validator" + }, + "name": "validator" + }, + "init": { + "type": "MemberExpression", + "start": 2237, + "end": 2376, + "loc": { + "start": { + "line": 69, + "column": 24 + }, + "end": { + "line": 71, + "column": 13 + } + }, + "object": { + "type": "CallExpression", + "start": 2237, + "end": 2373, + "loc": { + "start": { + "line": 69, + "column": 24 + }, + "end": { + "line": 71, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2237, + "end": 2277, + "loc": { + "start": { + "line": 69, + "column": 24 + }, + "end": { + "line": 69, + "column": 64 + } + }, + "object": { + "type": "MemberExpression", + "start": 2237, + "end": 2270, + "loc": { + "start": { + "line": 69, + "column": 24 + }, + "end": { + "line": 69, + "column": 57 + } + }, + "object": { + "type": "MemberExpression", + "start": 2237, + "end": 2265, + "loc": { + "start": { + "line": 69, + "column": 24 + }, + "end": { + "line": 69, + "column": 52 + } + }, + "object": { + "type": "Identifier", + "start": 2237, + "end": 2251, + "loc": { + "start": { + "line": 69, + "column": 24 + }, + "end": { + "line": 69, + "column": 38 + }, + "identifierName": "validatorsInfo" + }, + "name": "validatorsInfo" + }, + "property": { + "type": "Identifier", + "start": 2252, + "end": 2265, + "loc": { + "start": { + "line": 69, + "column": 39 + }, + "end": { + "line": 69, + "column": 52 + }, + "identifierName": "auction_state" + }, + "name": "auction_state" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2266, + "end": 2270, + "loc": { + "start": { + "line": 69, + "column": 53 + }, + "end": { + "line": 69, + "column": 57 + }, + "identifierName": "bids" + }, + "name": "bids" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2271, + "end": 2277, + "loc": { + "start": { + "line": 69, + "column": 58 + }, + "end": { + "line": 69, + "column": 64 + }, + "identifierName": "filter" + }, + "name": "filter" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 2278, + "end": 2372, + "loc": { + "start": { + "line": 69, + "column": 65 + }, + "end": { + "line": 71, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2278, + "end": 2287, + "loc": { + "start": { + "line": 69, + "column": 65 + }, + "end": { + "line": 69, + "column": 74 + }, + "identifierName": "validator" + }, + "name": "validator" + } + ], + "body": { + "type": "BlockStatement", + "start": 2291, + "end": 2372, + "loc": { + "start": { + "line": 69, + "column": 78 + }, + "end": { + "line": 71, + "column": 9 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 2305, + "end": 2362, + "loc": { + "start": { + "line": 70, + "column": 12 + }, + "end": { + "line": 70, + "column": 69 + } + }, + "argument": { + "type": "BinaryExpression", + "start": 2312, + "end": 2362, + "loc": { + "start": { + "line": 70, + "column": 19 + }, + "end": { + "line": 70, + "column": 69 + } + }, + "left": { + "type": "MemberExpression", + "start": 2312, + "end": 2332, + "loc": { + "start": { + "line": 70, + "column": 19 + }, + "end": { + "line": 70, + "column": 39 + } + }, + "object": { + "type": "Identifier", + "start": 2312, + "end": 2321, + "loc": { + "start": { + "line": 70, + "column": 19 + }, + "end": { + "line": 70, + "column": 28 + }, + "identifierName": "validator" + }, + "name": "validator" + }, + "property": { + "type": "Identifier", + "start": 2322, + "end": 2332, + "loc": { + "start": { + "line": 70, + "column": 29 + }, + "end": { + "line": 70, + "column": 39 + }, + "identifierName": "public_key" + }, + "name": "public_key" + }, + "computed": false + }, + "operator": "===", + "right": { + "type": "MemberExpression", + "start": 2337, + "end": 2362, + "loc": { + "start": { + "line": 70, + "column": 44 + }, + "end": { + "line": 70, + "column": 69 + } + }, + "object": { + "type": "MemberExpression", + "start": 2337, + "end": 2352, + "loc": { + "start": { + "line": 70, + "column": 44 + }, + "end": { + "line": 70, + "column": 59 + } + }, + "object": { + "type": "ThisExpression", + "start": 2337, + "end": 2341, + "loc": { + "start": { + "line": 70, + "column": 44 + }, + "end": { + "line": 70, + "column": 48 + } + } + }, + "property": { + "type": "Identifier", + "start": 2342, + "end": 2352, + "loc": { + "start": { + "line": 70, + "column": 49 + }, + "end": { + "line": 70, + "column": 59 + }, + "identifierName": "keyManager" + }, + "name": "keyManager" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2353, + "end": 2362, + "loc": { + "start": { + "line": 70, + "column": 60 + }, + "end": { + "line": 70, + "column": 69 + }, + "identifierName": "activeKey" + }, + "name": "activeKey" + }, + "computed": false + } + } + } + ], + "directives": [] + } + } + ] + }, + "property": { + "type": "NumericLiteral", + "start": 2374, + "end": 2375, + "loc": { + "start": { + "line": 71, + "column": 11 + }, + "end": { + "line": 71, + "column": 12 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + }, + "computed": true + } + } + ], + "kind": "let" + }, + { + "type": "IfStatement", + "start": 2385, + "end": 2605, + "loc": { + "start": { + "line": 72, + "column": 8 + }, + "end": { + "line": 77, + "column": 9 + } + }, + "test": { + "type": "Identifier", + "start": 2389, + "end": 2398, + "loc": { + "start": { + "line": 72, + "column": 12 + }, + "end": { + "line": 72, + "column": 21 + }, + "identifierName": "validator" + }, + "name": "validator" + }, + "consequent": { + "type": "BlockStatement", + "start": 2400, + "end": 2605, + "loc": { + "start": { + "line": 72, + "column": 23 + }, + "end": { + "line": 77, + "column": 9 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 2414, + "end": 2595, + "loc": { + "start": { + "line": 73, + "column": 12 + }, + "end": { + "line": 76, + "column": 13 + } + }, + "argument": { + "type": "ObjectExpression", + "start": 2421, + "end": 2595, + "loc": { + "start": { + "line": 73, + "column": 19 + }, + "end": { + "line": 76, + "column": 13 + } + }, + "properties": [ + { + "type": "ObjectProperty", + "start": 2439, + "end": 2521, + "loc": { + "start": { + "line": 74, + "column": 16 + }, + "end": { + "line": 74, + "column": 98 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2439, + "end": 2446, + "loc": { + "start": { + "line": 74, + "column": 16 + }, + "end": { + "line": 74, + "column": 23 + }, + "identifierName": "balance" + }, + "name": "balance" + }, + "value": { + "type": "CallExpression", + "start": 2448, + "end": 2521, + "loc": { + "start": { + "line": 74, + "column": 25 + }, + "end": { + "line": 74, + "column": 98 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2448, + "end": 2482, + "loc": { + "start": { + "line": 74, + "column": 25 + }, + "end": { + "line": 74, + "column": 59 + } + }, + "object": { + "type": "Identifier", + "start": 2448, + "end": 2461, + "loc": { + "start": { + "line": 74, + "column": 25 + }, + "end": { + "line": 74, + "column": 38 + }, + "identifierName": "CurrencyUtils" + }, + "name": "CurrencyUtils" + }, + "property": { + "type": "Identifier", + "start": 2462, + "end": 2482, + "loc": { + "start": { + "line": 74, + "column": 39 + }, + "end": { + "line": 74, + "column": 59 + }, + "identifierName": "convertMotesToCasper" + }, + "name": "convertMotesToCasper" + }, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 2483, + "end": 2520, + "loc": { + "start": { + "line": 74, + "column": 60 + }, + "end": { + "line": 74, + "column": 97 + } + }, + "callee": { + "type": "Identifier", + "start": 2483, + "end": 2491, + "loc": { + "start": { + "line": 74, + "column": 60 + }, + "end": { + "line": 74, + "column": 68 + }, + "identifierName": "parseInt" + }, + "name": "parseInt" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 2492, + "end": 2519, + "loc": { + "start": { + "line": 74, + "column": 69 + }, + "end": { + "line": 74, + "column": 96 + } + }, + "object": { + "type": "MemberExpression", + "start": 2492, + "end": 2505, + "loc": { + "start": { + "line": 74, + "column": 69 + }, + "end": { + "line": 74, + "column": 82 + } + }, + "object": { + "type": "Identifier", + "start": 2492, + "end": 2501, + "loc": { + "start": { + "line": 74, + "column": 69 + }, + "end": { + "line": 74, + "column": 78 + }, + "identifierName": "validator" + }, + "name": "validator" + }, + "property": { + "type": "Identifier", + "start": 2502, + "end": 2505, + "loc": { + "start": { + "line": 74, + "column": 79 + }, + "end": { + "line": 74, + "column": 82 + }, + "identifierName": "bid" + }, + "name": "bid" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2506, + "end": 2519, + "loc": { + "start": { + "line": 74, + "column": 83 + }, + "end": { + "line": 74, + "column": 96 + }, + "identifierName": "staked_amount" + }, + "name": "staked_amount" + }, + "computed": false + } + ] + } + ] + } + }, + { + "type": "ObjectProperty", + "start": 2539, + "end": 2580, + "loc": { + "start": { + "line": 75, + "column": 16 + }, + "end": { + "line": 75, + "column": 57 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2539, + "end": 2549, + "loc": { + "start": { + "line": 75, + "column": 16 + }, + "end": { + "line": 75, + "column": 26 + }, + "identifierName": "commission" + }, + "name": "commission" + }, + "value": { + "type": "MemberExpression", + "start": 2551, + "end": 2580, + "loc": { + "start": { + "line": 75, + "column": 28 + }, + "end": { + "line": 75, + "column": 57 + } + }, + "object": { + "type": "MemberExpression", + "start": 2551, + "end": 2564, + "loc": { + "start": { + "line": 75, + "column": 28 + }, + "end": { + "line": 75, + "column": 41 + } + }, + "object": { + "type": "Identifier", + "start": 2551, + "end": 2560, + "loc": { + "start": { + "line": 75, + "column": 28 + }, + "end": { + "line": 75, + "column": 37 + }, + "identifierName": "validator" + }, + "name": "validator" + }, + "property": { + "type": "Identifier", + "start": 2561, + "end": 2564, + "loc": { + "start": { + "line": 75, + "column": 38 + }, + "end": { + "line": 75, + "column": 41 + }, + "identifierName": "bid" + }, + "name": "bid" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2565, + "end": 2580, + "loc": { + "start": { + "line": 75, + "column": 42 + }, + "end": { + "line": 75, + "column": 57 + }, + "identifierName": "delegation_rate" + }, + "name": "delegation_rate" + }, + "computed": false + } + } + ] + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "ThrowStatement", + "start": 2614, + "end": 2649, + "loc": { + "start": { + "line": 78, + "column": 8 + }, + "end": { + "line": 78, + "column": 43 + } + }, + "argument": { + "type": "NewExpression", + "start": 2620, + "end": 2649, + "loc": { + "start": { + "line": 78, + "column": 14 + }, + "end": { + "line": 78, + "column": 43 + } + }, + "callee": { + "type": "Identifier", + "start": 2624, + "end": 2647, + "loc": { + "start": { + "line": 78, + "column": 18 + }, + "end": { + "line": 78, + "column": 41 + }, + "identifierName": "NoValidatorBalanceError" + }, + "name": "NoValidatorBalanceError" + }, + "arguments": [] + } + } + ], + "directives": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Retrieve current validator balance from the network.\n *\n * @return {Promise} - Current balance of the validator\n ", + "start": 1951, + "end": 2097, + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 66, + "column": 7 + } + } + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Balance class\n * Service used to retrieve different balances from the Casper network\n ", + "start": 158, + "end": 253, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Balance class\n * Service used to retrieve different balances from the Casper network\n ", + "start": 158, + "end": 253, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + } + } + ] + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\n * Balance class\n * Service used to retrieve different balances from the Casper network\n ", + "start": 158, + "end": 253, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {AbstractKeyManager} ", + "start": 282, + "end": 315, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 37 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {ClientCasper} ", + "start": 335, + "end": 362, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 31 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 378, + "end": 399, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 25 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {AbstractKeyManager} keyManager - Instance of a KeyManager\n * @param {ClientCasper} client - Instance of CasperClient\n * @param {string} validator - Hash of the main validator\n ", + "start": 419, + "end": 654, + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 24, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Retrieve current user balance from the network.\n *\n * @return {Promise} - Current balance of the user\n ", + "start": 818, + "end": 954, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 35, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Retrieve current user stake balance from the network.\n *\n * @return {Promise} - Current stake balance of the user\n ", + "start": 1180, + "end": 1328, + "loc": { + "start": { + "line": 42, + "column": 4 + }, + "end": { + "line": 46, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Retrieve current validator balance from the network.\n *\n * @return {Promise} - Current balance of the validator\n ", + "start": 1951, + "end": 2097, + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 66, + "column": 7 + } + } + } + ], + "tokens": [ + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 0, + "end": 6, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7, + "end": 8, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "NoStakeBalanceError", + "start": 8, + "end": 27, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 27 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 27, + "end": 28, + "loc": { + "start": { + "line": 1, + "column": 27 + }, + "end": { + "line": 1, + "column": 28 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "NoValidatorBalanceError", + "start": 29, + "end": 52, + "loc": { + "start": { + "line": 1, + "column": 29 + }, + "end": { + "line": 1, + "column": 52 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 52, + "end": 53, + "loc": { + "start": { + "line": 1, + "column": 52 + }, + "end": { + "line": 1, + "column": 53 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 54, + "end": 58, + "loc": { + "start": { + "line": 1, + "column": 54 + }, + "end": { + "line": 1, + "column": 58 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "../errors", + "start": 59, + "end": 70, + "loc": { + "start": { + "line": 1, + "column": 59 + }, + "end": { + "line": 1, + "column": 70 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 70, + "end": 71, + "loc": { + "start": { + "line": 1, + "column": 70 + }, + "end": { + "line": 1, + "column": 71 + } + } + }, + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 72, + "end": 78, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 79, + "end": 80, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CLPublicKey", + "start": 80, + "end": 91, + "loc": { + "start": { + "line": 2, + "column": 8 + }, + "end": { + "line": 2, + "column": 19 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 91, + "end": 92, + "loc": { + "start": { + "line": 2, + "column": 19 + }, + "end": { + "line": 2, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 93, + "end": 97, + "loc": { + "start": { + "line": 2, + "column": 21 + }, + "end": { + "line": 2, + "column": 25 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "casper-js-sdk", + "start": 98, + "end": 113, + "loc": { + "start": { + "line": 2, + "column": 26 + }, + "end": { + "line": 2, + "column": 41 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 113, + "end": 114, + "loc": { + "start": { + "line": 2, + "column": 41 + }, + "end": { + "line": 2, + "column": 42 + } + } + }, + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 115, + "end": 121, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 122, + "end": 123, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CurrencyUtils", + "start": 123, + "end": 136, + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 3, + "column": 21 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 136, + "end": 137, + "loc": { + "start": { + "line": 3, + "column": 21 + }, + "end": { + "line": 3, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 138, + "end": 142, + "loc": { + "start": { + "line": 3, + "column": 23 + }, + "end": { + "line": 3, + "column": 27 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "../helpers", + "start": 143, + "end": 155, + "loc": { + "start": { + "line": 3, + "column": 28 + }, + "end": { + "line": 3, + "column": 40 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 155, + "end": 156, + "loc": { + "start": { + "line": 3, + "column": 40 + }, + "end": { + "line": 3, + "column": 41 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Balance class\n * Service used to retrieve different balances from the Casper network\n ", + "start": 158, + "end": 253, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 254, + "end": 260, + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 6 + } + } + }, + { + "type": { + "label": "class", + "keyword": "class", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "class", + "start": 261, + "end": 266, + "loc": { + "start": { + "line": 9, + "column": 7 + }, + "end": { + "line": 9, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Balance", + "start": 267, + "end": 274, + "loc": { + "start": { + "line": 9, + "column": 13 + }, + "end": { + "line": 9, + "column": 20 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 275, + "end": 276, + "loc": { + "start": { + "line": 9, + "column": 21 + }, + "end": { + "line": 9, + "column": 22 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {AbstractKeyManager} ", + "start": 282, + "end": 315, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 37 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "keyManager", + "start": 320, + "end": 330, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 14 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {ClientCasper} ", + "start": 335, + "end": 362, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 31 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "client", + "start": 367, + "end": 373, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 10 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 378, + "end": 399, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "validator", + "start": 404, + "end": 413, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 16, + "column": 13 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {AbstractKeyManager} keyManager - Instance of a KeyManager\n * @param {ClientCasper} client - Instance of CasperClient\n * @param {string} validator - Hash of the main validator\n ", + "start": 419, + "end": 654, + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 24, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "constructor", + "start": 659, + "end": 670, + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 15 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 670, + "end": 671, + "loc": { + "start": { + "line": 25, + "column": 15 + }, + "end": { + "line": 25, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "keyManager", + "start": 671, + "end": 681, + "loc": { + "start": { + "line": 25, + "column": 16 + }, + "end": { + "line": 25, + "column": 26 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 681, + "end": 682, + "loc": { + "start": { + "line": 25, + "column": 26 + }, + "end": { + "line": 25, + "column": 27 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "client", + "start": 683, + "end": 689, + "loc": { + "start": { + "line": 25, + "column": 28 + }, + "end": { + "line": 25, + "column": 34 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 689, + "end": 690, + "loc": { + "start": { + "line": 25, + "column": 34 + }, + "end": { + "line": 25, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "validator", + "start": 691, + "end": 700, + "loc": { + "start": { + "line": 25, + "column": 36 + }, + "end": { + "line": 25, + "column": 45 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 700, + "end": 701, + "loc": { + "start": { + "line": 25, + "column": 45 + }, + "end": { + "line": 25, + "column": 46 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 702, + "end": 703, + "loc": { + "start": { + "line": 25, + "column": 47 + }, + "end": { + "line": 25, + "column": 48 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 712, + "end": 716, + "loc": { + "start": { + "line": 26, + "column": 8 + }, + "end": { + "line": 26, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 716, + "end": 717, + "loc": { + "start": { + "line": 26, + "column": 12 + }, + "end": { + "line": 26, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "keyManager", + "start": 717, + "end": 727, + "loc": { + "start": { + "line": 26, + "column": 13 + }, + "end": { + "line": 26, + "column": 23 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 728, + "end": 729, + "loc": { + "start": { + "line": 26, + "column": 24 + }, + "end": { + "line": 26, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "keyManager", + "start": 730, + "end": 740, + "loc": { + "start": { + "line": 26, + "column": 26 + }, + "end": { + "line": 26, + "column": 36 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 740, + "end": 741, + "loc": { + "start": { + "line": 26, + "column": 36 + }, + "end": { + "line": 26, + "column": 37 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 750, + "end": 754, + "loc": { + "start": { + "line": 27, + "column": 8 + }, + "end": { + "line": 27, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 754, + "end": 755, + "loc": { + "start": { + "line": 27, + "column": 12 + }, + "end": { + "line": 27, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "client", + "start": 755, + "end": 761, + "loc": { + "start": { + "line": 27, + "column": 13 + }, + "end": { + "line": 27, + "column": 19 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 762, + "end": 763, + "loc": { + "start": { + "line": 27, + "column": 20 + }, + "end": { + "line": 27, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "client", + "start": 764, + "end": 770, + "loc": { + "start": { + "line": 27, + "column": 22 + }, + "end": { + "line": 27, + "column": 28 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 770, + "end": 771, + "loc": { + "start": { + "line": 27, + "column": 28 + }, + "end": { + "line": 27, + "column": 29 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 780, + "end": 784, + "loc": { + "start": { + "line": 28, + "column": 8 + }, + "end": { + "line": 28, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 784, + "end": 785, + "loc": { + "start": { + "line": 28, + "column": 12 + }, + "end": { + "line": 28, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "validator", + "start": 785, + "end": 794, + "loc": { + "start": { + "line": 28, + "column": 13 + }, + "end": { + "line": 28, + "column": 22 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 795, + "end": 796, + "loc": { + "start": { + "line": 28, + "column": 23 + }, + "end": { + "line": 28, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "validator", + "start": 797, + "end": 806, + "loc": { + "start": { + "line": 28, + "column": 25 + }, + "end": { + "line": 28, + "column": 34 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 811, + "end": 812, + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 29, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Retrieve current user balance from the network.\n *\n * @return {Promise} - Current balance of the user\n ", + "start": 818, + "end": 954, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 35, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "async", + "start": 959, + "end": 964, + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 36, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "fetchBalance", + "start": 965, + "end": 977, + "loc": { + "start": { + "line": 36, + "column": 10 + }, + "end": { + "line": 36, + "column": 22 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 977, + "end": 978, + "loc": { + "start": { + "line": 36, + "column": 22 + }, + "end": { + "line": 36, + "column": 23 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 978, + "end": 979, + "loc": { + "start": { + "line": 36, + "column": 23 + }, + "end": { + "line": 36, + "column": 24 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 980, + "end": 981, + "loc": { + "start": { + "line": 36, + "column": 25 + }, + "end": { + "line": 36, + "column": 26 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 990, + "end": 996, + "loc": { + "start": { + "line": 37, + "column": 8 + }, + "end": { + "line": 37, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CurrencyUtils", + "start": 997, + "end": 1010, + "loc": { + "start": { + "line": 37, + "column": 15 + }, + "end": { + "line": 37, + "column": 28 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1010, + "end": 1011, + "loc": { + "start": { + "line": 37, + "column": 28 + }, + "end": { + "line": 37, + "column": 29 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "convertMotesToCasper", + "start": 1011, + "end": 1031, + "loc": { + "start": { + "line": 37, + "column": 29 + }, + "end": { + "line": 37, + "column": 49 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1031, + "end": 1032, + "loc": { + "start": { + "line": 37, + "column": 49 + }, + "end": { + "line": 37, + "column": 50 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1045, + "end": 1046, + "loc": { + "start": { + "line": 38, + "column": 12 + }, + "end": { + "line": 38, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "await", + "start": 1046, + "end": 1051, + "loc": { + "start": { + "line": 38, + "column": 13 + }, + "end": { + "line": 38, + "column": 18 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 1052, + "end": 1056, + "loc": { + "start": { + "line": 38, + "column": 19 + }, + "end": { + "line": 38, + "column": 23 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1056, + "end": 1057, + "loc": { + "start": { + "line": 38, + "column": 23 + }, + "end": { + "line": 38, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "client", + "start": 1057, + "end": 1063, + "loc": { + "start": { + "line": 38, + "column": 24 + }, + "end": { + "line": 38, + "column": 30 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1063, + "end": 1064, + "loc": { + "start": { + "line": 38, + "column": 30 + }, + "end": { + "line": 38, + "column": 31 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "casperClient", + "start": 1064, + "end": 1076, + "loc": { + "start": { + "line": 38, + "column": 31 + }, + "end": { + "line": 38, + "column": 43 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1076, + "end": 1077, + "loc": { + "start": { + "line": 38, + "column": 43 + }, + "end": { + "line": 38, + "column": 44 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "balanceOfByPublicKey", + "start": 1077, + "end": 1097, + "loc": { + "start": { + "line": 38, + "column": 44 + }, + "end": { + "line": 38, + "column": 64 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1097, + "end": 1098, + "loc": { + "start": { + "line": 38, + "column": 64 + }, + "end": { + "line": 38, + "column": 65 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CLPublicKey", + "start": 1098, + "end": 1109, + "loc": { + "start": { + "line": 38, + "column": 65 + }, + "end": { + "line": 38, + "column": 76 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1109, + "end": 1110, + "loc": { + "start": { + "line": 38, + "column": 76 + }, + "end": { + "line": 38, + "column": 77 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "fromHex", + "start": 1110, + "end": 1117, + "loc": { + "start": { + "line": 38, + "column": 77 + }, + "end": { + "line": 38, + "column": 84 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1117, + "end": 1118, + "loc": { + "start": { + "line": 38, + "column": 84 + }, + "end": { + "line": 38, + "column": 85 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 1118, + "end": 1122, + "loc": { + "start": { + "line": 38, + "column": 85 + }, + "end": { + "line": 38, + "column": 89 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1122, + "end": 1123, + "loc": { + "start": { + "line": 38, + "column": 89 + }, + "end": { + "line": 38, + "column": 90 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "keyManager", + "start": 1123, + "end": 1133, + "loc": { + "start": { + "line": 38, + "column": 90 + }, + "end": { + "line": 38, + "column": 100 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1133, + "end": 1134, + "loc": { + "start": { + "line": 38, + "column": 100 + }, + "end": { + "line": 38, + "column": 101 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "activeKey", + "start": 1134, + "end": 1143, + "loc": { + "start": { + "line": 38, + "column": 101 + }, + "end": { + "line": 38, + "column": 110 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1143, + "end": 1144, + "loc": { + "start": { + "line": 38, + "column": 110 + }, + "end": { + "line": 38, + "column": 111 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1144, + "end": 1145, + "loc": { + "start": { + "line": 38, + "column": 111 + }, + "end": { + "line": 38, + "column": 112 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1145, + "end": 1146, + "loc": { + "start": { + "line": 38, + "column": 112 + }, + "end": { + "line": 38, + "column": 113 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1146, + "end": 1147, + "loc": { + "start": { + "line": 38, + "column": 113 + }, + "end": { + "line": 38, + "column": 114 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "toNumber", + "start": 1147, + "end": 1155, + "loc": { + "start": { + "line": 38, + "column": 114 + }, + "end": { + "line": 38, + "column": 122 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1155, + "end": 1156, + "loc": { + "start": { + "line": 38, + "column": 122 + }, + "end": { + "line": 38, + "column": 123 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1156, + "end": 1157, + "loc": { + "start": { + "line": 38, + "column": 123 + }, + "end": { + "line": 38, + "column": 124 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1166, + "end": 1167, + "loc": { + "start": { + "line": 39, + "column": 8 + }, + "end": { + "line": 39, + "column": 9 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1167, + "end": 1168, + "loc": { + "start": { + "line": 39, + "column": 9 + }, + "end": { + "line": 39, + "column": 10 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1173, + "end": 1174, + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 40, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Retrieve current user stake balance from the network.\n *\n * @return {Promise} - Current stake balance of the user\n ", + "start": 1180, + "end": 1328, + "loc": { + "start": { + "line": 42, + "column": 4 + }, + "end": { + "line": 46, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "async", + "start": 1333, + "end": 1338, + "loc": { + "start": { + "line": 47, + "column": 4 + }, + "end": { + "line": 47, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "fetchStakeBalance", + "start": 1339, + "end": 1356, + "loc": { + "start": { + "line": 47, + "column": 10 + }, + "end": { + "line": 47, + "column": 27 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1356, + "end": 1357, + "loc": { + "start": { + "line": 47, + "column": 27 + }, + "end": { + "line": 47, + "column": 28 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1357, + "end": 1358, + "loc": { + "start": { + "line": 47, + "column": 28 + }, + "end": { + "line": 47, + "column": 29 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1359, + "end": 1360, + "loc": { + "start": { + "line": 47, + "column": 30 + }, + "end": { + "line": 47, + "column": 31 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 1369, + "end": 1374, + "loc": { + "start": { + "line": 48, + "column": 8 + }, + "end": { + "line": 48, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "validatorsInfo", + "start": 1375, + "end": 1389, + "loc": { + "start": { + "line": 48, + "column": 14 + }, + "end": { + "line": 48, + "column": 28 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1390, + "end": 1391, + "loc": { + "start": { + "line": 48, + "column": 29 + }, + "end": { + "line": 48, + "column": 30 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "await", + "start": 1392, + "end": 1397, + "loc": { + "start": { + "line": 48, + "column": 31 + }, + "end": { + "line": 48, + "column": 36 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 1398, + "end": 1402, + "loc": { + "start": { + "line": 48, + "column": 37 + }, + "end": { + "line": 48, + "column": 41 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1402, + "end": 1403, + "loc": { + "start": { + "line": 48, + "column": 41 + }, + "end": { + "line": 48, + "column": 42 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "client", + "start": 1403, + "end": 1409, + "loc": { + "start": { + "line": 48, + "column": 42 + }, + "end": { + "line": 48, + "column": 48 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1409, + "end": 1410, + "loc": { + "start": { + "line": 48, + "column": 48 + }, + "end": { + "line": 48, + "column": 49 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "casperRPC", + "start": 1410, + "end": 1419, + "loc": { + "start": { + "line": 48, + "column": 49 + }, + "end": { + "line": 48, + "column": 58 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1419, + "end": 1420, + "loc": { + "start": { + "line": 48, + "column": 58 + }, + "end": { + "line": 48, + "column": 59 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "getValidatorsInfo", + "start": 1420, + "end": 1437, + "loc": { + "start": { + "line": 48, + "column": 59 + }, + "end": { + "line": 48, + "column": 76 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1437, + "end": 1438, + "loc": { + "start": { + "line": 48, + "column": 76 + }, + "end": { + "line": 48, + "column": 77 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1438, + "end": 1439, + "loc": { + "start": { + "line": 48, + "column": 77 + }, + "end": { + "line": 48, + "column": 78 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 1448, + "end": 1451, + "loc": { + "start": { + "line": 49, + "column": 8 + }, + "end": { + "line": 49, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "validator", + "start": 1452, + "end": 1461, + "loc": { + "start": { + "line": 49, + "column": 12 + }, + "end": { + "line": 49, + "column": 21 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1462, + "end": 1463, + "loc": { + "start": { + "line": 49, + "column": 22 + }, + "end": { + "line": 49, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "validatorsInfo", + "start": 1464, + "end": 1478, + "loc": { + "start": { + "line": 49, + "column": 24 + }, + "end": { + "line": 49, + "column": 38 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1478, + "end": 1479, + "loc": { + "start": { + "line": 49, + "column": 38 + }, + "end": { + "line": 49, + "column": 39 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "auction_state", + "start": 1479, + "end": 1492, + "loc": { + "start": { + "line": 49, + "column": 39 + }, + "end": { + "line": 49, + "column": 52 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1492, + "end": 1493, + "loc": { + "start": { + "line": 49, + "column": 52 + }, + "end": { + "line": 49, + "column": 53 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "bids", + "start": 1493, + "end": 1497, + "loc": { + "start": { + "line": 49, + "column": 53 + }, + "end": { + "line": 49, + "column": 57 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1497, + "end": 1498, + "loc": { + "start": { + "line": 49, + "column": 57 + }, + "end": { + "line": 49, + "column": 58 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "filter", + "start": 1498, + "end": 1504, + "loc": { + "start": { + "line": 49, + "column": 58 + }, + "end": { + "line": 49, + "column": 64 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1504, + "end": 1505, + "loc": { + "start": { + "line": 49, + "column": 64 + }, + "end": { + "line": 49, + "column": 65 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "validator", + "start": 1505, + "end": 1514, + "loc": { + "start": { + "line": 49, + "column": 65 + }, + "end": { + "line": 49, + "column": 74 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1515, + "end": 1517, + "loc": { + "start": { + "line": 49, + "column": 75 + }, + "end": { + "line": 49, + "column": 77 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1518, + "end": 1519, + "loc": { + "start": { + "line": 49, + "column": 78 + }, + "end": { + "line": 49, + "column": 79 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 1532, + "end": 1538, + "loc": { + "start": { + "line": 50, + "column": 12 + }, + "end": { + "line": 50, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "validator", + "start": 1539, + "end": 1548, + "loc": { + "start": { + "line": 50, + "column": 19 + }, + "end": { + "line": 50, + "column": 28 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1548, + "end": 1549, + "loc": { + "start": { + "line": 50, + "column": 28 + }, + "end": { + "line": 50, + "column": 29 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "public_key", + "start": 1549, + "end": 1559, + "loc": { + "start": { + "line": 50, + "column": 29 + }, + "end": { + "line": 50, + "column": 39 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "===", + "start": 1560, + "end": 1563, + "loc": { + "start": { + "line": 50, + "column": 40 + }, + "end": { + "line": 50, + "column": 43 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 1564, + "end": 1568, + "loc": { + "start": { + "line": 50, + "column": 44 + }, + "end": { + "line": 50, + "column": 48 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1568, + "end": 1569, + "loc": { + "start": { + "line": 50, + "column": 48 + }, + "end": { + "line": 50, + "column": 49 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "validator", + "start": 1569, + "end": 1578, + "loc": { + "start": { + "line": 50, + "column": 49 + }, + "end": { + "line": 50, + "column": 58 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1587, + "end": 1588, + "loc": { + "start": { + "line": 51, + "column": 8 + }, + "end": { + "line": 51, + "column": 9 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1588, + "end": 1589, + "loc": { + "start": { + "line": 51, + "column": 9 + }, + "end": { + "line": 51, + "column": 10 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1589, + "end": 1590, + "loc": { + "start": { + "line": 51, + "column": 10 + }, + "end": { + "line": 51, + "column": 11 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 0, + "start": 1590, + "end": 1591, + "loc": { + "start": { + "line": 51, + "column": 11 + }, + "end": { + "line": 51, + "column": 12 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1591, + "end": 1592, + "loc": { + "start": { + "line": 51, + "column": 12 + }, + "end": { + "line": 51, + "column": 13 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 1602, + "end": 1605, + "loc": { + "start": { + "line": 53, + "column": 8 + }, + "end": { + "line": 53, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "stakingBalance", + "start": 1606, + "end": 1620, + "loc": { + "start": { + "line": 53, + "column": 12 + }, + "end": { + "line": 53, + "column": 26 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1621, + "end": 1622, + "loc": { + "start": { + "line": 53, + "column": 27 + }, + "end": { + "line": 53, + "column": 28 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "validator", + "start": 1623, + "end": 1632, + "loc": { + "start": { + "line": 53, + "column": 29 + }, + "end": { + "line": 53, + "column": 38 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1632, + "end": 1633, + "loc": { + "start": { + "line": 53, + "column": 38 + }, + "end": { + "line": 53, + "column": 39 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "bid", + "start": 1633, + "end": 1636, + "loc": { + "start": { + "line": 53, + "column": 39 + }, + "end": { + "line": 53, + "column": 42 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1636, + "end": 1637, + "loc": { + "start": { + "line": 53, + "column": 42 + }, + "end": { + "line": 53, + "column": 43 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "delegators", + "start": 1637, + "end": 1647, + "loc": { + "start": { + "line": 53, + "column": 43 + }, + "end": { + "line": 53, + "column": 53 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1647, + "end": 1648, + "loc": { + "start": { + "line": 53, + "column": 53 + }, + "end": { + "line": 53, + "column": 54 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "filter", + "start": 1648, + "end": 1654, + "loc": { + "start": { + "line": 53, + "column": 54 + }, + "end": { + "line": 53, + "column": 60 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1654, + "end": 1655, + "loc": { + "start": { + "line": 53, + "column": 60 + }, + "end": { + "line": 53, + "column": 61 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "delegator", + "start": 1655, + "end": 1664, + "loc": { + "start": { + "line": 53, + "column": 61 + }, + "end": { + "line": 53, + "column": 70 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1665, + "end": 1667, + "loc": { + "start": { + "line": 53, + "column": 71 + }, + "end": { + "line": 53, + "column": 73 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1668, + "end": 1669, + "loc": { + "start": { + "line": 53, + "column": 74 + }, + "end": { + "line": 53, + "column": 75 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 1682, + "end": 1688, + "loc": { + "start": { + "line": 54, + "column": 12 + }, + "end": { + "line": 54, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "delegator", + "start": 1689, + "end": 1698, + "loc": { + "start": { + "line": 54, + "column": 19 + }, + "end": { + "line": 54, + "column": 28 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1698, + "end": 1699, + "loc": { + "start": { + "line": 54, + "column": 28 + }, + "end": { + "line": 54, + "column": 29 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "public_key", + "start": 1699, + "end": 1709, + "loc": { + "start": { + "line": 54, + "column": 29 + }, + "end": { + "line": 54, + "column": 39 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "===", + "start": 1710, + "end": 1713, + "loc": { + "start": { + "line": 54, + "column": 40 + }, + "end": { + "line": 54, + "column": 43 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 1714, + "end": 1718, + "loc": { + "start": { + "line": 54, + "column": 44 + }, + "end": { + "line": 54, + "column": 48 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1718, + "end": 1719, + "loc": { + "start": { + "line": 54, + "column": 48 + }, + "end": { + "line": 54, + "column": 49 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "keyManager", + "start": 1719, + "end": 1729, + "loc": { + "start": { + "line": 54, + "column": 49 + }, + "end": { + "line": 54, + "column": 59 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1729, + "end": 1730, + "loc": { + "start": { + "line": 54, + "column": 59 + }, + "end": { + "line": 54, + "column": 60 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "activeKey", + "start": 1730, + "end": 1739, + "loc": { + "start": { + "line": 54, + "column": 60 + }, + "end": { + "line": 54, + "column": 69 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1748, + "end": 1749, + "loc": { + "start": { + "line": 55, + "column": 8 + }, + "end": { + "line": 55, + "column": 9 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1749, + "end": 1750, + "loc": { + "start": { + "line": 55, + "column": 9 + }, + "end": { + "line": 55, + "column": 10 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 1759, + "end": 1761, + "loc": { + "start": { + "line": 56, + "column": 8 + }, + "end": { + "line": 56, + "column": 10 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1762, + "end": 1763, + "loc": { + "start": { + "line": 56, + "column": 11 + }, + "end": { + "line": 56, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "stakingBalance", + "start": 1763, + "end": 1777, + "loc": { + "start": { + "line": 56, + "column": 12 + }, + "end": { + "line": 56, + "column": 26 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1777, + "end": 1778, + "loc": { + "start": { + "line": 56, + "column": 26 + }, + "end": { + "line": 56, + "column": 27 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "length", + "start": 1778, + "end": 1784, + "loc": { + "start": { + "line": 56, + "column": 27 + }, + "end": { + "line": 56, + "column": 33 + } + } + }, + { + "type": { + "label": "", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 7, + "updateContext": null + }, + "value": ">", + "start": 1785, + "end": 1786, + "loc": { + "start": { + "line": 56, + "column": 34 + }, + "end": { + "line": 56, + "column": 35 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 0, + "start": 1787, + "end": 1788, + "loc": { + "start": { + "line": 56, + "column": 36 + }, + "end": { + "line": 56, + "column": 37 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1788, + "end": 1789, + "loc": { + "start": { + "line": 56, + "column": 37 + }, + "end": { + "line": 56, + "column": 38 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1790, + "end": 1791, + "loc": { + "start": { + "line": 56, + "column": 39 + }, + "end": { + "line": 56, + "column": 40 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 1804, + "end": 1810, + "loc": { + "start": { + "line": 57, + "column": 12 + }, + "end": { + "line": 57, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CurrencyUtils", + "start": 1811, + "end": 1824, + "loc": { + "start": { + "line": 57, + "column": 19 + }, + "end": { + "line": 57, + "column": 32 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1824, + "end": 1825, + "loc": { + "start": { + "line": 57, + "column": 32 + }, + "end": { + "line": 57, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "convertMotesToCasper", + "start": 1825, + "end": 1845, + "loc": { + "start": { + "line": 57, + "column": 33 + }, + "end": { + "line": 57, + "column": 53 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1845, + "end": 1846, + "loc": { + "start": { + "line": 57, + "column": 53 + }, + "end": { + "line": 57, + "column": 54 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "parseInt", + "start": 1846, + "end": 1854, + "loc": { + "start": { + "line": 57, + "column": 54 + }, + "end": { + "line": 57, + "column": 62 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1854, + "end": 1855, + "loc": { + "start": { + "line": 57, + "column": 62 + }, + "end": { + "line": 57, + "column": 63 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "stakingBalance", + "start": 1855, + "end": 1869, + "loc": { + "start": { + "line": 57, + "column": 63 + }, + "end": { + "line": 57, + "column": 77 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1869, + "end": 1870, + "loc": { + "start": { + "line": 57, + "column": 77 + }, + "end": { + "line": 57, + "column": 78 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 0, + "start": 1870, + "end": 1871, + "loc": { + "start": { + "line": 57, + "column": 78 + }, + "end": { + "line": 57, + "column": 79 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1871, + "end": 1872, + "loc": { + "start": { + "line": 57, + "column": 79 + }, + "end": { + "line": 57, + "column": 80 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1872, + "end": 1873, + "loc": { + "start": { + "line": 57, + "column": 80 + }, + "end": { + "line": 57, + "column": 81 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "staked_amount", + "start": 1873, + "end": 1886, + "loc": { + "start": { + "line": 57, + "column": 81 + }, + "end": { + "line": 57, + "column": 94 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1886, + "end": 1887, + "loc": { + "start": { + "line": 57, + "column": 94 + }, + "end": { + "line": 57, + "column": 95 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1887, + "end": 1888, + "loc": { + "start": { + "line": 57, + "column": 95 + }, + "end": { + "line": 57, + "column": 96 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1897, + "end": 1898, + "loc": { + "start": { + "line": 58, + "column": 8 + }, + "end": { + "line": 58, + "column": 9 + } + } + }, + { + "type": { + "label": "throw", + "keyword": "throw", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "throw", + "start": 1907, + "end": 1912, + "loc": { + "start": { + "line": 59, + "column": 8 + }, + "end": { + "line": 59, + "column": 13 + } + } + }, + { + "type": { + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "new", + "start": 1913, + "end": 1916, + "loc": { + "start": { + "line": 59, + "column": 14 + }, + "end": { + "line": 59, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "NoStakeBalanceError", + "start": 1917, + "end": 1936, + "loc": { + "start": { + "line": 59, + "column": 18 + }, + "end": { + "line": 59, + "column": 37 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1936, + "end": 1937, + "loc": { + "start": { + "line": 59, + "column": 37 + }, + "end": { + "line": 59, + "column": 38 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1937, + "end": 1938, + "loc": { + "start": { + "line": 59, + "column": 38 + }, + "end": { + "line": 59, + "column": 39 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1938, + "end": 1939, + "loc": { + "start": { + "line": 59, + "column": 39 + }, + "end": { + "line": 59, + "column": 40 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1944, + "end": 1945, + "loc": { + "start": { + "line": 60, + "column": 4 + }, + "end": { + "line": 60, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Retrieve current validator balance from the network.\n *\n * @return {Promise} - Current balance of the validator\n ", + "start": 1951, + "end": 2097, + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 66, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "async", + "start": 2102, + "end": 2107, + "loc": { + "start": { + "line": 67, + "column": 4 + }, + "end": { + "line": 67, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "fetchValidatorBalance", + "start": 2108, + "end": 2129, + "loc": { + "start": { + "line": 67, + "column": 10 + }, + "end": { + "line": 67, + "column": 31 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2129, + "end": 2130, + "loc": { + "start": { + "line": 67, + "column": 31 + }, + "end": { + "line": 67, + "column": 32 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2130, + "end": 2131, + "loc": { + "start": { + "line": 67, + "column": 32 + }, + "end": { + "line": 67, + "column": 33 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2132, + "end": 2133, + "loc": { + "start": { + "line": 67, + "column": 34 + }, + "end": { + "line": 67, + "column": 35 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 2142, + "end": 2147, + "loc": { + "start": { + "line": 68, + "column": 8 + }, + "end": { + "line": 68, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "validatorsInfo", + "start": 2148, + "end": 2162, + "loc": { + "start": { + "line": 68, + "column": 14 + }, + "end": { + "line": 68, + "column": 28 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 2163, + "end": 2164, + "loc": { + "start": { + "line": 68, + "column": 29 + }, + "end": { + "line": 68, + "column": 30 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "await", + "start": 2165, + "end": 2170, + "loc": { + "start": { + "line": 68, + "column": 31 + }, + "end": { + "line": 68, + "column": 36 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 2171, + "end": 2175, + "loc": { + "start": { + "line": 68, + "column": 37 + }, + "end": { + "line": 68, + "column": 41 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2175, + "end": 2176, + "loc": { + "start": { + "line": 68, + "column": 41 + }, + "end": { + "line": 68, + "column": 42 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "client", + "start": 2176, + "end": 2182, + "loc": { + "start": { + "line": 68, + "column": 42 + }, + "end": { + "line": 68, + "column": 48 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2182, + "end": 2183, + "loc": { + "start": { + "line": 68, + "column": 48 + }, + "end": { + "line": 68, + "column": 49 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "casperRPC", + "start": 2183, + "end": 2192, + "loc": { + "start": { + "line": 68, + "column": 49 + }, + "end": { + "line": 68, + "column": 58 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2192, + "end": 2193, + "loc": { + "start": { + "line": 68, + "column": 58 + }, + "end": { + "line": 68, + "column": 59 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "getValidatorsInfo", + "start": 2193, + "end": 2210, + "loc": { + "start": { + "line": 68, + "column": 59 + }, + "end": { + "line": 68, + "column": 76 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2210, + "end": 2211, + "loc": { + "start": { + "line": 68, + "column": 76 + }, + "end": { + "line": 68, + "column": 77 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2211, + "end": 2212, + "loc": { + "start": { + "line": 68, + "column": 77 + }, + "end": { + "line": 68, + "column": 78 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 2221, + "end": 2224, + "loc": { + "start": { + "line": 69, + "column": 8 + }, + "end": { + "line": 69, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "validator", + "start": 2225, + "end": 2234, + "loc": { + "start": { + "line": 69, + "column": 12 + }, + "end": { + "line": 69, + "column": 21 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 2235, + "end": 2236, + "loc": { + "start": { + "line": 69, + "column": 22 + }, + "end": { + "line": 69, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "validatorsInfo", + "start": 2237, + "end": 2251, + "loc": { + "start": { + "line": 69, + "column": 24 + }, + "end": { + "line": 69, + "column": 38 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2251, + "end": 2252, + "loc": { + "start": { + "line": 69, + "column": 38 + }, + "end": { + "line": 69, + "column": 39 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "auction_state", + "start": 2252, + "end": 2265, + "loc": { + "start": { + "line": 69, + "column": 39 + }, + "end": { + "line": 69, + "column": 52 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2265, + "end": 2266, + "loc": { + "start": { + "line": 69, + "column": 52 + }, + "end": { + "line": 69, + "column": 53 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "bids", + "start": 2266, + "end": 2270, + "loc": { + "start": { + "line": 69, + "column": 53 + }, + "end": { + "line": 69, + "column": 57 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2270, + "end": 2271, + "loc": { + "start": { + "line": 69, + "column": 57 + }, + "end": { + "line": 69, + "column": 58 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "filter", + "start": 2271, + "end": 2277, + "loc": { + "start": { + "line": 69, + "column": 58 + }, + "end": { + "line": 69, + "column": 64 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2277, + "end": 2278, + "loc": { + "start": { + "line": 69, + "column": 64 + }, + "end": { + "line": 69, + "column": 65 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "validator", + "start": 2278, + "end": 2287, + "loc": { + "start": { + "line": 69, + "column": 65 + }, + "end": { + "line": 69, + "column": 74 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2288, + "end": 2290, + "loc": { + "start": { + "line": 69, + "column": 75 + }, + "end": { + "line": 69, + "column": 77 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2291, + "end": 2292, + "loc": { + "start": { + "line": 69, + "column": 78 + }, + "end": { + "line": 69, + "column": 79 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 2305, + "end": 2311, + "loc": { + "start": { + "line": 70, + "column": 12 + }, + "end": { + "line": 70, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "validator", + "start": 2312, + "end": 2321, + "loc": { + "start": { + "line": 70, + "column": 19 + }, + "end": { + "line": 70, + "column": 28 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2321, + "end": 2322, + "loc": { + "start": { + "line": 70, + "column": 28 + }, + "end": { + "line": 70, + "column": 29 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "public_key", + "start": 2322, + "end": 2332, + "loc": { + "start": { + "line": 70, + "column": 29 + }, + "end": { + "line": 70, + "column": 39 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "===", + "start": 2333, + "end": 2336, + "loc": { + "start": { + "line": 70, + "column": 40 + }, + "end": { + "line": 70, + "column": 43 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 2337, + "end": 2341, + "loc": { + "start": { + "line": 70, + "column": 44 + }, + "end": { + "line": 70, + "column": 48 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2341, + "end": 2342, + "loc": { + "start": { + "line": 70, + "column": 48 + }, + "end": { + "line": 70, + "column": 49 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "keyManager", + "start": 2342, + "end": 2352, + "loc": { + "start": { + "line": 70, + "column": 49 + }, + "end": { + "line": 70, + "column": 59 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2352, + "end": 2353, + "loc": { + "start": { + "line": 70, + "column": 59 + }, + "end": { + "line": 70, + "column": 60 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "activeKey", + "start": 2353, + "end": 2362, + "loc": { + "start": { + "line": 70, + "column": 60 + }, + "end": { + "line": 70, + "column": 69 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2371, + "end": 2372, + "loc": { + "start": { + "line": 71, + "column": 8 + }, + "end": { + "line": 71, + "column": 9 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2372, + "end": 2373, + "loc": { + "start": { + "line": 71, + "column": 9 + }, + "end": { + "line": 71, + "column": 10 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2373, + "end": 2374, + "loc": { + "start": { + "line": 71, + "column": 10 + }, + "end": { + "line": 71, + "column": 11 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 0, + "start": 2374, + "end": 2375, + "loc": { + "start": { + "line": 71, + "column": 11 + }, + "end": { + "line": 71, + "column": 12 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2375, + "end": 2376, + "loc": { + "start": { + "line": 71, + "column": 12 + }, + "end": { + "line": 71, + "column": 13 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 2385, + "end": 2387, + "loc": { + "start": { + "line": 72, + "column": 8 + }, + "end": { + "line": 72, + "column": 10 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2388, + "end": 2389, + "loc": { + "start": { + "line": 72, + "column": 11 + }, + "end": { + "line": 72, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "validator", + "start": 2389, + "end": 2398, + "loc": { + "start": { + "line": 72, + "column": 12 + }, + "end": { + "line": 72, + "column": 21 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2398, + "end": 2399, + "loc": { + "start": { + "line": 72, + "column": 21 + }, + "end": { + "line": 72, + "column": 22 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2400, + "end": 2401, + "loc": { + "start": { + "line": 72, + "column": 23 + }, + "end": { + "line": 72, + "column": 24 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 2414, + "end": 2420, + "loc": { + "start": { + "line": 73, + "column": 12 + }, + "end": { + "line": 73, + "column": 18 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2421, + "end": 2422, + "loc": { + "start": { + "line": 73, + "column": 19 + }, + "end": { + "line": 73, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "balance", + "start": 2439, + "end": 2446, + "loc": { + "start": { + "line": 74, + "column": 16 + }, + "end": { + "line": 74, + "column": 23 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2446, + "end": 2447, + "loc": { + "start": { + "line": 74, + "column": 23 + }, + "end": { + "line": 74, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CurrencyUtils", + "start": 2448, + "end": 2461, + "loc": { + "start": { + "line": 74, + "column": 25 + }, + "end": { + "line": 74, + "column": 38 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2461, + "end": 2462, + "loc": { + "start": { + "line": 74, + "column": 38 + }, + "end": { + "line": 74, + "column": 39 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "convertMotesToCasper", + "start": 2462, + "end": 2482, + "loc": { + "start": { + "line": 74, + "column": 39 + }, + "end": { + "line": 74, + "column": 59 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2482, + "end": 2483, + "loc": { + "start": { + "line": 74, + "column": 59 + }, + "end": { + "line": 74, + "column": 60 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "parseInt", + "start": 2483, + "end": 2491, + "loc": { + "start": { + "line": 74, + "column": 60 + }, + "end": { + "line": 74, + "column": 68 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2491, + "end": 2492, + "loc": { + "start": { + "line": 74, + "column": 68 + }, + "end": { + "line": 74, + "column": 69 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "validator", + "start": 2492, + "end": 2501, + "loc": { + "start": { + "line": 74, + "column": 69 + }, + "end": { + "line": 74, + "column": 78 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2501, + "end": 2502, + "loc": { + "start": { + "line": 74, + "column": 78 + }, + "end": { + "line": 74, + "column": 79 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "bid", + "start": 2502, + "end": 2505, + "loc": { + "start": { + "line": 74, + "column": 79 + }, + "end": { + "line": 74, + "column": 82 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2505, + "end": 2506, + "loc": { + "start": { + "line": 74, + "column": 82 + }, + "end": { + "line": 74, + "column": 83 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "staked_amount", + "start": 2506, + "end": 2519, + "loc": { + "start": { + "line": 74, + "column": 83 + }, + "end": { + "line": 74, + "column": 96 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2519, + "end": 2520, + "loc": { + "start": { + "line": 74, + "column": 96 + }, + "end": { + "line": 74, + "column": 97 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2520, + "end": 2521, + "loc": { + "start": { + "line": 74, + "column": 97 + }, + "end": { + "line": 74, + "column": 98 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2521, + "end": 2522, + "loc": { + "start": { + "line": 74, + "column": 98 + }, + "end": { + "line": 74, + "column": 99 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "commission", + "start": 2539, + "end": 2549, + "loc": { + "start": { + "line": 75, + "column": 16 + }, + "end": { + "line": 75, + "column": 26 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2549, + "end": 2550, + "loc": { + "start": { + "line": 75, + "column": 26 + }, + "end": { + "line": 75, + "column": 27 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "validator", + "start": 2551, + "end": 2560, + "loc": { + "start": { + "line": 75, + "column": 28 + }, + "end": { + "line": 75, + "column": 37 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2560, + "end": 2561, + "loc": { + "start": { + "line": 75, + "column": 37 + }, + "end": { + "line": 75, + "column": 38 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "bid", + "start": 2561, + "end": 2564, + "loc": { + "start": { + "line": 75, + "column": 38 + }, + "end": { + "line": 75, + "column": 41 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2564, + "end": 2565, + "loc": { + "start": { + "line": 75, + "column": 41 + }, + "end": { + "line": 75, + "column": 42 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "delegation_rate", + "start": 2565, + "end": 2580, + "loc": { + "start": { + "line": 75, + "column": 42 + }, + "end": { + "line": 75, + "column": 57 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2580, + "end": 2581, + "loc": { + "start": { + "line": 75, + "column": 57 + }, + "end": { + "line": 75, + "column": 58 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2594, + "end": 2595, + "loc": { + "start": { + "line": 76, + "column": 12 + }, + "end": { + "line": 76, + "column": 13 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2604, + "end": 2605, + "loc": { + "start": { + "line": 77, + "column": 8 + }, + "end": { + "line": 77, + "column": 9 + } + } + }, + { + "type": { + "label": "throw", + "keyword": "throw", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "throw", + "start": 2614, + "end": 2619, + "loc": { + "start": { + "line": 78, + "column": 8 + }, + "end": { + "line": 78, + "column": 13 + } + } + }, + { + "type": { + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "new", + "start": 2620, + "end": 2623, + "loc": { + "start": { + "line": 78, + "column": 14 + }, + "end": { + "line": 78, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "NoValidatorBalanceError", + "start": 2624, + "end": 2647, + "loc": { + "start": { + "line": 78, + "column": 18 + }, + "end": { + "line": 78, + "column": 41 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2647, + "end": 2648, + "loc": { + "start": { + "line": 78, + "column": 41 + }, + "end": { + "line": 78, + "column": 42 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2648, + "end": 2649, + "loc": { + "start": { + "line": 78, + "column": 42 + }, + "end": { + "line": 78, + "column": 43 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2654, + "end": 2655, + "loc": { + "start": { + "line": 79, + "column": 4 + }, + "end": { + "line": 79, + "column": 5 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2656, + "end": 2657, + "loc": { + "start": { + "line": 80, + "column": 0 + }, + "end": { + "line": 80, + "column": 1 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2657, + "end": 2657, + "loc": { + "start": { + "line": 80, + "column": 1 + }, + "end": { + "line": 80, + "column": 1 + } + } + } + ] +} \ No newline at end of file diff --git a/ast/source/services/clients/clientCasper.js.json b/ast/source/services/clients/clientCasper.js.json new file mode 100644 index 0000000..e3efa27 --- /dev/null +++ b/ast/source/services/clients/clientCasper.js.json @@ -0,0 +1,2012 @@ +{ + "type": "File", + "start": 0, + "end": 520, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 22, + "column": 1 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 520, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 22, + "column": 1 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 67, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 67 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 8, + "end": 20, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 20 + } + }, + "imported": { + "type": "Identifier", + "start": 8, + "end": 20, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 20 + }, + "identifierName": "CasperClient" + }, + "name": "CasperClient" + }, + "local": { + "type": "Identifier", + "start": 8, + "end": 20, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 20 + }, + "identifierName": "CasperClient" + }, + "name": "CasperClient" + } + }, + { + "type": "ImportSpecifier", + "start": 22, + "end": 44, + "loc": { + "start": { + "line": 1, + "column": 22 + }, + "end": { + "line": 1, + "column": 44 + } + }, + "imported": { + "type": "Identifier", + "start": 22, + "end": 44, + "loc": { + "start": { + "line": 1, + "column": 22 + }, + "end": { + "line": 1, + "column": 44 + }, + "identifierName": "CasperServiceByJsonRPC" + }, + "name": "CasperServiceByJsonRPC" + }, + "local": { + "type": "Identifier", + "start": 22, + "end": 44, + "loc": { + "start": { + "line": 1, + "column": 22 + }, + "end": { + "line": 1, + "column": 44 + }, + "identifierName": "CasperServiceByJsonRPC" + }, + "name": "CasperServiceByJsonRPC" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 51, + "end": 66, + "loc": { + "start": { + "line": 1, + "column": 51 + }, + "end": { + "line": 1, + "column": 66 + } + }, + "extra": { + "rawValue": "casper-js-sdk", + "raw": "\"casper-js-sdk\"" + }, + "value": "casper-js-sdk" + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * ClientCasper class\n * Contains the casper client and the casper rpc client\n ", + "start": 69, + "end": 154, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 155, + "end": 520, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 22, + "column": 1 + } + }, + "specifiers": [], + "source": null, + "declaration": { + "type": "ClassDeclaration", + "start": 162, + "end": 520, + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 22, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 168, + "end": 180, + "loc": { + "start": { + "line": 7, + "column": 13 + }, + "end": { + "line": 7, + "column": 25 + }, + "identifierName": "ClientCasper" + }, + "name": "ClientCasper", + "leadingComments": null + }, + "superClass": null, + "body": { + "type": "ClassBody", + "start": 181, + "end": 520, + "loc": { + "start": { + "line": 7, + "column": 26 + }, + "end": { + "line": 22, + "column": 1 + } + }, + "body": [ + { + "type": "ClassProperty", + "start": 220, + "end": 232, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 10, + "column": 16 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 220, + "end": 232, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 10, + "column": 16 + }, + "identifierName": "casperClient" + }, + "name": "casperClient", + "leadingComments": null, + "trailingComments": null + }, + "value": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "* @type {CasperClient} ", + "start": 188, + "end": 215, + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 9, + "column": 31 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "* @type {CasperServiceByJsonRPC} ", + "start": 237, + "end": 274, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 41 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 279, + "end": 288, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 13 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 279, + "end": 288, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 13 + }, + "identifierName": "casperRPC" + }, + "name": "casperRPC", + "leadingComments": null, + "trailingComments": null + }, + "value": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "* @type {CasperClient} ", + "start": 188, + "end": 215, + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 9, + "column": 31 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {CasperServiceByJsonRPC} ", + "start": 237, + "end": 274, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 41 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Constructor\n * @param {string} rpc - Url of the node rpc endpoint\n ", + "start": 294, + "end": 382, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 17, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 387, + "end": 518, + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 21, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 387, + "end": 398, + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 15 + }, + "identifierName": "constructor" + }, + "name": "constructor", + "leadingComments": null + }, + "kind": "constructor", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 399, + "end": 402, + "loc": { + "start": { + "line": 18, + "column": 16 + }, + "end": { + "line": 18, + "column": 19 + }, + "identifierName": "rpc" + }, + "name": "rpc" + } + ], + "body": { + "type": "BlockStatement", + "start": 404, + "end": 518, + "loc": { + "start": { + "line": 18, + "column": 21 + }, + "end": { + "line": 21, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 414, + "end": 455, + "loc": { + "start": { + "line": 19, + "column": 8 + }, + "end": { + "line": 19, + "column": 49 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 414, + "end": 455, + "loc": { + "start": { + "line": 19, + "column": 8 + }, + "end": { + "line": 19, + "column": 49 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 414, + "end": 431, + "loc": { + "start": { + "line": 19, + "column": 8 + }, + "end": { + "line": 19, + "column": 25 + } + }, + "object": { + "type": "ThisExpression", + "start": 414, + "end": 418, + "loc": { + "start": { + "line": 19, + "column": 8 + }, + "end": { + "line": 19, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 419, + "end": 431, + "loc": { + "start": { + "line": 19, + "column": 13 + }, + "end": { + "line": 19, + "column": 25 + }, + "identifierName": "casperClient" + }, + "name": "casperClient" + }, + "computed": false + }, + "right": { + "type": "NewExpression", + "start": 434, + "end": 455, + "loc": { + "start": { + "line": 19, + "column": 28 + }, + "end": { + "line": 19, + "column": 49 + } + }, + "callee": { + "type": "Identifier", + "start": 438, + "end": 450, + "loc": { + "start": { + "line": 19, + "column": 32 + }, + "end": { + "line": 19, + "column": 44 + }, + "identifierName": "CasperClient" + }, + "name": "CasperClient" + }, + "arguments": [ + { + "type": "Identifier", + "start": 451, + "end": 454, + "loc": { + "start": { + "line": 19, + "column": 45 + }, + "end": { + "line": 19, + "column": 48 + }, + "identifierName": "rpc" + }, + "name": "rpc" + } + ] + } + } + }, + { + "type": "ExpressionStatement", + "start": 464, + "end": 512, + "loc": { + "start": { + "line": 20, + "column": 8 + }, + "end": { + "line": 20, + "column": 56 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 464, + "end": 512, + "loc": { + "start": { + "line": 20, + "column": 8 + }, + "end": { + "line": 20, + "column": 56 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 464, + "end": 478, + "loc": { + "start": { + "line": 20, + "column": 8 + }, + "end": { + "line": 20, + "column": 22 + } + }, + "object": { + "type": "ThisExpression", + "start": 464, + "end": 468, + "loc": { + "start": { + "line": 20, + "column": 8 + }, + "end": { + "line": 20, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 469, + "end": 478, + "loc": { + "start": { + "line": 20, + "column": 13 + }, + "end": { + "line": 20, + "column": 22 + }, + "identifierName": "casperRPC" + }, + "name": "casperRPC" + }, + "computed": false + }, + "right": { + "type": "NewExpression", + "start": 481, + "end": 512, + "loc": { + "start": { + "line": 20, + "column": 25 + }, + "end": { + "line": 20, + "column": 56 + } + }, + "callee": { + "type": "Identifier", + "start": 485, + "end": 507, + "loc": { + "start": { + "line": 20, + "column": 29 + }, + "end": { + "line": 20, + "column": 51 + }, + "identifierName": "CasperServiceByJsonRPC" + }, + "name": "CasperServiceByJsonRPC" + }, + "arguments": [ + { + "type": "Identifier", + "start": 508, + "end": 511, + "loc": { + "start": { + "line": 20, + "column": 52 + }, + "end": { + "line": 20, + "column": 55 + }, + "identifierName": "rpc" + }, + "name": "rpc" + } + ] + } + } + } + ], + "directives": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Constructor\n * @param {string} rpc - Url of the node rpc endpoint\n ", + "start": 294, + "end": 382, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 17, + "column": 7 + } + } + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * ClientCasper class\n * Contains the casper client and the casper rpc client\n ", + "start": 69, + "end": 154, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * ClientCasper class\n * Contains the casper client and the casper rpc client\n ", + "start": 69, + "end": 154, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + } + } + ] + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\n * ClientCasper class\n * Contains the casper client and the casper rpc client\n ", + "start": 69, + "end": 154, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {CasperClient} ", + "start": 188, + "end": 215, + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 9, + "column": 31 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {CasperServiceByJsonRPC} ", + "start": 237, + "end": 274, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 41 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Constructor\n * @param {string} rpc - Url of the node rpc endpoint\n ", + "start": 294, + "end": 382, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 17, + "column": 7 + } + } + } + ], + "tokens": [ + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 0, + "end": 6, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7, + "end": 8, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CasperClient", + "start": 8, + "end": 20, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 20 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 20, + "end": 21, + "loc": { + "start": { + "line": 1, + "column": 20 + }, + "end": { + "line": 1, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CasperServiceByJsonRPC", + "start": 22, + "end": 44, + "loc": { + "start": { + "line": 1, + "column": 22 + }, + "end": { + "line": 1, + "column": 44 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 44, + "end": 45, + "loc": { + "start": { + "line": 1, + "column": 44 + }, + "end": { + "line": 1, + "column": 45 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 46, + "end": 50, + "loc": { + "start": { + "line": 1, + "column": 46 + }, + "end": { + "line": 1, + "column": 50 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "casper-js-sdk", + "start": 51, + "end": 66, + "loc": { + "start": { + "line": 1, + "column": 51 + }, + "end": { + "line": 1, + "column": 66 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 66, + "end": 67, + "loc": { + "start": { + "line": 1, + "column": 66 + }, + "end": { + "line": 1, + "column": 67 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * ClientCasper class\n * Contains the casper client and the casper rpc client\n ", + "start": 69, + "end": 154, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 155, + "end": 161, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 6 + } + } + }, + { + "type": { + "label": "class", + "keyword": "class", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "class", + "start": 162, + "end": 167, + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "ClientCasper", + "start": 168, + "end": 180, + "loc": { + "start": { + "line": 7, + "column": 13 + }, + "end": { + "line": 7, + "column": 25 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 181, + "end": 182, + "loc": { + "start": { + "line": 7, + "column": 26 + }, + "end": { + "line": 7, + "column": 27 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {CasperClient} ", + "start": 188, + "end": 215, + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 9, + "column": 31 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "casperClient", + "start": 220, + "end": 232, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 10, + "column": 16 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {CasperServiceByJsonRPC} ", + "start": 237, + "end": 274, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 41 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "casperRPC", + "start": 279, + "end": 288, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 13 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Constructor\n * @param {string} rpc - Url of the node rpc endpoint\n ", + "start": 294, + "end": 382, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 17, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "constructor", + "start": 387, + "end": 398, + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 15 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 398, + "end": 399, + "loc": { + "start": { + "line": 18, + "column": 15 + }, + "end": { + "line": 18, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "rpc", + "start": 399, + "end": 402, + "loc": { + "start": { + "line": 18, + "column": 16 + }, + "end": { + "line": 18, + "column": 19 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 402, + "end": 403, + "loc": { + "start": { + "line": 18, + "column": 19 + }, + "end": { + "line": 18, + "column": 20 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 404, + "end": 405, + "loc": { + "start": { + "line": 18, + "column": 21 + }, + "end": { + "line": 18, + "column": 22 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 414, + "end": 418, + "loc": { + "start": { + "line": 19, + "column": 8 + }, + "end": { + "line": 19, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 418, + "end": 419, + "loc": { + "start": { + "line": 19, + "column": 12 + }, + "end": { + "line": 19, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "casperClient", + "start": 419, + "end": 431, + "loc": { + "start": { + "line": 19, + "column": 13 + }, + "end": { + "line": 19, + "column": 25 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 432, + "end": 433, + "loc": { + "start": { + "line": 19, + "column": 26 + }, + "end": { + "line": 19, + "column": 27 + } + } + }, + { + "type": { + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "new", + "start": 434, + "end": 437, + "loc": { + "start": { + "line": 19, + "column": 28 + }, + "end": { + "line": 19, + "column": 31 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CasperClient", + "start": 438, + "end": 450, + "loc": { + "start": { + "line": 19, + "column": 32 + }, + "end": { + "line": 19, + "column": 44 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 450, + "end": 451, + "loc": { + "start": { + "line": 19, + "column": 44 + }, + "end": { + "line": 19, + "column": 45 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "rpc", + "start": 451, + "end": 454, + "loc": { + "start": { + "line": 19, + "column": 45 + }, + "end": { + "line": 19, + "column": 48 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 454, + "end": 455, + "loc": { + "start": { + "line": 19, + "column": 48 + }, + "end": { + "line": 19, + "column": 49 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 464, + "end": 468, + "loc": { + "start": { + "line": 20, + "column": 8 + }, + "end": { + "line": 20, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 468, + "end": 469, + "loc": { + "start": { + "line": 20, + "column": 12 + }, + "end": { + "line": 20, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "casperRPC", + "start": 469, + "end": 478, + "loc": { + "start": { + "line": 20, + "column": 13 + }, + "end": { + "line": 20, + "column": 22 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 479, + "end": 480, + "loc": { + "start": { + "line": 20, + "column": 23 + }, + "end": { + "line": 20, + "column": 24 + } + } + }, + { + "type": { + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "new", + "start": 481, + "end": 484, + "loc": { + "start": { + "line": 20, + "column": 25 + }, + "end": { + "line": 20, + "column": 28 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CasperServiceByJsonRPC", + "start": 485, + "end": 507, + "loc": { + "start": { + "line": 20, + "column": 29 + }, + "end": { + "line": 20, + "column": 51 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 507, + "end": 508, + "loc": { + "start": { + "line": 20, + "column": 51 + }, + "end": { + "line": 20, + "column": 52 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "rpc", + "start": 508, + "end": 511, + "loc": { + "start": { + "line": 20, + "column": 52 + }, + "end": { + "line": 20, + "column": 55 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 511, + "end": 512, + "loc": { + "start": { + "line": 20, + "column": 55 + }, + "end": { + "line": 20, + "column": 56 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 517, + "end": 518, + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 5 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 519, + "end": 520, + "loc": { + "start": { + "line": 22, + "column": 0 + }, + "end": { + "line": 22, + "column": 1 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 520, + "end": 520, + "loc": { + "start": { + "line": 22, + "column": 1 + }, + "end": { + "line": 22, + "column": 1 + } + } + } + ] +} \ No newline at end of file diff --git a/ast/source/services/clients/index.js.json b/ast/source/services/clients/index.js.json new file mode 100644 index 0000000..aabafba --- /dev/null +++ b/ast/source/services/clients/index.js.json @@ -0,0 +1,232 @@ +{ + "type": "File", + "start": 0, + "end": 31, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 31 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 31, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 31 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ExportAllDeclaration", + "start": 0, + "end": 31, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 31 + } + }, + "source": { + "type": "StringLiteral", + "start": 14, + "end": 30, + "loc": { + "start": { + "line": 1, + "column": 14 + }, + "end": { + "line": 1, + "column": 30 + } + }, + "extra": { + "rawValue": "./clientCasper", + "raw": "'./clientCasper'" + }, + "value": "./clientCasper" + } + } + ], + "directives": [] + }, + "comments": [], + "tokens": [ + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 0, + "end": 6, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 6 + } + } + }, + { + "type": { + "label": "*", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 10, + "updateContext": null + }, + "value": "*", + "start": 7, + "end": 8, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 9, + "end": 13, + "loc": { + "start": { + "line": 1, + "column": 9 + }, + "end": { + "line": 1, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./clientCasper", + "start": 14, + "end": 30, + "loc": { + "start": { + "line": 1, + "column": 14 + }, + "end": { + "line": 1, + "column": 30 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 30, + "end": 31, + "loc": { + "start": { + "line": 1, + "column": 30 + }, + "end": { + "line": 1, + "column": 31 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 31, + "end": 31, + "loc": { + "start": { + "line": 1, + "column": 31 + }, + "end": { + "line": 1, + "column": 31 + } + } + } + ] +} \ No newline at end of file diff --git a/ast/source/services/deploys/abstractSmartContractDeployParameters.js.json b/ast/source/services/deploys/abstractSmartContractDeployParameters.js.json new file mode 100644 index 0000000..50a0f69 --- /dev/null +++ b/ast/source/services/deploys/abstractSmartContractDeployParameters.js.json @@ -0,0 +1,3030 @@ +{ + "type": "File", + "start": 0, + "end": 1346, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 52, + "column": 1 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 1346, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 52, + "column": 1 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 41, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 41 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 8, + "end": 18, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 18 + } + }, + "imported": { + "type": "Identifier", + "start": 8, + "end": 18, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 18 + }, + "identifierName": "DeployUtil" + }, + "name": "DeployUtil" + }, + "local": { + "type": "Identifier", + "start": 8, + "end": 18, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 18 + }, + "identifierName": "DeployUtil" + }, + "name": "DeployUtil" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 25, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 25 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "extra": { + "rawValue": "casper-js-sdk", + "raw": "\"casper-js-sdk\"" + }, + "value": "casper-js-sdk" + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * AbstractSmartContractDeployParameters class\n * Abstract class used to define specifics DeployParameters\n ", + "start": 43, + "end": 157, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 158, + "end": 1346, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 52, + "column": 1 + } + }, + "specifiers": [], + "source": null, + "declaration": { + "type": "ClassDeclaration", + "start": 165, + "end": 1346, + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 52, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 171, + "end": 208, + "loc": { + "start": { + "line": 7, + "column": 13 + }, + "end": { + "line": 7, + "column": 50 + }, + "identifierName": "AbstractSmartContractDeployParameters" + }, + "name": "AbstractSmartContractDeployParameters", + "leadingComments": null + }, + "superClass": null, + "body": { + "type": "ClassBody", + "start": 209, + "end": 1346, + "loc": { + "start": { + "line": 7, + "column": 51 + }, + "end": { + "line": 52, + "column": 1 + } + }, + "body": [ + { + "type": "ClassMethod", + "start": 347, + "end": 420, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 15, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 351, + "end": 363, + "loc": { + "start": { + "line": 13, + "column": 8 + }, + "end": { + "line": 13, + "column": 20 + }, + "identifierName": "deployParams" + }, + "name": "deployParams" + }, + "kind": "get", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 366, + "end": 420, + "loc": { + "start": { + "line": 13, + "column": 23 + }, + "end": { + "line": 15, + "column": 5 + } + }, + "body": [ + { + "type": "ThrowStatement", + "start": 376, + "end": 414, + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 46 + } + }, + "argument": { + "type": "StringLiteral", + "start": 382, + "end": 414, + "loc": { + "start": { + "line": 14, + "column": 14 + }, + "end": { + "line": 14, + "column": 46 + } + }, + "extra": { + "rawValue": "You must implement this method", + "raw": "\"You must implement this method\"" + }, + "value": "You must implement this method" + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Get the deployParams deploy argument\n *\n * @return {DeployUtil.DeployParams} - Return a DeployParams\n ", + "start": 215, + "end": 342, + "loc": { + "start": { + "line": 8, + "column": 4 + }, + "end": { + "line": 12, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Get the session deploy argument\n *\n * @return {DeployUtil.ExecutableDeployItem} - Return a session with a SmartContract stored by hash on the network\n ", + "start": 426, + "end": 602, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 21, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 607, + "end": 675, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 24, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 611, + "end": 618, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 15 + }, + "identifierName": "session" + }, + "name": "session" + }, + "kind": "get", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 621, + "end": 675, + "loc": { + "start": { + "line": 22, + "column": 18 + }, + "end": { + "line": 24, + "column": 5 + } + }, + "body": [ + { + "type": "ThrowStatement", + "start": 631, + "end": 669, + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 46 + } + }, + "argument": { + "type": "StringLiteral", + "start": 637, + "end": 669, + "loc": { + "start": { + "line": 23, + "column": 14 + }, + "end": { + "line": 23, + "column": 46 + } + }, + "extra": { + "rawValue": "You must implement this method", + "raw": "\"You must implement this method\"" + }, + "value": "You must implement this method" + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Get the session deploy argument\n *\n * @return {DeployUtil.ExecutableDeployItem} - Return a session with a SmartContract stored by hash on the network\n ", + "start": 426, + "end": 602, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 21, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Get the payment deploy argument\n *\n * @return {DeployUtil.ExecutableDeployItem} - Return a standard payment\n ", + "start": 681, + "end": 815, + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 30, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 820, + "end": 888, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 33, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 824, + "end": 831, + "loc": { + "start": { + "line": 31, + "column": 8 + }, + "end": { + "line": 31, + "column": 15 + }, + "identifierName": "payment" + }, + "name": "payment" + }, + "kind": "get", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 834, + "end": 888, + "loc": { + "start": { + "line": 31, + "column": 18 + }, + "end": { + "line": 33, + "column": 5 + } + }, + "body": [ + { + "type": "ThrowStatement", + "start": 844, + "end": 882, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 46 + } + }, + "argument": { + "type": "StringLiteral", + "start": 850, + "end": 882, + "loc": { + "start": { + "line": 32, + "column": 14 + }, + "end": { + "line": 32, + "column": 46 + } + }, + "extra": { + "rawValue": "You must implement this method", + "raw": "\"You must implement this method\"" + }, + "value": "You must implement this method" + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Get the payment deploy argument\n *\n * @return {DeployUtil.ExecutableDeployItem} - Return a standard payment\n ", + "start": 681, + "end": 815, + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 30, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Get a DeployResult constructor\n *\n * @return {DeployResult.constructor} - Return the constructor of a given DeployResult\n ", + "start": 894, + "end": 1041, + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 39, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 1046, + "end": 1119, + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 42, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1050, + "end": 1062, + "loc": { + "start": { + "line": 40, + "column": 8 + }, + "end": { + "line": 40, + "column": 20 + }, + "identifierName": "deployResult" + }, + "name": "deployResult" + }, + "kind": "get", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 1065, + "end": 1119, + "loc": { + "start": { + "line": 40, + "column": 23 + }, + "end": { + "line": 42, + "column": 5 + } + }, + "body": [ + { + "type": "ThrowStatement", + "start": 1075, + "end": 1113, + "loc": { + "start": { + "line": 41, + "column": 8 + }, + "end": { + "line": 41, + "column": 46 + } + }, + "argument": { + "type": "StringLiteral", + "start": 1081, + "end": 1113, + "loc": { + "start": { + "line": 41, + "column": 14 + }, + "end": { + "line": 41, + "column": 46 + } + }, + "extra": { + "rawValue": "You must implement this method", + "raw": "\"You must implement this method\"" + }, + "value": "You must implement this method" + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Get a DeployResult constructor\n *\n * @return {DeployResult.constructor} - Return the constructor of a given DeployResult\n ", + "start": 894, + "end": 1041, + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 39, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Create a unsigned Deploy object\n *\n * @return {Deploy} - Return a deploy object\n ", + "start": 1125, + "end": 1231, + "loc": { + "start": { + "line": 44, + "column": 4 + }, + "end": { + "line": 48, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 1236, + "end": 1344, + "loc": { + "start": { + "line": 49, + "column": 4 + }, + "end": { + "line": 51, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1240, + "end": 1250, + "loc": { + "start": { + "line": 49, + "column": 8 + }, + "end": { + "line": 49, + "column": 18 + }, + "identifierName": "makeDeploy" + }, + "name": "makeDeploy" + }, + "kind": "get", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 1253, + "end": 1344, + "loc": { + "start": { + "line": 49, + "column": 21 + }, + "end": { + "line": 51, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 1263, + "end": 1338, + "loc": { + "start": { + "line": 50, + "column": 8 + }, + "end": { + "line": 50, + "column": 83 + } + }, + "argument": { + "type": "CallExpression", + "start": 1270, + "end": 1338, + "loc": { + "start": { + "line": 50, + "column": 15 + }, + "end": { + "line": 50, + "column": 83 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1270, + "end": 1291, + "loc": { + "start": { + "line": 50, + "column": 15 + }, + "end": { + "line": 50, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 1270, + "end": 1280, + "loc": { + "start": { + "line": 50, + "column": 15 + }, + "end": { + "line": 50, + "column": 25 + }, + "identifierName": "DeployUtil" + }, + "name": "DeployUtil" + }, + "property": { + "type": "Identifier", + "start": 1281, + "end": 1291, + "loc": { + "start": { + "line": 50, + "column": 26 + }, + "end": { + "line": 50, + "column": 36 + }, + "identifierName": "makeDeploy" + }, + "name": "makeDeploy" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 1292, + "end": 1309, + "loc": { + "start": { + "line": 50, + "column": 37 + }, + "end": { + "line": 50, + "column": 54 + } + }, + "object": { + "type": "ThisExpression", + "start": 1292, + "end": 1296, + "loc": { + "start": { + "line": 50, + "column": 37 + }, + "end": { + "line": 50, + "column": 41 + } + } + }, + "property": { + "type": "Identifier", + "start": 1297, + "end": 1309, + "loc": { + "start": { + "line": 50, + "column": 42 + }, + "end": { + "line": 50, + "column": 54 + }, + "identifierName": "deployParams" + }, + "name": "deployParams" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 1311, + "end": 1323, + "loc": { + "start": { + "line": 50, + "column": 56 + }, + "end": { + "line": 50, + "column": 68 + } + }, + "object": { + "type": "ThisExpression", + "start": 1311, + "end": 1315, + "loc": { + "start": { + "line": 50, + "column": 56 + }, + "end": { + "line": 50, + "column": 60 + } + } + }, + "property": { + "type": "Identifier", + "start": 1316, + "end": 1323, + "loc": { + "start": { + "line": 50, + "column": 61 + }, + "end": { + "line": 50, + "column": 68 + }, + "identifierName": "session" + }, + "name": "session" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 1325, + "end": 1337, + "loc": { + "start": { + "line": 50, + "column": 70 + }, + "end": { + "line": 50, + "column": 82 + } + }, + "object": { + "type": "ThisExpression", + "start": 1325, + "end": 1329, + "loc": { + "start": { + "line": 50, + "column": 70 + }, + "end": { + "line": 50, + "column": 74 + } + } + }, + "property": { + "type": "Identifier", + "start": 1330, + "end": 1337, + "loc": { + "start": { + "line": 50, + "column": 75 + }, + "end": { + "line": 50, + "column": 82 + }, + "identifierName": "payment" + }, + "name": "payment" + }, + "computed": false + } + ] + } + } + ], + "directives": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Create a unsigned Deploy object\n *\n * @return {Deploy} - Return a deploy object\n ", + "start": 1125, + "end": 1231, + "loc": { + "start": { + "line": 44, + "column": 4 + }, + "end": { + "line": 48, + "column": 7 + } + } + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * AbstractSmartContractDeployParameters class\n * Abstract class used to define specifics DeployParameters\n ", + "start": 43, + "end": 157, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * AbstractSmartContractDeployParameters class\n * Abstract class used to define specifics DeployParameters\n ", + "start": 43, + "end": 157, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + } + } + ] + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\n * AbstractSmartContractDeployParameters class\n * Abstract class used to define specifics DeployParameters\n ", + "start": 43, + "end": 157, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Get the deployParams deploy argument\n *\n * @return {DeployUtil.DeployParams} - Return a DeployParams\n ", + "start": 215, + "end": 342, + "loc": { + "start": { + "line": 8, + "column": 4 + }, + "end": { + "line": 12, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Get the session deploy argument\n *\n * @return {DeployUtil.ExecutableDeployItem} - Return a session with a SmartContract stored by hash on the network\n ", + "start": 426, + "end": 602, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 21, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Get the payment deploy argument\n *\n * @return {DeployUtil.ExecutableDeployItem} - Return a standard payment\n ", + "start": 681, + "end": 815, + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 30, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Get a DeployResult constructor\n *\n * @return {DeployResult.constructor} - Return the constructor of a given DeployResult\n ", + "start": 894, + "end": 1041, + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 39, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Create a unsigned Deploy object\n *\n * @return {Deploy} - Return a deploy object\n ", + "start": 1125, + "end": 1231, + "loc": { + "start": { + "line": 44, + "column": 4 + }, + "end": { + "line": 48, + "column": 7 + } + } + } + ], + "tokens": [ + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 0, + "end": 6, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7, + "end": 8, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "DeployUtil", + "start": 8, + "end": 18, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 18 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 18, + "end": 19, + "loc": { + "start": { + "line": 1, + "column": 18 + }, + "end": { + "line": 1, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 20, + "end": 24, + "loc": { + "start": { + "line": 1, + "column": 20 + }, + "end": { + "line": 1, + "column": 24 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "casper-js-sdk", + "start": 25, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 25 + }, + "end": { + "line": 1, + "column": 40 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 40, + "end": 41, + "loc": { + "start": { + "line": 1, + "column": 40 + }, + "end": { + "line": 1, + "column": 41 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * AbstractSmartContractDeployParameters class\n * Abstract class used to define specifics DeployParameters\n ", + "start": 43, + "end": 157, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 158, + "end": 164, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 6 + } + } + }, + { + "type": { + "label": "class", + "keyword": "class", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "class", + "start": 165, + "end": 170, + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "AbstractSmartContractDeployParameters", + "start": 171, + "end": 208, + "loc": { + "start": { + "line": 7, + "column": 13 + }, + "end": { + "line": 7, + "column": 50 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 209, + "end": 210, + "loc": { + "start": { + "line": 7, + "column": 51 + }, + "end": { + "line": 7, + "column": 52 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Get the deployParams deploy argument\n *\n * @return {DeployUtil.DeployParams} - Return a DeployParams\n ", + "start": 215, + "end": 342, + "loc": { + "start": { + "line": 8, + "column": 4 + }, + "end": { + "line": 12, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "get", + "start": 347, + "end": 350, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "deployParams", + "start": 351, + "end": 363, + "loc": { + "start": { + "line": 13, + "column": 8 + }, + "end": { + "line": 13, + "column": 20 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 363, + "end": 364, + "loc": { + "start": { + "line": 13, + "column": 20 + }, + "end": { + "line": 13, + "column": 21 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 364, + "end": 365, + "loc": { + "start": { + "line": 13, + "column": 21 + }, + "end": { + "line": 13, + "column": 22 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 366, + "end": 367, + "loc": { + "start": { + "line": 13, + "column": 23 + }, + "end": { + "line": 13, + "column": 24 + } + } + }, + { + "type": { + "label": "throw", + "keyword": "throw", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "throw", + "start": 376, + "end": 381, + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "You must implement this method", + "start": 382, + "end": 414, + "loc": { + "start": { + "line": 14, + "column": 14 + }, + "end": { + "line": 14, + "column": 46 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 419, + "end": 420, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Get the session deploy argument\n *\n * @return {DeployUtil.ExecutableDeployItem} - Return a session with a SmartContract stored by hash on the network\n ", + "start": 426, + "end": 602, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 21, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "get", + "start": 607, + "end": 610, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "session", + "start": 611, + "end": 618, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 15 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 618, + "end": 619, + "loc": { + "start": { + "line": 22, + "column": 15 + }, + "end": { + "line": 22, + "column": 16 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 619, + "end": 620, + "loc": { + "start": { + "line": 22, + "column": 16 + }, + "end": { + "line": 22, + "column": 17 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 621, + "end": 622, + "loc": { + "start": { + "line": 22, + "column": 18 + }, + "end": { + "line": 22, + "column": 19 + } + } + }, + { + "type": { + "label": "throw", + "keyword": "throw", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "throw", + "start": 631, + "end": 636, + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "You must implement this method", + "start": 637, + "end": 669, + "loc": { + "start": { + "line": 23, + "column": 14 + }, + "end": { + "line": 23, + "column": 46 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 674, + "end": 675, + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Get the payment deploy argument\n *\n * @return {DeployUtil.ExecutableDeployItem} - Return a standard payment\n ", + "start": 681, + "end": 815, + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 30, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "get", + "start": 820, + "end": 823, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "payment", + "start": 824, + "end": 831, + "loc": { + "start": { + "line": 31, + "column": 8 + }, + "end": { + "line": 31, + "column": 15 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 831, + "end": 832, + "loc": { + "start": { + "line": 31, + "column": 15 + }, + "end": { + "line": 31, + "column": 16 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 832, + "end": 833, + "loc": { + "start": { + "line": 31, + "column": 16 + }, + "end": { + "line": 31, + "column": 17 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 834, + "end": 835, + "loc": { + "start": { + "line": 31, + "column": 18 + }, + "end": { + "line": 31, + "column": 19 + } + } + }, + { + "type": { + "label": "throw", + "keyword": "throw", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "throw", + "start": 844, + "end": 849, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "You must implement this method", + "start": 850, + "end": 882, + "loc": { + "start": { + "line": 32, + "column": 14 + }, + "end": { + "line": 32, + "column": 46 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 887, + "end": 888, + "loc": { + "start": { + "line": 33, + "column": 4 + }, + "end": { + "line": 33, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Get a DeployResult constructor\n *\n * @return {DeployResult.constructor} - Return the constructor of a given DeployResult\n ", + "start": 894, + "end": 1041, + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 39, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "get", + "start": 1046, + "end": 1049, + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 40, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "deployResult", + "start": 1050, + "end": 1062, + "loc": { + "start": { + "line": 40, + "column": 8 + }, + "end": { + "line": 40, + "column": 20 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1062, + "end": 1063, + "loc": { + "start": { + "line": 40, + "column": 20 + }, + "end": { + "line": 40, + "column": 21 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1063, + "end": 1064, + "loc": { + "start": { + "line": 40, + "column": 21 + }, + "end": { + "line": 40, + "column": 22 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1065, + "end": 1066, + "loc": { + "start": { + "line": 40, + "column": 23 + }, + "end": { + "line": 40, + "column": 24 + } + } + }, + { + "type": { + "label": "throw", + "keyword": "throw", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "throw", + "start": 1075, + "end": 1080, + "loc": { + "start": { + "line": 41, + "column": 8 + }, + "end": { + "line": 41, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "You must implement this method", + "start": 1081, + "end": 1113, + "loc": { + "start": { + "line": 41, + "column": 14 + }, + "end": { + "line": 41, + "column": 46 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1118, + "end": 1119, + "loc": { + "start": { + "line": 42, + "column": 4 + }, + "end": { + "line": 42, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Create a unsigned Deploy object\n *\n * @return {Deploy} - Return a deploy object\n ", + "start": 1125, + "end": 1231, + "loc": { + "start": { + "line": 44, + "column": 4 + }, + "end": { + "line": 48, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "get", + "start": 1236, + "end": 1239, + "loc": { + "start": { + "line": 49, + "column": 4 + }, + "end": { + "line": 49, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "makeDeploy", + "start": 1240, + "end": 1250, + "loc": { + "start": { + "line": 49, + "column": 8 + }, + "end": { + "line": 49, + "column": 18 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1250, + "end": 1251, + "loc": { + "start": { + "line": 49, + "column": 18 + }, + "end": { + "line": 49, + "column": 19 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1251, + "end": 1252, + "loc": { + "start": { + "line": 49, + "column": 19 + }, + "end": { + "line": 49, + "column": 20 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1253, + "end": 1254, + "loc": { + "start": { + "line": 49, + "column": 21 + }, + "end": { + "line": 49, + "column": 22 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 1263, + "end": 1269, + "loc": { + "start": { + "line": 50, + "column": 8 + }, + "end": { + "line": 50, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "DeployUtil", + "start": 1270, + "end": 1280, + "loc": { + "start": { + "line": 50, + "column": 15 + }, + "end": { + "line": 50, + "column": 25 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1280, + "end": 1281, + "loc": { + "start": { + "line": 50, + "column": 25 + }, + "end": { + "line": 50, + "column": 26 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "makeDeploy", + "start": 1281, + "end": 1291, + "loc": { + "start": { + "line": 50, + "column": 26 + }, + "end": { + "line": 50, + "column": 36 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1291, + "end": 1292, + "loc": { + "start": { + "line": 50, + "column": 36 + }, + "end": { + "line": 50, + "column": 37 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 1292, + "end": 1296, + "loc": { + "start": { + "line": 50, + "column": 37 + }, + "end": { + "line": 50, + "column": 41 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1296, + "end": 1297, + "loc": { + "start": { + "line": 50, + "column": 41 + }, + "end": { + "line": 50, + "column": 42 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "deployParams", + "start": 1297, + "end": 1309, + "loc": { + "start": { + "line": 50, + "column": 42 + }, + "end": { + "line": 50, + "column": 54 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1309, + "end": 1310, + "loc": { + "start": { + "line": 50, + "column": 54 + }, + "end": { + "line": 50, + "column": 55 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 1311, + "end": 1315, + "loc": { + "start": { + "line": 50, + "column": 56 + }, + "end": { + "line": 50, + "column": 60 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1315, + "end": 1316, + "loc": { + "start": { + "line": 50, + "column": 60 + }, + "end": { + "line": 50, + "column": 61 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "session", + "start": 1316, + "end": 1323, + "loc": { + "start": { + "line": 50, + "column": 61 + }, + "end": { + "line": 50, + "column": 68 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1323, + "end": 1324, + "loc": { + "start": { + "line": 50, + "column": 68 + }, + "end": { + "line": 50, + "column": 69 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 1325, + "end": 1329, + "loc": { + "start": { + "line": 50, + "column": 70 + }, + "end": { + "line": 50, + "column": 74 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1329, + "end": 1330, + "loc": { + "start": { + "line": 50, + "column": 74 + }, + "end": { + "line": 50, + "column": 75 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "payment", + "start": 1330, + "end": 1337, + "loc": { + "start": { + "line": 50, + "column": 75 + }, + "end": { + "line": 50, + "column": 82 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1337, + "end": 1338, + "loc": { + "start": { + "line": 50, + "column": 82 + }, + "end": { + "line": 50, + "column": 83 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1343, + "end": 1344, + "loc": { + "start": { + "line": 51, + "column": 4 + }, + "end": { + "line": 51, + "column": 5 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1345, + "end": 1346, + "loc": { + "start": { + "line": 52, + "column": 0 + }, + "end": { + "line": 52, + "column": 1 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1346, + "end": 1346, + "loc": { + "start": { + "line": 52, + "column": 1 + }, + "end": { + "line": 52, + "column": 1 + } + } + } + ] +} \ No newline at end of file diff --git a/ast/source/services/deploys/abstractSmartContractStoredByHashDeployParameters.js.json b/ast/source/services/deploys/abstractSmartContractStoredByHashDeployParameters.js.json new file mode 100644 index 0000000..f2f4b17 --- /dev/null +++ b/ast/source/services/deploys/abstractSmartContractStoredByHashDeployParameters.js.json @@ -0,0 +1,7520 @@ +{ + "type": "File", + "start": 0, + "end": 2361, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 75, + "column": 1 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 2361, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 75, + "column": 1 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 94, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 94 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 8, + "end": 45, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 45 + } + }, + "imported": { + "type": "Identifier", + "start": 8, + "end": 45, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 45 + }, + "identifierName": "AbstractSmartContractDeployParameters" + }, + "name": "AbstractSmartContractDeployParameters" + }, + "local": { + "type": "Identifier", + "start": 8, + "end": 45, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 45 + }, + "identifierName": "AbstractSmartContractDeployParameters" + }, + "name": "AbstractSmartContractDeployParameters" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 52, + "end": 93, + "loc": { + "start": { + "line": 1, + "column": 52 + }, + "end": { + "line": 1, + "column": 93 + } + }, + "extra": { + "rawValue": "./abstractSmartContractDeployParameters", + "raw": "\"./abstractSmartContractDeployParameters\"" + }, + "value": "./abstractSmartContractDeployParameters" + } + }, + { + "type": "ImportDeclaration", + "start": 95, + "end": 149, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 54 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 103, + "end": 114, + "loc": { + "start": { + "line": 2, + "column": 8 + }, + "end": { + "line": 2, + "column": 19 + } + }, + "imported": { + "type": "Identifier", + "start": 103, + "end": 114, + "loc": { + "start": { + "line": 2, + "column": 8 + }, + "end": { + "line": 2, + "column": 19 + }, + "identifierName": "CLPublicKey" + }, + "name": "CLPublicKey" + }, + "local": { + "type": "Identifier", + "start": 103, + "end": 114, + "loc": { + "start": { + "line": 2, + "column": 8 + }, + "end": { + "line": 2, + "column": 19 + }, + "identifierName": "CLPublicKey" + }, + "name": "CLPublicKey" + } + }, + { + "type": "ImportSpecifier", + "start": 116, + "end": 126, + "loc": { + "start": { + "line": 2, + "column": 21 + }, + "end": { + "line": 2, + "column": 31 + } + }, + "imported": { + "type": "Identifier", + "start": 116, + "end": 126, + "loc": { + "start": { + "line": 2, + "column": 21 + }, + "end": { + "line": 2, + "column": 31 + }, + "identifierName": "DeployUtil" + }, + "name": "DeployUtil" + }, + "local": { + "type": "Identifier", + "start": 116, + "end": 126, + "loc": { + "start": { + "line": 2, + "column": 21 + }, + "end": { + "line": 2, + "column": 31 + }, + "identifierName": "DeployUtil" + }, + "name": "DeployUtil" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 133, + "end": 148, + "loc": { + "start": { + "line": 2, + "column": 38 + }, + "end": { + "line": 2, + "column": 53 + } + }, + "extra": { + "rawValue": "casper-js-sdk", + "raw": "\"casper-js-sdk\"" + }, + "value": "casper-js-sdk" + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * AbstractSmartContractStoredByHashDeployParameters class\n * Abstract class used to defined specific DeployParameters for SmartContracts stored by hash on the network\n ", + "start": 151, + "end": 326, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 327, + "end": 2361, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 75, + "column": 1 + } + }, + "specifiers": [], + "source": null, + "declaration": { + "type": "ClassDeclaration", + "start": 334, + "end": 2361, + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 75, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 340, + "end": 389, + "loc": { + "start": { + "line": 8, + "column": 13 + }, + "end": { + "line": 8, + "column": 62 + }, + "identifierName": "AbstractSmartContractStoredByHashDeployParameters" + }, + "name": "AbstractSmartContractStoredByHashDeployParameters", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 398, + "end": 435, + "loc": { + "start": { + "line": 8, + "column": 71 + }, + "end": { + "line": 8, + "column": 108 + }, + "identifierName": "AbstractSmartContractDeployParameters" + }, + "name": "AbstractSmartContractDeployParameters" + }, + "body": { + "type": "ClassBody", + "start": 436, + "end": 2361, + "loc": { + "start": { + "line": 8, + "column": 109 + }, + "end": { + "line": 75, + "column": 1 + } + }, + "body": [ + { + "type": "ClassProperty", + "start": 468, + "end": 478, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 10, + "column": 14 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 468, + "end": 477, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 10, + "column": 13 + }, + "identifierName": "activeKey" + }, + "name": "activeKey", + "leadingComments": null + }, + "value": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 442, + "end": 463, + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 9, + "column": 25 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 483, + "end": 504, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 25 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 509, + "end": 517, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 12 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 509, + "end": 516, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 11 + }, + "identifierName": "network" + }, + "name": "network", + "leadingComments": null + }, + "value": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 483, + "end": 504, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 25 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 522, + "end": 543, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 25 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 548, + "end": 553, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 9 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 548, + "end": 552, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 8 + }, + "identifierName": "hash" + }, + "name": "hash", + "leadingComments": null + }, + "value": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 522, + "end": 543, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 25 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 558, + "end": 579, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 25 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 584, + "end": 595, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 16, + "column": 15 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 584, + "end": 594, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 16, + "column": 14 + }, + "identifierName": "entrypoint" + }, + "name": "entrypoint", + "leadingComments": null + }, + "value": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 558, + "end": 579, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 25 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "* @type {DeployUtil.RuntimeArgs} ", + "start": 600, + "end": 637, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 41 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 642, + "end": 647, + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 9 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 642, + "end": 646, + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 8 + }, + "identifierName": "args" + }, + "name": "args", + "leadingComments": null + }, + "value": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "* @type {DeployUtil.RuntimeArgs} ", + "start": 600, + "end": 637, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 41 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "* @type {number} ", + "start": 652, + "end": 673, + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 25 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 678, + "end": 682, + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 8 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 678, + "end": 681, + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 7 + }, + "identifierName": "fee" + }, + "name": "fee", + "leadingComments": null + }, + "value": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "* @type {number} ", + "start": 652, + "end": 673, + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 25 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {string} activeKey - Current active key in the public hex format\n * @param {string} network - Current network to execute the deployment\n * @param {string} hash - Current hash of the stored SmartContract\n * @param {string} entrypoint - Entrypoint of the SmartContract\n * @param {DeployUtil.RuntimeArgs} args - Arguments of the SmartContract\n * @param {number} fee - Runtime fee for the given SmartContract operation\n ", + "start": 688, + "end": 1174, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 31, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 1179, + "end": 1445, + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 40, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1179, + "end": 1190, + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 32, + "column": 15 + }, + "identifierName": "constructor" + }, + "name": "constructor", + "leadingComments": null + }, + "kind": "constructor", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1191, + "end": 1200, + "loc": { + "start": { + "line": 32, + "column": 16 + }, + "end": { + "line": 32, + "column": 25 + }, + "identifierName": "activeKey" + }, + "name": "activeKey" + }, + { + "type": "Identifier", + "start": 1202, + "end": 1209, + "loc": { + "start": { + "line": 32, + "column": 27 + }, + "end": { + "line": 32, + "column": 34 + }, + "identifierName": "network" + }, + "name": "network" + }, + { + "type": "Identifier", + "start": 1211, + "end": 1215, + "loc": { + "start": { + "line": 32, + "column": 36 + }, + "end": { + "line": 32, + "column": 40 + }, + "identifierName": "hash" + }, + "name": "hash" + }, + { + "type": "Identifier", + "start": 1217, + "end": 1227, + "loc": { + "start": { + "line": 32, + "column": 42 + }, + "end": { + "line": 32, + "column": 52 + }, + "identifierName": "entrypoint" + }, + "name": "entrypoint" + }, + { + "type": "Identifier", + "start": 1229, + "end": 1233, + "loc": { + "start": { + "line": 32, + "column": 54 + }, + "end": { + "line": 32, + "column": 58 + }, + "identifierName": "args" + }, + "name": "args" + }, + { + "type": "Identifier", + "start": 1235, + "end": 1238, + "loc": { + "start": { + "line": 32, + "column": 60 + }, + "end": { + "line": 32, + "column": 63 + }, + "identifierName": "fee" + }, + "name": "fee" + } + ], + "body": { + "type": "BlockStatement", + "start": 1240, + "end": 1445, + "loc": { + "start": { + "line": 32, + "column": 65 + }, + "end": { + "line": 40, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1250, + "end": 1257, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 33, + "column": 15 + } + }, + "expression": { + "type": "CallExpression", + "start": 1250, + "end": 1257, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 33, + "column": 15 + } + }, + "callee": { + "type": "Super", + "start": 1250, + "end": 1255, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 33, + "column": 13 + } + } + }, + "arguments": [] + } + }, + { + "type": "ExpressionStatement", + "start": 1266, + "end": 1293, + "loc": { + "start": { + "line": 34, + "column": 8 + }, + "end": { + "line": 34, + "column": 35 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1266, + "end": 1292, + "loc": { + "start": { + "line": 34, + "column": 8 + }, + "end": { + "line": 34, + "column": 34 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 1266, + "end": 1280, + "loc": { + "start": { + "line": 34, + "column": 8 + }, + "end": { + "line": 34, + "column": 22 + } + }, + "object": { + "type": "ThisExpression", + "start": 1266, + "end": 1270, + "loc": { + "start": { + "line": 34, + "column": 8 + }, + "end": { + "line": 34, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 1271, + "end": 1280, + "loc": { + "start": { + "line": 34, + "column": 13 + }, + "end": { + "line": 34, + "column": 22 + }, + "identifierName": "activeKey" + }, + "name": "activeKey" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 1283, + "end": 1292, + "loc": { + "start": { + "line": 34, + "column": 25 + }, + "end": { + "line": 34, + "column": 34 + }, + "identifierName": "activeKey" + }, + "name": "activeKey" + } + } + }, + { + "type": "ExpressionStatement", + "start": 1302, + "end": 1325, + "loc": { + "start": { + "line": 35, + "column": 8 + }, + "end": { + "line": 35, + "column": 31 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1302, + "end": 1324, + "loc": { + "start": { + "line": 35, + "column": 8 + }, + "end": { + "line": 35, + "column": 30 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 1302, + "end": 1314, + "loc": { + "start": { + "line": 35, + "column": 8 + }, + "end": { + "line": 35, + "column": 20 + } + }, + "object": { + "type": "ThisExpression", + "start": 1302, + "end": 1306, + "loc": { + "start": { + "line": 35, + "column": 8 + }, + "end": { + "line": 35, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 1307, + "end": 1314, + "loc": { + "start": { + "line": 35, + "column": 13 + }, + "end": { + "line": 35, + "column": 20 + }, + "identifierName": "network" + }, + "name": "network" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 1317, + "end": 1324, + "loc": { + "start": { + "line": 35, + "column": 23 + }, + "end": { + "line": 35, + "column": 30 + }, + "identifierName": "network" + }, + "name": "network" + } + } + }, + { + "type": "ExpressionStatement", + "start": 1334, + "end": 1351, + "loc": { + "start": { + "line": 36, + "column": 8 + }, + "end": { + "line": 36, + "column": 25 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1334, + "end": 1350, + "loc": { + "start": { + "line": 36, + "column": 8 + }, + "end": { + "line": 36, + "column": 24 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 1334, + "end": 1343, + "loc": { + "start": { + "line": 36, + "column": 8 + }, + "end": { + "line": 36, + "column": 17 + } + }, + "object": { + "type": "ThisExpression", + "start": 1334, + "end": 1338, + "loc": { + "start": { + "line": 36, + "column": 8 + }, + "end": { + "line": 36, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 1339, + "end": 1343, + "loc": { + "start": { + "line": 36, + "column": 13 + }, + "end": { + "line": 36, + "column": 17 + }, + "identifierName": "hash" + }, + "name": "hash" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 1346, + "end": 1350, + "loc": { + "start": { + "line": 36, + "column": 20 + }, + "end": { + "line": 36, + "column": 24 + }, + "identifierName": "hash" + }, + "name": "hash" + } + } + }, + { + "type": "ExpressionStatement", + "start": 1360, + "end": 1389, + "loc": { + "start": { + "line": 37, + "column": 8 + }, + "end": { + "line": 37, + "column": 37 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1360, + "end": 1388, + "loc": { + "start": { + "line": 37, + "column": 8 + }, + "end": { + "line": 37, + "column": 36 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 1360, + "end": 1375, + "loc": { + "start": { + "line": 37, + "column": 8 + }, + "end": { + "line": 37, + "column": 23 + } + }, + "object": { + "type": "ThisExpression", + "start": 1360, + "end": 1364, + "loc": { + "start": { + "line": 37, + "column": 8 + }, + "end": { + "line": 37, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 1365, + "end": 1375, + "loc": { + "start": { + "line": 37, + "column": 13 + }, + "end": { + "line": 37, + "column": 23 + }, + "identifierName": "entrypoint" + }, + "name": "entrypoint" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 1378, + "end": 1388, + "loc": { + "start": { + "line": 37, + "column": 26 + }, + "end": { + "line": 37, + "column": 36 + }, + "identifierName": "entrypoint" + }, + "name": "entrypoint" + } + } + }, + { + "type": "ExpressionStatement", + "start": 1398, + "end": 1415, + "loc": { + "start": { + "line": 38, + "column": 8 + }, + "end": { + "line": 38, + "column": 25 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1398, + "end": 1414, + "loc": { + "start": { + "line": 38, + "column": 8 + }, + "end": { + "line": 38, + "column": 24 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 1398, + "end": 1407, + "loc": { + "start": { + "line": 38, + "column": 8 + }, + "end": { + "line": 38, + "column": 17 + } + }, + "object": { + "type": "ThisExpression", + "start": 1398, + "end": 1402, + "loc": { + "start": { + "line": 38, + "column": 8 + }, + "end": { + "line": 38, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 1403, + "end": 1407, + "loc": { + "start": { + "line": 38, + "column": 13 + }, + "end": { + "line": 38, + "column": 17 + }, + "identifierName": "args" + }, + "name": "args" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 1410, + "end": 1414, + "loc": { + "start": { + "line": 38, + "column": 20 + }, + "end": { + "line": 38, + "column": 24 + }, + "identifierName": "args" + }, + "name": "args" + } + } + }, + { + "type": "ExpressionStatement", + "start": 1424, + "end": 1439, + "loc": { + "start": { + "line": 39, + "column": 8 + }, + "end": { + "line": 39, + "column": 23 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1424, + "end": 1438, + "loc": { + "start": { + "line": 39, + "column": 8 + }, + "end": { + "line": 39, + "column": 22 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 1424, + "end": 1432, + "loc": { + "start": { + "line": 39, + "column": 8 + }, + "end": { + "line": 39, + "column": 16 + } + }, + "object": { + "type": "ThisExpression", + "start": 1424, + "end": 1428, + "loc": { + "start": { + "line": 39, + "column": 8 + }, + "end": { + "line": 39, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 1429, + "end": 1432, + "loc": { + "start": { + "line": 39, + "column": 13 + }, + "end": { + "line": 39, + "column": 16 + }, + "identifierName": "fee" + }, + "name": "fee" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 1435, + "end": 1438, + "loc": { + "start": { + "line": 39, + "column": 19 + }, + "end": { + "line": 39, + "column": 22 + }, + "identifierName": "fee" + }, + "name": "fee" + } + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {string} activeKey - Current active key in the public hex format\n * @param {string} network - Current network to execute the deployment\n * @param {string} hash - Current hash of the stored SmartContract\n * @param {string} entrypoint - Entrypoint of the SmartContract\n * @param {DeployUtil.RuntimeArgs} args - Arguments of the SmartContract\n * @param {number} fee - Runtime fee for the given SmartContract operation\n ", + "start": 688, + "end": 1174, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 31, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Get the deployParams deploy argument\n *\n * @return {DeployUtil.DeployParams} - Return a DeployParams\n ", + "start": 1451, + "end": 1578, + "loc": { + "start": { + "line": 42, + "column": 4 + }, + "end": { + "line": 46, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 1583, + "end": 1738, + "loc": { + "start": { + "line": 47, + "column": 4 + }, + "end": { + "line": 52, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1587, + "end": 1599, + "loc": { + "start": { + "line": 47, + "column": 8 + }, + "end": { + "line": 47, + "column": 20 + }, + "identifierName": "deployParams" + }, + "name": "deployParams" + }, + "kind": "get", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 1602, + "end": 1738, + "loc": { + "start": { + "line": 47, + "column": 23 + }, + "end": { + "line": 52, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 1612, + "end": 1732, + "loc": { + "start": { + "line": 48, + "column": 8 + }, + "end": { + "line": 51, + "column": 10 + } + }, + "argument": { + "type": "NewExpression", + "start": 1619, + "end": 1731, + "loc": { + "start": { + "line": 48, + "column": 15 + }, + "end": { + "line": 51, + "column": 9 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1623, + "end": 1646, + "loc": { + "start": { + "line": 48, + "column": 19 + }, + "end": { + "line": 48, + "column": 42 + } + }, + "object": { + "type": "Identifier", + "start": 1623, + "end": 1633, + "loc": { + "start": { + "line": 48, + "column": 19 + }, + "end": { + "line": 48, + "column": 29 + }, + "identifierName": "DeployUtil" + }, + "name": "DeployUtil" + }, + "property": { + "type": "Identifier", + "start": 1634, + "end": 1646, + "loc": { + "start": { + "line": 48, + "column": 30 + }, + "end": { + "line": 48, + "column": 42 + }, + "identifierName": "DeployParams" + }, + "name": "DeployParams" + }, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 1660, + "end": 1695, + "loc": { + "start": { + "line": 49, + "column": 12 + }, + "end": { + "line": 49, + "column": 47 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1660, + "end": 1679, + "loc": { + "start": { + "line": 49, + "column": 12 + }, + "end": { + "line": 49, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 1660, + "end": 1671, + "loc": { + "start": { + "line": 49, + "column": 12 + }, + "end": { + "line": 49, + "column": 23 + }, + "identifierName": "CLPublicKey" + }, + "name": "CLPublicKey" + }, + "property": { + "type": "Identifier", + "start": 1672, + "end": 1679, + "loc": { + "start": { + "line": 49, + "column": 24 + }, + "end": { + "line": 49, + "column": 31 + }, + "identifierName": "fromHex" + }, + "name": "fromHex" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 1680, + "end": 1694, + "loc": { + "start": { + "line": 49, + "column": 32 + }, + "end": { + "line": 49, + "column": 46 + } + }, + "object": { + "type": "ThisExpression", + "start": 1680, + "end": 1684, + "loc": { + "start": { + "line": 49, + "column": 32 + }, + "end": { + "line": 49, + "column": 36 + } + } + }, + "property": { + "type": "Identifier", + "start": 1685, + "end": 1694, + "loc": { + "start": { + "line": 49, + "column": 37 + }, + "end": { + "line": 49, + "column": 46 + }, + "identifierName": "activeKey" + }, + "name": "activeKey" + }, + "computed": false + } + ] + }, + { + "type": "MemberExpression", + "start": 1709, + "end": 1721, + "loc": { + "start": { + "line": 50, + "column": 12 + }, + "end": { + "line": 50, + "column": 24 + } + }, + "object": { + "type": "ThisExpression", + "start": 1709, + "end": 1713, + "loc": { + "start": { + "line": 50, + "column": 12 + }, + "end": { + "line": 50, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "start": 1714, + "end": 1721, + "loc": { + "start": { + "line": 50, + "column": 17 + }, + "end": { + "line": 50, + "column": 24 + }, + "identifierName": "network" + }, + "name": "network" + }, + "computed": false + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Get the deployParams deploy argument\n *\n * @return {DeployUtil.DeployParams} - Return a DeployParams\n ", + "start": 1451, + "end": 1578, + "loc": { + "start": { + "line": 42, + "column": 4 + }, + "end": { + "line": 46, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Get the session deploy argument\n *\n * @return {DeployUtil.ExecutableDeployItem} - Return a session with a SmartContract stored by hash on the network\n ", + "start": 1744, + "end": 1920, + "loc": { + "start": { + "line": 54, + "column": 4 + }, + "end": { + "line": 58, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 1925, + "end": 2140, + "loc": { + "start": { + "line": 59, + "column": 4 + }, + "end": { + "line": 65, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1929, + "end": 1936, + "loc": { + "start": { + "line": 59, + "column": 8 + }, + "end": { + "line": 59, + "column": 15 + }, + "identifierName": "session" + }, + "name": "session" + }, + "kind": "get", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 1939, + "end": 2140, + "loc": { + "start": { + "line": 59, + "column": 18 + }, + "end": { + "line": 65, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 1949, + "end": 2134, + "loc": { + "start": { + "line": 60, + "column": 8 + }, + "end": { + "line": 64, + "column": 10 + } + }, + "argument": { + "type": "CallExpression", + "start": 1956, + "end": 2133, + "loc": { + "start": { + "line": 60, + "column": 15 + }, + "end": { + "line": 64, + "column": 9 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1956, + "end": 2011, + "loc": { + "start": { + "line": 60, + "column": 15 + }, + "end": { + "line": 60, + "column": 70 + } + }, + "object": { + "type": "MemberExpression", + "start": 1956, + "end": 1987, + "loc": { + "start": { + "line": 60, + "column": 15 + }, + "end": { + "line": 60, + "column": 46 + } + }, + "object": { + "type": "Identifier", + "start": 1956, + "end": 1966, + "loc": { + "start": { + "line": 60, + "column": 15 + }, + "end": { + "line": 60, + "column": 25 + }, + "identifierName": "DeployUtil" + }, + "name": "DeployUtil" + }, + "property": { + "type": "Identifier", + "start": 1967, + "end": 1987, + "loc": { + "start": { + "line": 60, + "column": 26 + }, + "end": { + "line": 60, + "column": 46 + }, + "identifierName": "ExecutableDeployItem" + }, + "name": "ExecutableDeployItem" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1988, + "end": 2011, + "loc": { + "start": { + "line": 60, + "column": 47 + }, + "end": { + "line": 60, + "column": 70 + }, + "identifierName": "newStoredContractByHash" + }, + "name": "newStoredContractByHash" + }, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 2025, + "end": 2071, + "loc": { + "start": { + "line": 61, + "column": 12 + }, + "end": { + "line": 61, + "column": 58 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2025, + "end": 2040, + "loc": { + "start": { + "line": 61, + "column": 12 + }, + "end": { + "line": 61, + "column": 27 + } + }, + "object": { + "type": "Identifier", + "start": 2025, + "end": 2035, + "loc": { + "start": { + "line": 61, + "column": 12 + }, + "end": { + "line": 61, + "column": 22 + }, + "identifierName": "Uint8Array" + }, + "name": "Uint8Array" + }, + "property": { + "type": "Identifier", + "start": 2036, + "end": 2040, + "loc": { + "start": { + "line": 61, + "column": 23 + }, + "end": { + "line": 61, + "column": 27 + }, + "identifierName": "from" + }, + "name": "from" + }, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 2041, + "end": 2070, + "loc": { + "start": { + "line": 61, + "column": 28 + }, + "end": { + "line": 61, + "column": 57 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2041, + "end": 2052, + "loc": { + "start": { + "line": 61, + "column": 28 + }, + "end": { + "line": 61, + "column": 39 + } + }, + "object": { + "type": "Identifier", + "start": 2041, + "end": 2047, + "loc": { + "start": { + "line": 61, + "column": 28 + }, + "end": { + "line": 61, + "column": 34 + }, + "identifierName": "Buffer" + }, + "name": "Buffer" + }, + "property": { + "type": "Identifier", + "start": 2048, + "end": 2052, + "loc": { + "start": { + "line": 61, + "column": 35 + }, + "end": { + "line": 61, + "column": 39 + }, + "identifierName": "from" + }, + "name": "from" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 2053, + "end": 2062, + "loc": { + "start": { + "line": 61, + "column": 40 + }, + "end": { + "line": 61, + "column": 49 + } + }, + "object": { + "type": "ThisExpression", + "start": 2053, + "end": 2057, + "loc": { + "start": { + "line": 61, + "column": 40 + }, + "end": { + "line": 61, + "column": 44 + } + } + }, + "property": { + "type": "Identifier", + "start": 2058, + "end": 2062, + "loc": { + "start": { + "line": 61, + "column": 45 + }, + "end": { + "line": 61, + "column": 49 + }, + "identifierName": "hash" + }, + "name": "hash" + }, + "computed": false + }, + { + "type": "StringLiteral", + "start": 2064, + "end": 2069, + "loc": { + "start": { + "line": 61, + "column": 51 + }, + "end": { + "line": 61, + "column": 56 + } + }, + "extra": { + "rawValue": "hex", + "raw": "\"hex\"" + }, + "value": "hex" + } + ] + } + ] + }, + { + "type": "MemberExpression", + "start": 2085, + "end": 2100, + "loc": { + "start": { + "line": 62, + "column": 12 + }, + "end": { + "line": 62, + "column": 27 + } + }, + "object": { + "type": "ThisExpression", + "start": 2085, + "end": 2089, + "loc": { + "start": { + "line": 62, + "column": 12 + }, + "end": { + "line": 62, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "start": 2090, + "end": 2100, + "loc": { + "start": { + "line": 62, + "column": 17 + }, + "end": { + "line": 62, + "column": 27 + }, + "identifierName": "entrypoint" + }, + "name": "entrypoint" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 2114, + "end": 2123, + "loc": { + "start": { + "line": 63, + "column": 12 + }, + "end": { + "line": 63, + "column": 21 + } + }, + "object": { + "type": "ThisExpression", + "start": 2114, + "end": 2118, + "loc": { + "start": { + "line": 63, + "column": 12 + }, + "end": { + "line": 63, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "start": 2119, + "end": 2123, + "loc": { + "start": { + "line": 63, + "column": 17 + }, + "end": { + "line": 63, + "column": 21 + }, + "identifierName": "args" + }, + "name": "args" + }, + "computed": false + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Get the session deploy argument\n *\n * @return {DeployUtil.ExecutableDeployItem} - Return a session with a SmartContract stored by hash on the network\n ", + "start": 1744, + "end": 1920, + "loc": { + "start": { + "line": 54, + "column": 4 + }, + "end": { + "line": 58, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Get the payment deploy argument\n *\n * @return {DeployUtil.ExecutableDeployItem} - Return a standard payment\n ", + "start": 2146, + "end": 2280, + "loc": { + "start": { + "line": 67, + "column": 4 + }, + "end": { + "line": 71, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 2285, + "end": 2359, + "loc": { + "start": { + "line": 72, + "column": 4 + }, + "end": { + "line": 74, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2289, + "end": 2296, + "loc": { + "start": { + "line": 72, + "column": 8 + }, + "end": { + "line": 72, + "column": 15 + }, + "identifierName": "payment" + }, + "name": "payment" + }, + "kind": "get", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 2299, + "end": 2359, + "loc": { + "start": { + "line": 72, + "column": 18 + }, + "end": { + "line": 74, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 2309, + "end": 2353, + "loc": { + "start": { + "line": 73, + "column": 8 + }, + "end": { + "line": 73, + "column": 52 + } + }, + "argument": { + "type": "CallExpression", + "start": 2316, + "end": 2352, + "loc": { + "start": { + "line": 73, + "column": 15 + }, + "end": { + "line": 73, + "column": 51 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2316, + "end": 2342, + "loc": { + "start": { + "line": 73, + "column": 15 + }, + "end": { + "line": 73, + "column": 41 + } + }, + "object": { + "type": "Identifier", + "start": 2316, + "end": 2326, + "loc": { + "start": { + "line": 73, + "column": 15 + }, + "end": { + "line": 73, + "column": 25 + }, + "identifierName": "DeployUtil" + }, + "name": "DeployUtil" + }, + "property": { + "type": "Identifier", + "start": 2327, + "end": 2342, + "loc": { + "start": { + "line": 73, + "column": 26 + }, + "end": { + "line": 73, + "column": 41 + }, + "identifierName": "standardPayment" + }, + "name": "standardPayment" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 2343, + "end": 2351, + "loc": { + "start": { + "line": 73, + "column": 42 + }, + "end": { + "line": 73, + "column": 50 + } + }, + "object": { + "type": "ThisExpression", + "start": 2343, + "end": 2347, + "loc": { + "start": { + "line": 73, + "column": 42 + }, + "end": { + "line": 73, + "column": 46 + } + } + }, + "property": { + "type": "Identifier", + "start": 2348, + "end": 2351, + "loc": { + "start": { + "line": 73, + "column": 47 + }, + "end": { + "line": 73, + "column": 50 + }, + "identifierName": "fee" + }, + "name": "fee" + }, + "computed": false + } + ] + } + } + ], + "directives": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Get the payment deploy argument\n *\n * @return {DeployUtil.ExecutableDeployItem} - Return a standard payment\n ", + "start": 2146, + "end": 2280, + "loc": { + "start": { + "line": 67, + "column": 4 + }, + "end": { + "line": 71, + "column": 7 + } + } + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * AbstractSmartContractStoredByHashDeployParameters class\n * Abstract class used to defined specific DeployParameters for SmartContracts stored by hash on the network\n ", + "start": 151, + "end": 326, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * AbstractSmartContractStoredByHashDeployParameters class\n * Abstract class used to defined specific DeployParameters for SmartContracts stored by hash on the network\n ", + "start": 151, + "end": 326, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + } + } + ] + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\n * AbstractSmartContractStoredByHashDeployParameters class\n * Abstract class used to defined specific DeployParameters for SmartContracts stored by hash on the network\n ", + "start": 151, + "end": 326, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 442, + "end": 463, + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 9, + "column": 25 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 483, + "end": 504, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 25 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 522, + "end": 543, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 25 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 558, + "end": 579, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 25 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {DeployUtil.RuntimeArgs} ", + "start": 600, + "end": 637, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 41 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {number} ", + "start": 652, + "end": 673, + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 25 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {string} activeKey - Current active key in the public hex format\n * @param {string} network - Current network to execute the deployment\n * @param {string} hash - Current hash of the stored SmartContract\n * @param {string} entrypoint - Entrypoint of the SmartContract\n * @param {DeployUtil.RuntimeArgs} args - Arguments of the SmartContract\n * @param {number} fee - Runtime fee for the given SmartContract operation\n ", + "start": 688, + "end": 1174, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 31, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Get the deployParams deploy argument\n *\n * @return {DeployUtil.DeployParams} - Return a DeployParams\n ", + "start": 1451, + "end": 1578, + "loc": { + "start": { + "line": 42, + "column": 4 + }, + "end": { + "line": 46, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Get the session deploy argument\n *\n * @return {DeployUtil.ExecutableDeployItem} - Return a session with a SmartContract stored by hash on the network\n ", + "start": 1744, + "end": 1920, + "loc": { + "start": { + "line": 54, + "column": 4 + }, + "end": { + "line": 58, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Get the payment deploy argument\n *\n * @return {DeployUtil.ExecutableDeployItem} - Return a standard payment\n ", + "start": 2146, + "end": 2280, + "loc": { + "start": { + "line": 67, + "column": 4 + }, + "end": { + "line": 71, + "column": 7 + } + } + } + ], + "tokens": [ + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 0, + "end": 6, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7, + "end": 8, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "AbstractSmartContractDeployParameters", + "start": 8, + "end": 45, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 45 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 45, + "end": 46, + "loc": { + "start": { + "line": 1, + "column": 45 + }, + "end": { + "line": 1, + "column": 46 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 47, + "end": 51, + "loc": { + "start": { + "line": 1, + "column": 47 + }, + "end": { + "line": 1, + "column": 51 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./abstractSmartContractDeployParameters", + "start": 52, + "end": 93, + "loc": { + "start": { + "line": 1, + "column": 52 + }, + "end": { + "line": 1, + "column": 93 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 93, + "end": 94, + "loc": { + "start": { + "line": 1, + "column": 93 + }, + "end": { + "line": 1, + "column": 94 + } + } + }, + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 95, + "end": 101, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 102, + "end": 103, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CLPublicKey", + "start": 103, + "end": 114, + "loc": { + "start": { + "line": 2, + "column": 8 + }, + "end": { + "line": 2, + "column": 19 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 114, + "end": 115, + "loc": { + "start": { + "line": 2, + "column": 19 + }, + "end": { + "line": 2, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "DeployUtil", + "start": 116, + "end": 126, + "loc": { + "start": { + "line": 2, + "column": 21 + }, + "end": { + "line": 2, + "column": 31 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 126, + "end": 127, + "loc": { + "start": { + "line": 2, + "column": 31 + }, + "end": { + "line": 2, + "column": 32 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 128, + "end": 132, + "loc": { + "start": { + "line": 2, + "column": 33 + }, + "end": { + "line": 2, + "column": 37 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "casper-js-sdk", + "start": 133, + "end": 148, + "loc": { + "start": { + "line": 2, + "column": 38 + }, + "end": { + "line": 2, + "column": 53 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 148, + "end": 149, + "loc": { + "start": { + "line": 2, + "column": 53 + }, + "end": { + "line": 2, + "column": 54 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * AbstractSmartContractStoredByHashDeployParameters class\n * Abstract class used to defined specific DeployParameters for SmartContracts stored by hash on the network\n ", + "start": 151, + "end": 326, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 327, + "end": 333, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 6 + } + } + }, + { + "type": { + "label": "class", + "keyword": "class", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "class", + "start": 334, + "end": 339, + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "AbstractSmartContractStoredByHashDeployParameters", + "start": 340, + "end": 389, + "loc": { + "start": { + "line": 8, + "column": 13 + }, + "end": { + "line": 8, + "column": 62 + } + } + }, + { + "type": { + "label": "extends", + "keyword": "extends", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "extends", + "start": 390, + "end": 397, + "loc": { + "start": { + "line": 8, + "column": 63 + }, + "end": { + "line": 8, + "column": 70 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "AbstractSmartContractDeployParameters", + "start": 398, + "end": 435, + "loc": { + "start": { + "line": 8, + "column": 71 + }, + "end": { + "line": 8, + "column": 108 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 436, + "end": 437, + "loc": { + "start": { + "line": 8, + "column": 109 + }, + "end": { + "line": 8, + "column": 110 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 442, + "end": 463, + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 9, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "activeKey", + "start": 468, + "end": 477, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 10, + "column": 13 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 477, + "end": 478, + "loc": { + "start": { + "line": 10, + "column": 13 + }, + "end": { + "line": 10, + "column": 14 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 483, + "end": 504, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "network", + "start": 509, + "end": 516, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 11 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 516, + "end": 517, + "loc": { + "start": { + "line": 12, + "column": 11 + }, + "end": { + "line": 12, + "column": 12 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 522, + "end": 543, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "hash", + "start": 548, + "end": 552, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 8 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 552, + "end": 553, + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 9 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 558, + "end": 579, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "entrypoint", + "start": 584, + "end": 594, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 16, + "column": 14 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 594, + "end": 595, + "loc": { + "start": { + "line": 16, + "column": 14 + }, + "end": { + "line": 16, + "column": 15 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {DeployUtil.RuntimeArgs} ", + "start": 600, + "end": 637, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 41 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "args", + "start": 642, + "end": 646, + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 8 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 646, + "end": 647, + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 9 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {number} ", + "start": 652, + "end": 673, + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "fee", + "start": 678, + "end": 681, + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 7 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 681, + "end": 682, + "loc": { + "start": { + "line": 20, + "column": 7 + }, + "end": { + "line": 20, + "column": 8 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {string} activeKey - Current active key in the public hex format\n * @param {string} network - Current network to execute the deployment\n * @param {string} hash - Current hash of the stored SmartContract\n * @param {string} entrypoint - Entrypoint of the SmartContract\n * @param {DeployUtil.RuntimeArgs} args - Arguments of the SmartContract\n * @param {number} fee - Runtime fee for the given SmartContract operation\n ", + "start": 688, + "end": 1174, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 31, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "constructor", + "start": 1179, + "end": 1190, + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 32, + "column": 15 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1190, + "end": 1191, + "loc": { + "start": { + "line": 32, + "column": 15 + }, + "end": { + "line": 32, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "activeKey", + "start": 1191, + "end": 1200, + "loc": { + "start": { + "line": 32, + "column": 16 + }, + "end": { + "line": 32, + "column": 25 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1200, + "end": 1201, + "loc": { + "start": { + "line": 32, + "column": 25 + }, + "end": { + "line": 32, + "column": 26 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "network", + "start": 1202, + "end": 1209, + "loc": { + "start": { + "line": 32, + "column": 27 + }, + "end": { + "line": 32, + "column": 34 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1209, + "end": 1210, + "loc": { + "start": { + "line": 32, + "column": 34 + }, + "end": { + "line": 32, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "hash", + "start": 1211, + "end": 1215, + "loc": { + "start": { + "line": 32, + "column": 36 + }, + "end": { + "line": 32, + "column": 40 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1215, + "end": 1216, + "loc": { + "start": { + "line": 32, + "column": 40 + }, + "end": { + "line": 32, + "column": 41 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "entrypoint", + "start": 1217, + "end": 1227, + "loc": { + "start": { + "line": 32, + "column": 42 + }, + "end": { + "line": 32, + "column": 52 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1227, + "end": 1228, + "loc": { + "start": { + "line": 32, + "column": 52 + }, + "end": { + "line": 32, + "column": 53 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "args", + "start": 1229, + "end": 1233, + "loc": { + "start": { + "line": 32, + "column": 54 + }, + "end": { + "line": 32, + "column": 58 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1233, + "end": 1234, + "loc": { + "start": { + "line": 32, + "column": 58 + }, + "end": { + "line": 32, + "column": 59 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "fee", + "start": 1235, + "end": 1238, + "loc": { + "start": { + "line": 32, + "column": 60 + }, + "end": { + "line": 32, + "column": 63 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1238, + "end": 1239, + "loc": { + "start": { + "line": 32, + "column": 63 + }, + "end": { + "line": 32, + "column": 64 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1240, + "end": 1241, + "loc": { + "start": { + "line": 32, + "column": 65 + }, + "end": { + "line": 32, + "column": 66 + } + } + }, + { + "type": { + "label": "super", + "keyword": "super", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "super", + "start": 1250, + "end": 1255, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 33, + "column": 13 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1255, + "end": 1256, + "loc": { + "start": { + "line": 33, + "column": 13 + }, + "end": { + "line": 33, + "column": 14 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1256, + "end": 1257, + "loc": { + "start": { + "line": 33, + "column": 14 + }, + "end": { + "line": 33, + "column": 15 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 1266, + "end": 1270, + "loc": { + "start": { + "line": 34, + "column": 8 + }, + "end": { + "line": 34, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1270, + "end": 1271, + "loc": { + "start": { + "line": 34, + "column": 12 + }, + "end": { + "line": 34, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "activeKey", + "start": 1271, + "end": 1280, + "loc": { + "start": { + "line": 34, + "column": 13 + }, + "end": { + "line": 34, + "column": 22 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1281, + "end": 1282, + "loc": { + "start": { + "line": 34, + "column": 23 + }, + "end": { + "line": 34, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "activeKey", + "start": 1283, + "end": 1292, + "loc": { + "start": { + "line": 34, + "column": 25 + }, + "end": { + "line": 34, + "column": 34 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1292, + "end": 1293, + "loc": { + "start": { + "line": 34, + "column": 34 + }, + "end": { + "line": 34, + "column": 35 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 1302, + "end": 1306, + "loc": { + "start": { + "line": 35, + "column": 8 + }, + "end": { + "line": 35, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1306, + "end": 1307, + "loc": { + "start": { + "line": 35, + "column": 12 + }, + "end": { + "line": 35, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "network", + "start": 1307, + "end": 1314, + "loc": { + "start": { + "line": 35, + "column": 13 + }, + "end": { + "line": 35, + "column": 20 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1315, + "end": 1316, + "loc": { + "start": { + "line": 35, + "column": 21 + }, + "end": { + "line": 35, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "network", + "start": 1317, + "end": 1324, + "loc": { + "start": { + "line": 35, + "column": 23 + }, + "end": { + "line": 35, + "column": 30 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1324, + "end": 1325, + "loc": { + "start": { + "line": 35, + "column": 30 + }, + "end": { + "line": 35, + "column": 31 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 1334, + "end": 1338, + "loc": { + "start": { + "line": 36, + "column": 8 + }, + "end": { + "line": 36, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1338, + "end": 1339, + "loc": { + "start": { + "line": 36, + "column": 12 + }, + "end": { + "line": 36, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "hash", + "start": 1339, + "end": 1343, + "loc": { + "start": { + "line": 36, + "column": 13 + }, + "end": { + "line": 36, + "column": 17 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1344, + "end": 1345, + "loc": { + "start": { + "line": 36, + "column": 18 + }, + "end": { + "line": 36, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "hash", + "start": 1346, + "end": 1350, + "loc": { + "start": { + "line": 36, + "column": 20 + }, + "end": { + "line": 36, + "column": 24 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1350, + "end": 1351, + "loc": { + "start": { + "line": 36, + "column": 24 + }, + "end": { + "line": 36, + "column": 25 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 1360, + "end": 1364, + "loc": { + "start": { + "line": 37, + "column": 8 + }, + "end": { + "line": 37, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1364, + "end": 1365, + "loc": { + "start": { + "line": 37, + "column": 12 + }, + "end": { + "line": 37, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "entrypoint", + "start": 1365, + "end": 1375, + "loc": { + "start": { + "line": 37, + "column": 13 + }, + "end": { + "line": 37, + "column": 23 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1376, + "end": 1377, + "loc": { + "start": { + "line": 37, + "column": 24 + }, + "end": { + "line": 37, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "entrypoint", + "start": 1378, + "end": 1388, + "loc": { + "start": { + "line": 37, + "column": 26 + }, + "end": { + "line": 37, + "column": 36 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1388, + "end": 1389, + "loc": { + "start": { + "line": 37, + "column": 36 + }, + "end": { + "line": 37, + "column": 37 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 1398, + "end": 1402, + "loc": { + "start": { + "line": 38, + "column": 8 + }, + "end": { + "line": 38, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1402, + "end": 1403, + "loc": { + "start": { + "line": 38, + "column": 12 + }, + "end": { + "line": 38, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "args", + "start": 1403, + "end": 1407, + "loc": { + "start": { + "line": 38, + "column": 13 + }, + "end": { + "line": 38, + "column": 17 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1408, + "end": 1409, + "loc": { + "start": { + "line": 38, + "column": 18 + }, + "end": { + "line": 38, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "args", + "start": 1410, + "end": 1414, + "loc": { + "start": { + "line": 38, + "column": 20 + }, + "end": { + "line": 38, + "column": 24 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1414, + "end": 1415, + "loc": { + "start": { + "line": 38, + "column": 24 + }, + "end": { + "line": 38, + "column": 25 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 1424, + "end": 1428, + "loc": { + "start": { + "line": 39, + "column": 8 + }, + "end": { + "line": 39, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1428, + "end": 1429, + "loc": { + "start": { + "line": 39, + "column": 12 + }, + "end": { + "line": 39, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "fee", + "start": 1429, + "end": 1432, + "loc": { + "start": { + "line": 39, + "column": 13 + }, + "end": { + "line": 39, + "column": 16 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1433, + "end": 1434, + "loc": { + "start": { + "line": 39, + "column": 17 + }, + "end": { + "line": 39, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "fee", + "start": 1435, + "end": 1438, + "loc": { + "start": { + "line": 39, + "column": 19 + }, + "end": { + "line": 39, + "column": 22 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1438, + "end": 1439, + "loc": { + "start": { + "line": 39, + "column": 22 + }, + "end": { + "line": 39, + "column": 23 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1444, + "end": 1445, + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 40, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Get the deployParams deploy argument\n *\n * @return {DeployUtil.DeployParams} - Return a DeployParams\n ", + "start": 1451, + "end": 1578, + "loc": { + "start": { + "line": 42, + "column": 4 + }, + "end": { + "line": 46, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "get", + "start": 1583, + "end": 1586, + "loc": { + "start": { + "line": 47, + "column": 4 + }, + "end": { + "line": 47, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "deployParams", + "start": 1587, + "end": 1599, + "loc": { + "start": { + "line": 47, + "column": 8 + }, + "end": { + "line": 47, + "column": 20 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1599, + "end": 1600, + "loc": { + "start": { + "line": 47, + "column": 20 + }, + "end": { + "line": 47, + "column": 21 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1600, + "end": 1601, + "loc": { + "start": { + "line": 47, + "column": 21 + }, + "end": { + "line": 47, + "column": 22 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1602, + "end": 1603, + "loc": { + "start": { + "line": 47, + "column": 23 + }, + "end": { + "line": 47, + "column": 24 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 1612, + "end": 1618, + "loc": { + "start": { + "line": 48, + "column": 8 + }, + "end": { + "line": 48, + "column": 14 + } + } + }, + { + "type": { + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "new", + "start": 1619, + "end": 1622, + "loc": { + "start": { + "line": 48, + "column": 15 + }, + "end": { + "line": 48, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "DeployUtil", + "start": 1623, + "end": 1633, + "loc": { + "start": { + "line": 48, + "column": 19 + }, + "end": { + "line": 48, + "column": 29 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1633, + "end": 1634, + "loc": { + "start": { + "line": 48, + "column": 29 + }, + "end": { + "line": 48, + "column": 30 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "DeployParams", + "start": 1634, + "end": 1646, + "loc": { + "start": { + "line": 48, + "column": 30 + }, + "end": { + "line": 48, + "column": 42 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1646, + "end": 1647, + "loc": { + "start": { + "line": 48, + "column": 42 + }, + "end": { + "line": 48, + "column": 43 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CLPublicKey", + "start": 1660, + "end": 1671, + "loc": { + "start": { + "line": 49, + "column": 12 + }, + "end": { + "line": 49, + "column": 23 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1671, + "end": 1672, + "loc": { + "start": { + "line": 49, + "column": 23 + }, + "end": { + "line": 49, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "fromHex", + "start": 1672, + "end": 1679, + "loc": { + "start": { + "line": 49, + "column": 24 + }, + "end": { + "line": 49, + "column": 31 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1679, + "end": 1680, + "loc": { + "start": { + "line": 49, + "column": 31 + }, + "end": { + "line": 49, + "column": 32 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 1680, + "end": 1684, + "loc": { + "start": { + "line": 49, + "column": 32 + }, + "end": { + "line": 49, + "column": 36 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1684, + "end": 1685, + "loc": { + "start": { + "line": 49, + "column": 36 + }, + "end": { + "line": 49, + "column": 37 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "activeKey", + "start": 1685, + "end": 1694, + "loc": { + "start": { + "line": 49, + "column": 37 + }, + "end": { + "line": 49, + "column": 46 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1694, + "end": 1695, + "loc": { + "start": { + "line": 49, + "column": 46 + }, + "end": { + "line": 49, + "column": 47 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1695, + "end": 1696, + "loc": { + "start": { + "line": 49, + "column": 47 + }, + "end": { + "line": 49, + "column": 48 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 1709, + "end": 1713, + "loc": { + "start": { + "line": 50, + "column": 12 + }, + "end": { + "line": 50, + "column": 16 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1713, + "end": 1714, + "loc": { + "start": { + "line": 50, + "column": 16 + }, + "end": { + "line": 50, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "network", + "start": 1714, + "end": 1721, + "loc": { + "start": { + "line": 50, + "column": 17 + }, + "end": { + "line": 50, + "column": 24 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1730, + "end": 1731, + "loc": { + "start": { + "line": 51, + "column": 8 + }, + "end": { + "line": 51, + "column": 9 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1731, + "end": 1732, + "loc": { + "start": { + "line": 51, + "column": 9 + }, + "end": { + "line": 51, + "column": 10 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1737, + "end": 1738, + "loc": { + "start": { + "line": 52, + "column": 4 + }, + "end": { + "line": 52, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Get the session deploy argument\n *\n * @return {DeployUtil.ExecutableDeployItem} - Return a session with a SmartContract stored by hash on the network\n ", + "start": 1744, + "end": 1920, + "loc": { + "start": { + "line": 54, + "column": 4 + }, + "end": { + "line": 58, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "get", + "start": 1925, + "end": 1928, + "loc": { + "start": { + "line": 59, + "column": 4 + }, + "end": { + "line": 59, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "session", + "start": 1929, + "end": 1936, + "loc": { + "start": { + "line": 59, + "column": 8 + }, + "end": { + "line": 59, + "column": 15 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1936, + "end": 1937, + "loc": { + "start": { + "line": 59, + "column": 15 + }, + "end": { + "line": 59, + "column": 16 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1937, + "end": 1938, + "loc": { + "start": { + "line": 59, + "column": 16 + }, + "end": { + "line": 59, + "column": 17 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1939, + "end": 1940, + "loc": { + "start": { + "line": 59, + "column": 18 + }, + "end": { + "line": 59, + "column": 19 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 1949, + "end": 1955, + "loc": { + "start": { + "line": 60, + "column": 8 + }, + "end": { + "line": 60, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "DeployUtil", + "start": 1956, + "end": 1966, + "loc": { + "start": { + "line": 60, + "column": 15 + }, + "end": { + "line": 60, + "column": 25 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1966, + "end": 1967, + "loc": { + "start": { + "line": 60, + "column": 25 + }, + "end": { + "line": 60, + "column": 26 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "ExecutableDeployItem", + "start": 1967, + "end": 1987, + "loc": { + "start": { + "line": 60, + "column": 26 + }, + "end": { + "line": 60, + "column": 46 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1987, + "end": 1988, + "loc": { + "start": { + "line": 60, + "column": 46 + }, + "end": { + "line": 60, + "column": 47 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "newStoredContractByHash", + "start": 1988, + "end": 2011, + "loc": { + "start": { + "line": 60, + "column": 47 + }, + "end": { + "line": 60, + "column": 70 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2011, + "end": 2012, + "loc": { + "start": { + "line": 60, + "column": 70 + }, + "end": { + "line": 60, + "column": 71 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Uint8Array", + "start": 2025, + "end": 2035, + "loc": { + "start": { + "line": 61, + "column": 12 + }, + "end": { + "line": 61, + "column": 22 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2035, + "end": 2036, + "loc": { + "start": { + "line": 61, + "column": 22 + }, + "end": { + "line": 61, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 2036, + "end": 2040, + "loc": { + "start": { + "line": 61, + "column": 23 + }, + "end": { + "line": 61, + "column": 27 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2040, + "end": 2041, + "loc": { + "start": { + "line": 61, + "column": 27 + }, + "end": { + "line": 61, + "column": 28 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Buffer", + "start": 2041, + "end": 2047, + "loc": { + "start": { + "line": 61, + "column": 28 + }, + "end": { + "line": 61, + "column": 34 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2047, + "end": 2048, + "loc": { + "start": { + "line": 61, + "column": 34 + }, + "end": { + "line": 61, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 2048, + "end": 2052, + "loc": { + "start": { + "line": 61, + "column": 35 + }, + "end": { + "line": 61, + "column": 39 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2052, + "end": 2053, + "loc": { + "start": { + "line": 61, + "column": 39 + }, + "end": { + "line": 61, + "column": 40 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 2053, + "end": 2057, + "loc": { + "start": { + "line": 61, + "column": 40 + }, + "end": { + "line": 61, + "column": 44 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2057, + "end": 2058, + "loc": { + "start": { + "line": 61, + "column": 44 + }, + "end": { + "line": 61, + "column": 45 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "hash", + "start": 2058, + "end": 2062, + "loc": { + "start": { + "line": 61, + "column": 45 + }, + "end": { + "line": 61, + "column": 49 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2062, + "end": 2063, + "loc": { + "start": { + "line": 61, + "column": 49 + }, + "end": { + "line": 61, + "column": 50 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "hex", + "start": 2064, + "end": 2069, + "loc": { + "start": { + "line": 61, + "column": 51 + }, + "end": { + "line": 61, + "column": 56 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2069, + "end": 2070, + "loc": { + "start": { + "line": 61, + "column": 56 + }, + "end": { + "line": 61, + "column": 57 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2070, + "end": 2071, + "loc": { + "start": { + "line": 61, + "column": 57 + }, + "end": { + "line": 61, + "column": 58 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2071, + "end": 2072, + "loc": { + "start": { + "line": 61, + "column": 58 + }, + "end": { + "line": 61, + "column": 59 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 2085, + "end": 2089, + "loc": { + "start": { + "line": 62, + "column": 12 + }, + "end": { + "line": 62, + "column": 16 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2089, + "end": 2090, + "loc": { + "start": { + "line": 62, + "column": 16 + }, + "end": { + "line": 62, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "entrypoint", + "start": 2090, + "end": 2100, + "loc": { + "start": { + "line": 62, + "column": 17 + }, + "end": { + "line": 62, + "column": 27 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2100, + "end": 2101, + "loc": { + "start": { + "line": 62, + "column": 27 + }, + "end": { + "line": 62, + "column": 28 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 2114, + "end": 2118, + "loc": { + "start": { + "line": 63, + "column": 12 + }, + "end": { + "line": 63, + "column": 16 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2118, + "end": 2119, + "loc": { + "start": { + "line": 63, + "column": 16 + }, + "end": { + "line": 63, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "args", + "start": 2119, + "end": 2123, + "loc": { + "start": { + "line": 63, + "column": 17 + }, + "end": { + "line": 63, + "column": 21 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2132, + "end": 2133, + "loc": { + "start": { + "line": 64, + "column": 8 + }, + "end": { + "line": 64, + "column": 9 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2133, + "end": 2134, + "loc": { + "start": { + "line": 64, + "column": 9 + }, + "end": { + "line": 64, + "column": 10 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2139, + "end": 2140, + "loc": { + "start": { + "line": 65, + "column": 4 + }, + "end": { + "line": 65, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Get the payment deploy argument\n *\n * @return {DeployUtil.ExecutableDeployItem} - Return a standard payment\n ", + "start": 2146, + "end": 2280, + "loc": { + "start": { + "line": 67, + "column": 4 + }, + "end": { + "line": 71, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "get", + "start": 2285, + "end": 2288, + "loc": { + "start": { + "line": 72, + "column": 4 + }, + "end": { + "line": 72, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "payment", + "start": 2289, + "end": 2296, + "loc": { + "start": { + "line": 72, + "column": 8 + }, + "end": { + "line": 72, + "column": 15 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2296, + "end": 2297, + "loc": { + "start": { + "line": 72, + "column": 15 + }, + "end": { + "line": 72, + "column": 16 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2297, + "end": 2298, + "loc": { + "start": { + "line": 72, + "column": 16 + }, + "end": { + "line": 72, + "column": 17 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2299, + "end": 2300, + "loc": { + "start": { + "line": 72, + "column": 18 + }, + "end": { + "line": 72, + "column": 19 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 2309, + "end": 2315, + "loc": { + "start": { + "line": 73, + "column": 8 + }, + "end": { + "line": 73, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "DeployUtil", + "start": 2316, + "end": 2326, + "loc": { + "start": { + "line": 73, + "column": 15 + }, + "end": { + "line": 73, + "column": 25 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2326, + "end": 2327, + "loc": { + "start": { + "line": 73, + "column": 25 + }, + "end": { + "line": 73, + "column": 26 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "standardPayment", + "start": 2327, + "end": 2342, + "loc": { + "start": { + "line": 73, + "column": 26 + }, + "end": { + "line": 73, + "column": 41 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2342, + "end": 2343, + "loc": { + "start": { + "line": 73, + "column": 41 + }, + "end": { + "line": 73, + "column": 42 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 2343, + "end": 2347, + "loc": { + "start": { + "line": 73, + "column": 42 + }, + "end": { + "line": 73, + "column": 46 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2347, + "end": 2348, + "loc": { + "start": { + "line": 73, + "column": 46 + }, + "end": { + "line": 73, + "column": 47 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "fee", + "start": 2348, + "end": 2351, + "loc": { + "start": { + "line": 73, + "column": 47 + }, + "end": { + "line": 73, + "column": 50 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2351, + "end": 2352, + "loc": { + "start": { + "line": 73, + "column": 50 + }, + "end": { + "line": 73, + "column": 51 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2352, + "end": 2353, + "loc": { + "start": { + "line": 73, + "column": 51 + }, + "end": { + "line": 73, + "column": 52 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2358, + "end": 2359, + "loc": { + "start": { + "line": 74, + "column": 4 + }, + "end": { + "line": 74, + "column": 5 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2360, + "end": 2361, + "loc": { + "start": { + "line": 75, + "column": 0 + }, + "end": { + "line": 75, + "column": 1 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2361, + "end": 2361, + "loc": { + "start": { + "line": 75, + "column": 1 + }, + "end": { + "line": 75, + "column": 1 + } + } + } + ] +} \ No newline at end of file diff --git a/ast/source/services/deploys/auction/actions/addBid.js.json b/ast/source/services/deploys/auction/actions/addBid.js.json new file mode 100644 index 0000000..59105bb --- /dev/null +++ b/ast/source/services/deploys/auction/actions/addBid.js.json @@ -0,0 +1,5262 @@ +{ + "type": "File", + "start": 0, + "end": 1629, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 49, + "column": 1 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 1629, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 49, + "column": 1 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 69, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 69 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 8, + "end": 19, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 19 + } + }, + "imported": { + "type": "Identifier", + "start": 8, + "end": 19, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 19 + }, + "identifierName": "CLPublicKey" + }, + "name": "CLPublicKey" + }, + "local": { + "type": "Identifier", + "start": 8, + "end": 19, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 19 + }, + "identifierName": "CLPublicKey" + }, + "name": "CLPublicKey" + } + }, + { + "type": "ImportSpecifier", + "start": 21, + "end": 27, + "loc": { + "start": { + "line": 1, + "column": 21 + }, + "end": { + "line": 1, + "column": 27 + } + }, + "imported": { + "type": "Identifier", + "start": 21, + "end": 27, + "loc": { + "start": { + "line": 1, + "column": 21 + }, + "end": { + "line": 1, + "column": 27 + }, + "identifierName": "CLU512" + }, + "name": "CLU512" + }, + "local": { + "type": "Identifier", + "start": 21, + "end": 27, + "loc": { + "start": { + "line": 1, + "column": 21 + }, + "end": { + "line": 1, + "column": 27 + }, + "identifierName": "CLU512" + }, + "name": "CLU512" + } + }, + { + "type": "ImportSpecifier", + "start": 29, + "end": 33, + "loc": { + "start": { + "line": 1, + "column": 29 + }, + "end": { + "line": 1, + "column": 33 + } + }, + "imported": { + "type": "Identifier", + "start": 29, + "end": 33, + "loc": { + "start": { + "line": 1, + "column": 29 + }, + "end": { + "line": 1, + "column": 33 + }, + "identifierName": "CLU8" + }, + "name": "CLU8" + }, + "local": { + "type": "Identifier", + "start": 29, + "end": 33, + "loc": { + "start": { + "line": 1, + "column": 29 + }, + "end": { + "line": 1, + "column": 33 + }, + "identifierName": "CLU8" + }, + "name": "CLU8" + } + }, + { + "type": "ImportSpecifier", + "start": 35, + "end": 46, + "loc": { + "start": { + "line": 1, + "column": 35 + }, + "end": { + "line": 1, + "column": 46 + } + }, + "imported": { + "type": "Identifier", + "start": 35, + "end": 46, + "loc": { + "start": { + "line": 1, + "column": 35 + }, + "end": { + "line": 1, + "column": 46 + }, + "identifierName": "RuntimeArgs" + }, + "name": "RuntimeArgs" + }, + "local": { + "type": "Identifier", + "start": 35, + "end": 46, + "loc": { + "start": { + "line": 1, + "column": 35 + }, + "end": { + "line": 1, + "column": 46 + }, + "identifierName": "RuntimeArgs" + }, + "name": "RuntimeArgs" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 53, + "end": 68, + "loc": { + "start": { + "line": 1, + "column": 53 + }, + "end": { + "line": 1, + "column": 68 + } + }, + "extra": { + "rawValue": "casper-js-sdk", + "raw": "\"casper-js-sdk\"" + }, + "value": "casper-js-sdk" + } + }, + { + "type": "ImportDeclaration", + "start": 70, + "end": 131, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 61 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 78, + "end": 91, + "loc": { + "start": { + "line": 2, + "column": 8 + }, + "end": { + "line": 2, + "column": 21 + } + }, + "imported": { + "type": "Identifier", + "start": 78, + "end": 91, + "loc": { + "start": { + "line": 2, + "column": 8 + }, + "end": { + "line": 2, + "column": 21 + }, + "identifierName": "CurrencyUtils" + }, + "name": "CurrencyUtils" + }, + "local": { + "type": "Identifier", + "start": 78, + "end": 91, + "loc": { + "start": { + "line": 2, + "column": 8 + }, + "end": { + "line": 2, + "column": 21 + }, + "identifierName": "CurrencyUtils" + }, + "name": "CurrencyUtils" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 98, + "end": 130, + "loc": { + "start": { + "line": 2, + "column": 28 + }, + "end": { + "line": 2, + "column": 60 + } + }, + "extra": { + "rawValue": "../../../helpers/currencyUtils", + "raw": "\"../../../helpers/currencyUtils\"" + }, + "value": "../../../helpers/currencyUtils" + } + }, + { + "type": "ImportDeclaration", + "start": 132, + "end": 191, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 59 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 140, + "end": 152, + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 3, + "column": 20 + } + }, + "imported": { + "type": "Identifier", + "start": 140, + "end": 152, + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 3, + "column": 20 + }, + "identifierName": "AddBidResult" + }, + "name": "AddBidResult" + }, + "local": { + "type": "Identifier", + "start": 140, + "end": 152, + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 3, + "column": 20 + }, + "identifierName": "AddBidResult" + }, + "name": "AddBidResult" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 159, + "end": 190, + "loc": { + "start": { + "line": 3, + "column": 27 + }, + "end": { + "line": 3, + "column": 58 + } + }, + "extra": { + "rawValue": "../../../results/addBidResult", + "raw": "\"../../../results/addBidResult\"" + }, + "value": "../../../results/addBidResult" + } + }, + { + "type": "ImportDeclaration", + "start": 192, + "end": 314, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 122 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 200, + "end": 249, + "loc": { + "start": { + "line": 4, + "column": 8 + }, + "end": { + "line": 4, + "column": 57 + } + }, + "imported": { + "type": "Identifier", + "start": 200, + "end": 249, + "loc": { + "start": { + "line": 4, + "column": 8 + }, + "end": { + "line": 4, + "column": 57 + }, + "identifierName": "AbstractSmartContractStoredByHashDeployParameters" + }, + "name": "AbstractSmartContractStoredByHashDeployParameters" + }, + "local": { + "type": "Identifier", + "start": 200, + "end": 249, + "loc": { + "start": { + "line": 4, + "column": 8 + }, + "end": { + "line": 4, + "column": 57 + }, + "identifierName": "AbstractSmartContractStoredByHashDeployParameters" + }, + "name": "AbstractSmartContractStoredByHashDeployParameters" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 256, + "end": 313, + "loc": { + "start": { + "line": 4, + "column": 64 + }, + "end": { + "line": 4, + "column": 121 + } + }, + "extra": { + "rawValue": "../../abstractSmartContractStoredByHashDeployParameters", + "raw": "\"../../abstractSmartContractStoredByHashDeployParameters\"" + }, + "value": "../../abstractSmartContractStoredByHashDeployParameters" + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * @constant\n * @type {string}\n ", + "start": 316, + "end": 354, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + } + ] + }, + { + "type": "VariableDeclaration", + "start": 355, + "end": 383, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 10, + "column": 28 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 361, + "end": 383, + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 10, + "column": 28 + } + }, + "id": { + "type": "Identifier", + "start": 361, + "end": 371, + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 10, + "column": 16 + }, + "identifierName": "entrypoint" + }, + "name": "entrypoint", + "leadingComments": null + }, + "init": { + "type": "StringLiteral", + "start": 374, + "end": 383, + "loc": { + "start": { + "line": 10, + "column": 19 + }, + "end": { + "line": 10, + "column": 28 + } + }, + "extra": { + "rawValue": "add_bid", + "raw": "'add_bid'" + }, + "value": "add_bid", + "leadingComments": null, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * @constant\n * @type {string}\n ", + "start": 316, + "end": 354, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * @constant\n * @type {number}\n ", + "start": 384, + "end": 422, + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + } + } + ] + }, + { + "type": "VariableDeclaration", + "start": 423, + "end": 445, + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 15, + "column": 22 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 429, + "end": 445, + "loc": { + "start": { + "line": 15, + "column": 6 + }, + "end": { + "line": 15, + "column": 22 + } + }, + "id": { + "type": "Identifier", + "start": 429, + "end": 432, + "loc": { + "start": { + "line": 15, + "column": 6 + }, + "end": { + "line": 15, + "column": 9 + }, + "identifierName": "fee" + }, + "name": "fee", + "leadingComments": null + }, + "init": { + "type": "NumericLiteral", + "start": 435, + "end": 445, + "loc": { + "start": { + "line": 15, + "column": 12 + }, + "end": { + "line": 15, + "column": 22 + } + }, + "extra": { + "rawValue": 2800000000, + "raw": "2800000000" + }, + "value": 2800000000, + "leadingComments": null, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * @constant\n * @type {number}\n ", + "start": 384, + "end": 422, + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * AddBid class\n * Class used to create DeployParameters for a AddBid operation\n ", + "start": 447, + "end": 534, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 20, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 535, + "end": 1629, + "loc": { + "start": { + "line": 21, + "column": 0 + }, + "end": { + "line": 49, + "column": 1 + } + }, + "specifiers": [], + "source": null, + "declaration": { + "type": "ClassDeclaration", + "start": 542, + "end": 1629, + "loc": { + "start": { + "line": 21, + "column": 7 + }, + "end": { + "line": 49, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 548, + "end": 554, + "loc": { + "start": { + "line": 21, + "column": 13 + }, + "end": { + "line": 21, + "column": 19 + }, + "identifierName": "AddBid" + }, + "name": "AddBid", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 563, + "end": 612, + "loc": { + "start": { + "line": 21, + "column": 28 + }, + "end": { + "line": 21, + "column": 77 + }, + "identifierName": "AbstractSmartContractStoredByHashDeployParameters" + }, + "name": "AbstractSmartContractStoredByHashDeployParameters" + }, + "body": { + "type": "ClassBody", + "start": 613, + "end": 1629, + "loc": { + "start": { + "line": 21, + "column": 78 + }, + "end": { + "line": 49, + "column": 1 + } + }, + "body": [ + { + "type": "ClassMethod", + "start": 1050, + "end": 1415, + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 39, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1050, + "end": 1061, + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 32, + "column": 15 + }, + "identifierName": "constructor" + }, + "name": "constructor", + "leadingComments": null + }, + "kind": "constructor", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1062, + "end": 1068, + "loc": { + "start": { + "line": 32, + "column": 16 + }, + "end": { + "line": 32, + "column": 22 + }, + "identifierName": "amount" + }, + "name": "amount" + }, + { + "type": "Identifier", + "start": 1070, + "end": 1079, + "loc": { + "start": { + "line": 32, + "column": 24 + }, + "end": { + "line": 32, + "column": 33 + }, + "identifierName": "activeKey" + }, + "name": "activeKey" + }, + { + "type": "Identifier", + "start": 1081, + "end": 1091, + "loc": { + "start": { + "line": 32, + "column": 35 + }, + "end": { + "line": 32, + "column": 45 + }, + "identifierName": "commission" + }, + "name": "commission" + }, + { + "type": "Identifier", + "start": 1093, + "end": 1100, + "loc": { + "start": { + "line": 32, + "column": 47 + }, + "end": { + "line": 32, + "column": 54 + }, + "identifierName": "network" + }, + "name": "network" + }, + { + "type": "Identifier", + "start": 1102, + "end": 1106, + "loc": { + "start": { + "line": 32, + "column": 56 + }, + "end": { + "line": 32, + "column": 60 + }, + "identifierName": "hash" + }, + "name": "hash" + } + ], + "body": { + "type": "BlockStatement", + "start": 1108, + "end": 1415, + "loc": { + "start": { + "line": 32, + "column": 62 + }, + "end": { + "line": 39, + "column": 5 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 1118, + "end": 1345, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 37, + "column": 10 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1124, + "end": 1345, + "loc": { + "start": { + "line": 33, + "column": 14 + }, + "end": { + "line": 37, + "column": 10 + } + }, + "id": { + "type": "Identifier", + "start": 1124, + "end": 1128, + "loc": { + "start": { + "line": 33, + "column": 14 + }, + "end": { + "line": 33, + "column": 18 + }, + "identifierName": "args" + }, + "name": "args" + }, + "init": { + "type": "CallExpression", + "start": 1131, + "end": 1345, + "loc": { + "start": { + "line": 33, + "column": 21 + }, + "end": { + "line": 37, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1131, + "end": 1150, + "loc": { + "start": { + "line": 33, + "column": 21 + }, + "end": { + "line": 33, + "column": 40 + } + }, + "object": { + "type": "Identifier", + "start": 1131, + "end": 1142, + "loc": { + "start": { + "line": 33, + "column": 21 + }, + "end": { + "line": 33, + "column": 32 + }, + "identifierName": "RuntimeArgs" + }, + "name": "RuntimeArgs" + }, + "property": { + "type": "Identifier", + "start": 1143, + "end": 1150, + "loc": { + "start": { + "line": 33, + "column": 33 + }, + "end": { + "line": 33, + "column": 40 + }, + "identifierName": "fromMap" + }, + "name": "fromMap" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 1151, + "end": 1344, + "loc": { + "start": { + "line": 33, + "column": 41 + }, + "end": { + "line": 37, + "column": 9 + } + }, + "properties": [ + { + "type": "ObjectProperty", + "start": 1165, + "end": 1207, + "loc": { + "start": { + "line": 34, + "column": 12 + }, + "end": { + "line": 34, + "column": 54 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1165, + "end": 1175, + "loc": { + "start": { + "line": 34, + "column": 12 + }, + "end": { + "line": 34, + "column": 22 + }, + "identifierName": "public_key" + }, + "name": "public_key" + }, + "value": { + "type": "CallExpression", + "start": 1177, + "end": 1207, + "loc": { + "start": { + "line": 34, + "column": 24 + }, + "end": { + "line": 34, + "column": 54 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1177, + "end": 1196, + "loc": { + "start": { + "line": 34, + "column": 24 + }, + "end": { + "line": 34, + "column": 43 + } + }, + "object": { + "type": "Identifier", + "start": 1177, + "end": 1188, + "loc": { + "start": { + "line": 34, + "column": 24 + }, + "end": { + "line": 34, + "column": 35 + }, + "identifierName": "CLPublicKey" + }, + "name": "CLPublicKey" + }, + "property": { + "type": "Identifier", + "start": 1189, + "end": 1196, + "loc": { + "start": { + "line": 34, + "column": 36 + }, + "end": { + "line": 34, + "column": 43 + }, + "identifierName": "fromHex" + }, + "name": "fromHex" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 1197, + "end": 1206, + "loc": { + "start": { + "line": 34, + "column": 44 + }, + "end": { + "line": 34, + "column": 53 + }, + "identifierName": "activeKey" + }, + "name": "activeKey" + } + ] + } + }, + { + "type": "ObjectProperty", + "start": 1221, + "end": 1283, + "loc": { + "start": { + "line": 35, + "column": 12 + }, + "end": { + "line": 35, + "column": 74 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1221, + "end": 1227, + "loc": { + "start": { + "line": 35, + "column": 12 + }, + "end": { + "line": 35, + "column": 18 + }, + "identifierName": "amount" + }, + "name": "amount" + }, + "value": { + "type": "NewExpression", + "start": 1229, + "end": 1283, + "loc": { + "start": { + "line": 35, + "column": 20 + }, + "end": { + "line": 35, + "column": 74 + } + }, + "callee": { + "type": "Identifier", + "start": 1233, + "end": 1239, + "loc": { + "start": { + "line": 35, + "column": 24 + }, + "end": { + "line": 35, + "column": 30 + }, + "identifierName": "CLU512" + }, + "name": "CLU512" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 1240, + "end": 1282, + "loc": { + "start": { + "line": 35, + "column": 31 + }, + "end": { + "line": 35, + "column": 73 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1240, + "end": 1274, + "loc": { + "start": { + "line": 35, + "column": 31 + }, + "end": { + "line": 35, + "column": 65 + } + }, + "object": { + "type": "Identifier", + "start": 1240, + "end": 1253, + "loc": { + "start": { + "line": 35, + "column": 31 + }, + "end": { + "line": 35, + "column": 44 + }, + "identifierName": "CurrencyUtils" + }, + "name": "CurrencyUtils" + }, + "property": { + "type": "Identifier", + "start": 1254, + "end": 1274, + "loc": { + "start": { + "line": 35, + "column": 45 + }, + "end": { + "line": 35, + "column": 65 + }, + "identifierName": "convertCasperToMotes" + }, + "name": "convertCasperToMotes" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 1275, + "end": 1281, + "loc": { + "start": { + "line": 35, + "column": 66 + }, + "end": { + "line": 35, + "column": 72 + }, + "identifierName": "amount" + }, + "name": "amount" + } + ] + } + ] + } + }, + { + "type": "ObjectProperty", + "start": 1297, + "end": 1334, + "loc": { + "start": { + "line": 36, + "column": 12 + }, + "end": { + "line": 36, + "column": 49 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1297, + "end": 1312, + "loc": { + "start": { + "line": 36, + "column": 12 + }, + "end": { + "line": 36, + "column": 27 + }, + "identifierName": "delegation_rate" + }, + "name": "delegation_rate" + }, + "value": { + "type": "NewExpression", + "start": 1314, + "end": 1334, + "loc": { + "start": { + "line": 36, + "column": 29 + }, + "end": { + "line": 36, + "column": 49 + } + }, + "callee": { + "type": "Identifier", + "start": 1318, + "end": 1322, + "loc": { + "start": { + "line": 36, + "column": 33 + }, + "end": { + "line": 36, + "column": 37 + }, + "identifierName": "CLU8" + }, + "name": "CLU8" + }, + "arguments": [ + { + "type": "Identifier", + "start": 1323, + "end": 1333, + "loc": { + "start": { + "line": 36, + "column": 38 + }, + "end": { + "line": 36, + "column": 48 + }, + "identifierName": "commission" + }, + "name": "commission" + } + ] + } + } + ] + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "ExpressionStatement", + "start": 1354, + "end": 1409, + "loc": { + "start": { + "line": 38, + "column": 8 + }, + "end": { + "line": 38, + "column": 63 + } + }, + "expression": { + "type": "CallExpression", + "start": 1354, + "end": 1408, + "loc": { + "start": { + "line": 38, + "column": 8 + }, + "end": { + "line": 38, + "column": 62 + } + }, + "callee": { + "type": "Super", + "start": 1354, + "end": 1359, + "loc": { + "start": { + "line": 38, + "column": 8 + }, + "end": { + "line": 38, + "column": 13 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "start": 1360, + "end": 1369, + "loc": { + "start": { + "line": 38, + "column": 14 + }, + "end": { + "line": 38, + "column": 23 + }, + "identifierName": "activeKey" + }, + "name": "activeKey" + }, + { + "type": "Identifier", + "start": 1371, + "end": 1378, + "loc": { + "start": { + "line": 38, + "column": 25 + }, + "end": { + "line": 38, + "column": 32 + }, + "identifierName": "network" + }, + "name": "network" + }, + { + "type": "Identifier", + "start": 1380, + "end": 1384, + "loc": { + "start": { + "line": 38, + "column": 34 + }, + "end": { + "line": 38, + "column": 38 + }, + "identifierName": "hash" + }, + "name": "hash" + }, + { + "type": "Identifier", + "start": 1386, + "end": 1396, + "loc": { + "start": { + "line": 38, + "column": 40 + }, + "end": { + "line": 38, + "column": 50 + }, + "identifierName": "entrypoint" + }, + "name": "entrypoint" + }, + { + "type": "Identifier", + "start": 1398, + "end": 1402, + "loc": { + "start": { + "line": 38, + "column": 52 + }, + "end": { + "line": 38, + "column": 56 + }, + "identifierName": "args" + }, + "name": "args" + }, + { + "type": "Identifier", + "start": 1404, + "end": 1407, + "loc": { + "start": { + "line": 38, + "column": 58 + }, + "end": { + "line": 38, + "column": 61 + }, + "identifierName": "fee" + }, + "name": "fee" + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {number} amount - Amount of casper to add to the bid\n * @param {string} activeKey - Current active key in the public hex format\n * @param {number} commission - Set the commission of the validator to the given percentage\n * @param {string} network - Current network to execute the deployment\n * @param {string} hash - Current hash of the stored SmartContract\n ", + "start": 620, + "end": 1045, + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 31, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Get a DeployResult constructor\n *\n * @return {DeployResult.constructor} - Return the constructor of a given DeployResult\n ", + "start": 1421, + "end": 1568, + "loc": { + "start": { + "line": 41, + "column": 4 + }, + "end": { + "line": 45, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 1573, + "end": 1627, + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 48, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1577, + "end": 1589, + "loc": { + "start": { + "line": 46, + "column": 8 + }, + "end": { + "line": 46, + "column": 20 + }, + "identifierName": "deployResult" + }, + "name": "deployResult" + }, + "kind": "get", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 1592, + "end": 1627, + "loc": { + "start": { + "line": 46, + "column": 23 + }, + "end": { + "line": 48, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 1602, + "end": 1621, + "loc": { + "start": { + "line": 47, + "column": 8 + }, + "end": { + "line": 47, + "column": 27 + } + }, + "argument": { + "type": "Identifier", + "start": 1609, + "end": 1621, + "loc": { + "start": { + "line": 47, + "column": 15 + }, + "end": { + "line": 47, + "column": 27 + }, + "identifierName": "AddBidResult" + }, + "name": "AddBidResult" + } + } + ], + "directives": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Get a DeployResult constructor\n *\n * @return {DeployResult.constructor} - Return the constructor of a given DeployResult\n ", + "start": 1421, + "end": 1568, + "loc": { + "start": { + "line": 41, + "column": 4 + }, + "end": { + "line": 45, + "column": 7 + } + } + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * AddBid class\n * Class used to create DeployParameters for a AddBid operation\n ", + "start": 447, + "end": 534, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 20, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * AddBid class\n * Class used to create DeployParameters for a AddBid operation\n ", + "start": 447, + "end": 534, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 20, + "column": 3 + } + } + } + ] + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\n * @constant\n * @type {string}\n ", + "start": 316, + "end": 354, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @constant\n * @type {number}\n ", + "start": 384, + "end": 422, + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * AddBid class\n * Class used to create DeployParameters for a AddBid operation\n ", + "start": 447, + "end": 534, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 20, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {number} amount - Amount of casper to add to the bid\n * @param {string} activeKey - Current active key in the public hex format\n * @param {number} commission - Set the commission of the validator to the given percentage\n * @param {string} network - Current network to execute the deployment\n * @param {string} hash - Current hash of the stored SmartContract\n ", + "start": 620, + "end": 1045, + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 31, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Get a DeployResult constructor\n *\n * @return {DeployResult.constructor} - Return the constructor of a given DeployResult\n ", + "start": 1421, + "end": 1568, + "loc": { + "start": { + "line": 41, + "column": 4 + }, + "end": { + "line": 45, + "column": 7 + } + } + } + ], + "tokens": [ + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 0, + "end": 6, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7, + "end": 8, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CLPublicKey", + "start": 8, + "end": 19, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 19 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 19, + "end": 20, + "loc": { + "start": { + "line": 1, + "column": 19 + }, + "end": { + "line": 1, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CLU512", + "start": 21, + "end": 27, + "loc": { + "start": { + "line": 1, + "column": 21 + }, + "end": { + "line": 1, + "column": 27 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 27, + "end": 28, + "loc": { + "start": { + "line": 1, + "column": 27 + }, + "end": { + "line": 1, + "column": 28 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CLU8", + "start": 29, + "end": 33, + "loc": { + "start": { + "line": 1, + "column": 29 + }, + "end": { + "line": 1, + "column": 33 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 33, + "end": 34, + "loc": { + "start": { + "line": 1, + "column": 33 + }, + "end": { + "line": 1, + "column": 34 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "RuntimeArgs", + "start": 35, + "end": 46, + "loc": { + "start": { + "line": 1, + "column": 35 + }, + "end": { + "line": 1, + "column": 46 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 46, + "end": 47, + "loc": { + "start": { + "line": 1, + "column": 46 + }, + "end": { + "line": 1, + "column": 47 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 48, + "end": 52, + "loc": { + "start": { + "line": 1, + "column": 48 + }, + "end": { + "line": 1, + "column": 52 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "casper-js-sdk", + "start": 53, + "end": 68, + "loc": { + "start": { + "line": 1, + "column": 53 + }, + "end": { + "line": 1, + "column": 68 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 68, + "end": 69, + "loc": { + "start": { + "line": 1, + "column": 68 + }, + "end": { + "line": 1, + "column": 69 + } + } + }, + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 70, + "end": 76, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 77, + "end": 78, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CurrencyUtils", + "start": 78, + "end": 91, + "loc": { + "start": { + "line": 2, + "column": 8 + }, + "end": { + "line": 2, + "column": 21 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 91, + "end": 92, + "loc": { + "start": { + "line": 2, + "column": 21 + }, + "end": { + "line": 2, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 93, + "end": 97, + "loc": { + "start": { + "line": 2, + "column": 23 + }, + "end": { + "line": 2, + "column": 27 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "../../../helpers/currencyUtils", + "start": 98, + "end": 130, + "loc": { + "start": { + "line": 2, + "column": 28 + }, + "end": { + "line": 2, + "column": 60 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 130, + "end": 131, + "loc": { + "start": { + "line": 2, + "column": 60 + }, + "end": { + "line": 2, + "column": 61 + } + } + }, + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 132, + "end": 138, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 139, + "end": 140, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "AddBidResult", + "start": 140, + "end": 152, + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 3, + "column": 20 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 152, + "end": 153, + "loc": { + "start": { + "line": 3, + "column": 20 + }, + "end": { + "line": 3, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 154, + "end": 158, + "loc": { + "start": { + "line": 3, + "column": 22 + }, + "end": { + "line": 3, + "column": 26 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "../../../results/addBidResult", + "start": 159, + "end": 190, + "loc": { + "start": { + "line": 3, + "column": 27 + }, + "end": { + "line": 3, + "column": 58 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 190, + "end": 191, + "loc": { + "start": { + "line": 3, + "column": 58 + }, + "end": { + "line": 3, + "column": 59 + } + } + }, + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 192, + "end": 198, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 199, + "end": 200, + "loc": { + "start": { + "line": 4, + "column": 7 + }, + "end": { + "line": 4, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "AbstractSmartContractStoredByHashDeployParameters", + "start": 200, + "end": 249, + "loc": { + "start": { + "line": 4, + "column": 8 + }, + "end": { + "line": 4, + "column": 57 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 249, + "end": 250, + "loc": { + "start": { + "line": 4, + "column": 57 + }, + "end": { + "line": 4, + "column": 58 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 251, + "end": 255, + "loc": { + "start": { + "line": 4, + "column": 59 + }, + "end": { + "line": 4, + "column": 63 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "../../abstractSmartContractStoredByHashDeployParameters", + "start": 256, + "end": 313, + "loc": { + "start": { + "line": 4, + "column": 64 + }, + "end": { + "line": 4, + "column": 121 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 313, + "end": 314, + "loc": { + "start": { + "line": 4, + "column": 121 + }, + "end": { + "line": 4, + "column": 122 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @constant\n * @type {string}\n ", + "start": 316, + "end": 354, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 355, + "end": 360, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 10, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "entrypoint", + "start": 361, + "end": 371, + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 10, + "column": 16 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 372, + "end": 373, + "loc": { + "start": { + "line": 10, + "column": 17 + }, + "end": { + "line": 10, + "column": 18 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "add_bid", + "start": 374, + "end": 383, + "loc": { + "start": { + "line": 10, + "column": 19 + }, + "end": { + "line": 10, + "column": 28 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @constant\n * @type {number}\n ", + "start": 384, + "end": 422, + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 423, + "end": 428, + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 15, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "fee", + "start": 429, + "end": 432, + "loc": { + "start": { + "line": 15, + "column": 6 + }, + "end": { + "line": 15, + "column": 9 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 433, + "end": 434, + "loc": { + "start": { + "line": 15, + "column": 10 + }, + "end": { + "line": 15, + "column": 11 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 2800000000, + "start": 435, + "end": 445, + "loc": { + "start": { + "line": 15, + "column": 12 + }, + "end": { + "line": 15, + "column": 22 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * AddBid class\n * Class used to create DeployParameters for a AddBid operation\n ", + "start": 447, + "end": 534, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 20, + "column": 3 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 535, + "end": 541, + "loc": { + "start": { + "line": 21, + "column": 0 + }, + "end": { + "line": 21, + "column": 6 + } + } + }, + { + "type": { + "label": "class", + "keyword": "class", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "class", + "start": 542, + "end": 547, + "loc": { + "start": { + "line": 21, + "column": 7 + }, + "end": { + "line": 21, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "AddBid", + "start": 548, + "end": 554, + "loc": { + "start": { + "line": 21, + "column": 13 + }, + "end": { + "line": 21, + "column": 19 + } + } + }, + { + "type": { + "label": "extends", + "keyword": "extends", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "extends", + "start": 555, + "end": 562, + "loc": { + "start": { + "line": 21, + "column": 20 + }, + "end": { + "line": 21, + "column": 27 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "AbstractSmartContractStoredByHashDeployParameters", + "start": 563, + "end": 612, + "loc": { + "start": { + "line": 21, + "column": 28 + }, + "end": { + "line": 21, + "column": 77 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 613, + "end": 614, + "loc": { + "start": { + "line": 21, + "column": 78 + }, + "end": { + "line": 21, + "column": 79 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {number} amount - Amount of casper to add to the bid\n * @param {string} activeKey - Current active key in the public hex format\n * @param {number} commission - Set the commission of the validator to the given percentage\n * @param {string} network - Current network to execute the deployment\n * @param {string} hash - Current hash of the stored SmartContract\n ", + "start": 620, + "end": 1045, + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 31, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "constructor", + "start": 1050, + "end": 1061, + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 32, + "column": 15 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1061, + "end": 1062, + "loc": { + "start": { + "line": 32, + "column": 15 + }, + "end": { + "line": 32, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "amount", + "start": 1062, + "end": 1068, + "loc": { + "start": { + "line": 32, + "column": 16 + }, + "end": { + "line": 32, + "column": 22 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1068, + "end": 1069, + "loc": { + "start": { + "line": 32, + "column": 22 + }, + "end": { + "line": 32, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "activeKey", + "start": 1070, + "end": 1079, + "loc": { + "start": { + "line": 32, + "column": 24 + }, + "end": { + "line": 32, + "column": 33 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1079, + "end": 1080, + "loc": { + "start": { + "line": 32, + "column": 33 + }, + "end": { + "line": 32, + "column": 34 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "commission", + "start": 1081, + "end": 1091, + "loc": { + "start": { + "line": 32, + "column": 35 + }, + "end": { + "line": 32, + "column": 45 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1091, + "end": 1092, + "loc": { + "start": { + "line": 32, + "column": 45 + }, + "end": { + "line": 32, + "column": 46 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "network", + "start": 1093, + "end": 1100, + "loc": { + "start": { + "line": 32, + "column": 47 + }, + "end": { + "line": 32, + "column": 54 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1100, + "end": 1101, + "loc": { + "start": { + "line": 32, + "column": 54 + }, + "end": { + "line": 32, + "column": 55 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "hash", + "start": 1102, + "end": 1106, + "loc": { + "start": { + "line": 32, + "column": 56 + }, + "end": { + "line": 32, + "column": 60 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1106, + "end": 1107, + "loc": { + "start": { + "line": 32, + "column": 60 + }, + "end": { + "line": 32, + "column": 61 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1108, + "end": 1109, + "loc": { + "start": { + "line": 32, + "column": 62 + }, + "end": { + "line": 32, + "column": 63 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 1118, + "end": 1123, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 33, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "args", + "start": 1124, + "end": 1128, + "loc": { + "start": { + "line": 33, + "column": 14 + }, + "end": { + "line": 33, + "column": 18 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1129, + "end": 1130, + "loc": { + "start": { + "line": 33, + "column": 19 + }, + "end": { + "line": 33, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "RuntimeArgs", + "start": 1131, + "end": 1142, + "loc": { + "start": { + "line": 33, + "column": 21 + }, + "end": { + "line": 33, + "column": 32 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1142, + "end": 1143, + "loc": { + "start": { + "line": 33, + "column": 32 + }, + "end": { + "line": 33, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "fromMap", + "start": 1143, + "end": 1150, + "loc": { + "start": { + "line": 33, + "column": 33 + }, + "end": { + "line": 33, + "column": 40 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1150, + "end": 1151, + "loc": { + "start": { + "line": 33, + "column": 40 + }, + "end": { + "line": 33, + "column": 41 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1151, + "end": 1152, + "loc": { + "start": { + "line": 33, + "column": 41 + }, + "end": { + "line": 33, + "column": 42 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "public_key", + "start": 1165, + "end": 1175, + "loc": { + "start": { + "line": 34, + "column": 12 + }, + "end": { + "line": 34, + "column": 22 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1175, + "end": 1176, + "loc": { + "start": { + "line": 34, + "column": 22 + }, + "end": { + "line": 34, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CLPublicKey", + "start": 1177, + "end": 1188, + "loc": { + "start": { + "line": 34, + "column": 24 + }, + "end": { + "line": 34, + "column": 35 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1188, + "end": 1189, + "loc": { + "start": { + "line": 34, + "column": 35 + }, + "end": { + "line": 34, + "column": 36 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "fromHex", + "start": 1189, + "end": 1196, + "loc": { + "start": { + "line": 34, + "column": 36 + }, + "end": { + "line": 34, + "column": 43 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1196, + "end": 1197, + "loc": { + "start": { + "line": 34, + "column": 43 + }, + "end": { + "line": 34, + "column": 44 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "activeKey", + "start": 1197, + "end": 1206, + "loc": { + "start": { + "line": 34, + "column": 44 + }, + "end": { + "line": 34, + "column": 53 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1206, + "end": 1207, + "loc": { + "start": { + "line": 34, + "column": 53 + }, + "end": { + "line": 34, + "column": 54 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1207, + "end": 1208, + "loc": { + "start": { + "line": 34, + "column": 54 + }, + "end": { + "line": 34, + "column": 55 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "amount", + "start": 1221, + "end": 1227, + "loc": { + "start": { + "line": 35, + "column": 12 + }, + "end": { + "line": 35, + "column": 18 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1227, + "end": 1228, + "loc": { + "start": { + "line": 35, + "column": 18 + }, + "end": { + "line": 35, + "column": 19 + } + } + }, + { + "type": { + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "new", + "start": 1229, + "end": 1232, + "loc": { + "start": { + "line": 35, + "column": 20 + }, + "end": { + "line": 35, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CLU512", + "start": 1233, + "end": 1239, + "loc": { + "start": { + "line": 35, + "column": 24 + }, + "end": { + "line": 35, + "column": 30 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1239, + "end": 1240, + "loc": { + "start": { + "line": 35, + "column": 30 + }, + "end": { + "line": 35, + "column": 31 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CurrencyUtils", + "start": 1240, + "end": 1253, + "loc": { + "start": { + "line": 35, + "column": 31 + }, + "end": { + "line": 35, + "column": 44 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1253, + "end": 1254, + "loc": { + "start": { + "line": 35, + "column": 44 + }, + "end": { + "line": 35, + "column": 45 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "convertCasperToMotes", + "start": 1254, + "end": 1274, + "loc": { + "start": { + "line": 35, + "column": 45 + }, + "end": { + "line": 35, + "column": 65 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1274, + "end": 1275, + "loc": { + "start": { + "line": 35, + "column": 65 + }, + "end": { + "line": 35, + "column": 66 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "amount", + "start": 1275, + "end": 1281, + "loc": { + "start": { + "line": 35, + "column": 66 + }, + "end": { + "line": 35, + "column": 72 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1281, + "end": 1282, + "loc": { + "start": { + "line": 35, + "column": 72 + }, + "end": { + "line": 35, + "column": 73 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1282, + "end": 1283, + "loc": { + "start": { + "line": 35, + "column": 73 + }, + "end": { + "line": 35, + "column": 74 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1283, + "end": 1284, + "loc": { + "start": { + "line": 35, + "column": 74 + }, + "end": { + "line": 35, + "column": 75 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "delegation_rate", + "start": 1297, + "end": 1312, + "loc": { + "start": { + "line": 36, + "column": 12 + }, + "end": { + "line": 36, + "column": 27 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1312, + "end": 1313, + "loc": { + "start": { + "line": 36, + "column": 27 + }, + "end": { + "line": 36, + "column": 28 + } + } + }, + { + "type": { + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "new", + "start": 1314, + "end": 1317, + "loc": { + "start": { + "line": 36, + "column": 29 + }, + "end": { + "line": 36, + "column": 32 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CLU8", + "start": 1318, + "end": 1322, + "loc": { + "start": { + "line": 36, + "column": 33 + }, + "end": { + "line": 36, + "column": 37 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1322, + "end": 1323, + "loc": { + "start": { + "line": 36, + "column": 37 + }, + "end": { + "line": 36, + "column": 38 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "commission", + "start": 1323, + "end": 1333, + "loc": { + "start": { + "line": 36, + "column": 38 + }, + "end": { + "line": 36, + "column": 48 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1333, + "end": 1334, + "loc": { + "start": { + "line": 36, + "column": 48 + }, + "end": { + "line": 36, + "column": 49 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1343, + "end": 1344, + "loc": { + "start": { + "line": 37, + "column": 8 + }, + "end": { + "line": 37, + "column": 9 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1344, + "end": 1345, + "loc": { + "start": { + "line": 37, + "column": 9 + }, + "end": { + "line": 37, + "column": 10 + } + } + }, + { + "type": { + "label": "super", + "keyword": "super", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "super", + "start": 1354, + "end": 1359, + "loc": { + "start": { + "line": 38, + "column": 8 + }, + "end": { + "line": 38, + "column": 13 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1359, + "end": 1360, + "loc": { + "start": { + "line": 38, + "column": 13 + }, + "end": { + "line": 38, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "activeKey", + "start": 1360, + "end": 1369, + "loc": { + "start": { + "line": 38, + "column": 14 + }, + "end": { + "line": 38, + "column": 23 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1369, + "end": 1370, + "loc": { + "start": { + "line": 38, + "column": 23 + }, + "end": { + "line": 38, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "network", + "start": 1371, + "end": 1378, + "loc": { + "start": { + "line": 38, + "column": 25 + }, + "end": { + "line": 38, + "column": 32 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1378, + "end": 1379, + "loc": { + "start": { + "line": 38, + "column": 32 + }, + "end": { + "line": 38, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "hash", + "start": 1380, + "end": 1384, + "loc": { + "start": { + "line": 38, + "column": 34 + }, + "end": { + "line": 38, + "column": 38 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1384, + "end": 1385, + "loc": { + "start": { + "line": 38, + "column": 38 + }, + "end": { + "line": 38, + "column": 39 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "entrypoint", + "start": 1386, + "end": 1396, + "loc": { + "start": { + "line": 38, + "column": 40 + }, + "end": { + "line": 38, + "column": 50 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1396, + "end": 1397, + "loc": { + "start": { + "line": 38, + "column": 50 + }, + "end": { + "line": 38, + "column": 51 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "args", + "start": 1398, + "end": 1402, + "loc": { + "start": { + "line": 38, + "column": 52 + }, + "end": { + "line": 38, + "column": 56 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1402, + "end": 1403, + "loc": { + "start": { + "line": 38, + "column": 56 + }, + "end": { + "line": 38, + "column": 57 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "fee", + "start": 1404, + "end": 1407, + "loc": { + "start": { + "line": 38, + "column": 58 + }, + "end": { + "line": 38, + "column": 61 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1407, + "end": 1408, + "loc": { + "start": { + "line": 38, + "column": 61 + }, + "end": { + "line": 38, + "column": 62 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1408, + "end": 1409, + "loc": { + "start": { + "line": 38, + "column": 62 + }, + "end": { + "line": 38, + "column": 63 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1414, + "end": 1415, + "loc": { + "start": { + "line": 39, + "column": 4 + }, + "end": { + "line": 39, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Get a DeployResult constructor\n *\n * @return {DeployResult.constructor} - Return the constructor of a given DeployResult\n ", + "start": 1421, + "end": 1568, + "loc": { + "start": { + "line": 41, + "column": 4 + }, + "end": { + "line": 45, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "get", + "start": 1573, + "end": 1576, + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 46, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "deployResult", + "start": 1577, + "end": 1589, + "loc": { + "start": { + "line": 46, + "column": 8 + }, + "end": { + "line": 46, + "column": 20 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1589, + "end": 1590, + "loc": { + "start": { + "line": 46, + "column": 20 + }, + "end": { + "line": 46, + "column": 21 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1590, + "end": 1591, + "loc": { + "start": { + "line": 46, + "column": 21 + }, + "end": { + "line": 46, + "column": 22 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1592, + "end": 1593, + "loc": { + "start": { + "line": 46, + "column": 23 + }, + "end": { + "line": 46, + "column": 24 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 1602, + "end": 1608, + "loc": { + "start": { + "line": 47, + "column": 8 + }, + "end": { + "line": 47, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "AddBidResult", + "start": 1609, + "end": 1621, + "loc": { + "start": { + "line": 47, + "column": 15 + }, + "end": { + "line": 47, + "column": 27 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1626, + "end": 1627, + "loc": { + "start": { + "line": 48, + "column": 4 + }, + "end": { + "line": 48, + "column": 5 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1628, + "end": 1629, + "loc": { + "start": { + "line": 49, + "column": 0 + }, + "end": { + "line": 49, + "column": 1 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1629, + "end": 1629, + "loc": { + "start": { + "line": 49, + "column": 1 + }, + "end": { + "line": 49, + "column": 1 + } + } + } + ] +} \ No newline at end of file diff --git a/ast/source/services/deploys/auction/actions/delegate.js.json b/ast/source/services/deploys/auction/actions/delegate.js.json new file mode 100644 index 0000000..699f80e --- /dev/null +++ b/ast/source/services/deploys/auction/actions/delegate.js.json @@ -0,0 +1,5218 @@ +{ + "type": "File", + "start": 0, + "end": 1595, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 49, + "column": 1 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 1595, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 49, + "column": 1 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 63, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 63 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 8, + "end": 19, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 19 + } + }, + "imported": { + "type": "Identifier", + "start": 8, + "end": 19, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 19 + }, + "identifierName": "CLPublicKey" + }, + "name": "CLPublicKey" + }, + "local": { + "type": "Identifier", + "start": 8, + "end": 19, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 19 + }, + "identifierName": "CLPublicKey" + }, + "name": "CLPublicKey" + } + }, + { + "type": "ImportSpecifier", + "start": 21, + "end": 27, + "loc": { + "start": { + "line": 1, + "column": 21 + }, + "end": { + "line": 1, + "column": 27 + } + }, + "imported": { + "type": "Identifier", + "start": 21, + "end": 27, + "loc": { + "start": { + "line": 1, + "column": 21 + }, + "end": { + "line": 1, + "column": 27 + }, + "identifierName": "CLU512" + }, + "name": "CLU512" + }, + "local": { + "type": "Identifier", + "start": 21, + "end": 27, + "loc": { + "start": { + "line": 1, + "column": 21 + }, + "end": { + "line": 1, + "column": 27 + }, + "identifierName": "CLU512" + }, + "name": "CLU512" + } + }, + { + "type": "ImportSpecifier", + "start": 29, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 29 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "imported": { + "type": "Identifier", + "start": 29, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 29 + }, + "end": { + "line": 1, + "column": 40 + }, + "identifierName": "RuntimeArgs" + }, + "name": "RuntimeArgs" + }, + "local": { + "type": "Identifier", + "start": 29, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 29 + }, + "end": { + "line": 1, + "column": 40 + }, + "identifierName": "RuntimeArgs" + }, + "name": "RuntimeArgs" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 47, + "end": 62, + "loc": { + "start": { + "line": 1, + "column": 47 + }, + "end": { + "line": 1, + "column": 62 + } + }, + "extra": { + "rawValue": "casper-js-sdk", + "raw": "\"casper-js-sdk\"" + }, + "value": "casper-js-sdk" + } + }, + { + "type": "ImportDeclaration", + "start": 64, + "end": 111, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 47 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 72, + "end": 85, + "loc": { + "start": { + "line": 2, + "column": 8 + }, + "end": { + "line": 2, + "column": 21 + } + }, + "imported": { + "type": "Identifier", + "start": 72, + "end": 85, + "loc": { + "start": { + "line": 2, + "column": 8 + }, + "end": { + "line": 2, + "column": 21 + }, + "identifierName": "CurrencyUtils" + }, + "name": "CurrencyUtils" + }, + "local": { + "type": "Identifier", + "start": 72, + "end": 85, + "loc": { + "start": { + "line": 2, + "column": 8 + }, + "end": { + "line": 2, + "column": 21 + }, + "identifierName": "CurrencyUtils" + }, + "name": "CurrencyUtils" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 92, + "end": 110, + "loc": { + "start": { + "line": 2, + "column": 28 + }, + "end": { + "line": 2, + "column": 46 + } + }, + "extra": { + "rawValue": "../../../helpers", + "raw": "\"../../../helpers\"" + }, + "value": "../../../helpers" + } + }, + { + "type": "ImportDeclaration", + "start": 112, + "end": 160, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 48 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 120, + "end": 134, + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 3, + "column": 22 + } + }, + "imported": { + "type": "Identifier", + "start": 120, + "end": 134, + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 3, + "column": 22 + }, + "identifierName": "DelegateResult" + }, + "name": "DelegateResult" + }, + "local": { + "type": "Identifier", + "start": 120, + "end": 134, + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 3, + "column": 22 + }, + "identifierName": "DelegateResult" + }, + "name": "DelegateResult" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 141, + "end": 159, + "loc": { + "start": { + "line": 3, + "column": 29 + }, + "end": { + "line": 3, + "column": 47 + } + }, + "extra": { + "rawValue": "../../../results", + "raw": "\"../../../results\"" + }, + "value": "../../../results" + } + }, + { + "type": "ImportDeclaration", + "start": 161, + "end": 283, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 122 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 169, + "end": 218, + "loc": { + "start": { + "line": 4, + "column": 8 + }, + "end": { + "line": 4, + "column": 57 + } + }, + "imported": { + "type": "Identifier", + "start": 169, + "end": 218, + "loc": { + "start": { + "line": 4, + "column": 8 + }, + "end": { + "line": 4, + "column": 57 + }, + "identifierName": "AbstractSmartContractStoredByHashDeployParameters" + }, + "name": "AbstractSmartContractStoredByHashDeployParameters" + }, + "local": { + "type": "Identifier", + "start": 169, + "end": 218, + "loc": { + "start": { + "line": 4, + "column": 8 + }, + "end": { + "line": 4, + "column": 57 + }, + "identifierName": "AbstractSmartContractStoredByHashDeployParameters" + }, + "name": "AbstractSmartContractStoredByHashDeployParameters" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 225, + "end": 282, + "loc": { + "start": { + "line": 4, + "column": 64 + }, + "end": { + "line": 4, + "column": 121 + } + }, + "extra": { + "rawValue": "../../abstractSmartContractStoredByHashDeployParameters", + "raw": "\"../../abstractSmartContractStoredByHashDeployParameters\"" + }, + "value": "../../abstractSmartContractStoredByHashDeployParameters" + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * @constant\n * @type {string}\n ", + "start": 285, + "end": 323, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + } + ] + }, + { + "type": "VariableDeclaration", + "start": 324, + "end": 353, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 10, + "column": 29 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 330, + "end": 353, + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 10, + "column": 29 + } + }, + "id": { + "type": "Identifier", + "start": 330, + "end": 340, + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 10, + "column": 16 + }, + "identifierName": "entrypoint" + }, + "name": "entrypoint", + "leadingComments": null + }, + "init": { + "type": "StringLiteral", + "start": 343, + "end": 353, + "loc": { + "start": { + "line": 10, + "column": 19 + }, + "end": { + "line": 10, + "column": 29 + } + }, + "extra": { + "rawValue": "delegate", + "raw": "'delegate'" + }, + "value": "delegate", + "leadingComments": null, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * @constant\n * @type {string}\n ", + "start": 285, + "end": 323, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * @constant\n * @type {number}\n ", + "start": 354, + "end": 392, + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + } + } + ] + }, + { + "type": "VariableDeclaration", + "start": 393, + "end": 415, + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 15, + "column": 22 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 399, + "end": 415, + "loc": { + "start": { + "line": 15, + "column": 6 + }, + "end": { + "line": 15, + "column": 22 + } + }, + "id": { + "type": "Identifier", + "start": 399, + "end": 402, + "loc": { + "start": { + "line": 15, + "column": 6 + }, + "end": { + "line": 15, + "column": 9 + }, + "identifierName": "fee" + }, + "name": "fee", + "leadingComments": null + }, + "init": { + "type": "NumericLiteral", + "start": 405, + "end": 415, + "loc": { + "start": { + "line": 15, + "column": 12 + }, + "end": { + "line": 15, + "column": 22 + } + }, + "extra": { + "rawValue": 2910000000, + "raw": "2910000000" + }, + "value": 2910000000, + "leadingComments": null, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * @constant\n * @type {number}\n ", + "start": 354, + "end": 392, + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Delegate class\n * Class used to create DeployParameters for a Delegate operation\n ", + "start": 417, + "end": 508, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 20, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 509, + "end": 1595, + "loc": { + "start": { + "line": 21, + "column": 0 + }, + "end": { + "line": 49, + "column": 1 + } + }, + "specifiers": [], + "source": null, + "declaration": { + "type": "ClassDeclaration", + "start": 516, + "end": 1595, + "loc": { + "start": { + "line": 21, + "column": 7 + }, + "end": { + "line": 49, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 522, + "end": 530, + "loc": { + "start": { + "line": 21, + "column": 13 + }, + "end": { + "line": 21, + "column": 21 + }, + "identifierName": "Delegate" + }, + "name": "Delegate", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 539, + "end": 588, + "loc": { + "start": { + "line": 21, + "column": 30 + }, + "end": { + "line": 21, + "column": 79 + }, + "identifierName": "AbstractSmartContractStoredByHashDeployParameters" + }, + "name": "AbstractSmartContractStoredByHashDeployParameters" + }, + "body": { + "type": "ClassBody", + "start": 589, + "end": 1595, + "loc": { + "start": { + "line": 21, + "column": 80 + }, + "end": { + "line": 49, + "column": 1 + } + }, + "body": [ + { + "type": "ClassMethod", + "start": 1012, + "end": 1379, + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 39, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1012, + "end": 1023, + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 32, + "column": 15 + }, + "identifierName": "constructor" + }, + "name": "constructor", + "leadingComments": null + }, + "kind": "constructor", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1024, + "end": 1030, + "loc": { + "start": { + "line": 32, + "column": 16 + }, + "end": { + "line": 32, + "column": 22 + }, + "identifierName": "amount" + }, + "name": "amount" + }, + { + "type": "Identifier", + "start": 1032, + "end": 1041, + "loc": { + "start": { + "line": 32, + "column": 24 + }, + "end": { + "line": 32, + "column": 33 + }, + "identifierName": "activeKey" + }, + "name": "activeKey" + }, + { + "type": "Identifier", + "start": 1043, + "end": 1052, + "loc": { + "start": { + "line": 32, + "column": 35 + }, + "end": { + "line": 32, + "column": 44 + }, + "identifierName": "validator" + }, + "name": "validator" + }, + { + "type": "Identifier", + "start": 1054, + "end": 1061, + "loc": { + "start": { + "line": 32, + "column": 46 + }, + "end": { + "line": 32, + "column": 53 + }, + "identifierName": "network" + }, + "name": "network" + }, + { + "type": "Identifier", + "start": 1063, + "end": 1067, + "loc": { + "start": { + "line": 32, + "column": 55 + }, + "end": { + "line": 32, + "column": 59 + }, + "identifierName": "hash" + }, + "name": "hash" + } + ], + "body": { + "type": "BlockStatement", + "start": 1069, + "end": 1379, + "loc": { + "start": { + "line": 32, + "column": 61 + }, + "end": { + "line": 39, + "column": 5 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 1079, + "end": 1309, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 37, + "column": 10 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1085, + "end": 1309, + "loc": { + "start": { + "line": 33, + "column": 14 + }, + "end": { + "line": 37, + "column": 10 + } + }, + "id": { + "type": "Identifier", + "start": 1085, + "end": 1089, + "loc": { + "start": { + "line": 33, + "column": 14 + }, + "end": { + "line": 33, + "column": 18 + }, + "identifierName": "args" + }, + "name": "args" + }, + "init": { + "type": "CallExpression", + "start": 1092, + "end": 1309, + "loc": { + "start": { + "line": 33, + "column": 21 + }, + "end": { + "line": 37, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1092, + "end": 1111, + "loc": { + "start": { + "line": 33, + "column": 21 + }, + "end": { + "line": 33, + "column": 40 + } + }, + "object": { + "type": "Identifier", + "start": 1092, + "end": 1103, + "loc": { + "start": { + "line": 33, + "column": 21 + }, + "end": { + "line": 33, + "column": 32 + }, + "identifierName": "RuntimeArgs" + }, + "name": "RuntimeArgs" + }, + "property": { + "type": "Identifier", + "start": 1104, + "end": 1111, + "loc": { + "start": { + "line": 33, + "column": 33 + }, + "end": { + "line": 33, + "column": 40 + }, + "identifierName": "fromMap" + }, + "name": "fromMap" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 1112, + "end": 1308, + "loc": { + "start": { + "line": 33, + "column": 41 + }, + "end": { + "line": 37, + "column": 9 + } + }, + "properties": [ + { + "type": "ObjectProperty", + "start": 1126, + "end": 1167, + "loc": { + "start": { + "line": 34, + "column": 12 + }, + "end": { + "line": 34, + "column": 53 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1126, + "end": 1135, + "loc": { + "start": { + "line": 34, + "column": 12 + }, + "end": { + "line": 34, + "column": 21 + }, + "identifierName": "delegator" + }, + "name": "delegator" + }, + "value": { + "type": "CallExpression", + "start": 1137, + "end": 1167, + "loc": { + "start": { + "line": 34, + "column": 23 + }, + "end": { + "line": 34, + "column": 53 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1137, + "end": 1156, + "loc": { + "start": { + "line": 34, + "column": 23 + }, + "end": { + "line": 34, + "column": 42 + } + }, + "object": { + "type": "Identifier", + "start": 1137, + "end": 1148, + "loc": { + "start": { + "line": 34, + "column": 23 + }, + "end": { + "line": 34, + "column": 34 + }, + "identifierName": "CLPublicKey" + }, + "name": "CLPublicKey" + }, + "property": { + "type": "Identifier", + "start": 1149, + "end": 1156, + "loc": { + "start": { + "line": 34, + "column": 35 + }, + "end": { + "line": 34, + "column": 42 + }, + "identifierName": "fromHex" + }, + "name": "fromHex" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 1157, + "end": 1166, + "loc": { + "start": { + "line": 34, + "column": 43 + }, + "end": { + "line": 34, + "column": 52 + }, + "identifierName": "activeKey" + }, + "name": "activeKey" + } + ] + } + }, + { + "type": "ObjectProperty", + "start": 1181, + "end": 1222, + "loc": { + "start": { + "line": 35, + "column": 12 + }, + "end": { + "line": 35, + "column": 53 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1181, + "end": 1190, + "loc": { + "start": { + "line": 35, + "column": 12 + }, + "end": { + "line": 35, + "column": 21 + }, + "identifierName": "validator" + }, + "name": "validator" + }, + "value": { + "type": "CallExpression", + "start": 1192, + "end": 1222, + "loc": { + "start": { + "line": 35, + "column": 23 + }, + "end": { + "line": 35, + "column": 53 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1192, + "end": 1211, + "loc": { + "start": { + "line": 35, + "column": 23 + }, + "end": { + "line": 35, + "column": 42 + } + }, + "object": { + "type": "Identifier", + "start": 1192, + "end": 1203, + "loc": { + "start": { + "line": 35, + "column": 23 + }, + "end": { + "line": 35, + "column": 34 + }, + "identifierName": "CLPublicKey" + }, + "name": "CLPublicKey" + }, + "property": { + "type": "Identifier", + "start": 1204, + "end": 1211, + "loc": { + "start": { + "line": 35, + "column": 35 + }, + "end": { + "line": 35, + "column": 42 + }, + "identifierName": "fromHex" + }, + "name": "fromHex" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 1212, + "end": 1221, + "loc": { + "start": { + "line": 35, + "column": 43 + }, + "end": { + "line": 35, + "column": 52 + }, + "identifierName": "validator" + }, + "name": "validator" + } + ] + } + }, + { + "type": "ObjectProperty", + "start": 1236, + "end": 1298, + "loc": { + "start": { + "line": 36, + "column": 12 + }, + "end": { + "line": 36, + "column": 74 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1236, + "end": 1242, + "loc": { + "start": { + "line": 36, + "column": 12 + }, + "end": { + "line": 36, + "column": 18 + }, + "identifierName": "amount" + }, + "name": "amount" + }, + "value": { + "type": "NewExpression", + "start": 1244, + "end": 1298, + "loc": { + "start": { + "line": 36, + "column": 20 + }, + "end": { + "line": 36, + "column": 74 + } + }, + "callee": { + "type": "Identifier", + "start": 1248, + "end": 1254, + "loc": { + "start": { + "line": 36, + "column": 24 + }, + "end": { + "line": 36, + "column": 30 + }, + "identifierName": "CLU512" + }, + "name": "CLU512" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 1255, + "end": 1297, + "loc": { + "start": { + "line": 36, + "column": 31 + }, + "end": { + "line": 36, + "column": 73 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1255, + "end": 1289, + "loc": { + "start": { + "line": 36, + "column": 31 + }, + "end": { + "line": 36, + "column": 65 + } + }, + "object": { + "type": "Identifier", + "start": 1255, + "end": 1268, + "loc": { + "start": { + "line": 36, + "column": 31 + }, + "end": { + "line": 36, + "column": 44 + }, + "identifierName": "CurrencyUtils" + }, + "name": "CurrencyUtils" + }, + "property": { + "type": "Identifier", + "start": 1269, + "end": 1289, + "loc": { + "start": { + "line": 36, + "column": 45 + }, + "end": { + "line": 36, + "column": 65 + }, + "identifierName": "convertCasperToMotes" + }, + "name": "convertCasperToMotes" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 1290, + "end": 1296, + "loc": { + "start": { + "line": 36, + "column": 66 + }, + "end": { + "line": 36, + "column": 72 + }, + "identifierName": "amount" + }, + "name": "amount" + } + ] + } + ] + } + } + ] + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "ExpressionStatement", + "start": 1318, + "end": 1373, + "loc": { + "start": { + "line": 38, + "column": 8 + }, + "end": { + "line": 38, + "column": 63 + } + }, + "expression": { + "type": "CallExpression", + "start": 1318, + "end": 1372, + "loc": { + "start": { + "line": 38, + "column": 8 + }, + "end": { + "line": 38, + "column": 62 + } + }, + "callee": { + "type": "Super", + "start": 1318, + "end": 1323, + "loc": { + "start": { + "line": 38, + "column": 8 + }, + "end": { + "line": 38, + "column": 13 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "start": 1324, + "end": 1333, + "loc": { + "start": { + "line": 38, + "column": 14 + }, + "end": { + "line": 38, + "column": 23 + }, + "identifierName": "activeKey" + }, + "name": "activeKey" + }, + { + "type": "Identifier", + "start": 1335, + "end": 1342, + "loc": { + "start": { + "line": 38, + "column": 25 + }, + "end": { + "line": 38, + "column": 32 + }, + "identifierName": "network" + }, + "name": "network" + }, + { + "type": "Identifier", + "start": 1344, + "end": 1348, + "loc": { + "start": { + "line": 38, + "column": 34 + }, + "end": { + "line": 38, + "column": 38 + }, + "identifierName": "hash" + }, + "name": "hash" + }, + { + "type": "Identifier", + "start": 1350, + "end": 1360, + "loc": { + "start": { + "line": 38, + "column": 40 + }, + "end": { + "line": 38, + "column": 50 + }, + "identifierName": "entrypoint" + }, + "name": "entrypoint" + }, + { + "type": "Identifier", + "start": 1362, + "end": 1366, + "loc": { + "start": { + "line": 38, + "column": 52 + }, + "end": { + "line": 38, + "column": 56 + }, + "identifierName": "args" + }, + "name": "args" + }, + { + "type": "Identifier", + "start": 1368, + "end": 1371, + "loc": { + "start": { + "line": 38, + "column": 58 + }, + "end": { + "line": 38, + "column": 61 + }, + "identifierName": "fee" + }, + "name": "fee" + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {number} amount - Amount of casper to add to delegate\n * @param {string} activeKey - Current active key in the public hex format\n * @param {string} validator - Public key in the hex format of the validator\n * @param {string} network - Current network to execute the deployment\n * @param {string} hash - Current hash of the stored SmartContract\n ", + "start": 596, + "end": 1007, + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 31, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Get a DeployResult constructor\n *\n * @return {DeployResult.constructor} - Return the constructor of a given DeployResult\n ", + "start": 1385, + "end": 1532, + "loc": { + "start": { + "line": 41, + "column": 4 + }, + "end": { + "line": 45, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 1537, + "end": 1593, + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 48, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1541, + "end": 1553, + "loc": { + "start": { + "line": 46, + "column": 8 + }, + "end": { + "line": 46, + "column": 20 + }, + "identifierName": "deployResult" + }, + "name": "deployResult" + }, + "kind": "get", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 1556, + "end": 1593, + "loc": { + "start": { + "line": 46, + "column": 23 + }, + "end": { + "line": 48, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 1566, + "end": 1587, + "loc": { + "start": { + "line": 47, + "column": 8 + }, + "end": { + "line": 47, + "column": 29 + } + }, + "argument": { + "type": "Identifier", + "start": 1573, + "end": 1587, + "loc": { + "start": { + "line": 47, + "column": 15 + }, + "end": { + "line": 47, + "column": 29 + }, + "identifierName": "DelegateResult" + }, + "name": "DelegateResult" + } + } + ], + "directives": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Get a DeployResult constructor\n *\n * @return {DeployResult.constructor} - Return the constructor of a given DeployResult\n ", + "start": 1385, + "end": 1532, + "loc": { + "start": { + "line": 41, + "column": 4 + }, + "end": { + "line": 45, + "column": 7 + } + } + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Delegate class\n * Class used to create DeployParameters for a Delegate operation\n ", + "start": 417, + "end": 508, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 20, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Delegate class\n * Class used to create DeployParameters for a Delegate operation\n ", + "start": 417, + "end": 508, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 20, + "column": 3 + } + } + } + ] + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\n * @constant\n * @type {string}\n ", + "start": 285, + "end": 323, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @constant\n * @type {number}\n ", + "start": 354, + "end": 392, + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Delegate class\n * Class used to create DeployParameters for a Delegate operation\n ", + "start": 417, + "end": 508, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 20, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {number} amount - Amount of casper to add to delegate\n * @param {string} activeKey - Current active key in the public hex format\n * @param {string} validator - Public key in the hex format of the validator\n * @param {string} network - Current network to execute the deployment\n * @param {string} hash - Current hash of the stored SmartContract\n ", + "start": 596, + "end": 1007, + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 31, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Get a DeployResult constructor\n *\n * @return {DeployResult.constructor} - Return the constructor of a given DeployResult\n ", + "start": 1385, + "end": 1532, + "loc": { + "start": { + "line": 41, + "column": 4 + }, + "end": { + "line": 45, + "column": 7 + } + } + } + ], + "tokens": [ + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 0, + "end": 6, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7, + "end": 8, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CLPublicKey", + "start": 8, + "end": 19, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 19 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 19, + "end": 20, + "loc": { + "start": { + "line": 1, + "column": 19 + }, + "end": { + "line": 1, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CLU512", + "start": 21, + "end": 27, + "loc": { + "start": { + "line": 1, + "column": 21 + }, + "end": { + "line": 1, + "column": 27 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 27, + "end": 28, + "loc": { + "start": { + "line": 1, + "column": 27 + }, + "end": { + "line": 1, + "column": 28 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "RuntimeArgs", + "start": 29, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 29 + }, + "end": { + "line": 1, + "column": 40 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 40, + "end": 41, + "loc": { + "start": { + "line": 1, + "column": 40 + }, + "end": { + "line": 1, + "column": 41 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 42, + "end": 46, + "loc": { + "start": { + "line": 1, + "column": 42 + }, + "end": { + "line": 1, + "column": 46 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "casper-js-sdk", + "start": 47, + "end": 62, + "loc": { + "start": { + "line": 1, + "column": 47 + }, + "end": { + "line": 1, + "column": 62 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 62, + "end": 63, + "loc": { + "start": { + "line": 1, + "column": 62 + }, + "end": { + "line": 1, + "column": 63 + } + } + }, + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 64, + "end": 70, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 71, + "end": 72, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CurrencyUtils", + "start": 72, + "end": 85, + "loc": { + "start": { + "line": 2, + "column": 8 + }, + "end": { + "line": 2, + "column": 21 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 85, + "end": 86, + "loc": { + "start": { + "line": 2, + "column": 21 + }, + "end": { + "line": 2, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 87, + "end": 91, + "loc": { + "start": { + "line": 2, + "column": 23 + }, + "end": { + "line": 2, + "column": 27 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "../../../helpers", + "start": 92, + "end": 110, + "loc": { + "start": { + "line": 2, + "column": 28 + }, + "end": { + "line": 2, + "column": 46 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 110, + "end": 111, + "loc": { + "start": { + "line": 2, + "column": 46 + }, + "end": { + "line": 2, + "column": 47 + } + } + }, + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 112, + "end": 118, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 119, + "end": 120, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "DelegateResult", + "start": 120, + "end": 134, + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 3, + "column": 22 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 134, + "end": 135, + "loc": { + "start": { + "line": 3, + "column": 22 + }, + "end": { + "line": 3, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 136, + "end": 140, + "loc": { + "start": { + "line": 3, + "column": 24 + }, + "end": { + "line": 3, + "column": 28 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "../../../results", + "start": 141, + "end": 159, + "loc": { + "start": { + "line": 3, + "column": 29 + }, + "end": { + "line": 3, + "column": 47 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 159, + "end": 160, + "loc": { + "start": { + "line": 3, + "column": 47 + }, + "end": { + "line": 3, + "column": 48 + } + } + }, + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 161, + "end": 167, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 168, + "end": 169, + "loc": { + "start": { + "line": 4, + "column": 7 + }, + "end": { + "line": 4, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "AbstractSmartContractStoredByHashDeployParameters", + "start": 169, + "end": 218, + "loc": { + "start": { + "line": 4, + "column": 8 + }, + "end": { + "line": 4, + "column": 57 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 218, + "end": 219, + "loc": { + "start": { + "line": 4, + "column": 57 + }, + "end": { + "line": 4, + "column": 58 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 220, + "end": 224, + "loc": { + "start": { + "line": 4, + "column": 59 + }, + "end": { + "line": 4, + "column": 63 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "../../abstractSmartContractStoredByHashDeployParameters", + "start": 225, + "end": 282, + "loc": { + "start": { + "line": 4, + "column": 64 + }, + "end": { + "line": 4, + "column": 121 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 282, + "end": 283, + "loc": { + "start": { + "line": 4, + "column": 121 + }, + "end": { + "line": 4, + "column": 122 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @constant\n * @type {string}\n ", + "start": 285, + "end": 323, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 324, + "end": 329, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 10, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "entrypoint", + "start": 330, + "end": 340, + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 10, + "column": 16 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 341, + "end": 342, + "loc": { + "start": { + "line": 10, + "column": 17 + }, + "end": { + "line": 10, + "column": 18 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "delegate", + "start": 343, + "end": 353, + "loc": { + "start": { + "line": 10, + "column": 19 + }, + "end": { + "line": 10, + "column": 29 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @constant\n * @type {number}\n ", + "start": 354, + "end": 392, + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 393, + "end": 398, + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 15, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "fee", + "start": 399, + "end": 402, + "loc": { + "start": { + "line": 15, + "column": 6 + }, + "end": { + "line": 15, + "column": 9 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 403, + "end": 404, + "loc": { + "start": { + "line": 15, + "column": 10 + }, + "end": { + "line": 15, + "column": 11 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 2910000000, + "start": 405, + "end": 415, + "loc": { + "start": { + "line": 15, + "column": 12 + }, + "end": { + "line": 15, + "column": 22 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Delegate class\n * Class used to create DeployParameters for a Delegate operation\n ", + "start": 417, + "end": 508, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 20, + "column": 3 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 509, + "end": 515, + "loc": { + "start": { + "line": 21, + "column": 0 + }, + "end": { + "line": 21, + "column": 6 + } + } + }, + { + "type": { + "label": "class", + "keyword": "class", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "class", + "start": 516, + "end": 521, + "loc": { + "start": { + "line": 21, + "column": 7 + }, + "end": { + "line": 21, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Delegate", + "start": 522, + "end": 530, + "loc": { + "start": { + "line": 21, + "column": 13 + }, + "end": { + "line": 21, + "column": 21 + } + } + }, + { + "type": { + "label": "extends", + "keyword": "extends", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "extends", + "start": 531, + "end": 538, + "loc": { + "start": { + "line": 21, + "column": 22 + }, + "end": { + "line": 21, + "column": 29 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "AbstractSmartContractStoredByHashDeployParameters", + "start": 539, + "end": 588, + "loc": { + "start": { + "line": 21, + "column": 30 + }, + "end": { + "line": 21, + "column": 79 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 589, + "end": 590, + "loc": { + "start": { + "line": 21, + "column": 80 + }, + "end": { + "line": 21, + "column": 81 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {number} amount - Amount of casper to add to delegate\n * @param {string} activeKey - Current active key in the public hex format\n * @param {string} validator - Public key in the hex format of the validator\n * @param {string} network - Current network to execute the deployment\n * @param {string} hash - Current hash of the stored SmartContract\n ", + "start": 596, + "end": 1007, + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 31, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "constructor", + "start": 1012, + "end": 1023, + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 32, + "column": 15 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1023, + "end": 1024, + "loc": { + "start": { + "line": 32, + "column": 15 + }, + "end": { + "line": 32, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "amount", + "start": 1024, + "end": 1030, + "loc": { + "start": { + "line": 32, + "column": 16 + }, + "end": { + "line": 32, + "column": 22 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1030, + "end": 1031, + "loc": { + "start": { + "line": 32, + "column": 22 + }, + "end": { + "line": 32, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "activeKey", + "start": 1032, + "end": 1041, + "loc": { + "start": { + "line": 32, + "column": 24 + }, + "end": { + "line": 32, + "column": 33 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1041, + "end": 1042, + "loc": { + "start": { + "line": 32, + "column": 33 + }, + "end": { + "line": 32, + "column": 34 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "validator", + "start": 1043, + "end": 1052, + "loc": { + "start": { + "line": 32, + "column": 35 + }, + "end": { + "line": 32, + "column": 44 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1052, + "end": 1053, + "loc": { + "start": { + "line": 32, + "column": 44 + }, + "end": { + "line": 32, + "column": 45 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "network", + "start": 1054, + "end": 1061, + "loc": { + "start": { + "line": 32, + "column": 46 + }, + "end": { + "line": 32, + "column": 53 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1061, + "end": 1062, + "loc": { + "start": { + "line": 32, + "column": 53 + }, + "end": { + "line": 32, + "column": 54 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "hash", + "start": 1063, + "end": 1067, + "loc": { + "start": { + "line": 32, + "column": 55 + }, + "end": { + "line": 32, + "column": 59 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1067, + "end": 1068, + "loc": { + "start": { + "line": 32, + "column": 59 + }, + "end": { + "line": 32, + "column": 60 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1069, + "end": 1070, + "loc": { + "start": { + "line": 32, + "column": 61 + }, + "end": { + "line": 32, + "column": 62 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 1079, + "end": 1084, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 33, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "args", + "start": 1085, + "end": 1089, + "loc": { + "start": { + "line": 33, + "column": 14 + }, + "end": { + "line": 33, + "column": 18 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1090, + "end": 1091, + "loc": { + "start": { + "line": 33, + "column": 19 + }, + "end": { + "line": 33, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "RuntimeArgs", + "start": 1092, + "end": 1103, + "loc": { + "start": { + "line": 33, + "column": 21 + }, + "end": { + "line": 33, + "column": 32 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1103, + "end": 1104, + "loc": { + "start": { + "line": 33, + "column": 32 + }, + "end": { + "line": 33, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "fromMap", + "start": 1104, + "end": 1111, + "loc": { + "start": { + "line": 33, + "column": 33 + }, + "end": { + "line": 33, + "column": 40 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1111, + "end": 1112, + "loc": { + "start": { + "line": 33, + "column": 40 + }, + "end": { + "line": 33, + "column": 41 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1112, + "end": 1113, + "loc": { + "start": { + "line": 33, + "column": 41 + }, + "end": { + "line": 33, + "column": 42 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "delegator", + "start": 1126, + "end": 1135, + "loc": { + "start": { + "line": 34, + "column": 12 + }, + "end": { + "line": 34, + "column": 21 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1135, + "end": 1136, + "loc": { + "start": { + "line": 34, + "column": 21 + }, + "end": { + "line": 34, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CLPublicKey", + "start": 1137, + "end": 1148, + "loc": { + "start": { + "line": 34, + "column": 23 + }, + "end": { + "line": 34, + "column": 34 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1148, + "end": 1149, + "loc": { + "start": { + "line": 34, + "column": 34 + }, + "end": { + "line": 34, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "fromHex", + "start": 1149, + "end": 1156, + "loc": { + "start": { + "line": 34, + "column": 35 + }, + "end": { + "line": 34, + "column": 42 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1156, + "end": 1157, + "loc": { + "start": { + "line": 34, + "column": 42 + }, + "end": { + "line": 34, + "column": 43 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "activeKey", + "start": 1157, + "end": 1166, + "loc": { + "start": { + "line": 34, + "column": 43 + }, + "end": { + "line": 34, + "column": 52 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1166, + "end": 1167, + "loc": { + "start": { + "line": 34, + "column": 52 + }, + "end": { + "line": 34, + "column": 53 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1167, + "end": 1168, + "loc": { + "start": { + "line": 34, + "column": 53 + }, + "end": { + "line": 34, + "column": 54 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "validator", + "start": 1181, + "end": 1190, + "loc": { + "start": { + "line": 35, + "column": 12 + }, + "end": { + "line": 35, + "column": 21 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1190, + "end": 1191, + "loc": { + "start": { + "line": 35, + "column": 21 + }, + "end": { + "line": 35, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CLPublicKey", + "start": 1192, + "end": 1203, + "loc": { + "start": { + "line": 35, + "column": 23 + }, + "end": { + "line": 35, + "column": 34 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1203, + "end": 1204, + "loc": { + "start": { + "line": 35, + "column": 34 + }, + "end": { + "line": 35, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "fromHex", + "start": 1204, + "end": 1211, + "loc": { + "start": { + "line": 35, + "column": 35 + }, + "end": { + "line": 35, + "column": 42 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1211, + "end": 1212, + "loc": { + "start": { + "line": 35, + "column": 42 + }, + "end": { + "line": 35, + "column": 43 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "validator", + "start": 1212, + "end": 1221, + "loc": { + "start": { + "line": 35, + "column": 43 + }, + "end": { + "line": 35, + "column": 52 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1221, + "end": 1222, + "loc": { + "start": { + "line": 35, + "column": 52 + }, + "end": { + "line": 35, + "column": 53 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1222, + "end": 1223, + "loc": { + "start": { + "line": 35, + "column": 53 + }, + "end": { + "line": 35, + "column": 54 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "amount", + "start": 1236, + "end": 1242, + "loc": { + "start": { + "line": 36, + "column": 12 + }, + "end": { + "line": 36, + "column": 18 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1242, + "end": 1243, + "loc": { + "start": { + "line": 36, + "column": 18 + }, + "end": { + "line": 36, + "column": 19 + } + } + }, + { + "type": { + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "new", + "start": 1244, + "end": 1247, + "loc": { + "start": { + "line": 36, + "column": 20 + }, + "end": { + "line": 36, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CLU512", + "start": 1248, + "end": 1254, + "loc": { + "start": { + "line": 36, + "column": 24 + }, + "end": { + "line": 36, + "column": 30 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1254, + "end": 1255, + "loc": { + "start": { + "line": 36, + "column": 30 + }, + "end": { + "line": 36, + "column": 31 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CurrencyUtils", + "start": 1255, + "end": 1268, + "loc": { + "start": { + "line": 36, + "column": 31 + }, + "end": { + "line": 36, + "column": 44 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1268, + "end": 1269, + "loc": { + "start": { + "line": 36, + "column": 44 + }, + "end": { + "line": 36, + "column": 45 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "convertCasperToMotes", + "start": 1269, + "end": 1289, + "loc": { + "start": { + "line": 36, + "column": 45 + }, + "end": { + "line": 36, + "column": 65 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1289, + "end": 1290, + "loc": { + "start": { + "line": 36, + "column": 65 + }, + "end": { + "line": 36, + "column": 66 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "amount", + "start": 1290, + "end": 1296, + "loc": { + "start": { + "line": 36, + "column": 66 + }, + "end": { + "line": 36, + "column": 72 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1296, + "end": 1297, + "loc": { + "start": { + "line": 36, + "column": 72 + }, + "end": { + "line": 36, + "column": 73 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1297, + "end": 1298, + "loc": { + "start": { + "line": 36, + "column": 73 + }, + "end": { + "line": 36, + "column": 74 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1307, + "end": 1308, + "loc": { + "start": { + "line": 37, + "column": 8 + }, + "end": { + "line": 37, + "column": 9 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1308, + "end": 1309, + "loc": { + "start": { + "line": 37, + "column": 9 + }, + "end": { + "line": 37, + "column": 10 + } + } + }, + { + "type": { + "label": "super", + "keyword": "super", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "super", + "start": 1318, + "end": 1323, + "loc": { + "start": { + "line": 38, + "column": 8 + }, + "end": { + "line": 38, + "column": 13 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1323, + "end": 1324, + "loc": { + "start": { + "line": 38, + "column": 13 + }, + "end": { + "line": 38, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "activeKey", + "start": 1324, + "end": 1333, + "loc": { + "start": { + "line": 38, + "column": 14 + }, + "end": { + "line": 38, + "column": 23 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1333, + "end": 1334, + "loc": { + "start": { + "line": 38, + "column": 23 + }, + "end": { + "line": 38, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "network", + "start": 1335, + "end": 1342, + "loc": { + "start": { + "line": 38, + "column": 25 + }, + "end": { + "line": 38, + "column": 32 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1342, + "end": 1343, + "loc": { + "start": { + "line": 38, + "column": 32 + }, + "end": { + "line": 38, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "hash", + "start": 1344, + "end": 1348, + "loc": { + "start": { + "line": 38, + "column": 34 + }, + "end": { + "line": 38, + "column": 38 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1348, + "end": 1349, + "loc": { + "start": { + "line": 38, + "column": 38 + }, + "end": { + "line": 38, + "column": 39 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "entrypoint", + "start": 1350, + "end": 1360, + "loc": { + "start": { + "line": 38, + "column": 40 + }, + "end": { + "line": 38, + "column": 50 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1360, + "end": 1361, + "loc": { + "start": { + "line": 38, + "column": 50 + }, + "end": { + "line": 38, + "column": 51 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "args", + "start": 1362, + "end": 1366, + "loc": { + "start": { + "line": 38, + "column": 52 + }, + "end": { + "line": 38, + "column": 56 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1366, + "end": 1367, + "loc": { + "start": { + "line": 38, + "column": 56 + }, + "end": { + "line": 38, + "column": 57 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "fee", + "start": 1368, + "end": 1371, + "loc": { + "start": { + "line": 38, + "column": 58 + }, + "end": { + "line": 38, + "column": 61 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1371, + "end": 1372, + "loc": { + "start": { + "line": 38, + "column": 61 + }, + "end": { + "line": 38, + "column": 62 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1372, + "end": 1373, + "loc": { + "start": { + "line": 38, + "column": 62 + }, + "end": { + "line": 38, + "column": 63 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1378, + "end": 1379, + "loc": { + "start": { + "line": 39, + "column": 4 + }, + "end": { + "line": 39, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Get a DeployResult constructor\n *\n * @return {DeployResult.constructor} - Return the constructor of a given DeployResult\n ", + "start": 1385, + "end": 1532, + "loc": { + "start": { + "line": 41, + "column": 4 + }, + "end": { + "line": 45, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "get", + "start": 1537, + "end": 1540, + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 46, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "deployResult", + "start": 1541, + "end": 1553, + "loc": { + "start": { + "line": 46, + "column": 8 + }, + "end": { + "line": 46, + "column": 20 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1553, + "end": 1554, + "loc": { + "start": { + "line": 46, + "column": 20 + }, + "end": { + "line": 46, + "column": 21 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1554, + "end": 1555, + "loc": { + "start": { + "line": 46, + "column": 21 + }, + "end": { + "line": 46, + "column": 22 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1556, + "end": 1557, + "loc": { + "start": { + "line": 46, + "column": 23 + }, + "end": { + "line": 46, + "column": 24 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 1566, + "end": 1572, + "loc": { + "start": { + "line": 47, + "column": 8 + }, + "end": { + "line": 47, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "DelegateResult", + "start": 1573, + "end": 1587, + "loc": { + "start": { + "line": 47, + "column": 15 + }, + "end": { + "line": 47, + "column": 29 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1592, + "end": 1593, + "loc": { + "start": { + "line": 48, + "column": 4 + }, + "end": { + "line": 48, + "column": 5 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1594, + "end": 1595, + "loc": { + "start": { + "line": 49, + "column": 0 + }, + "end": { + "line": 49, + "column": 1 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1595, + "end": 1595, + "loc": { + "start": { + "line": 49, + "column": 1 + }, + "end": { + "line": 49, + "column": 1 + } + } + } + ] +} \ No newline at end of file diff --git a/ast/source/services/deploys/auction/actions/index.js.json b/ast/source/services/deploys/auction/actions/index.js.json new file mode 100644 index 0000000..a36e2ff --- /dev/null +++ b/ast/source/services/deploys/auction/actions/index.js.json @@ -0,0 +1,739 @@ +{ + "type": "File", + "start": 0, + "end": 114, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 4, + "column": 30 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 114, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 4, + "column": 30 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ExportAllDeclaration", + "start": 0, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "source": { + "type": "StringLiteral", + "start": 14, + "end": 24, + "loc": { + "start": { + "line": 1, + "column": 14 + }, + "end": { + "line": 1, + "column": 24 + } + }, + "extra": { + "rawValue": "./addBid", + "raw": "'./addBid'" + }, + "value": "./addBid" + } + }, + { + "type": "ExportAllDeclaration", + "start": 26, + "end": 53, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 27 + } + }, + "source": { + "type": "StringLiteral", + "start": 40, + "end": 52, + "loc": { + "start": { + "line": 2, + "column": 14 + }, + "end": { + "line": 2, + "column": 26 + } + }, + "extra": { + "rawValue": "./delegate", + "raw": "'./delegate'" + }, + "value": "./delegate" + } + }, + { + "type": "ExportAllDeclaration", + "start": 54, + "end": 83, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 29 + } + }, + "source": { + "type": "StringLiteral", + "start": 68, + "end": 82, + "loc": { + "start": { + "line": 3, + "column": 14 + }, + "end": { + "line": 3, + "column": 28 + } + }, + "extra": { + "rawValue": "./undelegate", + "raw": "'./undelegate'" + }, + "value": "./undelegate" + } + }, + { + "type": "ExportAllDeclaration", + "start": 84, + "end": 114, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 30 + } + }, + "source": { + "type": "StringLiteral", + "start": 98, + "end": 113, + "loc": { + "start": { + "line": 4, + "column": 14 + }, + "end": { + "line": 4, + "column": 29 + } + }, + "extra": { + "rawValue": "./withdrawBid", + "raw": "'./withdrawBid'" + }, + "value": "./withdrawBid" + } + } + ], + "directives": [] + }, + "comments": [], + "tokens": [ + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 0, + "end": 6, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 6 + } + } + }, + { + "type": { + "label": "*", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 10, + "updateContext": null + }, + "value": "*", + "start": 7, + "end": 8, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 9, + "end": 13, + "loc": { + "start": { + "line": 1, + "column": 9 + }, + "end": { + "line": 1, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./addBid", + "start": 14, + "end": 24, + "loc": { + "start": { + "line": 1, + "column": 14 + }, + "end": { + "line": 1, + "column": 24 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 24, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 24 + }, + "end": { + "line": 1, + "column": 25 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 26, + "end": 32, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 6 + } + } + }, + { + "type": { + "label": "*", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 10, + "updateContext": null + }, + "value": "*", + "start": 33, + "end": 34, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 35, + "end": 39, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./delegate", + "start": 40, + "end": 52, + "loc": { + "start": { + "line": 2, + "column": 14 + }, + "end": { + "line": 2, + "column": 26 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 52, + "end": 53, + "loc": { + "start": { + "line": 2, + "column": 26 + }, + "end": { + "line": 2, + "column": 27 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 54, + "end": 60, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 6 + } + } + }, + { + "type": { + "label": "*", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 10, + "updateContext": null + }, + "value": "*", + "start": 61, + "end": 62, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 63, + "end": 67, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./undelegate", + "start": 68, + "end": 82, + "loc": { + "start": { + "line": 3, + "column": 14 + }, + "end": { + "line": 3, + "column": 28 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 82, + "end": 83, + "loc": { + "start": { + "line": 3, + "column": 28 + }, + "end": { + "line": 3, + "column": 29 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 84, + "end": 90, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 6 + } + } + }, + { + "type": { + "label": "*", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 10, + "updateContext": null + }, + "value": "*", + "start": 91, + "end": 92, + "loc": { + "start": { + "line": 4, + "column": 7 + }, + "end": { + "line": 4, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 93, + "end": 97, + "loc": { + "start": { + "line": 4, + "column": 9 + }, + "end": { + "line": 4, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./withdrawBid", + "start": 98, + "end": 113, + "loc": { + "start": { + "line": 4, + "column": 14 + }, + "end": { + "line": 4, + "column": 29 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 113, + "end": 114, + "loc": { + "start": { + "line": 4, + "column": 29 + }, + "end": { + "line": 4, + "column": 30 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 114, + "end": 114, + "loc": { + "start": { + "line": 4, + "column": 30 + }, + "end": { + "line": 4, + "column": 30 + } + } + } + ] +} \ No newline at end of file diff --git a/ast/source/services/deploys/auction/actions/undelegate.js.json b/ast/source/services/deploys/auction/actions/undelegate.js.json new file mode 100644 index 0000000..5bc3474 --- /dev/null +++ b/ast/source/services/deploys/auction/actions/undelegate.js.json @@ -0,0 +1,5218 @@ +{ + "type": "File", + "start": 0, + "end": 1639, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 49, + "column": 1 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 1639, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 49, + "column": 1 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 63, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 63 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 8, + "end": 19, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 19 + } + }, + "imported": { + "type": "Identifier", + "start": 8, + "end": 19, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 19 + }, + "identifierName": "CLPublicKey" + }, + "name": "CLPublicKey" + }, + "local": { + "type": "Identifier", + "start": 8, + "end": 19, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 19 + }, + "identifierName": "CLPublicKey" + }, + "name": "CLPublicKey" + } + }, + { + "type": "ImportSpecifier", + "start": 21, + "end": 27, + "loc": { + "start": { + "line": 1, + "column": 21 + }, + "end": { + "line": 1, + "column": 27 + } + }, + "imported": { + "type": "Identifier", + "start": 21, + "end": 27, + "loc": { + "start": { + "line": 1, + "column": 21 + }, + "end": { + "line": 1, + "column": 27 + }, + "identifierName": "CLU512" + }, + "name": "CLU512" + }, + "local": { + "type": "Identifier", + "start": 21, + "end": 27, + "loc": { + "start": { + "line": 1, + "column": 21 + }, + "end": { + "line": 1, + "column": 27 + }, + "identifierName": "CLU512" + }, + "name": "CLU512" + } + }, + { + "type": "ImportSpecifier", + "start": 29, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 29 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "imported": { + "type": "Identifier", + "start": 29, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 29 + }, + "end": { + "line": 1, + "column": 40 + }, + "identifierName": "RuntimeArgs" + }, + "name": "RuntimeArgs" + }, + "local": { + "type": "Identifier", + "start": 29, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 29 + }, + "end": { + "line": 1, + "column": 40 + }, + "identifierName": "RuntimeArgs" + }, + "name": "RuntimeArgs" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 47, + "end": 62, + "loc": { + "start": { + "line": 1, + "column": 47 + }, + "end": { + "line": 1, + "column": 62 + } + }, + "extra": { + "rawValue": "casper-js-sdk", + "raw": "\"casper-js-sdk\"" + }, + "value": "casper-js-sdk" + } + }, + { + "type": "ImportDeclaration", + "start": 64, + "end": 125, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 61 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 72, + "end": 85, + "loc": { + "start": { + "line": 2, + "column": 8 + }, + "end": { + "line": 2, + "column": 21 + } + }, + "imported": { + "type": "Identifier", + "start": 72, + "end": 85, + "loc": { + "start": { + "line": 2, + "column": 8 + }, + "end": { + "line": 2, + "column": 21 + }, + "identifierName": "CurrencyUtils" + }, + "name": "CurrencyUtils" + }, + "local": { + "type": "Identifier", + "start": 72, + "end": 85, + "loc": { + "start": { + "line": 2, + "column": 8 + }, + "end": { + "line": 2, + "column": 21 + }, + "identifierName": "CurrencyUtils" + }, + "name": "CurrencyUtils" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 92, + "end": 124, + "loc": { + "start": { + "line": 2, + "column": 28 + }, + "end": { + "line": 2, + "column": 60 + } + }, + "extra": { + "rawValue": "../../../helpers/currencyUtils", + "raw": "\"../../../helpers/currencyUtils\"" + }, + "value": "../../../helpers/currencyUtils" + } + }, + { + "type": "ImportDeclaration", + "start": 126, + "end": 193, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 67 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 134, + "end": 150, + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 3, + "column": 24 + } + }, + "imported": { + "type": "Identifier", + "start": 134, + "end": 150, + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 3, + "column": 24 + }, + "identifierName": "UndelegateResult" + }, + "name": "UndelegateResult" + }, + "local": { + "type": "Identifier", + "start": 134, + "end": 150, + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 3, + "column": 24 + }, + "identifierName": "UndelegateResult" + }, + "name": "UndelegateResult" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 157, + "end": 192, + "loc": { + "start": { + "line": 3, + "column": 31 + }, + "end": { + "line": 3, + "column": 66 + } + }, + "extra": { + "rawValue": "../../../results/undelegateResult", + "raw": "\"../../../results/undelegateResult\"" + }, + "value": "../../../results/undelegateResult" + } + }, + { + "type": "ImportDeclaration", + "start": 194, + "end": 316, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 122 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 202, + "end": 251, + "loc": { + "start": { + "line": 4, + "column": 8 + }, + "end": { + "line": 4, + "column": 57 + } + }, + "imported": { + "type": "Identifier", + "start": 202, + "end": 251, + "loc": { + "start": { + "line": 4, + "column": 8 + }, + "end": { + "line": 4, + "column": 57 + }, + "identifierName": "AbstractSmartContractStoredByHashDeployParameters" + }, + "name": "AbstractSmartContractStoredByHashDeployParameters" + }, + "local": { + "type": "Identifier", + "start": 202, + "end": 251, + "loc": { + "start": { + "line": 4, + "column": 8 + }, + "end": { + "line": 4, + "column": 57 + }, + "identifierName": "AbstractSmartContractStoredByHashDeployParameters" + }, + "name": "AbstractSmartContractStoredByHashDeployParameters" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 258, + "end": 315, + "loc": { + "start": { + "line": 4, + "column": 64 + }, + "end": { + "line": 4, + "column": 121 + } + }, + "extra": { + "rawValue": "../../abstractSmartContractStoredByHashDeployParameters", + "raw": "\"../../abstractSmartContractStoredByHashDeployParameters\"" + }, + "value": "../../abstractSmartContractStoredByHashDeployParameters" + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * @constant\n * @type {string}\n ", + "start": 318, + "end": 356, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + } + ] + }, + { + "type": "VariableDeclaration", + "start": 357, + "end": 388, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 10, + "column": 31 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 363, + "end": 388, + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 10, + "column": 31 + } + }, + "id": { + "type": "Identifier", + "start": 363, + "end": 373, + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 10, + "column": 16 + }, + "identifierName": "entrypoint" + }, + "name": "entrypoint", + "leadingComments": null + }, + "init": { + "type": "StringLiteral", + "start": 376, + "end": 388, + "loc": { + "start": { + "line": 10, + "column": 19 + }, + "end": { + "line": 10, + "column": 31 + } + }, + "extra": { + "rawValue": "undelegate", + "raw": "'undelegate'" + }, + "value": "undelegate", + "leadingComments": null, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * @constant\n * @type {string}\n ", + "start": 318, + "end": 356, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * @constant\n * @type {number}\n ", + "start": 389, + "end": 427, + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + } + } + ] + }, + { + "type": "VariableDeclaration", + "start": 428, + "end": 449, + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 15, + "column": 21 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 434, + "end": 449, + "loc": { + "start": { + "line": 15, + "column": 6 + }, + "end": { + "line": 15, + "column": 21 + } + }, + "id": { + "type": "Identifier", + "start": 434, + "end": 437, + "loc": { + "start": { + "line": 15, + "column": 6 + }, + "end": { + "line": 15, + "column": 9 + }, + "identifierName": "fee" + }, + "name": "fee", + "leadingComments": null + }, + "init": { + "type": "NumericLiteral", + "start": 440, + "end": 449, + "loc": { + "start": { + "line": 15, + "column": 12 + }, + "end": { + "line": 15, + "column": 21 + } + }, + "extra": { + "rawValue": 410000000, + "raw": "410000000" + }, + "value": 410000000, + "leadingComments": null, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * @constant\n * @type {number}\n ", + "start": 389, + "end": 427, + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Undelegate class\n * Class used to create DeployParameters for a Undelegate operation\n ", + "start": 451, + "end": 546, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 20, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 547, + "end": 1639, + "loc": { + "start": { + "line": 21, + "column": 0 + }, + "end": { + "line": 49, + "column": 1 + } + }, + "specifiers": [], + "source": null, + "declaration": { + "type": "ClassDeclaration", + "start": 554, + "end": 1639, + "loc": { + "start": { + "line": 21, + "column": 7 + }, + "end": { + "line": 49, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 560, + "end": 570, + "loc": { + "start": { + "line": 21, + "column": 13 + }, + "end": { + "line": 21, + "column": 23 + }, + "identifierName": "Undelegate" + }, + "name": "Undelegate", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 579, + "end": 628, + "loc": { + "start": { + "line": 21, + "column": 32 + }, + "end": { + "line": 21, + "column": 81 + }, + "identifierName": "AbstractSmartContractStoredByHashDeployParameters" + }, + "name": "AbstractSmartContractStoredByHashDeployParameters" + }, + "body": { + "type": "ClassBody", + "start": 629, + "end": 1639, + "loc": { + "start": { + "line": 21, + "column": 82 + }, + "end": { + "line": 49, + "column": 1 + } + }, + "body": [ + { + "type": "ClassMethod", + "start": 1054, + "end": 1421, + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 39, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1054, + "end": 1065, + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 32, + "column": 15 + }, + "identifierName": "constructor" + }, + "name": "constructor", + "leadingComments": null + }, + "kind": "constructor", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1066, + "end": 1072, + "loc": { + "start": { + "line": 32, + "column": 16 + }, + "end": { + "line": 32, + "column": 22 + }, + "identifierName": "amount" + }, + "name": "amount" + }, + { + "type": "Identifier", + "start": 1074, + "end": 1083, + "loc": { + "start": { + "line": 32, + "column": 24 + }, + "end": { + "line": 32, + "column": 33 + }, + "identifierName": "activeKey" + }, + "name": "activeKey" + }, + { + "type": "Identifier", + "start": 1085, + "end": 1094, + "loc": { + "start": { + "line": 32, + "column": 35 + }, + "end": { + "line": 32, + "column": 44 + }, + "identifierName": "validator" + }, + "name": "validator" + }, + { + "type": "Identifier", + "start": 1096, + "end": 1103, + "loc": { + "start": { + "line": 32, + "column": 46 + }, + "end": { + "line": 32, + "column": 53 + }, + "identifierName": "network" + }, + "name": "network" + }, + { + "type": "Identifier", + "start": 1105, + "end": 1109, + "loc": { + "start": { + "line": 32, + "column": 55 + }, + "end": { + "line": 32, + "column": 59 + }, + "identifierName": "hash" + }, + "name": "hash" + } + ], + "body": { + "type": "BlockStatement", + "start": 1111, + "end": 1421, + "loc": { + "start": { + "line": 32, + "column": 61 + }, + "end": { + "line": 39, + "column": 5 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 1121, + "end": 1351, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 37, + "column": 10 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1127, + "end": 1351, + "loc": { + "start": { + "line": 33, + "column": 14 + }, + "end": { + "line": 37, + "column": 10 + } + }, + "id": { + "type": "Identifier", + "start": 1127, + "end": 1131, + "loc": { + "start": { + "line": 33, + "column": 14 + }, + "end": { + "line": 33, + "column": 18 + }, + "identifierName": "args" + }, + "name": "args" + }, + "init": { + "type": "CallExpression", + "start": 1134, + "end": 1351, + "loc": { + "start": { + "line": 33, + "column": 21 + }, + "end": { + "line": 37, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1134, + "end": 1153, + "loc": { + "start": { + "line": 33, + "column": 21 + }, + "end": { + "line": 33, + "column": 40 + } + }, + "object": { + "type": "Identifier", + "start": 1134, + "end": 1145, + "loc": { + "start": { + "line": 33, + "column": 21 + }, + "end": { + "line": 33, + "column": 32 + }, + "identifierName": "RuntimeArgs" + }, + "name": "RuntimeArgs" + }, + "property": { + "type": "Identifier", + "start": 1146, + "end": 1153, + "loc": { + "start": { + "line": 33, + "column": 33 + }, + "end": { + "line": 33, + "column": 40 + }, + "identifierName": "fromMap" + }, + "name": "fromMap" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 1154, + "end": 1350, + "loc": { + "start": { + "line": 33, + "column": 41 + }, + "end": { + "line": 37, + "column": 9 + } + }, + "properties": [ + { + "type": "ObjectProperty", + "start": 1168, + "end": 1209, + "loc": { + "start": { + "line": 34, + "column": 12 + }, + "end": { + "line": 34, + "column": 53 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1168, + "end": 1177, + "loc": { + "start": { + "line": 34, + "column": 12 + }, + "end": { + "line": 34, + "column": 21 + }, + "identifierName": "delegator" + }, + "name": "delegator" + }, + "value": { + "type": "CallExpression", + "start": 1179, + "end": 1209, + "loc": { + "start": { + "line": 34, + "column": 23 + }, + "end": { + "line": 34, + "column": 53 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1179, + "end": 1198, + "loc": { + "start": { + "line": 34, + "column": 23 + }, + "end": { + "line": 34, + "column": 42 + } + }, + "object": { + "type": "Identifier", + "start": 1179, + "end": 1190, + "loc": { + "start": { + "line": 34, + "column": 23 + }, + "end": { + "line": 34, + "column": 34 + }, + "identifierName": "CLPublicKey" + }, + "name": "CLPublicKey" + }, + "property": { + "type": "Identifier", + "start": 1191, + "end": 1198, + "loc": { + "start": { + "line": 34, + "column": 35 + }, + "end": { + "line": 34, + "column": 42 + }, + "identifierName": "fromHex" + }, + "name": "fromHex" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 1199, + "end": 1208, + "loc": { + "start": { + "line": 34, + "column": 43 + }, + "end": { + "line": 34, + "column": 52 + }, + "identifierName": "activeKey" + }, + "name": "activeKey" + } + ] + } + }, + { + "type": "ObjectProperty", + "start": 1223, + "end": 1264, + "loc": { + "start": { + "line": 35, + "column": 12 + }, + "end": { + "line": 35, + "column": 53 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1223, + "end": 1232, + "loc": { + "start": { + "line": 35, + "column": 12 + }, + "end": { + "line": 35, + "column": 21 + }, + "identifierName": "validator" + }, + "name": "validator" + }, + "value": { + "type": "CallExpression", + "start": 1234, + "end": 1264, + "loc": { + "start": { + "line": 35, + "column": 23 + }, + "end": { + "line": 35, + "column": 53 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1234, + "end": 1253, + "loc": { + "start": { + "line": 35, + "column": 23 + }, + "end": { + "line": 35, + "column": 42 + } + }, + "object": { + "type": "Identifier", + "start": 1234, + "end": 1245, + "loc": { + "start": { + "line": 35, + "column": 23 + }, + "end": { + "line": 35, + "column": 34 + }, + "identifierName": "CLPublicKey" + }, + "name": "CLPublicKey" + }, + "property": { + "type": "Identifier", + "start": 1246, + "end": 1253, + "loc": { + "start": { + "line": 35, + "column": 35 + }, + "end": { + "line": 35, + "column": 42 + }, + "identifierName": "fromHex" + }, + "name": "fromHex" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 1254, + "end": 1263, + "loc": { + "start": { + "line": 35, + "column": 43 + }, + "end": { + "line": 35, + "column": 52 + }, + "identifierName": "validator" + }, + "name": "validator" + } + ] + } + }, + { + "type": "ObjectProperty", + "start": 1278, + "end": 1340, + "loc": { + "start": { + "line": 36, + "column": 12 + }, + "end": { + "line": 36, + "column": 74 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1278, + "end": 1284, + "loc": { + "start": { + "line": 36, + "column": 12 + }, + "end": { + "line": 36, + "column": 18 + }, + "identifierName": "amount" + }, + "name": "amount" + }, + "value": { + "type": "NewExpression", + "start": 1286, + "end": 1340, + "loc": { + "start": { + "line": 36, + "column": 20 + }, + "end": { + "line": 36, + "column": 74 + } + }, + "callee": { + "type": "Identifier", + "start": 1290, + "end": 1296, + "loc": { + "start": { + "line": 36, + "column": 24 + }, + "end": { + "line": 36, + "column": 30 + }, + "identifierName": "CLU512" + }, + "name": "CLU512" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 1297, + "end": 1339, + "loc": { + "start": { + "line": 36, + "column": 31 + }, + "end": { + "line": 36, + "column": 73 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1297, + "end": 1331, + "loc": { + "start": { + "line": 36, + "column": 31 + }, + "end": { + "line": 36, + "column": 65 + } + }, + "object": { + "type": "Identifier", + "start": 1297, + "end": 1310, + "loc": { + "start": { + "line": 36, + "column": 31 + }, + "end": { + "line": 36, + "column": 44 + }, + "identifierName": "CurrencyUtils" + }, + "name": "CurrencyUtils" + }, + "property": { + "type": "Identifier", + "start": 1311, + "end": 1331, + "loc": { + "start": { + "line": 36, + "column": 45 + }, + "end": { + "line": 36, + "column": 65 + }, + "identifierName": "convertCasperToMotes" + }, + "name": "convertCasperToMotes" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 1332, + "end": 1338, + "loc": { + "start": { + "line": 36, + "column": 66 + }, + "end": { + "line": 36, + "column": 72 + }, + "identifierName": "amount" + }, + "name": "amount" + } + ] + } + ] + } + } + ] + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "ExpressionStatement", + "start": 1360, + "end": 1415, + "loc": { + "start": { + "line": 38, + "column": 8 + }, + "end": { + "line": 38, + "column": 63 + } + }, + "expression": { + "type": "CallExpression", + "start": 1360, + "end": 1414, + "loc": { + "start": { + "line": 38, + "column": 8 + }, + "end": { + "line": 38, + "column": 62 + } + }, + "callee": { + "type": "Super", + "start": 1360, + "end": 1365, + "loc": { + "start": { + "line": 38, + "column": 8 + }, + "end": { + "line": 38, + "column": 13 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "start": 1366, + "end": 1375, + "loc": { + "start": { + "line": 38, + "column": 14 + }, + "end": { + "line": 38, + "column": 23 + }, + "identifierName": "activeKey" + }, + "name": "activeKey" + }, + { + "type": "Identifier", + "start": 1377, + "end": 1384, + "loc": { + "start": { + "line": 38, + "column": 25 + }, + "end": { + "line": 38, + "column": 32 + }, + "identifierName": "network" + }, + "name": "network" + }, + { + "type": "Identifier", + "start": 1386, + "end": 1390, + "loc": { + "start": { + "line": 38, + "column": 34 + }, + "end": { + "line": 38, + "column": 38 + }, + "identifierName": "hash" + }, + "name": "hash" + }, + { + "type": "Identifier", + "start": 1392, + "end": 1402, + "loc": { + "start": { + "line": 38, + "column": 40 + }, + "end": { + "line": 38, + "column": 50 + }, + "identifierName": "entrypoint" + }, + "name": "entrypoint" + }, + { + "type": "Identifier", + "start": 1404, + "end": 1408, + "loc": { + "start": { + "line": 38, + "column": 52 + }, + "end": { + "line": 38, + "column": 56 + }, + "identifierName": "args" + }, + "name": "args" + }, + { + "type": "Identifier", + "start": 1410, + "end": 1413, + "loc": { + "start": { + "line": 38, + "column": 58 + }, + "end": { + "line": 38, + "column": 61 + }, + "identifierName": "fee" + }, + "name": "fee" + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {number} amount - Amount of casper to add to undelegate\n * @param {string} activeKey - Current active key in the public hex format\n * @param {string} validator - Public key in the hex format of the validator\n * @param {string} network - Current network to execute the deployment\n * @param {string} hash - Current hash of the stored SmartContract\n ", + "start": 636, + "end": 1049, + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 31, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Get a DeployResult constructor\n *\n * @return {DeployResult.constructor} - Return the constructor of a given DeployResult\n ", + "start": 1427, + "end": 1574, + "loc": { + "start": { + "line": 41, + "column": 4 + }, + "end": { + "line": 45, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 1579, + "end": 1637, + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 48, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1583, + "end": 1595, + "loc": { + "start": { + "line": 46, + "column": 8 + }, + "end": { + "line": 46, + "column": 20 + }, + "identifierName": "deployResult" + }, + "name": "deployResult" + }, + "kind": "get", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 1598, + "end": 1637, + "loc": { + "start": { + "line": 46, + "column": 23 + }, + "end": { + "line": 48, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 1608, + "end": 1631, + "loc": { + "start": { + "line": 47, + "column": 8 + }, + "end": { + "line": 47, + "column": 31 + } + }, + "argument": { + "type": "Identifier", + "start": 1615, + "end": 1631, + "loc": { + "start": { + "line": 47, + "column": 15 + }, + "end": { + "line": 47, + "column": 31 + }, + "identifierName": "UndelegateResult" + }, + "name": "UndelegateResult" + } + } + ], + "directives": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Get a DeployResult constructor\n *\n * @return {DeployResult.constructor} - Return the constructor of a given DeployResult\n ", + "start": 1427, + "end": 1574, + "loc": { + "start": { + "line": 41, + "column": 4 + }, + "end": { + "line": 45, + "column": 7 + } + } + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Undelegate class\n * Class used to create DeployParameters for a Undelegate operation\n ", + "start": 451, + "end": 546, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 20, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Undelegate class\n * Class used to create DeployParameters for a Undelegate operation\n ", + "start": 451, + "end": 546, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 20, + "column": 3 + } + } + } + ] + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\n * @constant\n * @type {string}\n ", + "start": 318, + "end": 356, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @constant\n * @type {number}\n ", + "start": 389, + "end": 427, + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Undelegate class\n * Class used to create DeployParameters for a Undelegate operation\n ", + "start": 451, + "end": 546, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 20, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {number} amount - Amount of casper to add to undelegate\n * @param {string} activeKey - Current active key in the public hex format\n * @param {string} validator - Public key in the hex format of the validator\n * @param {string} network - Current network to execute the deployment\n * @param {string} hash - Current hash of the stored SmartContract\n ", + "start": 636, + "end": 1049, + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 31, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Get a DeployResult constructor\n *\n * @return {DeployResult.constructor} - Return the constructor of a given DeployResult\n ", + "start": 1427, + "end": 1574, + "loc": { + "start": { + "line": 41, + "column": 4 + }, + "end": { + "line": 45, + "column": 7 + } + } + } + ], + "tokens": [ + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 0, + "end": 6, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7, + "end": 8, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CLPublicKey", + "start": 8, + "end": 19, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 19 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 19, + "end": 20, + "loc": { + "start": { + "line": 1, + "column": 19 + }, + "end": { + "line": 1, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CLU512", + "start": 21, + "end": 27, + "loc": { + "start": { + "line": 1, + "column": 21 + }, + "end": { + "line": 1, + "column": 27 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 27, + "end": 28, + "loc": { + "start": { + "line": 1, + "column": 27 + }, + "end": { + "line": 1, + "column": 28 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "RuntimeArgs", + "start": 29, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 29 + }, + "end": { + "line": 1, + "column": 40 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 40, + "end": 41, + "loc": { + "start": { + "line": 1, + "column": 40 + }, + "end": { + "line": 1, + "column": 41 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 42, + "end": 46, + "loc": { + "start": { + "line": 1, + "column": 42 + }, + "end": { + "line": 1, + "column": 46 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "casper-js-sdk", + "start": 47, + "end": 62, + "loc": { + "start": { + "line": 1, + "column": 47 + }, + "end": { + "line": 1, + "column": 62 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 62, + "end": 63, + "loc": { + "start": { + "line": 1, + "column": 62 + }, + "end": { + "line": 1, + "column": 63 + } + } + }, + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 64, + "end": 70, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 71, + "end": 72, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CurrencyUtils", + "start": 72, + "end": 85, + "loc": { + "start": { + "line": 2, + "column": 8 + }, + "end": { + "line": 2, + "column": 21 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 85, + "end": 86, + "loc": { + "start": { + "line": 2, + "column": 21 + }, + "end": { + "line": 2, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 87, + "end": 91, + "loc": { + "start": { + "line": 2, + "column": 23 + }, + "end": { + "line": 2, + "column": 27 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "../../../helpers/currencyUtils", + "start": 92, + "end": 124, + "loc": { + "start": { + "line": 2, + "column": 28 + }, + "end": { + "line": 2, + "column": 60 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 124, + "end": 125, + "loc": { + "start": { + "line": 2, + "column": 60 + }, + "end": { + "line": 2, + "column": 61 + } + } + }, + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 126, + "end": 132, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 133, + "end": 134, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "UndelegateResult", + "start": 134, + "end": 150, + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 3, + "column": 24 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 150, + "end": 151, + "loc": { + "start": { + "line": 3, + "column": 24 + }, + "end": { + "line": 3, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 152, + "end": 156, + "loc": { + "start": { + "line": 3, + "column": 26 + }, + "end": { + "line": 3, + "column": 30 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "../../../results/undelegateResult", + "start": 157, + "end": 192, + "loc": { + "start": { + "line": 3, + "column": 31 + }, + "end": { + "line": 3, + "column": 66 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 192, + "end": 193, + "loc": { + "start": { + "line": 3, + "column": 66 + }, + "end": { + "line": 3, + "column": 67 + } + } + }, + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 194, + "end": 200, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 201, + "end": 202, + "loc": { + "start": { + "line": 4, + "column": 7 + }, + "end": { + "line": 4, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "AbstractSmartContractStoredByHashDeployParameters", + "start": 202, + "end": 251, + "loc": { + "start": { + "line": 4, + "column": 8 + }, + "end": { + "line": 4, + "column": 57 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 251, + "end": 252, + "loc": { + "start": { + "line": 4, + "column": 57 + }, + "end": { + "line": 4, + "column": 58 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 253, + "end": 257, + "loc": { + "start": { + "line": 4, + "column": 59 + }, + "end": { + "line": 4, + "column": 63 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "../../abstractSmartContractStoredByHashDeployParameters", + "start": 258, + "end": 315, + "loc": { + "start": { + "line": 4, + "column": 64 + }, + "end": { + "line": 4, + "column": 121 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 315, + "end": 316, + "loc": { + "start": { + "line": 4, + "column": 121 + }, + "end": { + "line": 4, + "column": 122 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @constant\n * @type {string}\n ", + "start": 318, + "end": 356, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 357, + "end": 362, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 10, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "entrypoint", + "start": 363, + "end": 373, + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 10, + "column": 16 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 374, + "end": 375, + "loc": { + "start": { + "line": 10, + "column": 17 + }, + "end": { + "line": 10, + "column": 18 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "undelegate", + "start": 376, + "end": 388, + "loc": { + "start": { + "line": 10, + "column": 19 + }, + "end": { + "line": 10, + "column": 31 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @constant\n * @type {number}\n ", + "start": 389, + "end": 427, + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 428, + "end": 433, + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 15, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "fee", + "start": 434, + "end": 437, + "loc": { + "start": { + "line": 15, + "column": 6 + }, + "end": { + "line": 15, + "column": 9 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 438, + "end": 439, + "loc": { + "start": { + "line": 15, + "column": 10 + }, + "end": { + "line": 15, + "column": 11 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 410000000, + "start": 440, + "end": 449, + "loc": { + "start": { + "line": 15, + "column": 12 + }, + "end": { + "line": 15, + "column": 21 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Undelegate class\n * Class used to create DeployParameters for a Undelegate operation\n ", + "start": 451, + "end": 546, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 20, + "column": 3 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 547, + "end": 553, + "loc": { + "start": { + "line": 21, + "column": 0 + }, + "end": { + "line": 21, + "column": 6 + } + } + }, + { + "type": { + "label": "class", + "keyword": "class", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "class", + "start": 554, + "end": 559, + "loc": { + "start": { + "line": 21, + "column": 7 + }, + "end": { + "line": 21, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Undelegate", + "start": 560, + "end": 570, + "loc": { + "start": { + "line": 21, + "column": 13 + }, + "end": { + "line": 21, + "column": 23 + } + } + }, + { + "type": { + "label": "extends", + "keyword": "extends", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "extends", + "start": 571, + "end": 578, + "loc": { + "start": { + "line": 21, + "column": 24 + }, + "end": { + "line": 21, + "column": 31 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "AbstractSmartContractStoredByHashDeployParameters", + "start": 579, + "end": 628, + "loc": { + "start": { + "line": 21, + "column": 32 + }, + "end": { + "line": 21, + "column": 81 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 629, + "end": 630, + "loc": { + "start": { + "line": 21, + "column": 82 + }, + "end": { + "line": 21, + "column": 83 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {number} amount - Amount of casper to add to undelegate\n * @param {string} activeKey - Current active key in the public hex format\n * @param {string} validator - Public key in the hex format of the validator\n * @param {string} network - Current network to execute the deployment\n * @param {string} hash - Current hash of the stored SmartContract\n ", + "start": 636, + "end": 1049, + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 31, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "constructor", + "start": 1054, + "end": 1065, + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 32, + "column": 15 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1065, + "end": 1066, + "loc": { + "start": { + "line": 32, + "column": 15 + }, + "end": { + "line": 32, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "amount", + "start": 1066, + "end": 1072, + "loc": { + "start": { + "line": 32, + "column": 16 + }, + "end": { + "line": 32, + "column": 22 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1072, + "end": 1073, + "loc": { + "start": { + "line": 32, + "column": 22 + }, + "end": { + "line": 32, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "activeKey", + "start": 1074, + "end": 1083, + "loc": { + "start": { + "line": 32, + "column": 24 + }, + "end": { + "line": 32, + "column": 33 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1083, + "end": 1084, + "loc": { + "start": { + "line": 32, + "column": 33 + }, + "end": { + "line": 32, + "column": 34 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "validator", + "start": 1085, + "end": 1094, + "loc": { + "start": { + "line": 32, + "column": 35 + }, + "end": { + "line": 32, + "column": 44 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1094, + "end": 1095, + "loc": { + "start": { + "line": 32, + "column": 44 + }, + "end": { + "line": 32, + "column": 45 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "network", + "start": 1096, + "end": 1103, + "loc": { + "start": { + "line": 32, + "column": 46 + }, + "end": { + "line": 32, + "column": 53 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1103, + "end": 1104, + "loc": { + "start": { + "line": 32, + "column": 53 + }, + "end": { + "line": 32, + "column": 54 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "hash", + "start": 1105, + "end": 1109, + "loc": { + "start": { + "line": 32, + "column": 55 + }, + "end": { + "line": 32, + "column": 59 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1109, + "end": 1110, + "loc": { + "start": { + "line": 32, + "column": 59 + }, + "end": { + "line": 32, + "column": 60 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1111, + "end": 1112, + "loc": { + "start": { + "line": 32, + "column": 61 + }, + "end": { + "line": 32, + "column": 62 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 1121, + "end": 1126, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 33, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "args", + "start": 1127, + "end": 1131, + "loc": { + "start": { + "line": 33, + "column": 14 + }, + "end": { + "line": 33, + "column": 18 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1132, + "end": 1133, + "loc": { + "start": { + "line": 33, + "column": 19 + }, + "end": { + "line": 33, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "RuntimeArgs", + "start": 1134, + "end": 1145, + "loc": { + "start": { + "line": 33, + "column": 21 + }, + "end": { + "line": 33, + "column": 32 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1145, + "end": 1146, + "loc": { + "start": { + "line": 33, + "column": 32 + }, + "end": { + "line": 33, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "fromMap", + "start": 1146, + "end": 1153, + "loc": { + "start": { + "line": 33, + "column": 33 + }, + "end": { + "line": 33, + "column": 40 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1153, + "end": 1154, + "loc": { + "start": { + "line": 33, + "column": 40 + }, + "end": { + "line": 33, + "column": 41 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1154, + "end": 1155, + "loc": { + "start": { + "line": 33, + "column": 41 + }, + "end": { + "line": 33, + "column": 42 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "delegator", + "start": 1168, + "end": 1177, + "loc": { + "start": { + "line": 34, + "column": 12 + }, + "end": { + "line": 34, + "column": 21 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1177, + "end": 1178, + "loc": { + "start": { + "line": 34, + "column": 21 + }, + "end": { + "line": 34, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CLPublicKey", + "start": 1179, + "end": 1190, + "loc": { + "start": { + "line": 34, + "column": 23 + }, + "end": { + "line": 34, + "column": 34 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1190, + "end": 1191, + "loc": { + "start": { + "line": 34, + "column": 34 + }, + "end": { + "line": 34, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "fromHex", + "start": 1191, + "end": 1198, + "loc": { + "start": { + "line": 34, + "column": 35 + }, + "end": { + "line": 34, + "column": 42 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1198, + "end": 1199, + "loc": { + "start": { + "line": 34, + "column": 42 + }, + "end": { + "line": 34, + "column": 43 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "activeKey", + "start": 1199, + "end": 1208, + "loc": { + "start": { + "line": 34, + "column": 43 + }, + "end": { + "line": 34, + "column": 52 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1208, + "end": 1209, + "loc": { + "start": { + "line": 34, + "column": 52 + }, + "end": { + "line": 34, + "column": 53 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1209, + "end": 1210, + "loc": { + "start": { + "line": 34, + "column": 53 + }, + "end": { + "line": 34, + "column": 54 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "validator", + "start": 1223, + "end": 1232, + "loc": { + "start": { + "line": 35, + "column": 12 + }, + "end": { + "line": 35, + "column": 21 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1232, + "end": 1233, + "loc": { + "start": { + "line": 35, + "column": 21 + }, + "end": { + "line": 35, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CLPublicKey", + "start": 1234, + "end": 1245, + "loc": { + "start": { + "line": 35, + "column": 23 + }, + "end": { + "line": 35, + "column": 34 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1245, + "end": 1246, + "loc": { + "start": { + "line": 35, + "column": 34 + }, + "end": { + "line": 35, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "fromHex", + "start": 1246, + "end": 1253, + "loc": { + "start": { + "line": 35, + "column": 35 + }, + "end": { + "line": 35, + "column": 42 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1253, + "end": 1254, + "loc": { + "start": { + "line": 35, + "column": 42 + }, + "end": { + "line": 35, + "column": 43 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "validator", + "start": 1254, + "end": 1263, + "loc": { + "start": { + "line": 35, + "column": 43 + }, + "end": { + "line": 35, + "column": 52 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1263, + "end": 1264, + "loc": { + "start": { + "line": 35, + "column": 52 + }, + "end": { + "line": 35, + "column": 53 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1264, + "end": 1265, + "loc": { + "start": { + "line": 35, + "column": 53 + }, + "end": { + "line": 35, + "column": 54 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "amount", + "start": 1278, + "end": 1284, + "loc": { + "start": { + "line": 36, + "column": 12 + }, + "end": { + "line": 36, + "column": 18 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1284, + "end": 1285, + "loc": { + "start": { + "line": 36, + "column": 18 + }, + "end": { + "line": 36, + "column": 19 + } + } + }, + { + "type": { + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "new", + "start": 1286, + "end": 1289, + "loc": { + "start": { + "line": 36, + "column": 20 + }, + "end": { + "line": 36, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CLU512", + "start": 1290, + "end": 1296, + "loc": { + "start": { + "line": 36, + "column": 24 + }, + "end": { + "line": 36, + "column": 30 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1296, + "end": 1297, + "loc": { + "start": { + "line": 36, + "column": 30 + }, + "end": { + "line": 36, + "column": 31 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CurrencyUtils", + "start": 1297, + "end": 1310, + "loc": { + "start": { + "line": 36, + "column": 31 + }, + "end": { + "line": 36, + "column": 44 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1310, + "end": 1311, + "loc": { + "start": { + "line": 36, + "column": 44 + }, + "end": { + "line": 36, + "column": 45 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "convertCasperToMotes", + "start": 1311, + "end": 1331, + "loc": { + "start": { + "line": 36, + "column": 45 + }, + "end": { + "line": 36, + "column": 65 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1331, + "end": 1332, + "loc": { + "start": { + "line": 36, + "column": 65 + }, + "end": { + "line": 36, + "column": 66 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "amount", + "start": 1332, + "end": 1338, + "loc": { + "start": { + "line": 36, + "column": 66 + }, + "end": { + "line": 36, + "column": 72 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1338, + "end": 1339, + "loc": { + "start": { + "line": 36, + "column": 72 + }, + "end": { + "line": 36, + "column": 73 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1339, + "end": 1340, + "loc": { + "start": { + "line": 36, + "column": 73 + }, + "end": { + "line": 36, + "column": 74 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1349, + "end": 1350, + "loc": { + "start": { + "line": 37, + "column": 8 + }, + "end": { + "line": 37, + "column": 9 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1350, + "end": 1351, + "loc": { + "start": { + "line": 37, + "column": 9 + }, + "end": { + "line": 37, + "column": 10 + } + } + }, + { + "type": { + "label": "super", + "keyword": "super", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "super", + "start": 1360, + "end": 1365, + "loc": { + "start": { + "line": 38, + "column": 8 + }, + "end": { + "line": 38, + "column": 13 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1365, + "end": 1366, + "loc": { + "start": { + "line": 38, + "column": 13 + }, + "end": { + "line": 38, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "activeKey", + "start": 1366, + "end": 1375, + "loc": { + "start": { + "line": 38, + "column": 14 + }, + "end": { + "line": 38, + "column": 23 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1375, + "end": 1376, + "loc": { + "start": { + "line": 38, + "column": 23 + }, + "end": { + "line": 38, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "network", + "start": 1377, + "end": 1384, + "loc": { + "start": { + "line": 38, + "column": 25 + }, + "end": { + "line": 38, + "column": 32 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1384, + "end": 1385, + "loc": { + "start": { + "line": 38, + "column": 32 + }, + "end": { + "line": 38, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "hash", + "start": 1386, + "end": 1390, + "loc": { + "start": { + "line": 38, + "column": 34 + }, + "end": { + "line": 38, + "column": 38 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1390, + "end": 1391, + "loc": { + "start": { + "line": 38, + "column": 38 + }, + "end": { + "line": 38, + "column": 39 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "entrypoint", + "start": 1392, + "end": 1402, + "loc": { + "start": { + "line": 38, + "column": 40 + }, + "end": { + "line": 38, + "column": 50 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1402, + "end": 1403, + "loc": { + "start": { + "line": 38, + "column": 50 + }, + "end": { + "line": 38, + "column": 51 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "args", + "start": 1404, + "end": 1408, + "loc": { + "start": { + "line": 38, + "column": 52 + }, + "end": { + "line": 38, + "column": 56 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1408, + "end": 1409, + "loc": { + "start": { + "line": 38, + "column": 56 + }, + "end": { + "line": 38, + "column": 57 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "fee", + "start": 1410, + "end": 1413, + "loc": { + "start": { + "line": 38, + "column": 58 + }, + "end": { + "line": 38, + "column": 61 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1413, + "end": 1414, + "loc": { + "start": { + "line": 38, + "column": 61 + }, + "end": { + "line": 38, + "column": 62 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1414, + "end": 1415, + "loc": { + "start": { + "line": 38, + "column": 62 + }, + "end": { + "line": 38, + "column": 63 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1420, + "end": 1421, + "loc": { + "start": { + "line": 39, + "column": 4 + }, + "end": { + "line": 39, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Get a DeployResult constructor\n *\n * @return {DeployResult.constructor} - Return the constructor of a given DeployResult\n ", + "start": 1427, + "end": 1574, + "loc": { + "start": { + "line": 41, + "column": 4 + }, + "end": { + "line": 45, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "get", + "start": 1579, + "end": 1582, + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 46, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "deployResult", + "start": 1583, + "end": 1595, + "loc": { + "start": { + "line": 46, + "column": 8 + }, + "end": { + "line": 46, + "column": 20 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1595, + "end": 1596, + "loc": { + "start": { + "line": 46, + "column": 20 + }, + "end": { + "line": 46, + "column": 21 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1596, + "end": 1597, + "loc": { + "start": { + "line": 46, + "column": 21 + }, + "end": { + "line": 46, + "column": 22 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1598, + "end": 1599, + "loc": { + "start": { + "line": 46, + "column": 23 + }, + "end": { + "line": 46, + "column": 24 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 1608, + "end": 1614, + "loc": { + "start": { + "line": 47, + "column": 8 + }, + "end": { + "line": 47, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "UndelegateResult", + "start": 1615, + "end": 1631, + "loc": { + "start": { + "line": 47, + "column": 15 + }, + "end": { + "line": 47, + "column": 31 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1636, + "end": 1637, + "loc": { + "start": { + "line": 48, + "column": 4 + }, + "end": { + "line": 48, + "column": 5 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1638, + "end": 1639, + "loc": { + "start": { + "line": 49, + "column": 0 + }, + "end": { + "line": 49, + "column": 1 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1639, + "end": 1639, + "loc": { + "start": { + "line": 49, + "column": 1 + }, + "end": { + "line": 49, + "column": 1 + } + } + } + ] +} \ No newline at end of file diff --git a/ast/source/services/deploys/auction/actions/withdrawBid.js.json b/ast/source/services/deploys/auction/actions/withdrawBid.js.json new file mode 100644 index 0000000..84e0dcc --- /dev/null +++ b/ast/source/services/deploys/auction/actions/withdrawBid.js.json @@ -0,0 +1,4824 @@ +{ + "type": "File", + "start": 0, + "end": 1498, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 47, + "column": 1 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 1498, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 47, + "column": 1 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 63, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 63 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 8, + "end": 19, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 19 + } + }, + "imported": { + "type": "Identifier", + "start": 8, + "end": 19, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 19 + }, + "identifierName": "CLPublicKey" + }, + "name": "CLPublicKey" + }, + "local": { + "type": "Identifier", + "start": 8, + "end": 19, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 19 + }, + "identifierName": "CLPublicKey" + }, + "name": "CLPublicKey" + } + }, + { + "type": "ImportSpecifier", + "start": 21, + "end": 27, + "loc": { + "start": { + "line": 1, + "column": 21 + }, + "end": { + "line": 1, + "column": 27 + } + }, + "imported": { + "type": "Identifier", + "start": 21, + "end": 27, + "loc": { + "start": { + "line": 1, + "column": 21 + }, + "end": { + "line": 1, + "column": 27 + }, + "identifierName": "CLU512" + }, + "name": "CLU512" + }, + "local": { + "type": "Identifier", + "start": 21, + "end": 27, + "loc": { + "start": { + "line": 1, + "column": 21 + }, + "end": { + "line": 1, + "column": 27 + }, + "identifierName": "CLU512" + }, + "name": "CLU512" + } + }, + { + "type": "ImportSpecifier", + "start": 29, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 29 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "imported": { + "type": "Identifier", + "start": 29, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 29 + }, + "end": { + "line": 1, + "column": 40 + }, + "identifierName": "RuntimeArgs" + }, + "name": "RuntimeArgs" + }, + "local": { + "type": "Identifier", + "start": 29, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 29 + }, + "end": { + "line": 1, + "column": 40 + }, + "identifierName": "RuntimeArgs" + }, + "name": "RuntimeArgs" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 47, + "end": 62, + "loc": { + "start": { + "line": 1, + "column": 47 + }, + "end": { + "line": 1, + "column": 62 + } + }, + "extra": { + "rawValue": "casper-js-sdk", + "raw": "\"casper-js-sdk\"" + }, + "value": "casper-js-sdk" + } + }, + { + "type": "ImportDeclaration", + "start": 64, + "end": 125, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 61 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 72, + "end": 85, + "loc": { + "start": { + "line": 2, + "column": 8 + }, + "end": { + "line": 2, + "column": 21 + } + }, + "imported": { + "type": "Identifier", + "start": 72, + "end": 85, + "loc": { + "start": { + "line": 2, + "column": 8 + }, + "end": { + "line": 2, + "column": 21 + }, + "identifierName": "CurrencyUtils" + }, + "name": "CurrencyUtils" + }, + "local": { + "type": "Identifier", + "start": 72, + "end": 85, + "loc": { + "start": { + "line": 2, + "column": 8 + }, + "end": { + "line": 2, + "column": 21 + }, + "identifierName": "CurrencyUtils" + }, + "name": "CurrencyUtils" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 92, + "end": 124, + "loc": { + "start": { + "line": 2, + "column": 28 + }, + "end": { + "line": 2, + "column": 60 + } + }, + "extra": { + "rawValue": "../../../helpers/currencyUtils", + "raw": "\"../../../helpers/currencyUtils\"" + }, + "value": "../../../helpers/currencyUtils" + } + }, + { + "type": "ImportDeclaration", + "start": 126, + "end": 195, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 69 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 134, + "end": 151, + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 3, + "column": 25 + } + }, + "imported": { + "type": "Identifier", + "start": 134, + "end": 151, + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 3, + "column": 25 + }, + "identifierName": "WithdrawBidResult" + }, + "name": "WithdrawBidResult" + }, + "local": { + "type": "Identifier", + "start": 134, + "end": 151, + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 3, + "column": 25 + }, + "identifierName": "WithdrawBidResult" + }, + "name": "WithdrawBidResult" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 158, + "end": 194, + "loc": { + "start": { + "line": 3, + "column": 32 + }, + "end": { + "line": 3, + "column": 68 + } + }, + "extra": { + "rawValue": "../../../results/withdrawBidResult", + "raw": "\"../../../results/withdrawBidResult\"" + }, + "value": "../../../results/withdrawBidResult" + } + }, + { + "type": "ImportDeclaration", + "start": 196, + "end": 318, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 122 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 204, + "end": 253, + "loc": { + "start": { + "line": 4, + "column": 8 + }, + "end": { + "line": 4, + "column": 57 + } + }, + "imported": { + "type": "Identifier", + "start": 204, + "end": 253, + "loc": { + "start": { + "line": 4, + "column": 8 + }, + "end": { + "line": 4, + "column": 57 + }, + "identifierName": "AbstractSmartContractStoredByHashDeployParameters" + }, + "name": "AbstractSmartContractStoredByHashDeployParameters" + }, + "local": { + "type": "Identifier", + "start": 204, + "end": 253, + "loc": { + "start": { + "line": 4, + "column": 8 + }, + "end": { + "line": 4, + "column": 57 + }, + "identifierName": "AbstractSmartContractStoredByHashDeployParameters" + }, + "name": "AbstractSmartContractStoredByHashDeployParameters" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 260, + "end": 317, + "loc": { + "start": { + "line": 4, + "column": 64 + }, + "end": { + "line": 4, + "column": 121 + } + }, + "extra": { + "rawValue": "../../abstractSmartContractStoredByHashDeployParameters", + "raw": "\"../../abstractSmartContractStoredByHashDeployParameters\"" + }, + "value": "../../abstractSmartContractStoredByHashDeployParameters" + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * @constant\n * @type {string}\n ", + "start": 320, + "end": 358, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + } + ] + }, + { + "type": "VariableDeclaration", + "start": 359, + "end": 392, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 10, + "column": 33 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 365, + "end": 392, + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 10, + "column": 33 + } + }, + "id": { + "type": "Identifier", + "start": 365, + "end": 375, + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 10, + "column": 16 + }, + "identifierName": "entrypoint" + }, + "name": "entrypoint", + "leadingComments": null + }, + "init": { + "type": "StringLiteral", + "start": 378, + "end": 392, + "loc": { + "start": { + "line": 10, + "column": 19 + }, + "end": { + "line": 10, + "column": 33 + } + }, + "extra": { + "rawValue": "withdraw_bid", + "raw": "'withdraw_bid'" + }, + "value": "withdraw_bid", + "leadingComments": null, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * @constant\n * @type {string}\n ", + "start": 320, + "end": 358, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * @constant\n * @type {number}\n ", + "start": 393, + "end": 431, + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + } + } + ] + }, + { + "type": "VariableDeclaration", + "start": 432, + "end": 453, + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 15, + "column": 21 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 438, + "end": 453, + "loc": { + "start": { + "line": 15, + "column": 6 + }, + "end": { + "line": 15, + "column": 21 + } + }, + "id": { + "type": "Identifier", + "start": 438, + "end": 441, + "loc": { + "start": { + "line": 15, + "column": 6 + }, + "end": { + "line": 15, + "column": 9 + }, + "identifierName": "fee" + }, + "name": "fee", + "leadingComments": null + }, + "init": { + "type": "NumericLiteral", + "start": 444, + "end": 453, + "loc": { + "start": { + "line": 15, + "column": 12 + }, + "end": { + "line": 15, + "column": 21 + } + }, + "extra": { + "rawValue": 220000000, + "raw": "220000000" + }, + "value": 220000000, + "leadingComments": null, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * @constant\n * @type {number}\n ", + "start": 393, + "end": 431, + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * WithdrawBid\n * Class used to create DeployParameters for a WithdrawBid operation\n ", + "start": 455, + "end": 546, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 20, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 547, + "end": 1498, + "loc": { + "start": { + "line": 21, + "column": 0 + }, + "end": { + "line": 47, + "column": 1 + } + }, + "specifiers": [], + "source": null, + "declaration": { + "type": "ClassDeclaration", + "start": 554, + "end": 1498, + "loc": { + "start": { + "line": 21, + "column": 7 + }, + "end": { + "line": 47, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 560, + "end": 571, + "loc": { + "start": { + "line": 21, + "column": 13 + }, + "end": { + "line": 21, + "column": 24 + }, + "identifierName": "WithdrawBid" + }, + "name": "WithdrawBid", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 580, + "end": 629, + "loc": { + "start": { + "line": 21, + "column": 33 + }, + "end": { + "line": 21, + "column": 82 + }, + "identifierName": "AbstractSmartContractStoredByHashDeployParameters" + }, + "name": "AbstractSmartContractStoredByHashDeployParameters" + }, + "body": { + "type": "ClassBody", + "start": 630, + "end": 1498, + "loc": { + "start": { + "line": 21, + "column": 83 + }, + "end": { + "line": 47, + "column": 1 + } + }, + "body": [ + { + "type": "ClassMethod", + "start": 976, + "end": 1279, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 37, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 976, + "end": 987, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 15 + }, + "identifierName": "constructor" + }, + "name": "constructor", + "leadingComments": null + }, + "kind": "constructor", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 988, + "end": 994, + "loc": { + "start": { + "line": 31, + "column": 16 + }, + "end": { + "line": 31, + "column": 22 + }, + "identifierName": "amount" + }, + "name": "amount" + }, + { + "type": "Identifier", + "start": 996, + "end": 1005, + "loc": { + "start": { + "line": 31, + "column": 24 + }, + "end": { + "line": 31, + "column": 33 + }, + "identifierName": "activeKey" + }, + "name": "activeKey" + }, + { + "type": "Identifier", + "start": 1007, + "end": 1014, + "loc": { + "start": { + "line": 31, + "column": 35 + }, + "end": { + "line": 31, + "column": 42 + }, + "identifierName": "network" + }, + "name": "network" + }, + { + "type": "Identifier", + "start": 1016, + "end": 1020, + "loc": { + "start": { + "line": 31, + "column": 44 + }, + "end": { + "line": 31, + "column": 48 + }, + "identifierName": "hash" + }, + "name": "hash" + } + ], + "body": { + "type": "BlockStatement", + "start": 1022, + "end": 1279, + "loc": { + "start": { + "line": 31, + "column": 50 + }, + "end": { + "line": 37, + "column": 5 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 1032, + "end": 1209, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 35, + "column": 10 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1038, + "end": 1209, + "loc": { + "start": { + "line": 32, + "column": 14 + }, + "end": { + "line": 35, + "column": 10 + } + }, + "id": { + "type": "Identifier", + "start": 1038, + "end": 1042, + "loc": { + "start": { + "line": 32, + "column": 14 + }, + "end": { + "line": 32, + "column": 18 + }, + "identifierName": "args" + }, + "name": "args" + }, + "init": { + "type": "CallExpression", + "start": 1045, + "end": 1209, + "loc": { + "start": { + "line": 32, + "column": 21 + }, + "end": { + "line": 35, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1045, + "end": 1064, + "loc": { + "start": { + "line": 32, + "column": 21 + }, + "end": { + "line": 32, + "column": 40 + } + }, + "object": { + "type": "Identifier", + "start": 1045, + "end": 1056, + "loc": { + "start": { + "line": 32, + "column": 21 + }, + "end": { + "line": 32, + "column": 32 + }, + "identifierName": "RuntimeArgs" + }, + "name": "RuntimeArgs" + }, + "property": { + "type": "Identifier", + "start": 1057, + "end": 1064, + "loc": { + "start": { + "line": 32, + "column": 33 + }, + "end": { + "line": 32, + "column": 40 + }, + "identifierName": "fromMap" + }, + "name": "fromMap" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 1065, + "end": 1208, + "loc": { + "start": { + "line": 32, + "column": 41 + }, + "end": { + "line": 35, + "column": 9 + } + }, + "properties": [ + { + "type": "ObjectProperty", + "start": 1079, + "end": 1121, + "loc": { + "start": { + "line": 33, + "column": 12 + }, + "end": { + "line": 33, + "column": 54 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1079, + "end": 1089, + "loc": { + "start": { + "line": 33, + "column": 12 + }, + "end": { + "line": 33, + "column": 22 + }, + "identifierName": "public_key" + }, + "name": "public_key" + }, + "value": { + "type": "CallExpression", + "start": 1091, + "end": 1121, + "loc": { + "start": { + "line": 33, + "column": 24 + }, + "end": { + "line": 33, + "column": 54 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1091, + "end": 1110, + "loc": { + "start": { + "line": 33, + "column": 24 + }, + "end": { + "line": 33, + "column": 43 + } + }, + "object": { + "type": "Identifier", + "start": 1091, + "end": 1102, + "loc": { + "start": { + "line": 33, + "column": 24 + }, + "end": { + "line": 33, + "column": 35 + }, + "identifierName": "CLPublicKey" + }, + "name": "CLPublicKey" + }, + "property": { + "type": "Identifier", + "start": 1103, + "end": 1110, + "loc": { + "start": { + "line": 33, + "column": 36 + }, + "end": { + "line": 33, + "column": 43 + }, + "identifierName": "fromHex" + }, + "name": "fromHex" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 1111, + "end": 1120, + "loc": { + "start": { + "line": 33, + "column": 44 + }, + "end": { + "line": 33, + "column": 53 + }, + "identifierName": "activeKey" + }, + "name": "activeKey" + } + ] + } + }, + { + "type": "ObjectProperty", + "start": 1135, + "end": 1197, + "loc": { + "start": { + "line": 34, + "column": 12 + }, + "end": { + "line": 34, + "column": 74 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1135, + "end": 1141, + "loc": { + "start": { + "line": 34, + "column": 12 + }, + "end": { + "line": 34, + "column": 18 + }, + "identifierName": "amount" + }, + "name": "amount" + }, + "value": { + "type": "NewExpression", + "start": 1143, + "end": 1197, + "loc": { + "start": { + "line": 34, + "column": 20 + }, + "end": { + "line": 34, + "column": 74 + } + }, + "callee": { + "type": "Identifier", + "start": 1147, + "end": 1153, + "loc": { + "start": { + "line": 34, + "column": 24 + }, + "end": { + "line": 34, + "column": 30 + }, + "identifierName": "CLU512" + }, + "name": "CLU512" + }, + "arguments": [ + { + "type": "CallExpression", + "start": 1154, + "end": 1196, + "loc": { + "start": { + "line": 34, + "column": 31 + }, + "end": { + "line": 34, + "column": 73 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1154, + "end": 1188, + "loc": { + "start": { + "line": 34, + "column": 31 + }, + "end": { + "line": 34, + "column": 65 + } + }, + "object": { + "type": "Identifier", + "start": 1154, + "end": 1167, + "loc": { + "start": { + "line": 34, + "column": 31 + }, + "end": { + "line": 34, + "column": 44 + }, + "identifierName": "CurrencyUtils" + }, + "name": "CurrencyUtils" + }, + "property": { + "type": "Identifier", + "start": 1168, + "end": 1188, + "loc": { + "start": { + "line": 34, + "column": 45 + }, + "end": { + "line": 34, + "column": 65 + }, + "identifierName": "convertCasperToMotes" + }, + "name": "convertCasperToMotes" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 1189, + "end": 1195, + "loc": { + "start": { + "line": 34, + "column": 66 + }, + "end": { + "line": 34, + "column": 72 + }, + "identifierName": "amount" + }, + "name": "amount" + } + ] + } + ] + } + } + ] + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "ExpressionStatement", + "start": 1218, + "end": 1273, + "loc": { + "start": { + "line": 36, + "column": 8 + }, + "end": { + "line": 36, + "column": 63 + } + }, + "expression": { + "type": "CallExpression", + "start": 1218, + "end": 1272, + "loc": { + "start": { + "line": 36, + "column": 8 + }, + "end": { + "line": 36, + "column": 62 + } + }, + "callee": { + "type": "Super", + "start": 1218, + "end": 1223, + "loc": { + "start": { + "line": 36, + "column": 8 + }, + "end": { + "line": 36, + "column": 13 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "start": 1224, + "end": 1233, + "loc": { + "start": { + "line": 36, + "column": 14 + }, + "end": { + "line": 36, + "column": 23 + }, + "identifierName": "activeKey" + }, + "name": "activeKey" + }, + { + "type": "Identifier", + "start": 1235, + "end": 1242, + "loc": { + "start": { + "line": 36, + "column": 25 + }, + "end": { + "line": 36, + "column": 32 + }, + "identifierName": "network" + }, + "name": "network" + }, + { + "type": "Identifier", + "start": 1244, + "end": 1248, + "loc": { + "start": { + "line": 36, + "column": 34 + }, + "end": { + "line": 36, + "column": 38 + }, + "identifierName": "hash" + }, + "name": "hash" + }, + { + "type": "Identifier", + "start": 1250, + "end": 1260, + "loc": { + "start": { + "line": 36, + "column": 40 + }, + "end": { + "line": 36, + "column": 50 + }, + "identifierName": "entrypoint" + }, + "name": "entrypoint" + }, + { + "type": "Identifier", + "start": 1262, + "end": 1266, + "loc": { + "start": { + "line": 36, + "column": 52 + }, + "end": { + "line": 36, + "column": 56 + }, + "identifierName": "args" + }, + "name": "args" + }, + { + "type": "Identifier", + "start": 1268, + "end": 1271, + "loc": { + "start": { + "line": 36, + "column": 58 + }, + "end": { + "line": 36, + "column": 61 + }, + "identifierName": "fee" + }, + "name": "fee" + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {number} amount - Amount of casper to withdraw to the bid\n * @param {string} activeKey - Current active key in the public hex format\n * @param {string} network - Current network to execute the deployment\n * @param {string} hash - Current hash of the stored SmartContract\n ", + "start": 637, + "end": 971, + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 30, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Get a DeployResult constructor\n *\n * @return {DeployResult.constructor} - Return the constructor of a given DeployResult\n ", + "start": 1285, + "end": 1432, + "loc": { + "start": { + "line": 39, + "column": 4 + }, + "end": { + "line": 43, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 1437, + "end": 1496, + "loc": { + "start": { + "line": 44, + "column": 4 + }, + "end": { + "line": 46, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1441, + "end": 1453, + "loc": { + "start": { + "line": 44, + "column": 8 + }, + "end": { + "line": 44, + "column": 20 + }, + "identifierName": "deployResult" + }, + "name": "deployResult" + }, + "kind": "get", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 1456, + "end": 1496, + "loc": { + "start": { + "line": 44, + "column": 23 + }, + "end": { + "line": 46, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 1466, + "end": 1490, + "loc": { + "start": { + "line": 45, + "column": 8 + }, + "end": { + "line": 45, + "column": 32 + } + }, + "argument": { + "type": "Identifier", + "start": 1473, + "end": 1490, + "loc": { + "start": { + "line": 45, + "column": 15 + }, + "end": { + "line": 45, + "column": 32 + }, + "identifierName": "WithdrawBidResult" + }, + "name": "WithdrawBidResult" + } + } + ], + "directives": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Get a DeployResult constructor\n *\n * @return {DeployResult.constructor} - Return the constructor of a given DeployResult\n ", + "start": 1285, + "end": 1432, + "loc": { + "start": { + "line": 39, + "column": 4 + }, + "end": { + "line": 43, + "column": 7 + } + } + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * WithdrawBid\n * Class used to create DeployParameters for a WithdrawBid operation\n ", + "start": 455, + "end": 546, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 20, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * WithdrawBid\n * Class used to create DeployParameters for a WithdrawBid operation\n ", + "start": 455, + "end": 546, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 20, + "column": 3 + } + } + } + ] + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\n * @constant\n * @type {string}\n ", + "start": 320, + "end": 358, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @constant\n * @type {number}\n ", + "start": 393, + "end": 431, + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * WithdrawBid\n * Class used to create DeployParameters for a WithdrawBid operation\n ", + "start": 455, + "end": 546, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 20, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {number} amount - Amount of casper to withdraw to the bid\n * @param {string} activeKey - Current active key in the public hex format\n * @param {string} network - Current network to execute the deployment\n * @param {string} hash - Current hash of the stored SmartContract\n ", + "start": 637, + "end": 971, + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 30, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Get a DeployResult constructor\n *\n * @return {DeployResult.constructor} - Return the constructor of a given DeployResult\n ", + "start": 1285, + "end": 1432, + "loc": { + "start": { + "line": 39, + "column": 4 + }, + "end": { + "line": 43, + "column": 7 + } + } + } + ], + "tokens": [ + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 0, + "end": 6, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7, + "end": 8, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CLPublicKey", + "start": 8, + "end": 19, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 19 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 19, + "end": 20, + "loc": { + "start": { + "line": 1, + "column": 19 + }, + "end": { + "line": 1, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CLU512", + "start": 21, + "end": 27, + "loc": { + "start": { + "line": 1, + "column": 21 + }, + "end": { + "line": 1, + "column": 27 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 27, + "end": 28, + "loc": { + "start": { + "line": 1, + "column": 27 + }, + "end": { + "line": 1, + "column": 28 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "RuntimeArgs", + "start": 29, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 29 + }, + "end": { + "line": 1, + "column": 40 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 40, + "end": 41, + "loc": { + "start": { + "line": 1, + "column": 40 + }, + "end": { + "line": 1, + "column": 41 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 42, + "end": 46, + "loc": { + "start": { + "line": 1, + "column": 42 + }, + "end": { + "line": 1, + "column": 46 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "casper-js-sdk", + "start": 47, + "end": 62, + "loc": { + "start": { + "line": 1, + "column": 47 + }, + "end": { + "line": 1, + "column": 62 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 62, + "end": 63, + "loc": { + "start": { + "line": 1, + "column": 62 + }, + "end": { + "line": 1, + "column": 63 + } + } + }, + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 64, + "end": 70, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 71, + "end": 72, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CurrencyUtils", + "start": 72, + "end": 85, + "loc": { + "start": { + "line": 2, + "column": 8 + }, + "end": { + "line": 2, + "column": 21 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 85, + "end": 86, + "loc": { + "start": { + "line": 2, + "column": 21 + }, + "end": { + "line": 2, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 87, + "end": 91, + "loc": { + "start": { + "line": 2, + "column": 23 + }, + "end": { + "line": 2, + "column": 27 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "../../../helpers/currencyUtils", + "start": 92, + "end": 124, + "loc": { + "start": { + "line": 2, + "column": 28 + }, + "end": { + "line": 2, + "column": 60 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 124, + "end": 125, + "loc": { + "start": { + "line": 2, + "column": 60 + }, + "end": { + "line": 2, + "column": 61 + } + } + }, + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 126, + "end": 132, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 133, + "end": 134, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "WithdrawBidResult", + "start": 134, + "end": 151, + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 3, + "column": 25 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 151, + "end": 152, + "loc": { + "start": { + "line": 3, + "column": 25 + }, + "end": { + "line": 3, + "column": 26 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 153, + "end": 157, + "loc": { + "start": { + "line": 3, + "column": 27 + }, + "end": { + "line": 3, + "column": 31 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "../../../results/withdrawBidResult", + "start": 158, + "end": 194, + "loc": { + "start": { + "line": 3, + "column": 32 + }, + "end": { + "line": 3, + "column": 68 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 194, + "end": 195, + "loc": { + "start": { + "line": 3, + "column": 68 + }, + "end": { + "line": 3, + "column": 69 + } + } + }, + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 196, + "end": 202, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 203, + "end": 204, + "loc": { + "start": { + "line": 4, + "column": 7 + }, + "end": { + "line": 4, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "AbstractSmartContractStoredByHashDeployParameters", + "start": 204, + "end": 253, + "loc": { + "start": { + "line": 4, + "column": 8 + }, + "end": { + "line": 4, + "column": 57 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 253, + "end": 254, + "loc": { + "start": { + "line": 4, + "column": 57 + }, + "end": { + "line": 4, + "column": 58 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 255, + "end": 259, + "loc": { + "start": { + "line": 4, + "column": 59 + }, + "end": { + "line": 4, + "column": 63 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "../../abstractSmartContractStoredByHashDeployParameters", + "start": 260, + "end": 317, + "loc": { + "start": { + "line": 4, + "column": 64 + }, + "end": { + "line": 4, + "column": 121 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 317, + "end": 318, + "loc": { + "start": { + "line": 4, + "column": 121 + }, + "end": { + "line": 4, + "column": 122 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @constant\n * @type {string}\n ", + "start": 320, + "end": 358, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 359, + "end": 364, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 10, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "entrypoint", + "start": 365, + "end": 375, + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 10, + "column": 16 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 376, + "end": 377, + "loc": { + "start": { + "line": 10, + "column": 17 + }, + "end": { + "line": 10, + "column": 18 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "withdraw_bid", + "start": 378, + "end": 392, + "loc": { + "start": { + "line": 10, + "column": 19 + }, + "end": { + "line": 10, + "column": 33 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @constant\n * @type {number}\n ", + "start": 393, + "end": 431, + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 432, + "end": 437, + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 15, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "fee", + "start": 438, + "end": 441, + "loc": { + "start": { + "line": 15, + "column": 6 + }, + "end": { + "line": 15, + "column": 9 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 442, + "end": 443, + "loc": { + "start": { + "line": 15, + "column": 10 + }, + "end": { + "line": 15, + "column": 11 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 220000000, + "start": 444, + "end": 453, + "loc": { + "start": { + "line": 15, + "column": 12 + }, + "end": { + "line": 15, + "column": 21 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * WithdrawBid\n * Class used to create DeployParameters for a WithdrawBid operation\n ", + "start": 455, + "end": 546, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 20, + "column": 3 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 547, + "end": 553, + "loc": { + "start": { + "line": 21, + "column": 0 + }, + "end": { + "line": 21, + "column": 6 + } + } + }, + { + "type": { + "label": "class", + "keyword": "class", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "class", + "start": 554, + "end": 559, + "loc": { + "start": { + "line": 21, + "column": 7 + }, + "end": { + "line": 21, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "WithdrawBid", + "start": 560, + "end": 571, + "loc": { + "start": { + "line": 21, + "column": 13 + }, + "end": { + "line": 21, + "column": 24 + } + } + }, + { + "type": { + "label": "extends", + "keyword": "extends", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "extends", + "start": 572, + "end": 579, + "loc": { + "start": { + "line": 21, + "column": 25 + }, + "end": { + "line": 21, + "column": 32 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "AbstractSmartContractStoredByHashDeployParameters", + "start": 580, + "end": 629, + "loc": { + "start": { + "line": 21, + "column": 33 + }, + "end": { + "line": 21, + "column": 82 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 630, + "end": 631, + "loc": { + "start": { + "line": 21, + "column": 83 + }, + "end": { + "line": 21, + "column": 84 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {number} amount - Amount of casper to withdraw to the bid\n * @param {string} activeKey - Current active key in the public hex format\n * @param {string} network - Current network to execute the deployment\n * @param {string} hash - Current hash of the stored SmartContract\n ", + "start": 637, + "end": 971, + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 30, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "constructor", + "start": 976, + "end": 987, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 15 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 987, + "end": 988, + "loc": { + "start": { + "line": 31, + "column": 15 + }, + "end": { + "line": 31, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "amount", + "start": 988, + "end": 994, + "loc": { + "start": { + "line": 31, + "column": 16 + }, + "end": { + "line": 31, + "column": 22 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 994, + "end": 995, + "loc": { + "start": { + "line": 31, + "column": 22 + }, + "end": { + "line": 31, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "activeKey", + "start": 996, + "end": 1005, + "loc": { + "start": { + "line": 31, + "column": 24 + }, + "end": { + "line": 31, + "column": 33 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1005, + "end": 1006, + "loc": { + "start": { + "line": 31, + "column": 33 + }, + "end": { + "line": 31, + "column": 34 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "network", + "start": 1007, + "end": 1014, + "loc": { + "start": { + "line": 31, + "column": 35 + }, + "end": { + "line": 31, + "column": 42 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1014, + "end": 1015, + "loc": { + "start": { + "line": 31, + "column": 42 + }, + "end": { + "line": 31, + "column": 43 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "hash", + "start": 1016, + "end": 1020, + "loc": { + "start": { + "line": 31, + "column": 44 + }, + "end": { + "line": 31, + "column": 48 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1020, + "end": 1021, + "loc": { + "start": { + "line": 31, + "column": 48 + }, + "end": { + "line": 31, + "column": 49 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1022, + "end": 1023, + "loc": { + "start": { + "line": 31, + "column": 50 + }, + "end": { + "line": 31, + "column": 51 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 1032, + "end": 1037, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "args", + "start": 1038, + "end": 1042, + "loc": { + "start": { + "line": 32, + "column": 14 + }, + "end": { + "line": 32, + "column": 18 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1043, + "end": 1044, + "loc": { + "start": { + "line": 32, + "column": 19 + }, + "end": { + "line": 32, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "RuntimeArgs", + "start": 1045, + "end": 1056, + "loc": { + "start": { + "line": 32, + "column": 21 + }, + "end": { + "line": 32, + "column": 32 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1056, + "end": 1057, + "loc": { + "start": { + "line": 32, + "column": 32 + }, + "end": { + "line": 32, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "fromMap", + "start": 1057, + "end": 1064, + "loc": { + "start": { + "line": 32, + "column": 33 + }, + "end": { + "line": 32, + "column": 40 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1064, + "end": 1065, + "loc": { + "start": { + "line": 32, + "column": 40 + }, + "end": { + "line": 32, + "column": 41 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1065, + "end": 1066, + "loc": { + "start": { + "line": 32, + "column": 41 + }, + "end": { + "line": 32, + "column": 42 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "public_key", + "start": 1079, + "end": 1089, + "loc": { + "start": { + "line": 33, + "column": 12 + }, + "end": { + "line": 33, + "column": 22 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1089, + "end": 1090, + "loc": { + "start": { + "line": 33, + "column": 22 + }, + "end": { + "line": 33, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CLPublicKey", + "start": 1091, + "end": 1102, + "loc": { + "start": { + "line": 33, + "column": 24 + }, + "end": { + "line": 33, + "column": 35 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1102, + "end": 1103, + "loc": { + "start": { + "line": 33, + "column": 35 + }, + "end": { + "line": 33, + "column": 36 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "fromHex", + "start": 1103, + "end": 1110, + "loc": { + "start": { + "line": 33, + "column": 36 + }, + "end": { + "line": 33, + "column": 43 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1110, + "end": 1111, + "loc": { + "start": { + "line": 33, + "column": 43 + }, + "end": { + "line": 33, + "column": 44 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "activeKey", + "start": 1111, + "end": 1120, + "loc": { + "start": { + "line": 33, + "column": 44 + }, + "end": { + "line": 33, + "column": 53 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1120, + "end": 1121, + "loc": { + "start": { + "line": 33, + "column": 53 + }, + "end": { + "line": 33, + "column": 54 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1121, + "end": 1122, + "loc": { + "start": { + "line": 33, + "column": 54 + }, + "end": { + "line": 33, + "column": 55 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "amount", + "start": 1135, + "end": 1141, + "loc": { + "start": { + "line": 34, + "column": 12 + }, + "end": { + "line": 34, + "column": 18 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1141, + "end": 1142, + "loc": { + "start": { + "line": 34, + "column": 18 + }, + "end": { + "line": 34, + "column": 19 + } + } + }, + { + "type": { + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "new", + "start": 1143, + "end": 1146, + "loc": { + "start": { + "line": 34, + "column": 20 + }, + "end": { + "line": 34, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CLU512", + "start": 1147, + "end": 1153, + "loc": { + "start": { + "line": 34, + "column": 24 + }, + "end": { + "line": 34, + "column": 30 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1153, + "end": 1154, + "loc": { + "start": { + "line": 34, + "column": 30 + }, + "end": { + "line": 34, + "column": 31 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CurrencyUtils", + "start": 1154, + "end": 1167, + "loc": { + "start": { + "line": 34, + "column": 31 + }, + "end": { + "line": 34, + "column": 44 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1167, + "end": 1168, + "loc": { + "start": { + "line": 34, + "column": 44 + }, + "end": { + "line": 34, + "column": 45 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "convertCasperToMotes", + "start": 1168, + "end": 1188, + "loc": { + "start": { + "line": 34, + "column": 45 + }, + "end": { + "line": 34, + "column": 65 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1188, + "end": 1189, + "loc": { + "start": { + "line": 34, + "column": 65 + }, + "end": { + "line": 34, + "column": 66 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "amount", + "start": 1189, + "end": 1195, + "loc": { + "start": { + "line": 34, + "column": 66 + }, + "end": { + "line": 34, + "column": 72 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1195, + "end": 1196, + "loc": { + "start": { + "line": 34, + "column": 72 + }, + "end": { + "line": 34, + "column": 73 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1196, + "end": 1197, + "loc": { + "start": { + "line": 34, + "column": 73 + }, + "end": { + "line": 34, + "column": 74 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1197, + "end": 1198, + "loc": { + "start": { + "line": 34, + "column": 74 + }, + "end": { + "line": 34, + "column": 75 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1207, + "end": 1208, + "loc": { + "start": { + "line": 35, + "column": 8 + }, + "end": { + "line": 35, + "column": 9 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1208, + "end": 1209, + "loc": { + "start": { + "line": 35, + "column": 9 + }, + "end": { + "line": 35, + "column": 10 + } + } + }, + { + "type": { + "label": "super", + "keyword": "super", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "super", + "start": 1218, + "end": 1223, + "loc": { + "start": { + "line": 36, + "column": 8 + }, + "end": { + "line": 36, + "column": 13 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1223, + "end": 1224, + "loc": { + "start": { + "line": 36, + "column": 13 + }, + "end": { + "line": 36, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "activeKey", + "start": 1224, + "end": 1233, + "loc": { + "start": { + "line": 36, + "column": 14 + }, + "end": { + "line": 36, + "column": 23 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1233, + "end": 1234, + "loc": { + "start": { + "line": 36, + "column": 23 + }, + "end": { + "line": 36, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "network", + "start": 1235, + "end": 1242, + "loc": { + "start": { + "line": 36, + "column": 25 + }, + "end": { + "line": 36, + "column": 32 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1242, + "end": 1243, + "loc": { + "start": { + "line": 36, + "column": 32 + }, + "end": { + "line": 36, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "hash", + "start": 1244, + "end": 1248, + "loc": { + "start": { + "line": 36, + "column": 34 + }, + "end": { + "line": 36, + "column": 38 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1248, + "end": 1249, + "loc": { + "start": { + "line": 36, + "column": 38 + }, + "end": { + "line": 36, + "column": 39 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "entrypoint", + "start": 1250, + "end": 1260, + "loc": { + "start": { + "line": 36, + "column": 40 + }, + "end": { + "line": 36, + "column": 50 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1260, + "end": 1261, + "loc": { + "start": { + "line": 36, + "column": 50 + }, + "end": { + "line": 36, + "column": 51 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "args", + "start": 1262, + "end": 1266, + "loc": { + "start": { + "line": 36, + "column": 52 + }, + "end": { + "line": 36, + "column": 56 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1266, + "end": 1267, + "loc": { + "start": { + "line": 36, + "column": 56 + }, + "end": { + "line": 36, + "column": 57 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "fee", + "start": 1268, + "end": 1271, + "loc": { + "start": { + "line": 36, + "column": 58 + }, + "end": { + "line": 36, + "column": 61 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1271, + "end": 1272, + "loc": { + "start": { + "line": 36, + "column": 61 + }, + "end": { + "line": 36, + "column": 62 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1272, + "end": 1273, + "loc": { + "start": { + "line": 36, + "column": 62 + }, + "end": { + "line": 36, + "column": 63 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1278, + "end": 1279, + "loc": { + "start": { + "line": 37, + "column": 4 + }, + "end": { + "line": 37, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Get a DeployResult constructor\n *\n * @return {DeployResult.constructor} - Return the constructor of a given DeployResult\n ", + "start": 1285, + "end": 1432, + "loc": { + "start": { + "line": 39, + "column": 4 + }, + "end": { + "line": 43, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "get", + "start": 1437, + "end": 1440, + "loc": { + "start": { + "line": 44, + "column": 4 + }, + "end": { + "line": 44, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "deployResult", + "start": 1441, + "end": 1453, + "loc": { + "start": { + "line": 44, + "column": 8 + }, + "end": { + "line": 44, + "column": 20 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1453, + "end": 1454, + "loc": { + "start": { + "line": 44, + "column": 20 + }, + "end": { + "line": 44, + "column": 21 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1454, + "end": 1455, + "loc": { + "start": { + "line": 44, + "column": 21 + }, + "end": { + "line": 44, + "column": 22 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1456, + "end": 1457, + "loc": { + "start": { + "line": 44, + "column": 23 + }, + "end": { + "line": 44, + "column": 24 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 1466, + "end": 1472, + "loc": { + "start": { + "line": 45, + "column": 8 + }, + "end": { + "line": 45, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "WithdrawBidResult", + "start": 1473, + "end": 1490, + "loc": { + "start": { + "line": 45, + "column": 15 + }, + "end": { + "line": 45, + "column": 32 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1495, + "end": 1496, + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 46, + "column": 5 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1497, + "end": 1498, + "loc": { + "start": { + "line": 47, + "column": 0 + }, + "end": { + "line": 47, + "column": 1 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1498, + "end": 1498, + "loc": { + "start": { + "line": 47, + "column": 1 + }, + "end": { + "line": 47, + "column": 1 + } + } + } + ] +} \ No newline at end of file diff --git a/ast/source/services/deploys/auction/index.js.json b/ast/source/services/deploys/auction/index.js.json new file mode 100644 index 0000000..5071776 --- /dev/null +++ b/ast/source/services/deploys/auction/index.js.json @@ -0,0 +1,232 @@ +{ + "type": "File", + "start": 0, + "end": 26, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 26 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 26, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 26 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ExportAllDeclaration", + "start": 0, + "end": 26, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 26 + } + }, + "source": { + "type": "StringLiteral", + "start": 14, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 14 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "extra": { + "rawValue": "./actions", + "raw": "'./actions'" + }, + "value": "./actions" + } + } + ], + "directives": [] + }, + "comments": [], + "tokens": [ + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 0, + "end": 6, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 6 + } + } + }, + { + "type": { + "label": "*", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 10, + "updateContext": null + }, + "value": "*", + "start": 7, + "end": 8, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 9, + "end": 13, + "loc": { + "start": { + "line": 1, + "column": 9 + }, + "end": { + "line": 1, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./actions", + "start": 14, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 14 + }, + "end": { + "line": 1, + "column": 25 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 25, + "end": 26, + "loc": { + "start": { + "line": 1, + "column": 25 + }, + "end": { + "line": 1, + "column": 26 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 26, + "end": 26, + "loc": { + "start": { + "line": 1, + "column": 26 + }, + "end": { + "line": 1, + "column": 26 + } + } + } + ] +} \ No newline at end of file diff --git a/ast/source/services/deploys/deployManager.js.json b/ast/source/services/deploys/deployManager.js.json new file mode 100644 index 0000000..2255cd9 --- /dev/null +++ b/ast/source/services/deploys/deployManager.js.json @@ -0,0 +1,11234 @@ +{ + "type": "File", + "start": 0, + "end": 2667, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 75, + "column": 1 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 2667, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 75, + "column": 1 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 55, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 55 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 8, + "end": 21, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 21 + } + }, + "imported": { + "type": "Identifier", + "start": 8, + "end": 21, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 21 + }, + "identifierName": "CurrencyUtils" + }, + "name": "CurrencyUtils" + }, + "local": { + "type": "Identifier", + "start": 8, + "end": 21, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 21 + }, + "identifierName": "CurrencyUtils" + }, + "name": "CurrencyUtils" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 28, + "end": 54, + "loc": { + "start": { + "line": 1, + "column": 28 + }, + "end": { + "line": 1, + "column": 54 + } + }, + "extra": { + "rawValue": "../helpers/currencyUtils", + "raw": "\"../helpers/currencyUtils\"" + }, + "value": "../helpers/currencyUtils" + } + }, + { + "type": "ImportDeclaration", + "start": 56, + "end": 117, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 61 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 64, + "end": 73, + "loc": { + "start": { + "line": 2, + "column": 8 + }, + "end": { + "line": 2, + "column": 17 + } + }, + "imported": { + "type": "Identifier", + "start": 64, + "end": 73, + "loc": { + "start": { + "line": 2, + "column": 8 + }, + "end": { + "line": 2, + "column": 17 + }, + "identifierName": "STATUS_KO" + }, + "name": "STATUS_KO" + }, + "local": { + "type": "Identifier", + "start": 64, + "end": 73, + "loc": { + "start": { + "line": 2, + "column": 8 + }, + "end": { + "line": 2, + "column": 17 + }, + "identifierName": "STATUS_KO" + }, + "name": "STATUS_KO" + } + }, + { + "type": "ImportSpecifier", + "start": 75, + "end": 84, + "loc": { + "start": { + "line": 2, + "column": 19 + }, + "end": { + "line": 2, + "column": 28 + } + }, + "imported": { + "type": "Identifier", + "start": 75, + "end": 84, + "loc": { + "start": { + "line": 2, + "column": 19 + }, + "end": { + "line": 2, + "column": 28 + }, + "identifierName": "STATUS_OK" + }, + "name": "STATUS_OK" + }, + "local": { + "type": "Identifier", + "start": 75, + "end": 84, + "loc": { + "start": { + "line": 2, + "column": 19 + }, + "end": { + "line": 2, + "column": 28 + }, + "identifierName": "STATUS_OK" + }, + "name": "STATUS_OK" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 91, + "end": 116, + "loc": { + "start": { + "line": 2, + "column": 35 + }, + "end": { + "line": 2, + "column": 60 + } + }, + "extra": { + "rawValue": "../results/deployResult", + "raw": "\"../results/deployResult\"" + }, + "value": "../results/deployResult" + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * DeployManager class\n * Used to handle the deploy process\n ", + "start": 119, + "end": 186, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 187, + "end": 2667, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 75, + "column": 1 + } + }, + "specifiers": [], + "source": null, + "declaration": { + "type": "ClassDeclaration", + "start": 194, + "end": 2667, + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 75, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 200, + "end": 213, + "loc": { + "start": { + "line": 8, + "column": 13 + }, + "end": { + "line": 8, + "column": 26 + }, + "identifierName": "DeployManager" + }, + "name": "DeployManager", + "leadingComments": null + }, + "superClass": null, + "body": { + "type": "ClassBody", + "start": 214, + "end": 2667, + "loc": { + "start": { + "line": 8, + "column": 27 + }, + "end": { + "line": 75, + "column": 1 + } + }, + "body": [ + { + "type": "ClassProperty", + "start": 252, + "end": 259, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 10, + "column": 11 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 252, + "end": 258, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 10, + "column": 10 + }, + "identifierName": "client" + }, + "name": "client", + "leadingComments": null + }, + "value": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "* @type {ClientCasper} ", + "start": 220, + "end": 247, + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 9, + "column": 31 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {ClientCasper} client - ClientCasper object\n ", + "start": 265, + "end": 360, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 16, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 365, + "end": 422, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 19, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 365, + "end": 376, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 15 + }, + "identifierName": "constructor" + }, + "name": "constructor", + "leadingComments": null + }, + "kind": "constructor", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 377, + "end": 383, + "loc": { + "start": { + "line": 17, + "column": 16 + }, + "end": { + "line": 17, + "column": 22 + }, + "identifierName": "client" + }, + "name": "client" + } + ], + "body": { + "type": "BlockStatement", + "start": 385, + "end": 422, + "loc": { + "start": { + "line": 17, + "column": 24 + }, + "end": { + "line": 19, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 395, + "end": 416, + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 29 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 395, + "end": 415, + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 28 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 395, + "end": 406, + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 19 + } + }, + "object": { + "type": "ThisExpression", + "start": 395, + "end": 399, + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 400, + "end": 406, + "loc": { + "start": { + "line": 18, + "column": 13 + }, + "end": { + "line": 18, + "column": 19 + }, + "identifierName": "client" + }, + "name": "client" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 409, + "end": 415, + "loc": { + "start": { + "line": 18, + "column": 22 + }, + "end": { + "line": 18, + "column": 28 + }, + "identifierName": "client" + }, + "name": "client" + } + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {ClientCasper} client - ClientCasper object\n ", + "start": 265, + "end": 360, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 16, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "**\n * Send a deployment to the network\n *\n * @param {Deploy} deploy - Signed Deploy object\n * @param deployResult - A DeployResult class\n * @returns {Promise} - Return a DeployResult object\n ", + "start": 428, + "end": 661, + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 27, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 666, + "end": 820, + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 31, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 672, + "end": 682, + "loc": { + "start": { + "line": 28, + "column": 10 + }, + "end": { + "line": 28, + "column": 20 + }, + "identifierName": "sendDeploy" + }, + "name": "sendDeploy" + }, + "kind": "method", + "id": null, + "generator": false, + "expression": false, + "async": true, + "params": [ + { + "type": "Identifier", + "start": 683, + "end": 689, + "loc": { + "start": { + "line": 28, + "column": 21 + }, + "end": { + "line": 28, + "column": 27 + }, + "identifierName": "deploy" + }, + "name": "deploy" + }, + { + "type": "Identifier", + "start": 691, + "end": 703, + "loc": { + "start": { + "line": 28, + "column": 29 + }, + "end": { + "line": 28, + "column": 41 + }, + "identifierName": "deployResult" + }, + "name": "deployResult" + } + ], + "body": { + "type": "BlockStatement", + "start": 705, + "end": 820, + "loc": { + "start": { + "line": 28, + "column": 43 + }, + "end": { + "line": 31, + "column": 5 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 715, + "end": 776, + "loc": { + "start": { + "line": 29, + "column": 8 + }, + "end": { + "line": 29, + "column": 69 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 721, + "end": 776, + "loc": { + "start": { + "line": 29, + "column": 14 + }, + "end": { + "line": 29, + "column": 69 + } + }, + "id": { + "type": "Identifier", + "start": 721, + "end": 725, + "loc": { + "start": { + "line": 29, + "column": 14 + }, + "end": { + "line": 29, + "column": 18 + }, + "identifierName": "hash" + }, + "name": "hash" + }, + "init": { + "type": "AwaitExpression", + "start": 728, + "end": 776, + "loc": { + "start": { + "line": 29, + "column": 21 + }, + "end": { + "line": 29, + "column": 69 + } + }, + "argument": { + "type": "CallExpression", + "start": 734, + "end": 776, + "loc": { + "start": { + "line": 29, + "column": 27 + }, + "end": { + "line": 29, + "column": 69 + } + }, + "callee": { + "type": "MemberExpression", + "start": 734, + "end": 768, + "loc": { + "start": { + "line": 29, + "column": 27 + }, + "end": { + "line": 29, + "column": 61 + } + }, + "object": { + "type": "MemberExpression", + "start": 734, + "end": 758, + "loc": { + "start": { + "line": 29, + "column": 27 + }, + "end": { + "line": 29, + "column": 51 + } + }, + "object": { + "type": "MemberExpression", + "start": 734, + "end": 745, + "loc": { + "start": { + "line": 29, + "column": 27 + }, + "end": { + "line": 29, + "column": 38 + } + }, + "object": { + "type": "ThisExpression", + "start": 734, + "end": 738, + "loc": { + "start": { + "line": 29, + "column": 27 + }, + "end": { + "line": 29, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "start": 739, + "end": 745, + "loc": { + "start": { + "line": 29, + "column": 32 + }, + "end": { + "line": 29, + "column": 38 + }, + "identifierName": "client" + }, + "name": "client" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 746, + "end": 758, + "loc": { + "start": { + "line": 29, + "column": 39 + }, + "end": { + "line": 29, + "column": 51 + }, + "identifierName": "casperClient" + }, + "name": "casperClient" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 759, + "end": 768, + "loc": { + "start": { + "line": 29, + "column": 52 + }, + "end": { + "line": 29, + "column": 61 + }, + "identifierName": "putDeploy" + }, + "name": "putDeploy" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 769, + "end": 775, + "loc": { + "start": { + "line": 29, + "column": 62 + }, + "end": { + "line": 29, + "column": 68 + }, + "identifierName": "deploy" + }, + "name": "deploy" + } + ] + } + } + } + ], + "kind": "const" + }, + { + "type": "ReturnStatement", + "start": 785, + "end": 814, + "loc": { + "start": { + "line": 30, + "column": 8 + }, + "end": { + "line": 30, + "column": 37 + } + }, + "argument": { + "type": "NewExpression", + "start": 792, + "end": 814, + "loc": { + "start": { + "line": 30, + "column": 15 + }, + "end": { + "line": 30, + "column": 37 + } + }, + "callee": { + "type": "Identifier", + "start": 796, + "end": 808, + "loc": { + "start": { + "line": 30, + "column": 19 + }, + "end": { + "line": 30, + "column": 31 + }, + "identifierName": "deployResult" + }, + "name": "deployResult" + }, + "arguments": [ + { + "type": "Identifier", + "start": 809, + "end": 813, + "loc": { + "start": { + "line": 30, + "column": 32 + }, + "end": { + "line": 30, + "column": 36 + }, + "identifierName": "hash" + }, + "name": "hash" + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "**\n * Send a deployment to the network\n *\n * @param {Deploy} deploy - Signed Deploy object\n * @param deployResult - A DeployResult class\n * @returns {Promise} - Return a DeployResult object\n ", + "start": 428, + "end": 661, + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 27, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Prepare, sign and send a deployment\n *\n * @param {AbstractSmartContractDeployParameters} deployParameter - Instance of a DeployParameters object\n * @param {AbstractSigner} signer - Instance of a Signer object\n * @param {Object} options - Generic object for additional parameters\n * @return {Promise} - Return a DeployResult object\n ", + "start": 826, + "end": 1209, + "loc": { + "start": { + "line": 33, + "column": 4 + }, + "end": { + "line": 40, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 1214, + "end": 1453, + "loc": { + "start": { + "line": 41, + "column": 4 + }, + "end": { + "line": 44, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1220, + "end": 1244, + "loc": { + "start": { + "line": 41, + "column": 10 + }, + "end": { + "line": 41, + "column": 34 + }, + "identifierName": "prepareSignAndSendDeploy" + }, + "name": "prepareSignAndSendDeploy" + }, + "kind": "method", + "id": null, + "generator": false, + "expression": false, + "async": true, + "params": [ + { + "type": "Identifier", + "start": 1245, + "end": 1260, + "loc": { + "start": { + "line": 41, + "column": 35 + }, + "end": { + "line": 41, + "column": 50 + }, + "identifierName": "deployParameter" + }, + "name": "deployParameter" + }, + { + "type": "Identifier", + "start": 1262, + "end": 1268, + "loc": { + "start": { + "line": 41, + "column": 52 + }, + "end": { + "line": 41, + "column": 58 + }, + "identifierName": "signer" + }, + "name": "signer" + }, + { + "type": "Identifier", + "start": 1270, + "end": 1277, + "loc": { + "start": { + "line": 41, + "column": 60 + }, + "end": { + "line": 41, + "column": 67 + }, + "identifierName": "options" + }, + "name": "options" + } + ], + "body": { + "type": "BlockStatement", + "start": 1279, + "end": 1453, + "loc": { + "start": { + "line": 41, + "column": 69 + }, + "end": { + "line": 44, + "column": 5 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 1289, + "end": 1365, + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 42, + "column": 84 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1295, + "end": 1364, + "loc": { + "start": { + "line": 42, + "column": 14 + }, + "end": { + "line": 42, + "column": 83 + } + }, + "id": { + "type": "Identifier", + "start": 1295, + "end": 1307, + "loc": { + "start": { + "line": 42, + "column": 14 + }, + "end": { + "line": 42, + "column": 26 + }, + "identifierName": "signedDeploy" + }, + "name": "signedDeploy" + }, + "init": { + "type": "AwaitExpression", + "start": 1310, + "end": 1364, + "loc": { + "start": { + "line": 42, + "column": 29 + }, + "end": { + "line": 42, + "column": 83 + } + }, + "argument": { + "type": "CallExpression", + "start": 1316, + "end": 1364, + "loc": { + "start": { + "line": 42, + "column": 35 + }, + "end": { + "line": 42, + "column": 83 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1316, + "end": 1327, + "loc": { + "start": { + "line": 42, + "column": 35 + }, + "end": { + "line": 42, + "column": 46 + } + }, + "object": { + "type": "Identifier", + "start": 1316, + "end": 1322, + "loc": { + "start": { + "line": 42, + "column": 35 + }, + "end": { + "line": 42, + "column": 41 + }, + "identifierName": "signer" + }, + "name": "signer" + }, + "property": { + "type": "Identifier", + "start": 1323, + "end": 1327, + "loc": { + "start": { + "line": 42, + "column": 42 + }, + "end": { + "line": 42, + "column": 46 + }, + "identifierName": "sign" + }, + "name": "sign" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 1328, + "end": 1354, + "loc": { + "start": { + "line": 42, + "column": 47 + }, + "end": { + "line": 42, + "column": 73 + } + }, + "object": { + "type": "Identifier", + "start": 1328, + "end": 1343, + "loc": { + "start": { + "line": 42, + "column": 47 + }, + "end": { + "line": 42, + "column": 62 + }, + "identifierName": "deployParameter" + }, + "name": "deployParameter" + }, + "property": { + "type": "Identifier", + "start": 1344, + "end": 1354, + "loc": { + "start": { + "line": 42, + "column": 63 + }, + "end": { + "line": 42, + "column": 73 + }, + "identifierName": "makeDeploy" + }, + "name": "makeDeploy" + }, + "computed": false + }, + { + "type": "Identifier", + "start": 1356, + "end": 1363, + "loc": { + "start": { + "line": 42, + "column": 75 + }, + "end": { + "line": 42, + "column": 82 + }, + "identifierName": "options" + }, + "name": "options" + } + ] + } + } + } + ], + "kind": "const" + }, + { + "type": "ReturnStatement", + "start": 1374, + "end": 1447, + "loc": { + "start": { + "line": 43, + "column": 8 + }, + "end": { + "line": 43, + "column": 81 + } + }, + "argument": { + "type": "AwaitExpression", + "start": 1381, + "end": 1446, + "loc": { + "start": { + "line": 43, + "column": 15 + }, + "end": { + "line": 43, + "column": 80 + } + }, + "argument": { + "type": "CallExpression", + "start": 1387, + "end": 1446, + "loc": { + "start": { + "line": 43, + "column": 21 + }, + "end": { + "line": 43, + "column": 80 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1387, + "end": 1402, + "loc": { + "start": { + "line": 43, + "column": 21 + }, + "end": { + "line": 43, + "column": 36 + } + }, + "object": { + "type": "ThisExpression", + "start": 1387, + "end": 1391, + "loc": { + "start": { + "line": 43, + "column": 21 + }, + "end": { + "line": 43, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "start": 1392, + "end": 1402, + "loc": { + "start": { + "line": 43, + "column": 26 + }, + "end": { + "line": 43, + "column": 36 + }, + "identifierName": "sendDeploy" + }, + "name": "sendDeploy" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 1403, + "end": 1415, + "loc": { + "start": { + "line": 43, + "column": 37 + }, + "end": { + "line": 43, + "column": 49 + }, + "identifierName": "signedDeploy" + }, + "name": "signedDeploy" + }, + { + "type": "MemberExpression", + "start": 1417, + "end": 1445, + "loc": { + "start": { + "line": 43, + "column": 51 + }, + "end": { + "line": 43, + "column": 79 + } + }, + "object": { + "type": "Identifier", + "start": 1417, + "end": 1432, + "loc": { + "start": { + "line": 43, + "column": 51 + }, + "end": { + "line": 43, + "column": 66 + }, + "identifierName": "deployParameter" + }, + "name": "deployParameter" + }, + "property": { + "type": "Identifier", + "start": 1433, + "end": 1445, + "loc": { + "start": { + "line": 43, + "column": 67 + }, + "end": { + "line": 43, + "column": 79 + }, + "identifierName": "deployResult" + }, + "name": "deployResult" + }, + "computed": false + } + ] + } + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Prepare, sign and send a deployment\n *\n * @param {AbstractSmartContractDeployParameters} deployParameter - Instance of a DeployParameters object\n * @param {AbstractSigner} signer - Instance of a Signer object\n * @param {Object} options - Generic object for additional parameters\n * @return {Promise} - Return a DeployResult object\n ", + "start": 826, + "end": 1209, + "loc": { + "start": { + "line": 33, + "column": 4 + }, + "end": { + "line": 40, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Update a DeployResult object\n *\n * @param {DeployResult} deployResult - DeployResult object\n * @returns {Promise} - Return an updated DeployResult object\n ", + "start": 1459, + "end": 1657, + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 51, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 1662, + "end": 2664, + "loc": { + "start": { + "line": 52, + "column": 4 + }, + "end": { + "line": 73, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1668, + "end": 1683, + "loc": { + "start": { + "line": 52, + "column": 10 + }, + "end": { + "line": 52, + "column": 25 + }, + "identifierName": "getDeployResult" + }, + "name": "getDeployResult" + }, + "kind": "method", + "id": null, + "generator": false, + "expression": false, + "async": true, + "params": [ + { + "type": "Identifier", + "start": 1684, + "end": 1696, + "loc": { + "start": { + "line": 52, + "column": 26 + }, + "end": { + "line": 52, + "column": 38 + }, + "identifierName": "deployResult" + }, + "name": "deployResult" + } + ], + "body": { + "type": "BlockStatement", + "start": 1698, + "end": 2664, + "loc": { + "start": { + "line": 52, + "column": 40 + }, + "end": { + "line": 73, + "column": 5 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 1708, + "end": 1782, + "loc": { + "start": { + "line": 53, + "column": 8 + }, + "end": { + "line": 53, + "column": 82 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1714, + "end": 1782, + "loc": { + "start": { + "line": 53, + "column": 14 + }, + "end": { + "line": 53, + "column": 82 + } + }, + "id": { + "type": "Identifier", + "start": 1714, + "end": 1720, + "loc": { + "start": { + "line": 53, + "column": 14 + }, + "end": { + "line": 53, + "column": 20 + }, + "identifierName": "result" + }, + "name": "result" + }, + "init": { + "type": "AwaitExpression", + "start": 1723, + "end": 1782, + "loc": { + "start": { + "line": 53, + "column": 23 + }, + "end": { + "line": 53, + "column": 82 + } + }, + "argument": { + "type": "CallExpression", + "start": 1729, + "end": 1782, + "loc": { + "start": { + "line": 53, + "column": 29 + }, + "end": { + "line": 53, + "column": 82 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1729, + "end": 1763, + "loc": { + "start": { + "line": 53, + "column": 29 + }, + "end": { + "line": 53, + "column": 63 + } + }, + "object": { + "type": "MemberExpression", + "start": 1729, + "end": 1753, + "loc": { + "start": { + "line": 53, + "column": 29 + }, + "end": { + "line": 53, + "column": 53 + } + }, + "object": { + "type": "MemberExpression", + "start": 1729, + "end": 1740, + "loc": { + "start": { + "line": 53, + "column": 29 + }, + "end": { + "line": 53, + "column": 40 + } + }, + "object": { + "type": "ThisExpression", + "start": 1729, + "end": 1733, + "loc": { + "start": { + "line": 53, + "column": 29 + }, + "end": { + "line": 53, + "column": 33 + } + } + }, + "property": { + "type": "Identifier", + "start": 1734, + "end": 1740, + "loc": { + "start": { + "line": 53, + "column": 34 + }, + "end": { + "line": 53, + "column": 40 + }, + "identifierName": "client" + }, + "name": "client" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1741, + "end": 1753, + "loc": { + "start": { + "line": 53, + "column": 41 + }, + "end": { + "line": 53, + "column": 53 + }, + "identifierName": "casperClient" + }, + "name": "casperClient" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1754, + "end": 1763, + "loc": { + "start": { + "line": 53, + "column": 54 + }, + "end": { + "line": 53, + "column": 63 + }, + "identifierName": "getDeploy" + }, + "name": "getDeploy" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 1764, + "end": 1781, + "loc": { + "start": { + "line": 53, + "column": 64 + }, + "end": { + "line": 53, + "column": 81 + } + }, + "object": { + "type": "Identifier", + "start": 1764, + "end": 1776, + "loc": { + "start": { + "line": 53, + "column": 64 + }, + "end": { + "line": 53, + "column": 76 + }, + "identifierName": "deployResult" + }, + "name": "deployResult" + }, + "property": { + "type": "Identifier", + "start": 1777, + "end": 1781, + "loc": { + "start": { + "line": 53, + "column": 77 + }, + "end": { + "line": 53, + "column": 81 + }, + "identifierName": "hash" + }, + "name": "hash" + }, + "computed": false + } + ] + } + } + } + ], + "kind": "const" + }, + { + "type": "VariableDeclaration", + "start": 1791, + "end": 1813, + "loc": { + "start": { + "line": 54, + "column": 8 + }, + "end": { + "line": 54, + "column": 30 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1795, + "end": 1813, + "loc": { + "start": { + "line": 54, + "column": 12 + }, + "end": { + "line": 54, + "column": 30 + } + }, + "id": { + "type": "Identifier", + "start": 1795, + "end": 1801, + "loc": { + "start": { + "line": 54, + "column": 12 + }, + "end": { + "line": 54, + "column": 18 + }, + "identifierName": "deploy" + }, + "name": "deploy" + }, + "init": { + "type": "MemberExpression", + "start": 1804, + "end": 1813, + "loc": { + "start": { + "line": 54, + "column": 21 + }, + "end": { + "line": 54, + "column": 30 + } + }, + "object": { + "type": "Identifier", + "start": 1804, + "end": 1810, + "loc": { + "start": { + "line": 54, + "column": 21 + }, + "end": { + "line": 54, + "column": 27 + }, + "identifierName": "result" + }, + "name": "result" + }, + "property": { + "type": "NumericLiteral", + "start": 1811, + "end": 1812, + "loc": { + "start": { + "line": 54, + "column": 28 + }, + "end": { + "line": 54, + "column": 29 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + }, + "computed": true + } + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 1822, + "end": 1866, + "loc": { + "start": { + "line": 55, + "column": 8 + }, + "end": { + "line": 55, + "column": 52 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1826, + "end": 1866, + "loc": { + "start": { + "line": 55, + "column": 12 + }, + "end": { + "line": 55, + "column": 52 + } + }, + "id": { + "type": "Identifier", + "start": 1826, + "end": 1836, + "loc": { + "start": { + "line": 55, + "column": 12 + }, + "end": { + "line": 55, + "column": 22 + }, + "identifierName": "execResult" + }, + "name": "execResult" + }, + "init": { + "type": "MemberExpression", + "start": 1839, + "end": 1866, + "loc": { + "start": { + "line": 55, + "column": 25 + }, + "end": { + "line": 55, + "column": 52 + } + }, + "object": { + "type": "MemberExpression", + "start": 1839, + "end": 1848, + "loc": { + "start": { + "line": 55, + "column": 25 + }, + "end": { + "line": 55, + "column": 34 + } + }, + "object": { + "type": "Identifier", + "start": 1839, + "end": 1845, + "loc": { + "start": { + "line": 55, + "column": 25 + }, + "end": { + "line": 55, + "column": 31 + }, + "identifierName": "result" + }, + "name": "result" + }, + "property": { + "type": "NumericLiteral", + "start": 1846, + "end": 1847, + "loc": { + "start": { + "line": 55, + "column": 32 + }, + "end": { + "line": 55, + "column": 33 + } + }, + "extra": { + "rawValue": 1, + "raw": "1" + }, + "value": 1 + }, + "computed": true + }, + "property": { + "type": "Identifier", + "start": 1849, + "end": 1866, + "loc": { + "start": { + "line": 55, + "column": 35 + }, + "end": { + "line": 55, + "column": 52 + }, + "identifierName": "execution_results" + }, + "name": "execution_results" + }, + "computed": false + } + } + ], + "kind": "let" + }, + { + "type": "IfStatement", + "start": 1875, + "end": 1960, + "loc": { + "start": { + "line": 56, + "column": 8 + }, + "end": { + "line": 58, + "column": 9 + } + }, + "test": { + "type": "BinaryExpression", + "start": 1879, + "end": 1900, + "loc": { + "start": { + "line": 56, + "column": 12 + }, + "end": { + "line": 56, + "column": 33 + } + }, + "left": { + "type": "MemberExpression", + "start": 1879, + "end": 1896, + "loc": { + "start": { + "line": 56, + "column": 12 + }, + "end": { + "line": 56, + "column": 29 + } + }, + "object": { + "type": "Identifier", + "start": 1879, + "end": 1889, + "loc": { + "start": { + "line": 56, + "column": 12 + }, + "end": { + "line": 56, + "column": 22 + }, + "identifierName": "execResult" + }, + "name": "execResult" + }, + "property": { + "type": "Identifier", + "start": 1890, + "end": 1896, + "loc": { + "start": { + "line": 56, + "column": 23 + }, + "end": { + "line": 56, + "column": 29 + }, + "identifierName": "length" + }, + "name": "length" + }, + "computed": false + }, + "operator": ">", + "right": { + "type": "NumericLiteral", + "start": 1899, + "end": 1900, + "loc": { + "start": { + "line": 56, + "column": 32 + }, + "end": { + "line": 56, + "column": 33 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + } + }, + "consequent": { + "type": "BlockStatement", + "start": 1902, + "end": 1960, + "loc": { + "start": { + "line": 56, + "column": 35 + }, + "end": { + "line": 58, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1916, + "end": 1950, + "loc": { + "start": { + "line": 57, + "column": 12 + }, + "end": { + "line": 57, + "column": 46 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1916, + "end": 1949, + "loc": { + "start": { + "line": 57, + "column": 12 + }, + "end": { + "line": 57, + "column": 45 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 1916, + "end": 1926, + "loc": { + "start": { + "line": 57, + "column": 12 + }, + "end": { + "line": 57, + "column": 22 + }, + "identifierName": "execResult" + }, + "name": "execResult" + }, + "right": { + "type": "MemberExpression", + "start": 1929, + "end": 1949, + "loc": { + "start": { + "line": 57, + "column": 25 + }, + "end": { + "line": 57, + "column": 45 + } + }, + "object": { + "type": "MemberExpression", + "start": 1929, + "end": 1942, + "loc": { + "start": { + "line": 57, + "column": 25 + }, + "end": { + "line": 57, + "column": 38 + } + }, + "object": { + "type": "Identifier", + "start": 1929, + "end": 1939, + "loc": { + "start": { + "line": 57, + "column": 25 + }, + "end": { + "line": 57, + "column": 35 + }, + "identifierName": "execResult" + }, + "name": "execResult" + }, + "property": { + "type": "NumericLiteral", + "start": 1940, + "end": 1941, + "loc": { + "start": { + "line": 57, + "column": 36 + }, + "end": { + "line": 57, + "column": 37 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + }, + "computed": true + }, + "property": { + "type": "Identifier", + "start": 1943, + "end": 1949, + "loc": { + "start": { + "line": 57, + "column": 39 + }, + "end": { + "line": 57, + "column": 45 + }, + "identifierName": "result" + }, + "name": "result" + }, + "computed": false + } + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "IfStatement", + "start": 1969, + "end": 2150, + "loc": { + "start": { + "line": 59, + "column": 8 + }, + "end": { + "line": 61, + "column": 9 + } + }, + "test": { + "type": "CallExpression", + "start": 1973, + "end": 2010, + "loc": { + "start": { + "line": 59, + "column": 12 + }, + "end": { + "line": 59, + "column": 49 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1973, + "end": 2000, + "loc": { + "start": { + "line": 59, + "column": 12 + }, + "end": { + "line": 59, + "column": 39 + } + }, + "object": { + "type": "MemberExpression", + "start": 1973, + "end": 1987, + "loc": { + "start": { + "line": 59, + "column": 12 + }, + "end": { + "line": 59, + "column": 26 + } + }, + "object": { + "type": "Identifier", + "start": 1973, + "end": 1979, + "loc": { + "start": { + "line": 59, + "column": 12 + }, + "end": { + "line": 59, + "column": 18 + }, + "identifierName": "deploy" + }, + "name": "deploy" + }, + "property": { + "type": "Identifier", + "start": 1980, + "end": 1987, + "loc": { + "start": { + "line": 59, + "column": 19 + }, + "end": { + "line": 59, + "column": 26 + }, + "identifierName": "session" + }, + "name": "session" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1988, + "end": 2000, + "loc": { + "start": { + "line": 59, + "column": 27 + }, + "end": { + "line": 59, + "column": 39 + }, + "identifierName": "getArgByName" + }, + "name": "getArgByName" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 2001, + "end": 2009, + "loc": { + "start": { + "line": 59, + "column": 40 + }, + "end": { + "line": 59, + "column": 48 + } + }, + "extra": { + "rawValue": "amount", + "raw": "\"amount\"" + }, + "value": "amount" + } + ] + }, + "consequent": { + "type": "BlockStatement", + "start": 2012, + "end": 2150, + "loc": { + "start": { + "line": 59, + "column": 51 + }, + "end": { + "line": 61, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 2026, + "end": 2140, + "loc": { + "start": { + "line": 60, + "column": 12 + }, + "end": { + "line": 60, + "column": 126 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 2026, + "end": 2140, + "loc": { + "start": { + "line": 60, + "column": 12 + }, + "end": { + "line": 60, + "column": 126 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 2026, + "end": 2045, + "loc": { + "start": { + "line": 60, + "column": 12 + }, + "end": { + "line": 60, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 2026, + "end": 2038, + "loc": { + "start": { + "line": 60, + "column": 12 + }, + "end": { + "line": 60, + "column": 24 + }, + "identifierName": "deployResult" + }, + "name": "deployResult" + }, + "property": { + "type": "Identifier", + "start": 2039, + "end": 2045, + "loc": { + "start": { + "line": 60, + "column": 25 + }, + "end": { + "line": 60, + "column": 31 + }, + "identifierName": "amount" + }, + "name": "amount" + }, + "computed": false + }, + "right": { + "type": "CallExpression", + "start": 2048, + "end": 2140, + "loc": { + "start": { + "line": 60, + "column": 34 + }, + "end": { + "line": 60, + "column": 126 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2048, + "end": 2082, + "loc": { + "start": { + "line": 60, + "column": 34 + }, + "end": { + "line": 60, + "column": 68 + } + }, + "object": { + "type": "Identifier", + "start": 2048, + "end": 2061, + "loc": { + "start": { + "line": 60, + "column": 34 + }, + "end": { + "line": 60, + "column": 47 + }, + "identifierName": "CurrencyUtils" + }, + "name": "CurrencyUtils" + }, + "property": { + "type": "Identifier", + "start": 2062, + "end": 2082, + "loc": { + "start": { + "line": 60, + "column": 48 + }, + "end": { + "line": 60, + "column": 68 + }, + "identifierName": "convertMotesToCasper" + }, + "name": "convertMotesToCasper" + }, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 2083, + "end": 2139, + "loc": { + "start": { + "line": 60, + "column": 69 + }, + "end": { + "line": 60, + "column": 125 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2083, + "end": 2137, + "loc": { + "start": { + "line": 60, + "column": 69 + }, + "end": { + "line": 60, + "column": 123 + } + }, + "object": { + "type": "CallExpression", + "start": 2083, + "end": 2128, + "loc": { + "start": { + "line": 60, + "column": 69 + }, + "end": { + "line": 60, + "column": 114 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2083, + "end": 2126, + "loc": { + "start": { + "line": 60, + "column": 69 + }, + "end": { + "line": 60, + "column": 112 + } + }, + "object": { + "type": "CallExpression", + "start": 2083, + "end": 2120, + "loc": { + "start": { + "line": 60, + "column": 69 + }, + "end": { + "line": 60, + "column": 106 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2083, + "end": 2110, + "loc": { + "start": { + "line": 60, + "column": 69 + }, + "end": { + "line": 60, + "column": 96 + } + }, + "object": { + "type": "MemberExpression", + "start": 2083, + "end": 2097, + "loc": { + "start": { + "line": 60, + "column": 69 + }, + "end": { + "line": 60, + "column": 83 + } + }, + "object": { + "type": "Identifier", + "start": 2083, + "end": 2089, + "loc": { + "start": { + "line": 60, + "column": 69 + }, + "end": { + "line": 60, + "column": 75 + }, + "identifierName": "deploy" + }, + "name": "deploy" + }, + "property": { + "type": "Identifier", + "start": 2090, + "end": 2097, + "loc": { + "start": { + "line": 60, + "column": 76 + }, + "end": { + "line": 60, + "column": 83 + }, + "identifierName": "session" + }, + "name": "session" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2098, + "end": 2110, + "loc": { + "start": { + "line": 60, + "column": 84 + }, + "end": { + "line": 60, + "column": 96 + }, + "identifierName": "getArgByName" + }, + "name": "getArgByName" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 2111, + "end": 2119, + "loc": { + "start": { + "line": 60, + "column": 97 + }, + "end": { + "line": 60, + "column": 105 + } + }, + "extra": { + "rawValue": "amount", + "raw": "\"amount\"" + }, + "value": "amount" + } + ] + }, + "property": { + "type": "Identifier", + "start": 2121, + "end": 2126, + "loc": { + "start": { + "line": 60, + "column": 107 + }, + "end": { + "line": 60, + "column": 112 + }, + "identifierName": "value" + }, + "name": "value" + }, + "computed": false + }, + "arguments": [] + }, + "property": { + "type": "Identifier", + "start": 2129, + "end": 2137, + "loc": { + "start": { + "line": 60, + "column": 115 + }, + "end": { + "line": 60, + "column": 123 + }, + "identifierName": "toString" + }, + "name": "toString" + }, + "computed": false + }, + "arguments": [] + } + ] + } + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "IfStatement", + "start": 2159, + "end": 2370, + "loc": { + "start": { + "line": 62, + "column": 8 + }, + "end": { + "line": 66, + "column": 9 + } + }, + "test": { + "type": "BinaryExpression", + "start": 2163, + "end": 2186, + "loc": { + "start": { + "line": 62, + "column": 12 + }, + "end": { + "line": 62, + "column": 35 + } + }, + "left": { + "type": "Identifier", + "start": 2163, + "end": 2172, + "loc": { + "start": { + "line": 62, + "column": 12 + }, + "end": { + "line": 62, + "column": 21 + }, + "identifierName": "STATUS_OK" + }, + "name": "STATUS_OK" + }, + "operator": "in", + "right": { + "type": "Identifier", + "start": 2176, + "end": 2186, + "loc": { + "start": { + "line": 62, + "column": 25 + }, + "end": { + "line": 62, + "column": 35 + }, + "identifierName": "execResult" + }, + "name": "execResult" + } + }, + "consequent": { + "type": "BlockStatement", + "start": 2188, + "end": 2370, + "loc": { + "start": { + "line": 62, + "column": 37 + }, + "end": { + "line": 66, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 2202, + "end": 2284, + "loc": { + "start": { + "line": 63, + "column": 12 + }, + "end": { + "line": 63, + "column": 94 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 2202, + "end": 2284, + "loc": { + "start": { + "line": 63, + "column": 12 + }, + "end": { + "line": 63, + "column": 94 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 2202, + "end": 2219, + "loc": { + "start": { + "line": 63, + "column": 12 + }, + "end": { + "line": 63, + "column": 29 + } + }, + "object": { + "type": "Identifier", + "start": 2202, + "end": 2214, + "loc": { + "start": { + "line": 63, + "column": 12 + }, + "end": { + "line": 63, + "column": 24 + }, + "identifierName": "deployResult" + }, + "name": "deployResult" + }, + "property": { + "type": "Identifier", + "start": 2215, + "end": 2219, + "loc": { + "start": { + "line": 63, + "column": 25 + }, + "end": { + "line": 63, + "column": 29 + }, + "identifierName": "cost" + }, + "name": "cost" + }, + "computed": false + }, + "right": { + "type": "CallExpression", + "start": 2222, + "end": 2284, + "loc": { + "start": { + "line": 63, + "column": 32 + }, + "end": { + "line": 63, + "column": 94 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2222, + "end": 2256, + "loc": { + "start": { + "line": 63, + "column": 32 + }, + "end": { + "line": 63, + "column": 66 + } + }, + "object": { + "type": "Identifier", + "start": 2222, + "end": 2235, + "loc": { + "start": { + "line": 63, + "column": 32 + }, + "end": { + "line": 63, + "column": 45 + }, + "identifierName": "CurrencyUtils" + }, + "name": "CurrencyUtils" + }, + "property": { + "type": "Identifier", + "start": 2236, + "end": 2256, + "loc": { + "start": { + "line": 63, + "column": 46 + }, + "end": { + "line": 63, + "column": 66 + }, + "identifierName": "convertMotesToCasper" + }, + "name": "convertMotesToCasper" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 2257, + "end": 2283, + "loc": { + "start": { + "line": 63, + "column": 67 + }, + "end": { + "line": 63, + "column": 93 + } + }, + "object": { + "type": "MemberExpression", + "start": 2257, + "end": 2278, + "loc": { + "start": { + "line": 63, + "column": 67 + }, + "end": { + "line": 63, + "column": 88 + } + }, + "object": { + "type": "Identifier", + "start": 2257, + "end": 2267, + "loc": { + "start": { + "line": 63, + "column": 67 + }, + "end": { + "line": 63, + "column": 77 + }, + "identifierName": "execResult" + }, + "name": "execResult" + }, + "property": { + "type": "Identifier", + "start": 2268, + "end": 2277, + "loc": { + "start": { + "line": 63, + "column": 78 + }, + "end": { + "line": 63, + "column": 87 + }, + "identifierName": "STATUS_OK" + }, + "name": "STATUS_OK" + }, + "computed": true + }, + "property": { + "type": "Identifier", + "start": 2279, + "end": 2283, + "loc": { + "start": { + "line": 63, + "column": 89 + }, + "end": { + "line": 63, + "column": 93 + }, + "identifierName": "cost" + }, + "name": "cost" + }, + "computed": false + } + ] + } + } + }, + { + "type": "ExpressionStatement", + "start": 2297, + "end": 2328, + "loc": { + "start": { + "line": 64, + "column": 12 + }, + "end": { + "line": 64, + "column": 43 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 2297, + "end": 2328, + "loc": { + "start": { + "line": 64, + "column": 12 + }, + "end": { + "line": 64, + "column": 43 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 2297, + "end": 2316, + "loc": { + "start": { + "line": 64, + "column": 12 + }, + "end": { + "line": 64, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 2297, + "end": 2309, + "loc": { + "start": { + "line": 64, + "column": 12 + }, + "end": { + "line": 64, + "column": 24 + }, + "identifierName": "deployResult" + }, + "name": "deployResult" + }, + "property": { + "type": "Identifier", + "start": 2310, + "end": 2316, + "loc": { + "start": { + "line": 64, + "column": 25 + }, + "end": { + "line": 64, + "column": 31 + }, + "identifierName": "status" + }, + "name": "status" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 2319, + "end": 2328, + "loc": { + "start": { + "line": 64, + "column": 34 + }, + "end": { + "line": 64, + "column": 43 + }, + "identifierName": "STATUS_OK" + }, + "name": "STATUS_OK" + } + } + }, + { + "type": "ReturnStatement", + "start": 2341, + "end": 2360, + "loc": { + "start": { + "line": 65, + "column": 12 + }, + "end": { + "line": 65, + "column": 31 + } + }, + "argument": { + "type": "Identifier", + "start": 2348, + "end": 2360, + "loc": { + "start": { + "line": 65, + "column": 19 + }, + "end": { + "line": 65, + "column": 31 + }, + "identifierName": "deployResult" + }, + "name": "deployResult" + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "IfStatement", + "start": 2379, + "end": 2629, + "loc": { + "start": { + "line": 67, + "column": 8 + }, + "end": { + "line": 71, + "column": 9 + } + }, + "test": { + "type": "BinaryExpression", + "start": 2383, + "end": 2406, + "loc": { + "start": { + "line": 67, + "column": 12 + }, + "end": { + "line": 67, + "column": 35 + } + }, + "left": { + "type": "Identifier", + "start": 2383, + "end": 2392, + "loc": { + "start": { + "line": 67, + "column": 12 + }, + "end": { + "line": 67, + "column": 21 + }, + "identifierName": "STATUS_KO" + }, + "name": "STATUS_KO" + }, + "operator": "in", + "right": { + "type": "Identifier", + "start": 2396, + "end": 2406, + "loc": { + "start": { + "line": 67, + "column": 25 + }, + "end": { + "line": 67, + "column": 35 + }, + "identifierName": "execResult" + }, + "name": "execResult" + } + }, + "consequent": { + "type": "BlockStatement", + "start": 2408, + "end": 2629, + "loc": { + "start": { + "line": 67, + "column": 37 + }, + "end": { + "line": 71, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 2422, + "end": 2504, + "loc": { + "start": { + "line": 68, + "column": 12 + }, + "end": { + "line": 68, + "column": 94 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 2422, + "end": 2504, + "loc": { + "start": { + "line": 68, + "column": 12 + }, + "end": { + "line": 68, + "column": 94 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 2422, + "end": 2439, + "loc": { + "start": { + "line": 68, + "column": 12 + }, + "end": { + "line": 68, + "column": 29 + } + }, + "object": { + "type": "Identifier", + "start": 2422, + "end": 2434, + "loc": { + "start": { + "line": 68, + "column": 12 + }, + "end": { + "line": 68, + "column": 24 + }, + "identifierName": "deployResult" + }, + "name": "deployResult" + }, + "property": { + "type": "Identifier", + "start": 2435, + "end": 2439, + "loc": { + "start": { + "line": 68, + "column": 25 + }, + "end": { + "line": 68, + "column": 29 + }, + "identifierName": "cost" + }, + "name": "cost" + }, + "computed": false + }, + "right": { + "type": "CallExpression", + "start": 2442, + "end": 2504, + "loc": { + "start": { + "line": 68, + "column": 32 + }, + "end": { + "line": 68, + "column": 94 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2442, + "end": 2476, + "loc": { + "start": { + "line": 68, + "column": 32 + }, + "end": { + "line": 68, + "column": 66 + } + }, + "object": { + "type": "Identifier", + "start": 2442, + "end": 2455, + "loc": { + "start": { + "line": 68, + "column": 32 + }, + "end": { + "line": 68, + "column": 45 + }, + "identifierName": "CurrencyUtils" + }, + "name": "CurrencyUtils" + }, + "property": { + "type": "Identifier", + "start": 2456, + "end": 2476, + "loc": { + "start": { + "line": 68, + "column": 46 + }, + "end": { + "line": 68, + "column": 66 + }, + "identifierName": "convertMotesToCasper" + }, + "name": "convertMotesToCasper" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 2477, + "end": 2503, + "loc": { + "start": { + "line": 68, + "column": 67 + }, + "end": { + "line": 68, + "column": 93 + } + }, + "object": { + "type": "MemberExpression", + "start": 2477, + "end": 2498, + "loc": { + "start": { + "line": 68, + "column": 67 + }, + "end": { + "line": 68, + "column": 88 + } + }, + "object": { + "type": "Identifier", + "start": 2477, + "end": 2487, + "loc": { + "start": { + "line": 68, + "column": 67 + }, + "end": { + "line": 68, + "column": 77 + }, + "identifierName": "execResult" + }, + "name": "execResult" + }, + "property": { + "type": "Identifier", + "start": 2488, + "end": 2497, + "loc": { + "start": { + "line": 68, + "column": 78 + }, + "end": { + "line": 68, + "column": 87 + }, + "identifierName": "STATUS_KO" + }, + "name": "STATUS_KO" + }, + "computed": true + }, + "property": { + "type": "Identifier", + "start": 2499, + "end": 2503, + "loc": { + "start": { + "line": 68, + "column": 89 + }, + "end": { + "line": 68, + "column": 93 + }, + "identifierName": "cost" + }, + "name": "cost" + }, + "computed": false + } + ] + } + } + }, + { + "type": "ExpressionStatement", + "start": 2517, + "end": 2548, + "loc": { + "start": { + "line": 69, + "column": 12 + }, + "end": { + "line": 69, + "column": 43 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 2517, + "end": 2548, + "loc": { + "start": { + "line": 69, + "column": 12 + }, + "end": { + "line": 69, + "column": 43 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 2517, + "end": 2536, + "loc": { + "start": { + "line": 69, + "column": 12 + }, + "end": { + "line": 69, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 2517, + "end": 2529, + "loc": { + "start": { + "line": 69, + "column": 12 + }, + "end": { + "line": 69, + "column": 24 + }, + "identifierName": "deployResult" + }, + "name": "deployResult" + }, + "property": { + "type": "Identifier", + "start": 2530, + "end": 2536, + "loc": { + "start": { + "line": 69, + "column": 25 + }, + "end": { + "line": 69, + "column": 31 + }, + "identifierName": "status" + }, + "name": "status" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 2539, + "end": 2548, + "loc": { + "start": { + "line": 69, + "column": 34 + }, + "end": { + "line": 69, + "column": 43 + }, + "identifierName": "STATUS_KO" + }, + "name": "STATUS_KO" + } + } + }, + { + "type": "ExpressionStatement", + "start": 2561, + "end": 2619, + "loc": { + "start": { + "line": 70, + "column": 12 + }, + "end": { + "line": 70, + "column": 70 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 2561, + "end": 2619, + "loc": { + "start": { + "line": 70, + "column": 12 + }, + "end": { + "line": 70, + "column": 70 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 2561, + "end": 2581, + "loc": { + "start": { + "line": 70, + "column": 12 + }, + "end": { + "line": 70, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 2561, + "end": 2573, + "loc": { + "start": { + "line": 70, + "column": 12 + }, + "end": { + "line": 70, + "column": 24 + }, + "identifierName": "deployResult" + }, + "name": "deployResult" + }, + "property": { + "type": "Identifier", + "start": 2574, + "end": 2581, + "loc": { + "start": { + "line": 70, + "column": 25 + }, + "end": { + "line": 70, + "column": 32 + }, + "identifierName": "message" + }, + "name": "message" + }, + "computed": false + }, + "right": { + "type": "MemberExpression", + "start": 2584, + "end": 2619, + "loc": { + "start": { + "line": 70, + "column": 35 + }, + "end": { + "line": 70, + "column": 70 + } + }, + "object": { + "type": "MemberExpression", + "start": 2584, + "end": 2605, + "loc": { + "start": { + "line": 70, + "column": 35 + }, + "end": { + "line": 70, + "column": 56 + } + }, + "object": { + "type": "Identifier", + "start": 2584, + "end": 2594, + "loc": { + "start": { + "line": 70, + "column": 35 + }, + "end": { + "line": 70, + "column": 45 + }, + "identifierName": "execResult" + }, + "name": "execResult" + }, + "property": { + "type": "Identifier", + "start": 2595, + "end": 2604, + "loc": { + "start": { + "line": 70, + "column": 46 + }, + "end": { + "line": 70, + "column": 55 + }, + "identifierName": "STATUS_KO" + }, + "name": "STATUS_KO" + }, + "computed": true + }, + "property": { + "type": "Identifier", + "start": 2606, + "end": 2619, + "loc": { + "start": { + "line": 70, + "column": 57 + }, + "end": { + "line": 70, + "column": 70 + }, + "identifierName": "error_message" + }, + "name": "error_message" + }, + "computed": false + } + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 2638, + "end": 2658, + "loc": { + "start": { + "line": 72, + "column": 8 + }, + "end": { + "line": 72, + "column": 28 + } + }, + "argument": { + "type": "Identifier", + "start": 2645, + "end": 2657, + "loc": { + "start": { + "line": 72, + "column": 15 + }, + "end": { + "line": 72, + "column": 27 + }, + "identifierName": "deployResult" + }, + "name": "deployResult" + } + } + ], + "directives": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Update a DeployResult object\n *\n * @param {DeployResult} deployResult - DeployResult object\n * @returns {Promise} - Return an updated DeployResult object\n ", + "start": 1459, + "end": 1657, + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 51, + "column": 7 + } + } + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * DeployManager class\n * Used to handle the deploy process\n ", + "start": 119, + "end": 186, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * DeployManager class\n * Used to handle the deploy process\n ", + "start": 119, + "end": 186, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + } + } + ] + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\n * DeployManager class\n * Used to handle the deploy process\n ", + "start": 119, + "end": 186, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {ClientCasper} ", + "start": 220, + "end": 247, + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 9, + "column": 31 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {ClientCasper} client - ClientCasper object\n ", + "start": 265, + "end": 360, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 16, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "**\n * Send a deployment to the network\n *\n * @param {Deploy} deploy - Signed Deploy object\n * @param deployResult - A DeployResult class\n * @returns {Promise} - Return a DeployResult object\n ", + "start": 428, + "end": 661, + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 27, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Prepare, sign and send a deployment\n *\n * @param {AbstractSmartContractDeployParameters} deployParameter - Instance of a DeployParameters object\n * @param {AbstractSigner} signer - Instance of a Signer object\n * @param {Object} options - Generic object for additional parameters\n * @return {Promise} - Return a DeployResult object\n ", + "start": 826, + "end": 1209, + "loc": { + "start": { + "line": 33, + "column": 4 + }, + "end": { + "line": 40, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Update a DeployResult object\n *\n * @param {DeployResult} deployResult - DeployResult object\n * @returns {Promise} - Return an updated DeployResult object\n ", + "start": 1459, + "end": 1657, + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 51, + "column": 7 + } + } + } + ], + "tokens": [ + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 0, + "end": 6, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7, + "end": 8, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CurrencyUtils", + "start": 8, + "end": 21, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 21 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 21, + "end": 22, + "loc": { + "start": { + "line": 1, + "column": 21 + }, + "end": { + "line": 1, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 23, + "end": 27, + "loc": { + "start": { + "line": 1, + "column": 23 + }, + "end": { + "line": 1, + "column": 27 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "../helpers/currencyUtils", + "start": 28, + "end": 54, + "loc": { + "start": { + "line": 1, + "column": 28 + }, + "end": { + "line": 1, + "column": 54 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 54, + "end": 55, + "loc": { + "start": { + "line": 1, + "column": 54 + }, + "end": { + "line": 1, + "column": 55 + } + } + }, + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 56, + "end": 62, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 63, + "end": 64, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "STATUS_KO", + "start": 64, + "end": 73, + "loc": { + "start": { + "line": 2, + "column": 8 + }, + "end": { + "line": 2, + "column": 17 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 73, + "end": 74, + "loc": { + "start": { + "line": 2, + "column": 17 + }, + "end": { + "line": 2, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "STATUS_OK", + "start": 75, + "end": 84, + "loc": { + "start": { + "line": 2, + "column": 19 + }, + "end": { + "line": 2, + "column": 28 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 84, + "end": 85, + "loc": { + "start": { + "line": 2, + "column": 28 + }, + "end": { + "line": 2, + "column": 29 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 86, + "end": 90, + "loc": { + "start": { + "line": 2, + "column": 30 + }, + "end": { + "line": 2, + "column": 34 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "../results/deployResult", + "start": 91, + "end": 116, + "loc": { + "start": { + "line": 2, + "column": 35 + }, + "end": { + "line": 2, + "column": 60 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 116, + "end": 117, + "loc": { + "start": { + "line": 2, + "column": 60 + }, + "end": { + "line": 2, + "column": 61 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * DeployManager class\n * Used to handle the deploy process\n ", + "start": 119, + "end": 186, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 7, + "column": 3 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 187, + "end": 193, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 6 + } + } + }, + { + "type": { + "label": "class", + "keyword": "class", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "class", + "start": 194, + "end": 199, + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "DeployManager", + "start": 200, + "end": 213, + "loc": { + "start": { + "line": 8, + "column": 13 + }, + "end": { + "line": 8, + "column": 26 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 214, + "end": 215, + "loc": { + "start": { + "line": 8, + "column": 27 + }, + "end": { + "line": 8, + "column": 28 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {ClientCasper} ", + "start": 220, + "end": 247, + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 9, + "column": 31 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "client", + "start": 252, + "end": 258, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 10, + "column": 10 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 258, + "end": 259, + "loc": { + "start": { + "line": 10, + "column": 10 + }, + "end": { + "line": 10, + "column": 11 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {ClientCasper} client - ClientCasper object\n ", + "start": 265, + "end": 360, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 16, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "constructor", + "start": 365, + "end": 376, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 15 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 376, + "end": 377, + "loc": { + "start": { + "line": 17, + "column": 15 + }, + "end": { + "line": 17, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "client", + "start": 377, + "end": 383, + "loc": { + "start": { + "line": 17, + "column": 16 + }, + "end": { + "line": 17, + "column": 22 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 383, + "end": 384, + "loc": { + "start": { + "line": 17, + "column": 22 + }, + "end": { + "line": 17, + "column": 23 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 385, + "end": 386, + "loc": { + "start": { + "line": 17, + "column": 24 + }, + "end": { + "line": 17, + "column": 25 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 395, + "end": 399, + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 399, + "end": 400, + "loc": { + "start": { + "line": 18, + "column": 12 + }, + "end": { + "line": 18, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "client", + "start": 400, + "end": 406, + "loc": { + "start": { + "line": 18, + "column": 13 + }, + "end": { + "line": 18, + "column": 19 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 407, + "end": 408, + "loc": { + "start": { + "line": 18, + "column": 20 + }, + "end": { + "line": 18, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "client", + "start": 409, + "end": 415, + "loc": { + "start": { + "line": 18, + "column": 22 + }, + "end": { + "line": 18, + "column": 28 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 415, + "end": 416, + "loc": { + "start": { + "line": 18, + "column": 28 + }, + "end": { + "line": 18, + "column": 29 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 421, + "end": 422, + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "**\n * Send a deployment to the network\n *\n * @param {Deploy} deploy - Signed Deploy object\n * @param deployResult - A DeployResult class\n * @returns {Promise} - Return a DeployResult object\n ", + "start": 428, + "end": 661, + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 27, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "async", + "start": 666, + "end": 671, + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 28, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "sendDeploy", + "start": 672, + "end": 682, + "loc": { + "start": { + "line": 28, + "column": 10 + }, + "end": { + "line": 28, + "column": 20 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 682, + "end": 683, + "loc": { + "start": { + "line": 28, + "column": 20 + }, + "end": { + "line": 28, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "deploy", + "start": 683, + "end": 689, + "loc": { + "start": { + "line": 28, + "column": 21 + }, + "end": { + "line": 28, + "column": 27 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 689, + "end": 690, + "loc": { + "start": { + "line": 28, + "column": 27 + }, + "end": { + "line": 28, + "column": 28 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "deployResult", + "start": 691, + "end": 703, + "loc": { + "start": { + "line": 28, + "column": 29 + }, + "end": { + "line": 28, + "column": 41 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 703, + "end": 704, + "loc": { + "start": { + "line": 28, + "column": 41 + }, + "end": { + "line": 28, + "column": 42 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 705, + "end": 706, + "loc": { + "start": { + "line": 28, + "column": 43 + }, + "end": { + "line": 28, + "column": 44 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 715, + "end": 720, + "loc": { + "start": { + "line": 29, + "column": 8 + }, + "end": { + "line": 29, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "hash", + "start": 721, + "end": 725, + "loc": { + "start": { + "line": 29, + "column": 14 + }, + "end": { + "line": 29, + "column": 18 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 726, + "end": 727, + "loc": { + "start": { + "line": 29, + "column": 19 + }, + "end": { + "line": 29, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "await", + "start": 728, + "end": 733, + "loc": { + "start": { + "line": 29, + "column": 21 + }, + "end": { + "line": 29, + "column": 26 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 734, + "end": 738, + "loc": { + "start": { + "line": 29, + "column": 27 + }, + "end": { + "line": 29, + "column": 31 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 738, + "end": 739, + "loc": { + "start": { + "line": 29, + "column": 31 + }, + "end": { + "line": 29, + "column": 32 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "client", + "start": 739, + "end": 745, + "loc": { + "start": { + "line": 29, + "column": 32 + }, + "end": { + "line": 29, + "column": 38 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 745, + "end": 746, + "loc": { + "start": { + "line": 29, + "column": 38 + }, + "end": { + "line": 29, + "column": 39 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "casperClient", + "start": 746, + "end": 758, + "loc": { + "start": { + "line": 29, + "column": 39 + }, + "end": { + "line": 29, + "column": 51 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 758, + "end": 759, + "loc": { + "start": { + "line": 29, + "column": 51 + }, + "end": { + "line": 29, + "column": 52 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "putDeploy", + "start": 759, + "end": 768, + "loc": { + "start": { + "line": 29, + "column": 52 + }, + "end": { + "line": 29, + "column": 61 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 768, + "end": 769, + "loc": { + "start": { + "line": 29, + "column": 61 + }, + "end": { + "line": 29, + "column": 62 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "deploy", + "start": 769, + "end": 775, + "loc": { + "start": { + "line": 29, + "column": 62 + }, + "end": { + "line": 29, + "column": 68 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 775, + "end": 776, + "loc": { + "start": { + "line": 29, + "column": 68 + }, + "end": { + "line": 29, + "column": 69 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 785, + "end": 791, + "loc": { + "start": { + "line": 30, + "column": 8 + }, + "end": { + "line": 30, + "column": 14 + } + } + }, + { + "type": { + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "new", + "start": 792, + "end": 795, + "loc": { + "start": { + "line": 30, + "column": 15 + }, + "end": { + "line": 30, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "deployResult", + "start": 796, + "end": 808, + "loc": { + "start": { + "line": 30, + "column": 19 + }, + "end": { + "line": 30, + "column": 31 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 808, + "end": 809, + "loc": { + "start": { + "line": 30, + "column": 31 + }, + "end": { + "line": 30, + "column": 32 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "hash", + "start": 809, + "end": 813, + "loc": { + "start": { + "line": 30, + "column": 32 + }, + "end": { + "line": 30, + "column": 36 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 813, + "end": 814, + "loc": { + "start": { + "line": 30, + "column": 36 + }, + "end": { + "line": 30, + "column": 37 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 819, + "end": 820, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Prepare, sign and send a deployment\n *\n * @param {AbstractSmartContractDeployParameters} deployParameter - Instance of a DeployParameters object\n * @param {AbstractSigner} signer - Instance of a Signer object\n * @param {Object} options - Generic object for additional parameters\n * @return {Promise} - Return a DeployResult object\n ", + "start": 826, + "end": 1209, + "loc": { + "start": { + "line": 33, + "column": 4 + }, + "end": { + "line": 40, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "async", + "start": 1214, + "end": 1219, + "loc": { + "start": { + "line": 41, + "column": 4 + }, + "end": { + "line": 41, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "prepareSignAndSendDeploy", + "start": 1220, + "end": 1244, + "loc": { + "start": { + "line": 41, + "column": 10 + }, + "end": { + "line": 41, + "column": 34 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1244, + "end": 1245, + "loc": { + "start": { + "line": 41, + "column": 34 + }, + "end": { + "line": 41, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "deployParameter", + "start": 1245, + "end": 1260, + "loc": { + "start": { + "line": 41, + "column": 35 + }, + "end": { + "line": 41, + "column": 50 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1260, + "end": 1261, + "loc": { + "start": { + "line": 41, + "column": 50 + }, + "end": { + "line": 41, + "column": 51 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "signer", + "start": 1262, + "end": 1268, + "loc": { + "start": { + "line": 41, + "column": 52 + }, + "end": { + "line": 41, + "column": 58 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1268, + "end": 1269, + "loc": { + "start": { + "line": 41, + "column": 58 + }, + "end": { + "line": 41, + "column": 59 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 1270, + "end": 1277, + "loc": { + "start": { + "line": 41, + "column": 60 + }, + "end": { + "line": 41, + "column": 67 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1277, + "end": 1278, + "loc": { + "start": { + "line": 41, + "column": 67 + }, + "end": { + "line": 41, + "column": 68 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1279, + "end": 1280, + "loc": { + "start": { + "line": 41, + "column": 69 + }, + "end": { + "line": 41, + "column": 70 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 1289, + "end": 1294, + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 42, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "signedDeploy", + "start": 1295, + "end": 1307, + "loc": { + "start": { + "line": 42, + "column": 14 + }, + "end": { + "line": 42, + "column": 26 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1308, + "end": 1309, + "loc": { + "start": { + "line": 42, + "column": 27 + }, + "end": { + "line": 42, + "column": 28 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "await", + "start": 1310, + "end": 1315, + "loc": { + "start": { + "line": 42, + "column": 29 + }, + "end": { + "line": 42, + "column": 34 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "signer", + "start": 1316, + "end": 1322, + "loc": { + "start": { + "line": 42, + "column": 35 + }, + "end": { + "line": 42, + "column": 41 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1322, + "end": 1323, + "loc": { + "start": { + "line": 42, + "column": 41 + }, + "end": { + "line": 42, + "column": 42 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "sign", + "start": 1323, + "end": 1327, + "loc": { + "start": { + "line": 42, + "column": 42 + }, + "end": { + "line": 42, + "column": 46 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1327, + "end": 1328, + "loc": { + "start": { + "line": 42, + "column": 46 + }, + "end": { + "line": 42, + "column": 47 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "deployParameter", + "start": 1328, + "end": 1343, + "loc": { + "start": { + "line": 42, + "column": 47 + }, + "end": { + "line": 42, + "column": 62 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1343, + "end": 1344, + "loc": { + "start": { + "line": 42, + "column": 62 + }, + "end": { + "line": 42, + "column": 63 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "makeDeploy", + "start": 1344, + "end": 1354, + "loc": { + "start": { + "line": 42, + "column": 63 + }, + "end": { + "line": 42, + "column": 73 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1354, + "end": 1355, + "loc": { + "start": { + "line": 42, + "column": 73 + }, + "end": { + "line": 42, + "column": 74 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 1356, + "end": 1363, + "loc": { + "start": { + "line": 42, + "column": 75 + }, + "end": { + "line": 42, + "column": 82 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1363, + "end": 1364, + "loc": { + "start": { + "line": 42, + "column": 82 + }, + "end": { + "line": 42, + "column": 83 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1364, + "end": 1365, + "loc": { + "start": { + "line": 42, + "column": 83 + }, + "end": { + "line": 42, + "column": 84 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 1374, + "end": 1380, + "loc": { + "start": { + "line": 43, + "column": 8 + }, + "end": { + "line": 43, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "await", + "start": 1381, + "end": 1386, + "loc": { + "start": { + "line": 43, + "column": 15 + }, + "end": { + "line": 43, + "column": 20 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 1387, + "end": 1391, + "loc": { + "start": { + "line": 43, + "column": 21 + }, + "end": { + "line": 43, + "column": 25 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1391, + "end": 1392, + "loc": { + "start": { + "line": 43, + "column": 25 + }, + "end": { + "line": 43, + "column": 26 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "sendDeploy", + "start": 1392, + "end": 1402, + "loc": { + "start": { + "line": 43, + "column": 26 + }, + "end": { + "line": 43, + "column": 36 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1402, + "end": 1403, + "loc": { + "start": { + "line": 43, + "column": 36 + }, + "end": { + "line": 43, + "column": 37 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "signedDeploy", + "start": 1403, + "end": 1415, + "loc": { + "start": { + "line": 43, + "column": 37 + }, + "end": { + "line": 43, + "column": 49 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1415, + "end": 1416, + "loc": { + "start": { + "line": 43, + "column": 49 + }, + "end": { + "line": 43, + "column": 50 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "deployParameter", + "start": 1417, + "end": 1432, + "loc": { + "start": { + "line": 43, + "column": 51 + }, + "end": { + "line": 43, + "column": 66 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1432, + "end": 1433, + "loc": { + "start": { + "line": 43, + "column": 66 + }, + "end": { + "line": 43, + "column": 67 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "deployResult", + "start": 1433, + "end": 1445, + "loc": { + "start": { + "line": 43, + "column": 67 + }, + "end": { + "line": 43, + "column": 79 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1445, + "end": 1446, + "loc": { + "start": { + "line": 43, + "column": 79 + }, + "end": { + "line": 43, + "column": 80 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1446, + "end": 1447, + "loc": { + "start": { + "line": 43, + "column": 80 + }, + "end": { + "line": 43, + "column": 81 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1452, + "end": 1453, + "loc": { + "start": { + "line": 44, + "column": 4 + }, + "end": { + "line": 44, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Update a DeployResult object\n *\n * @param {DeployResult} deployResult - DeployResult object\n * @returns {Promise} - Return an updated DeployResult object\n ", + "start": 1459, + "end": 1657, + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 51, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "async", + "start": 1662, + "end": 1667, + "loc": { + "start": { + "line": 52, + "column": 4 + }, + "end": { + "line": 52, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "getDeployResult", + "start": 1668, + "end": 1683, + "loc": { + "start": { + "line": 52, + "column": 10 + }, + "end": { + "line": 52, + "column": 25 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1683, + "end": 1684, + "loc": { + "start": { + "line": 52, + "column": 25 + }, + "end": { + "line": 52, + "column": 26 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "deployResult", + "start": 1684, + "end": 1696, + "loc": { + "start": { + "line": 52, + "column": 26 + }, + "end": { + "line": 52, + "column": 38 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1696, + "end": 1697, + "loc": { + "start": { + "line": 52, + "column": 38 + }, + "end": { + "line": 52, + "column": 39 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1698, + "end": 1699, + "loc": { + "start": { + "line": 52, + "column": 40 + }, + "end": { + "line": 52, + "column": 41 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 1708, + "end": 1713, + "loc": { + "start": { + "line": 53, + "column": 8 + }, + "end": { + "line": 53, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "result", + "start": 1714, + "end": 1720, + "loc": { + "start": { + "line": 53, + "column": 14 + }, + "end": { + "line": 53, + "column": 20 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1721, + "end": 1722, + "loc": { + "start": { + "line": 53, + "column": 21 + }, + "end": { + "line": 53, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "await", + "start": 1723, + "end": 1728, + "loc": { + "start": { + "line": 53, + "column": 23 + }, + "end": { + "line": 53, + "column": 28 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 1729, + "end": 1733, + "loc": { + "start": { + "line": 53, + "column": 29 + }, + "end": { + "line": 53, + "column": 33 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1733, + "end": 1734, + "loc": { + "start": { + "line": 53, + "column": 33 + }, + "end": { + "line": 53, + "column": 34 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "client", + "start": 1734, + "end": 1740, + "loc": { + "start": { + "line": 53, + "column": 34 + }, + "end": { + "line": 53, + "column": 40 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1740, + "end": 1741, + "loc": { + "start": { + "line": 53, + "column": 40 + }, + "end": { + "line": 53, + "column": 41 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "casperClient", + "start": 1741, + "end": 1753, + "loc": { + "start": { + "line": 53, + "column": 41 + }, + "end": { + "line": 53, + "column": 53 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1753, + "end": 1754, + "loc": { + "start": { + "line": 53, + "column": 53 + }, + "end": { + "line": 53, + "column": 54 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "getDeploy", + "start": 1754, + "end": 1763, + "loc": { + "start": { + "line": 53, + "column": 54 + }, + "end": { + "line": 53, + "column": 63 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1763, + "end": 1764, + "loc": { + "start": { + "line": 53, + "column": 63 + }, + "end": { + "line": 53, + "column": 64 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "deployResult", + "start": 1764, + "end": 1776, + "loc": { + "start": { + "line": 53, + "column": 64 + }, + "end": { + "line": 53, + "column": 76 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1776, + "end": 1777, + "loc": { + "start": { + "line": 53, + "column": 76 + }, + "end": { + "line": 53, + "column": 77 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "hash", + "start": 1777, + "end": 1781, + "loc": { + "start": { + "line": 53, + "column": 77 + }, + "end": { + "line": 53, + "column": 81 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1781, + "end": 1782, + "loc": { + "start": { + "line": 53, + "column": 81 + }, + "end": { + "line": 53, + "column": 82 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 1791, + "end": 1794, + "loc": { + "start": { + "line": 54, + "column": 8 + }, + "end": { + "line": 54, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "deploy", + "start": 1795, + "end": 1801, + "loc": { + "start": { + "line": 54, + "column": 12 + }, + "end": { + "line": 54, + "column": 18 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1802, + "end": 1803, + "loc": { + "start": { + "line": 54, + "column": 19 + }, + "end": { + "line": 54, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "result", + "start": 1804, + "end": 1810, + "loc": { + "start": { + "line": 54, + "column": 21 + }, + "end": { + "line": 54, + "column": 27 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1810, + "end": 1811, + "loc": { + "start": { + "line": 54, + "column": 27 + }, + "end": { + "line": 54, + "column": 28 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 0, + "start": 1811, + "end": 1812, + "loc": { + "start": { + "line": 54, + "column": 28 + }, + "end": { + "line": 54, + "column": 29 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1812, + "end": 1813, + "loc": { + "start": { + "line": 54, + "column": 29 + }, + "end": { + "line": 54, + "column": 30 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 1822, + "end": 1825, + "loc": { + "start": { + "line": 55, + "column": 8 + }, + "end": { + "line": 55, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "execResult", + "start": 1826, + "end": 1836, + "loc": { + "start": { + "line": 55, + "column": 12 + }, + "end": { + "line": 55, + "column": 22 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1837, + "end": 1838, + "loc": { + "start": { + "line": 55, + "column": 23 + }, + "end": { + "line": 55, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "result", + "start": 1839, + "end": 1845, + "loc": { + "start": { + "line": 55, + "column": 25 + }, + "end": { + "line": 55, + "column": 31 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1845, + "end": 1846, + "loc": { + "start": { + "line": 55, + "column": 31 + }, + "end": { + "line": 55, + "column": 32 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 1, + "start": 1846, + "end": 1847, + "loc": { + "start": { + "line": 55, + "column": 32 + }, + "end": { + "line": 55, + "column": 33 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1847, + "end": 1848, + "loc": { + "start": { + "line": 55, + "column": 33 + }, + "end": { + "line": 55, + "column": 34 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1848, + "end": 1849, + "loc": { + "start": { + "line": 55, + "column": 34 + }, + "end": { + "line": 55, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "execution_results", + "start": 1849, + "end": 1866, + "loc": { + "start": { + "line": 55, + "column": 35 + }, + "end": { + "line": 55, + "column": 52 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 1875, + "end": 1877, + "loc": { + "start": { + "line": 56, + "column": 8 + }, + "end": { + "line": 56, + "column": 10 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1878, + "end": 1879, + "loc": { + "start": { + "line": 56, + "column": 11 + }, + "end": { + "line": 56, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "execResult", + "start": 1879, + "end": 1889, + "loc": { + "start": { + "line": 56, + "column": 12 + }, + "end": { + "line": 56, + "column": 22 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1889, + "end": 1890, + "loc": { + "start": { + "line": 56, + "column": 22 + }, + "end": { + "line": 56, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "length", + "start": 1890, + "end": 1896, + "loc": { + "start": { + "line": 56, + "column": 23 + }, + "end": { + "line": 56, + "column": 29 + } + } + }, + { + "type": { + "label": "", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 7, + "updateContext": null + }, + "value": ">", + "start": 1897, + "end": 1898, + "loc": { + "start": { + "line": 56, + "column": 30 + }, + "end": { + "line": 56, + "column": 31 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 0, + "start": 1899, + "end": 1900, + "loc": { + "start": { + "line": 56, + "column": 32 + }, + "end": { + "line": 56, + "column": 33 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1900, + "end": 1901, + "loc": { + "start": { + "line": 56, + "column": 33 + }, + "end": { + "line": 56, + "column": 34 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1902, + "end": 1903, + "loc": { + "start": { + "line": 56, + "column": 35 + }, + "end": { + "line": 56, + "column": 36 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "execResult", + "start": 1916, + "end": 1926, + "loc": { + "start": { + "line": 57, + "column": 12 + }, + "end": { + "line": 57, + "column": 22 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1927, + "end": 1928, + "loc": { + "start": { + "line": 57, + "column": 23 + }, + "end": { + "line": 57, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "execResult", + "start": 1929, + "end": 1939, + "loc": { + "start": { + "line": 57, + "column": 25 + }, + "end": { + "line": 57, + "column": 35 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1939, + "end": 1940, + "loc": { + "start": { + "line": 57, + "column": 35 + }, + "end": { + "line": 57, + "column": 36 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 0, + "start": 1940, + "end": 1941, + "loc": { + "start": { + "line": 57, + "column": 36 + }, + "end": { + "line": 57, + "column": 37 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1941, + "end": 1942, + "loc": { + "start": { + "line": 57, + "column": 37 + }, + "end": { + "line": 57, + "column": 38 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1942, + "end": 1943, + "loc": { + "start": { + "line": 57, + "column": 38 + }, + "end": { + "line": 57, + "column": 39 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "result", + "start": 1943, + "end": 1949, + "loc": { + "start": { + "line": 57, + "column": 39 + }, + "end": { + "line": 57, + "column": 45 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1949, + "end": 1950, + "loc": { + "start": { + "line": 57, + "column": 45 + }, + "end": { + "line": 57, + "column": 46 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1959, + "end": 1960, + "loc": { + "start": { + "line": 58, + "column": 8 + }, + "end": { + "line": 58, + "column": 9 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 1969, + "end": 1971, + "loc": { + "start": { + "line": 59, + "column": 8 + }, + "end": { + "line": 59, + "column": 10 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1972, + "end": 1973, + "loc": { + "start": { + "line": 59, + "column": 11 + }, + "end": { + "line": 59, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "deploy", + "start": 1973, + "end": 1979, + "loc": { + "start": { + "line": 59, + "column": 12 + }, + "end": { + "line": 59, + "column": 18 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1979, + "end": 1980, + "loc": { + "start": { + "line": 59, + "column": 18 + }, + "end": { + "line": 59, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "session", + "start": 1980, + "end": 1987, + "loc": { + "start": { + "line": 59, + "column": 19 + }, + "end": { + "line": 59, + "column": 26 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1987, + "end": 1988, + "loc": { + "start": { + "line": 59, + "column": 26 + }, + "end": { + "line": 59, + "column": 27 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "getArgByName", + "start": 1988, + "end": 2000, + "loc": { + "start": { + "line": 59, + "column": 27 + }, + "end": { + "line": 59, + "column": 39 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2000, + "end": 2001, + "loc": { + "start": { + "line": 59, + "column": 39 + }, + "end": { + "line": 59, + "column": 40 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "amount", + "start": 2001, + "end": 2009, + "loc": { + "start": { + "line": 59, + "column": 40 + }, + "end": { + "line": 59, + "column": 48 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2009, + "end": 2010, + "loc": { + "start": { + "line": 59, + "column": 48 + }, + "end": { + "line": 59, + "column": 49 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2010, + "end": 2011, + "loc": { + "start": { + "line": 59, + "column": 49 + }, + "end": { + "line": 59, + "column": 50 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2012, + "end": 2013, + "loc": { + "start": { + "line": 59, + "column": 51 + }, + "end": { + "line": 59, + "column": 52 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "deployResult", + "start": 2026, + "end": 2038, + "loc": { + "start": { + "line": 60, + "column": 12 + }, + "end": { + "line": 60, + "column": 24 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2038, + "end": 2039, + "loc": { + "start": { + "line": 60, + "column": 24 + }, + "end": { + "line": 60, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "amount", + "start": 2039, + "end": 2045, + "loc": { + "start": { + "line": 60, + "column": 25 + }, + "end": { + "line": 60, + "column": 31 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 2046, + "end": 2047, + "loc": { + "start": { + "line": 60, + "column": 32 + }, + "end": { + "line": 60, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CurrencyUtils", + "start": 2048, + "end": 2061, + "loc": { + "start": { + "line": 60, + "column": 34 + }, + "end": { + "line": 60, + "column": 47 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2061, + "end": 2062, + "loc": { + "start": { + "line": 60, + "column": 47 + }, + "end": { + "line": 60, + "column": 48 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "convertMotesToCasper", + "start": 2062, + "end": 2082, + "loc": { + "start": { + "line": 60, + "column": 48 + }, + "end": { + "line": 60, + "column": 68 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2082, + "end": 2083, + "loc": { + "start": { + "line": 60, + "column": 68 + }, + "end": { + "line": 60, + "column": 69 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "deploy", + "start": 2083, + "end": 2089, + "loc": { + "start": { + "line": 60, + "column": 69 + }, + "end": { + "line": 60, + "column": 75 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2089, + "end": 2090, + "loc": { + "start": { + "line": 60, + "column": 75 + }, + "end": { + "line": 60, + "column": 76 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "session", + "start": 2090, + "end": 2097, + "loc": { + "start": { + "line": 60, + "column": 76 + }, + "end": { + "line": 60, + "column": 83 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2097, + "end": 2098, + "loc": { + "start": { + "line": 60, + "column": 83 + }, + "end": { + "line": 60, + "column": 84 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "getArgByName", + "start": 2098, + "end": 2110, + "loc": { + "start": { + "line": 60, + "column": 84 + }, + "end": { + "line": 60, + "column": 96 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2110, + "end": 2111, + "loc": { + "start": { + "line": 60, + "column": 96 + }, + "end": { + "line": 60, + "column": 97 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "amount", + "start": 2111, + "end": 2119, + "loc": { + "start": { + "line": 60, + "column": 97 + }, + "end": { + "line": 60, + "column": 105 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2119, + "end": 2120, + "loc": { + "start": { + "line": 60, + "column": 105 + }, + "end": { + "line": 60, + "column": 106 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2120, + "end": 2121, + "loc": { + "start": { + "line": 60, + "column": 106 + }, + "end": { + "line": 60, + "column": 107 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "value", + "start": 2121, + "end": 2126, + "loc": { + "start": { + "line": 60, + "column": 107 + }, + "end": { + "line": 60, + "column": 112 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2126, + "end": 2127, + "loc": { + "start": { + "line": 60, + "column": 112 + }, + "end": { + "line": 60, + "column": 113 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2127, + "end": 2128, + "loc": { + "start": { + "line": 60, + "column": 113 + }, + "end": { + "line": 60, + "column": 114 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2128, + "end": 2129, + "loc": { + "start": { + "line": 60, + "column": 114 + }, + "end": { + "line": 60, + "column": 115 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "toString", + "start": 2129, + "end": 2137, + "loc": { + "start": { + "line": 60, + "column": 115 + }, + "end": { + "line": 60, + "column": 123 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2137, + "end": 2138, + "loc": { + "start": { + "line": 60, + "column": 123 + }, + "end": { + "line": 60, + "column": 124 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2138, + "end": 2139, + "loc": { + "start": { + "line": 60, + "column": 124 + }, + "end": { + "line": 60, + "column": 125 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2139, + "end": 2140, + "loc": { + "start": { + "line": 60, + "column": 125 + }, + "end": { + "line": 60, + "column": 126 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2149, + "end": 2150, + "loc": { + "start": { + "line": 61, + "column": 8 + }, + "end": { + "line": 61, + "column": 9 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 2159, + "end": 2161, + "loc": { + "start": { + "line": 62, + "column": 8 + }, + "end": { + "line": 62, + "column": 10 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2162, + "end": 2163, + "loc": { + "start": { + "line": 62, + "column": 11 + }, + "end": { + "line": 62, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "STATUS_OK", + "start": 2163, + "end": 2172, + "loc": { + "start": { + "line": 62, + "column": 12 + }, + "end": { + "line": 62, + "column": 21 + } + } + }, + { + "type": { + "label": "in", + "keyword": "in", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 7, + "updateContext": null + }, + "value": "in", + "start": 2173, + "end": 2175, + "loc": { + "start": { + "line": 62, + "column": 22 + }, + "end": { + "line": 62, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "execResult", + "start": 2176, + "end": 2186, + "loc": { + "start": { + "line": 62, + "column": 25 + }, + "end": { + "line": 62, + "column": 35 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2186, + "end": 2187, + "loc": { + "start": { + "line": 62, + "column": 35 + }, + "end": { + "line": 62, + "column": 36 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2188, + "end": 2189, + "loc": { + "start": { + "line": 62, + "column": 37 + }, + "end": { + "line": 62, + "column": 38 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "deployResult", + "start": 2202, + "end": 2214, + "loc": { + "start": { + "line": 63, + "column": 12 + }, + "end": { + "line": 63, + "column": 24 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2214, + "end": 2215, + "loc": { + "start": { + "line": 63, + "column": 24 + }, + "end": { + "line": 63, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "cost", + "start": 2215, + "end": 2219, + "loc": { + "start": { + "line": 63, + "column": 25 + }, + "end": { + "line": 63, + "column": 29 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 2220, + "end": 2221, + "loc": { + "start": { + "line": 63, + "column": 30 + }, + "end": { + "line": 63, + "column": 31 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CurrencyUtils", + "start": 2222, + "end": 2235, + "loc": { + "start": { + "line": 63, + "column": 32 + }, + "end": { + "line": 63, + "column": 45 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2235, + "end": 2236, + "loc": { + "start": { + "line": 63, + "column": 45 + }, + "end": { + "line": 63, + "column": 46 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "convertMotesToCasper", + "start": 2236, + "end": 2256, + "loc": { + "start": { + "line": 63, + "column": 46 + }, + "end": { + "line": 63, + "column": 66 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2256, + "end": 2257, + "loc": { + "start": { + "line": 63, + "column": 66 + }, + "end": { + "line": 63, + "column": 67 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "execResult", + "start": 2257, + "end": 2267, + "loc": { + "start": { + "line": 63, + "column": 67 + }, + "end": { + "line": 63, + "column": 77 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2267, + "end": 2268, + "loc": { + "start": { + "line": 63, + "column": 77 + }, + "end": { + "line": 63, + "column": 78 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "STATUS_OK", + "start": 2268, + "end": 2277, + "loc": { + "start": { + "line": 63, + "column": 78 + }, + "end": { + "line": 63, + "column": 87 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2277, + "end": 2278, + "loc": { + "start": { + "line": 63, + "column": 87 + }, + "end": { + "line": 63, + "column": 88 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2278, + "end": 2279, + "loc": { + "start": { + "line": 63, + "column": 88 + }, + "end": { + "line": 63, + "column": 89 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "cost", + "start": 2279, + "end": 2283, + "loc": { + "start": { + "line": 63, + "column": 89 + }, + "end": { + "line": 63, + "column": 93 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2283, + "end": 2284, + "loc": { + "start": { + "line": 63, + "column": 93 + }, + "end": { + "line": 63, + "column": 94 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "deployResult", + "start": 2297, + "end": 2309, + "loc": { + "start": { + "line": 64, + "column": 12 + }, + "end": { + "line": 64, + "column": 24 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2309, + "end": 2310, + "loc": { + "start": { + "line": 64, + "column": 24 + }, + "end": { + "line": 64, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "status", + "start": 2310, + "end": 2316, + "loc": { + "start": { + "line": 64, + "column": 25 + }, + "end": { + "line": 64, + "column": 31 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 2317, + "end": 2318, + "loc": { + "start": { + "line": 64, + "column": 32 + }, + "end": { + "line": 64, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "STATUS_OK", + "start": 2319, + "end": 2328, + "loc": { + "start": { + "line": 64, + "column": 34 + }, + "end": { + "line": 64, + "column": 43 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 2341, + "end": 2347, + "loc": { + "start": { + "line": 65, + "column": 12 + }, + "end": { + "line": 65, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "deployResult", + "start": 2348, + "end": 2360, + "loc": { + "start": { + "line": 65, + "column": 19 + }, + "end": { + "line": 65, + "column": 31 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2369, + "end": 2370, + "loc": { + "start": { + "line": 66, + "column": 8 + }, + "end": { + "line": 66, + "column": 9 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 2379, + "end": 2381, + "loc": { + "start": { + "line": 67, + "column": 8 + }, + "end": { + "line": 67, + "column": 10 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2382, + "end": 2383, + "loc": { + "start": { + "line": 67, + "column": 11 + }, + "end": { + "line": 67, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "STATUS_KO", + "start": 2383, + "end": 2392, + "loc": { + "start": { + "line": 67, + "column": 12 + }, + "end": { + "line": 67, + "column": 21 + } + } + }, + { + "type": { + "label": "in", + "keyword": "in", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 7, + "updateContext": null + }, + "value": "in", + "start": 2393, + "end": 2395, + "loc": { + "start": { + "line": 67, + "column": 22 + }, + "end": { + "line": 67, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "execResult", + "start": 2396, + "end": 2406, + "loc": { + "start": { + "line": 67, + "column": 25 + }, + "end": { + "line": 67, + "column": 35 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2406, + "end": 2407, + "loc": { + "start": { + "line": 67, + "column": 35 + }, + "end": { + "line": 67, + "column": 36 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2408, + "end": 2409, + "loc": { + "start": { + "line": 67, + "column": 37 + }, + "end": { + "line": 67, + "column": 38 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "deployResult", + "start": 2422, + "end": 2434, + "loc": { + "start": { + "line": 68, + "column": 12 + }, + "end": { + "line": 68, + "column": 24 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2434, + "end": 2435, + "loc": { + "start": { + "line": 68, + "column": 24 + }, + "end": { + "line": 68, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "cost", + "start": 2435, + "end": 2439, + "loc": { + "start": { + "line": 68, + "column": 25 + }, + "end": { + "line": 68, + "column": 29 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 2440, + "end": 2441, + "loc": { + "start": { + "line": 68, + "column": 30 + }, + "end": { + "line": 68, + "column": 31 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CurrencyUtils", + "start": 2442, + "end": 2455, + "loc": { + "start": { + "line": 68, + "column": 32 + }, + "end": { + "line": 68, + "column": 45 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2455, + "end": 2456, + "loc": { + "start": { + "line": 68, + "column": 45 + }, + "end": { + "line": 68, + "column": 46 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "convertMotesToCasper", + "start": 2456, + "end": 2476, + "loc": { + "start": { + "line": 68, + "column": 46 + }, + "end": { + "line": 68, + "column": 66 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2476, + "end": 2477, + "loc": { + "start": { + "line": 68, + "column": 66 + }, + "end": { + "line": 68, + "column": 67 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "execResult", + "start": 2477, + "end": 2487, + "loc": { + "start": { + "line": 68, + "column": 67 + }, + "end": { + "line": 68, + "column": 77 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2487, + "end": 2488, + "loc": { + "start": { + "line": 68, + "column": 77 + }, + "end": { + "line": 68, + "column": 78 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "STATUS_KO", + "start": 2488, + "end": 2497, + "loc": { + "start": { + "line": 68, + "column": 78 + }, + "end": { + "line": 68, + "column": 87 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2497, + "end": 2498, + "loc": { + "start": { + "line": 68, + "column": 87 + }, + "end": { + "line": 68, + "column": 88 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2498, + "end": 2499, + "loc": { + "start": { + "line": 68, + "column": 88 + }, + "end": { + "line": 68, + "column": 89 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "cost", + "start": 2499, + "end": 2503, + "loc": { + "start": { + "line": 68, + "column": 89 + }, + "end": { + "line": 68, + "column": 93 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2503, + "end": 2504, + "loc": { + "start": { + "line": 68, + "column": 93 + }, + "end": { + "line": 68, + "column": 94 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "deployResult", + "start": 2517, + "end": 2529, + "loc": { + "start": { + "line": 69, + "column": 12 + }, + "end": { + "line": 69, + "column": 24 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2529, + "end": 2530, + "loc": { + "start": { + "line": 69, + "column": 24 + }, + "end": { + "line": 69, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "status", + "start": 2530, + "end": 2536, + "loc": { + "start": { + "line": 69, + "column": 25 + }, + "end": { + "line": 69, + "column": 31 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 2537, + "end": 2538, + "loc": { + "start": { + "line": 69, + "column": 32 + }, + "end": { + "line": 69, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "STATUS_KO", + "start": 2539, + "end": 2548, + "loc": { + "start": { + "line": 69, + "column": 34 + }, + "end": { + "line": 69, + "column": 43 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "deployResult", + "start": 2561, + "end": 2573, + "loc": { + "start": { + "line": 70, + "column": 12 + }, + "end": { + "line": 70, + "column": 24 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2573, + "end": 2574, + "loc": { + "start": { + "line": 70, + "column": 24 + }, + "end": { + "line": 70, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "message", + "start": 2574, + "end": 2581, + "loc": { + "start": { + "line": 70, + "column": 25 + }, + "end": { + "line": 70, + "column": 32 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 2582, + "end": 2583, + "loc": { + "start": { + "line": 70, + "column": 33 + }, + "end": { + "line": 70, + "column": 34 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "execResult", + "start": 2584, + "end": 2594, + "loc": { + "start": { + "line": 70, + "column": 35 + }, + "end": { + "line": 70, + "column": 45 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2594, + "end": 2595, + "loc": { + "start": { + "line": 70, + "column": 45 + }, + "end": { + "line": 70, + "column": 46 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "STATUS_KO", + "start": 2595, + "end": 2604, + "loc": { + "start": { + "line": 70, + "column": 46 + }, + "end": { + "line": 70, + "column": 55 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2604, + "end": 2605, + "loc": { + "start": { + "line": 70, + "column": 55 + }, + "end": { + "line": 70, + "column": 56 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2605, + "end": 2606, + "loc": { + "start": { + "line": 70, + "column": 56 + }, + "end": { + "line": 70, + "column": 57 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "error_message", + "start": 2606, + "end": 2619, + "loc": { + "start": { + "line": 70, + "column": 57 + }, + "end": { + "line": 70, + "column": 70 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2628, + "end": 2629, + "loc": { + "start": { + "line": 71, + "column": 8 + }, + "end": { + "line": 71, + "column": 9 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 2638, + "end": 2644, + "loc": { + "start": { + "line": 72, + "column": 8 + }, + "end": { + "line": 72, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "deployResult", + "start": 2645, + "end": 2657, + "loc": { + "start": { + "line": 72, + "column": 15 + }, + "end": { + "line": 72, + "column": 27 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2657, + "end": 2658, + "loc": { + "start": { + "line": 72, + "column": 27 + }, + "end": { + "line": 72, + "column": 28 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2663, + "end": 2664, + "loc": { + "start": { + "line": 73, + "column": 4 + }, + "end": { + "line": 73, + "column": 5 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2666, + "end": 2667, + "loc": { + "start": { + "line": 75, + "column": 0 + }, + "end": { + "line": 75, + "column": 1 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2667, + "end": 2667, + "loc": { + "start": { + "line": 75, + "column": 1 + }, + "end": { + "line": 75, + "column": 1 + } + } + } + ] +} \ No newline at end of file diff --git a/ast/source/services/deploys/index.js.json b/ast/source/services/deploys/index.js.json new file mode 100644 index 0000000..2f89e09 --- /dev/null +++ b/ast/source/services/deploys/index.js.json @@ -0,0 +1,739 @@ +{ + "type": "File", + "start": 0, + "end": 175, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 4, + "column": 32 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 175, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 4, + "column": 32 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ExportAllDeclaration", + "start": 0, + "end": 26, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 26 + } + }, + "source": { + "type": "StringLiteral", + "start": 14, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 14 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "extra": { + "rawValue": "./auction", + "raw": "'./auction'" + }, + "value": "./auction" + } + }, + { + "type": "ExportAllDeclaration", + "start": 27, + "end": 89, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 62 + } + }, + "source": { + "type": "StringLiteral", + "start": 41, + "end": 88, + "loc": { + "start": { + "line": 2, + "column": 14 + }, + "end": { + "line": 2, + "column": 61 + } + }, + "extra": { + "rawValue": "./smartContract/smartContractDeployParameters", + "raw": "'./smartContract/smartContractDeployParameters'" + }, + "value": "./smartContract/smartContractDeployParameters" + } + }, + { + "type": "ExportAllDeclaration", + "start": 90, + "end": 142, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 52 + } + }, + "source": { + "type": "StringLiteral", + "start": 104, + "end": 141, + "loc": { + "start": { + "line": 3, + "column": 14 + }, + "end": { + "line": 3, + "column": 51 + } + }, + "extra": { + "rawValue": "./transfer/TransferDeployParameters", + "raw": "'./transfer/TransferDeployParameters'" + }, + "value": "./transfer/TransferDeployParameters" + } + }, + { + "type": "ExportAllDeclaration", + "start": 143, + "end": 175, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 32 + } + }, + "source": { + "type": "StringLiteral", + "start": 157, + "end": 174, + "loc": { + "start": { + "line": 4, + "column": 14 + }, + "end": { + "line": 4, + "column": 31 + } + }, + "extra": { + "rawValue": "./deployManager", + "raw": "'./deployManager'" + }, + "value": "./deployManager" + } + } + ], + "directives": [] + }, + "comments": [], + "tokens": [ + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 0, + "end": 6, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 6 + } + } + }, + { + "type": { + "label": "*", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 10, + "updateContext": null + }, + "value": "*", + "start": 7, + "end": 8, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 9, + "end": 13, + "loc": { + "start": { + "line": 1, + "column": 9 + }, + "end": { + "line": 1, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./auction", + "start": 14, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 14 + }, + "end": { + "line": 1, + "column": 25 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 25, + "end": 26, + "loc": { + "start": { + "line": 1, + "column": 25 + }, + "end": { + "line": 1, + "column": 26 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 27, + "end": 33, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 6 + } + } + }, + { + "type": { + "label": "*", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 10, + "updateContext": null + }, + "value": "*", + "start": 34, + "end": 35, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 36, + "end": 40, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./smartContract/smartContractDeployParameters", + "start": 41, + "end": 88, + "loc": { + "start": { + "line": 2, + "column": 14 + }, + "end": { + "line": 2, + "column": 61 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 88, + "end": 89, + "loc": { + "start": { + "line": 2, + "column": 61 + }, + "end": { + "line": 2, + "column": 62 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 90, + "end": 96, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 6 + } + } + }, + { + "type": { + "label": "*", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 10, + "updateContext": null + }, + "value": "*", + "start": 97, + "end": 98, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 99, + "end": 103, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./transfer/TransferDeployParameters", + "start": 104, + "end": 141, + "loc": { + "start": { + "line": 3, + "column": 14 + }, + "end": { + "line": 3, + "column": 51 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 141, + "end": 142, + "loc": { + "start": { + "line": 3, + "column": 51 + }, + "end": { + "line": 3, + "column": 52 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 143, + "end": 149, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 6 + } + } + }, + { + "type": { + "label": "*", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 10, + "updateContext": null + }, + "value": "*", + "start": 150, + "end": 151, + "loc": { + "start": { + "line": 4, + "column": 7 + }, + "end": { + "line": 4, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 152, + "end": 156, + "loc": { + "start": { + "line": 4, + "column": 9 + }, + "end": { + "line": 4, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./deployManager", + "start": 157, + "end": 174, + "loc": { + "start": { + "line": 4, + "column": 14 + }, + "end": { + "line": 4, + "column": 31 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 174, + "end": 175, + "loc": { + "start": { + "line": 4, + "column": 31 + }, + "end": { + "line": 4, + "column": 32 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 175, + "end": 175, + "loc": { + "start": { + "line": 4, + "column": 32 + }, + "end": { + "line": 4, + "column": 32 + } + } + } + ] +} \ No newline at end of file diff --git a/ast/source/services/deploys/smartContract/smartContractDeployParameters.js.json b/ast/source/services/deploys/smartContract/smartContractDeployParameters.js.json new file mode 100644 index 0000000..d7ebf1e --- /dev/null +++ b/ast/source/services/deploys/smartContract/smartContractDeployParameters.js.json @@ -0,0 +1,7413 @@ +{ + "type": "File", + "start": 0, + "end": 2399, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 74, + "column": 1 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 2399, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 74, + "column": 1 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 95, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 95 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 8, + "end": 45, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 45 + } + }, + "imported": { + "type": "Identifier", + "start": 8, + "end": 45, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 45 + }, + "identifierName": "AbstractSmartContractDeployParameters" + }, + "name": "AbstractSmartContractDeployParameters" + }, + "local": { + "type": "Identifier", + "start": 8, + "end": 45, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 45 + }, + "identifierName": "AbstractSmartContractDeployParameters" + }, + "name": "AbstractSmartContractDeployParameters" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 52, + "end": 94, + "loc": { + "start": { + "line": 1, + "column": 52 + }, + "end": { + "line": 1, + "column": 94 + } + }, + "extra": { + "rawValue": "../abstractSmartContractDeployParameters", + "raw": "\"../abstractSmartContractDeployParameters\"" + }, + "value": "../abstractSmartContractDeployParameters" + } + }, + { + "type": "ImportDeclaration", + "start": 96, + "end": 163, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 67 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 104, + "end": 115, + "loc": { + "start": { + "line": 2, + "column": 8 + }, + "end": { + "line": 2, + "column": 19 + } + }, + "imported": { + "type": "Identifier", + "start": 104, + "end": 115, + "loc": { + "start": { + "line": 2, + "column": 8 + }, + "end": { + "line": 2, + "column": 19 + }, + "identifierName": "CLPublicKey" + }, + "name": "CLPublicKey" + }, + "local": { + "type": "Identifier", + "start": 104, + "end": 115, + "loc": { + "start": { + "line": 2, + "column": 8 + }, + "end": { + "line": 2, + "column": 19 + }, + "identifierName": "CLPublicKey" + }, + "name": "CLPublicKey" + } + }, + { + "type": "ImportSpecifier", + "start": 117, + "end": 127, + "loc": { + "start": { + "line": 2, + "column": 21 + }, + "end": { + "line": 2, + "column": 31 + } + }, + "imported": { + "type": "Identifier", + "start": 117, + "end": 127, + "loc": { + "start": { + "line": 2, + "column": 21 + }, + "end": { + "line": 2, + "column": 31 + }, + "identifierName": "DeployUtil" + }, + "name": "DeployUtil" + }, + "local": { + "type": "Identifier", + "start": 117, + "end": 127, + "loc": { + "start": { + "line": 2, + "column": 21 + }, + "end": { + "line": 2, + "column": 31 + }, + "identifierName": "DeployUtil" + }, + "name": "DeployUtil" + } + }, + { + "type": "ImportSpecifier", + "start": 129, + "end": 140, + "loc": { + "start": { + "line": 2, + "column": 33 + }, + "end": { + "line": 2, + "column": 44 + } + }, + "imported": { + "type": "Identifier", + "start": 129, + "end": 140, + "loc": { + "start": { + "line": 2, + "column": 33 + }, + "end": { + "line": 2, + "column": 44 + }, + "identifierName": "RuntimeArgs" + }, + "name": "RuntimeArgs" + }, + "local": { + "type": "Identifier", + "start": 129, + "end": 140, + "loc": { + "start": { + "line": 2, + "column": 33 + }, + "end": { + "line": 2, + "column": 44 + }, + "identifierName": "RuntimeArgs" + }, + "name": "RuntimeArgs" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 147, + "end": 162, + "loc": { + "start": { + "line": 2, + "column": 51 + }, + "end": { + "line": 2, + "column": 66 + } + }, + "extra": { + "rawValue": "casper-js-sdk", + "raw": "\"casper-js-sdk\"" + }, + "value": "casper-js-sdk" + } + }, + { + "type": "ImportDeclaration", + "start": 164, + "end": 234, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 70 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 172, + "end": 191, + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 3, + "column": 27 + } + }, + "imported": { + "type": "Identifier", + "start": 172, + "end": 191, + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 3, + "column": 27 + }, + "identifierName": "SmartContractResult" + }, + "name": "SmartContractResult" + }, + "local": { + "type": "Identifier", + "start": 172, + "end": 191, + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 3, + "column": 27 + }, + "identifierName": "SmartContractResult" + }, + "name": "SmartContractResult" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 198, + "end": 233, + "loc": { + "start": { + "line": 3, + "column": 34 + }, + "end": { + "line": 3, + "column": 69 + } + }, + "extra": { + "rawValue": "../../results/smartContractResult", + "raw": "\"../../results/smartContractResult\"" + }, + "value": "../../results/smartContractResult" + } + }, + { + "type": "ImportDeclaration", + "start": 235, + "end": 293, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 58 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 243, + "end": 256, + "loc": { + "start": { + "line": 4, + "column": 8 + }, + "end": { + "line": 4, + "column": 21 + } + }, + "imported": { + "type": "Identifier", + "start": 243, + "end": 256, + "loc": { + "start": { + "line": 4, + "column": 8 + }, + "end": { + "line": 4, + "column": 21 + }, + "identifierName": "CurrencyUtils" + }, + "name": "CurrencyUtils" + }, + "local": { + "type": "Identifier", + "start": 243, + "end": 256, + "loc": { + "start": { + "line": 4, + "column": 8 + }, + "end": { + "line": 4, + "column": 21 + }, + "identifierName": "CurrencyUtils" + }, + "name": "CurrencyUtils" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 263, + "end": 292, + "loc": { + "start": { + "line": 4, + "column": 28 + }, + "end": { + "line": 4, + "column": 57 + } + }, + "extra": { + "rawValue": "../../helpers/currencyUtils", + "raw": "\"../../helpers/currencyUtils\"" + }, + "value": "../../helpers/currencyUtils" + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * SmartContractDeployParameters class\n * Class used to define the parameters of a deployment to send a smart contract on the network\n ", + "start": 295, + "end": 436, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 437, + "end": 2399, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 74, + "column": 1 + } + }, + "specifiers": [], + "source": null, + "declaration": { + "type": "ClassDeclaration", + "start": 444, + "end": 2399, + "loc": { + "start": { + "line": 10, + "column": 7 + }, + "end": { + "line": 74, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 450, + "end": 479, + "loc": { + "start": { + "line": 10, + "column": 13 + }, + "end": { + "line": 10, + "column": 42 + }, + "identifierName": "SmartContractDeployParameters" + }, + "name": "SmartContractDeployParameters", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 488, + "end": 525, + "loc": { + "start": { + "line": 10, + "column": 51 + }, + "end": { + "line": 10, + "column": 88 + }, + "identifierName": "AbstractSmartContractDeployParameters" + }, + "name": "AbstractSmartContractDeployParameters" + }, + "body": { + "type": "ClassBody", + "start": 526, + "end": 2399, + "loc": { + "start": { + "line": 10, + "column": 89 + }, + "end": { + "line": 74, + "column": 1 + } + }, + "body": [ + { + "type": "ClassProperty", + "start": 558, + "end": 568, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 14 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 558, + "end": 567, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 13 + }, + "identifierName": "activeKey" + }, + "name": "activeKey", + "leadingComments": null + }, + "value": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 532, + "end": 553, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 25 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 573, + "end": 594, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 25 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 599, + "end": 607, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 12 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 599, + "end": 606, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 11 + }, + "identifierName": "network" + }, + "name": "network", + "leadingComments": null + }, + "value": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 573, + "end": 594, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 25 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "* @type {Buffer} ", + "start": 612, + "end": 633, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 25 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 638, + "end": 658, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 16, + "column": 24 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 638, + "end": 657, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 16, + "column": 23 + }, + "identifierName": "smartContractBuffer" + }, + "name": "smartContractBuffer", + "leadingComments": null + }, + "value": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "* @type {Buffer} ", + "start": 612, + "end": 633, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 25 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "* @type {number} ", + "start": 663, + "end": 684, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 25 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 689, + "end": 693, + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 8 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 689, + "end": 692, + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 7 + }, + "identifierName": "fee" + }, + "name": "fee", + "leadingComments": null + }, + "value": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "* @type {number} ", + "start": 663, + "end": 684, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 25 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {string} activeKey - Current active key in the public hex format\n * @param {string} network - Current network to execute the deployment\n * @param {Buffer} smartContractBuffer - Buffer of the SmartContract previously read\n * @param {number} fee - Runtime fee for the given SmartContract operation\n ", + "start": 699, + "end": 1058, + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 27, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 1063, + "end": 1292, + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 34, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1063, + "end": 1074, + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 28, + "column": 15 + }, + "identifierName": "constructor" + }, + "name": "constructor", + "leadingComments": null + }, + "kind": "constructor", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1075, + "end": 1084, + "loc": { + "start": { + "line": 28, + "column": 16 + }, + "end": { + "line": 28, + "column": 25 + }, + "identifierName": "activeKey" + }, + "name": "activeKey" + }, + { + "type": "Identifier", + "start": 1086, + "end": 1093, + "loc": { + "start": { + "line": 28, + "column": 27 + }, + "end": { + "line": 28, + "column": 34 + }, + "identifierName": "network" + }, + "name": "network" + }, + { + "type": "Identifier", + "start": 1095, + "end": 1114, + "loc": { + "start": { + "line": 28, + "column": 36 + }, + "end": { + "line": 28, + "column": 55 + }, + "identifierName": "smartContractBuffer" + }, + "name": "smartContractBuffer" + }, + { + "type": "Identifier", + "start": 1116, + "end": 1119, + "loc": { + "start": { + "line": 28, + "column": 57 + }, + "end": { + "line": 28, + "column": 60 + }, + "identifierName": "fee" + }, + "name": "fee" + } + ], + "body": { + "type": "BlockStatement", + "start": 1121, + "end": 1292, + "loc": { + "start": { + "line": 28, + "column": 62 + }, + "end": { + "line": 34, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1131, + "end": 1138, + "loc": { + "start": { + "line": 29, + "column": 8 + }, + "end": { + "line": 29, + "column": 15 + } + }, + "expression": { + "type": "CallExpression", + "start": 1131, + "end": 1138, + "loc": { + "start": { + "line": 29, + "column": 8 + }, + "end": { + "line": 29, + "column": 15 + } + }, + "callee": { + "type": "Super", + "start": 1131, + "end": 1136, + "loc": { + "start": { + "line": 29, + "column": 8 + }, + "end": { + "line": 29, + "column": 13 + } + } + }, + "arguments": [] + } + }, + { + "type": "ExpressionStatement", + "start": 1147, + "end": 1174, + "loc": { + "start": { + "line": 30, + "column": 8 + }, + "end": { + "line": 30, + "column": 35 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1147, + "end": 1173, + "loc": { + "start": { + "line": 30, + "column": 8 + }, + "end": { + "line": 30, + "column": 34 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 1147, + "end": 1161, + "loc": { + "start": { + "line": 30, + "column": 8 + }, + "end": { + "line": 30, + "column": 22 + } + }, + "object": { + "type": "ThisExpression", + "start": 1147, + "end": 1151, + "loc": { + "start": { + "line": 30, + "column": 8 + }, + "end": { + "line": 30, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 1152, + "end": 1161, + "loc": { + "start": { + "line": 30, + "column": 13 + }, + "end": { + "line": 30, + "column": 22 + }, + "identifierName": "activeKey" + }, + "name": "activeKey" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 1164, + "end": 1173, + "loc": { + "start": { + "line": 30, + "column": 25 + }, + "end": { + "line": 30, + "column": 34 + }, + "identifierName": "activeKey" + }, + "name": "activeKey" + } + } + }, + { + "type": "ExpressionStatement", + "start": 1183, + "end": 1206, + "loc": { + "start": { + "line": 31, + "column": 8 + }, + "end": { + "line": 31, + "column": 31 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1183, + "end": 1205, + "loc": { + "start": { + "line": 31, + "column": 8 + }, + "end": { + "line": 31, + "column": 30 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 1183, + "end": 1195, + "loc": { + "start": { + "line": 31, + "column": 8 + }, + "end": { + "line": 31, + "column": 20 + } + }, + "object": { + "type": "ThisExpression", + "start": 1183, + "end": 1187, + "loc": { + "start": { + "line": 31, + "column": 8 + }, + "end": { + "line": 31, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 1188, + "end": 1195, + "loc": { + "start": { + "line": 31, + "column": 13 + }, + "end": { + "line": 31, + "column": 20 + }, + "identifierName": "network" + }, + "name": "network" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 1198, + "end": 1205, + "loc": { + "start": { + "line": 31, + "column": 23 + }, + "end": { + "line": 31, + "column": 30 + }, + "identifierName": "network" + }, + "name": "network" + } + } + }, + { + "type": "ExpressionStatement", + "start": 1215, + "end": 1262, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 55 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1215, + "end": 1261, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 54 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 1215, + "end": 1239, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 32 + } + }, + "object": { + "type": "ThisExpression", + "start": 1215, + "end": 1219, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 1220, + "end": 1239, + "loc": { + "start": { + "line": 32, + "column": 13 + }, + "end": { + "line": 32, + "column": 32 + }, + "identifierName": "smartContractBuffer" + }, + "name": "smartContractBuffer" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 1242, + "end": 1261, + "loc": { + "start": { + "line": 32, + "column": 35 + }, + "end": { + "line": 32, + "column": 54 + }, + "identifierName": "smartContractBuffer" + }, + "name": "smartContractBuffer" + } + } + }, + { + "type": "ExpressionStatement", + "start": 1271, + "end": 1286, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 33, + "column": 23 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1271, + "end": 1285, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 33, + "column": 22 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 1271, + "end": 1279, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 33, + "column": 16 + } + }, + "object": { + "type": "ThisExpression", + "start": 1271, + "end": 1275, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 33, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 1276, + "end": 1279, + "loc": { + "start": { + "line": 33, + "column": 13 + }, + "end": { + "line": 33, + "column": 16 + }, + "identifierName": "fee" + }, + "name": "fee" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 1282, + "end": 1285, + "loc": { + "start": { + "line": 33, + "column": 19 + }, + "end": { + "line": 33, + "column": 22 + }, + "identifierName": "fee" + }, + "name": "fee" + } + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {string} activeKey - Current active key in the public hex format\n * @param {string} network - Current network to execute the deployment\n * @param {Buffer} smartContractBuffer - Buffer of the SmartContract previously read\n * @param {number} fee - Runtime fee for the given SmartContract operation\n ", + "start": 699, + "end": 1058, + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 27, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Get the deployParams deploy argument\n *\n * @return {DeployUtil.DeployParams} - Return a DeployParams\n ", + "start": 1298, + "end": 1425, + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 40, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 1430, + "end": 1585, + "loc": { + "start": { + "line": 41, + "column": 4 + }, + "end": { + "line": 46, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1434, + "end": 1446, + "loc": { + "start": { + "line": 41, + "column": 8 + }, + "end": { + "line": 41, + "column": 20 + }, + "identifierName": "deployParams" + }, + "name": "deployParams" + }, + "kind": "get", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 1449, + "end": 1585, + "loc": { + "start": { + "line": 41, + "column": 23 + }, + "end": { + "line": 46, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 1459, + "end": 1579, + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 45, + "column": 10 + } + }, + "argument": { + "type": "NewExpression", + "start": 1466, + "end": 1578, + "loc": { + "start": { + "line": 42, + "column": 15 + }, + "end": { + "line": 45, + "column": 9 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1470, + "end": 1493, + "loc": { + "start": { + "line": 42, + "column": 19 + }, + "end": { + "line": 42, + "column": 42 + } + }, + "object": { + "type": "Identifier", + "start": 1470, + "end": 1480, + "loc": { + "start": { + "line": 42, + "column": 19 + }, + "end": { + "line": 42, + "column": 29 + }, + "identifierName": "DeployUtil" + }, + "name": "DeployUtil" + }, + "property": { + "type": "Identifier", + "start": 1481, + "end": 1493, + "loc": { + "start": { + "line": 42, + "column": 30 + }, + "end": { + "line": 42, + "column": 42 + }, + "identifierName": "DeployParams" + }, + "name": "DeployParams" + }, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 1507, + "end": 1542, + "loc": { + "start": { + "line": 43, + "column": 12 + }, + "end": { + "line": 43, + "column": 47 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1507, + "end": 1526, + "loc": { + "start": { + "line": 43, + "column": 12 + }, + "end": { + "line": 43, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 1507, + "end": 1518, + "loc": { + "start": { + "line": 43, + "column": 12 + }, + "end": { + "line": 43, + "column": 23 + }, + "identifierName": "CLPublicKey" + }, + "name": "CLPublicKey" + }, + "property": { + "type": "Identifier", + "start": 1519, + "end": 1526, + "loc": { + "start": { + "line": 43, + "column": 24 + }, + "end": { + "line": 43, + "column": 31 + }, + "identifierName": "fromHex" + }, + "name": "fromHex" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 1527, + "end": 1541, + "loc": { + "start": { + "line": 43, + "column": 32 + }, + "end": { + "line": 43, + "column": 46 + } + }, + "object": { + "type": "ThisExpression", + "start": 1527, + "end": 1531, + "loc": { + "start": { + "line": 43, + "column": 32 + }, + "end": { + "line": 43, + "column": 36 + } + } + }, + "property": { + "type": "Identifier", + "start": 1532, + "end": 1541, + "loc": { + "start": { + "line": 43, + "column": 37 + }, + "end": { + "line": 43, + "column": 46 + }, + "identifierName": "activeKey" + }, + "name": "activeKey" + }, + "computed": false + } + ] + }, + { + "type": "MemberExpression", + "start": 1556, + "end": 1568, + "loc": { + "start": { + "line": 44, + "column": 12 + }, + "end": { + "line": 44, + "column": 24 + } + }, + "object": { + "type": "ThisExpression", + "start": 1556, + "end": 1560, + "loc": { + "start": { + "line": 44, + "column": 12 + }, + "end": { + "line": 44, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "start": 1561, + "end": 1568, + "loc": { + "start": { + "line": 44, + "column": 17 + }, + "end": { + "line": 44, + "column": 24 + }, + "identifierName": "network" + }, + "name": "network" + }, + "computed": false + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Get the deployParams deploy argument\n *\n * @return {DeployUtil.DeployParams} - Return a DeployParams\n ", + "start": 1298, + "end": 1425, + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 40, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Get the session deploy argument\n *\n * @return {DeployUtil.ExecutableDeployItem} - Return a session with a SmartContract stored by hash on the network\n ", + "start": 1591, + "end": 1767, + "loc": { + "start": { + "line": 48, + "column": 4 + }, + "end": { + "line": 52, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 1772, + "end": 1923, + "loc": { + "start": { + "line": 53, + "column": 4 + }, + "end": { + "line": 55, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1776, + "end": 1783, + "loc": { + "start": { + "line": 53, + "column": 8 + }, + "end": { + "line": 53, + "column": 15 + }, + "identifierName": "session" + }, + "name": "session" + }, + "kind": "get", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 1786, + "end": 1923, + "loc": { + "start": { + "line": 53, + "column": 18 + }, + "end": { + "line": 55, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 1796, + "end": 1917, + "loc": { + "start": { + "line": 54, + "column": 8 + }, + "end": { + "line": 54, + "column": 129 + } + }, + "argument": { + "type": "CallExpression", + "start": 1803, + "end": 1916, + "loc": { + "start": { + "line": 54, + "column": 15 + }, + "end": { + "line": 54, + "column": 128 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1803, + "end": 1849, + "loc": { + "start": { + "line": 54, + "column": 15 + }, + "end": { + "line": 54, + "column": 61 + } + }, + "object": { + "type": "MemberExpression", + "start": 1803, + "end": 1834, + "loc": { + "start": { + "line": 54, + "column": 15 + }, + "end": { + "line": 54, + "column": 46 + } + }, + "object": { + "type": "Identifier", + "start": 1803, + "end": 1813, + "loc": { + "start": { + "line": 54, + "column": 15 + }, + "end": { + "line": 54, + "column": 25 + }, + "identifierName": "DeployUtil" + }, + "name": "DeployUtil" + }, + "property": { + "type": "Identifier", + "start": 1814, + "end": 1834, + "loc": { + "start": { + "line": 54, + "column": 26 + }, + "end": { + "line": 54, + "column": 46 + }, + "identifierName": "ExecutableDeployItem" + }, + "name": "ExecutableDeployItem" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1835, + "end": 1849, + "loc": { + "start": { + "line": 54, + "column": 47 + }, + "end": { + "line": 54, + "column": 61 + }, + "identifierName": "newModuleBytes" + }, + "name": "newModuleBytes" + }, + "computed": false + }, + "arguments": [ + { + "type": "NewExpression", + "start": 1850, + "end": 1890, + "loc": { + "start": { + "line": 54, + "column": 62 + }, + "end": { + "line": 54, + "column": 102 + } + }, + "callee": { + "type": "Identifier", + "start": 1854, + "end": 1864, + "loc": { + "start": { + "line": 54, + "column": 66 + }, + "end": { + "line": 54, + "column": 76 + }, + "identifierName": "Uint8Array" + }, + "name": "Uint8Array" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 1865, + "end": 1889, + "loc": { + "start": { + "line": 54, + "column": 77 + }, + "end": { + "line": 54, + "column": 101 + } + }, + "object": { + "type": "ThisExpression", + "start": 1865, + "end": 1869, + "loc": { + "start": { + "line": 54, + "column": 77 + }, + "end": { + "line": 54, + "column": 81 + } + } + }, + "property": { + "type": "Identifier", + "start": 1870, + "end": 1889, + "loc": { + "start": { + "line": 54, + "column": 82 + }, + "end": { + "line": 54, + "column": 101 + }, + "identifierName": "smartContractBuffer" + }, + "name": "smartContractBuffer" + }, + "computed": false + } + ] + }, + { + "type": "CallExpression", + "start": 1892, + "end": 1915, + "loc": { + "start": { + "line": 54, + "column": 104 + }, + "end": { + "line": 54, + "column": 127 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1892, + "end": 1911, + "loc": { + "start": { + "line": 54, + "column": 104 + }, + "end": { + "line": 54, + "column": 123 + } + }, + "object": { + "type": "Identifier", + "start": 1892, + "end": 1903, + "loc": { + "start": { + "line": 54, + "column": 104 + }, + "end": { + "line": 54, + "column": 115 + }, + "identifierName": "RuntimeArgs" + }, + "name": "RuntimeArgs" + }, + "property": { + "type": "Identifier", + "start": 1904, + "end": 1911, + "loc": { + "start": { + "line": 54, + "column": 116 + }, + "end": { + "line": 54, + "column": 123 + }, + "identifierName": "fromMap" + }, + "name": "fromMap" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 1912, + "end": 1914, + "loc": { + "start": { + "line": 54, + "column": 124 + }, + "end": { + "line": 54, + "column": 126 + } + }, + "properties": [] + } + ] + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Get the session deploy argument\n *\n * @return {DeployUtil.ExecutableDeployItem} - Return a session with a SmartContract stored by hash on the network\n ", + "start": 1591, + "end": 1767, + "loc": { + "start": { + "line": 48, + "column": 4 + }, + "end": { + "line": 52, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Get the payment deploy argument\n *\n * @return {DeployUtil.ExecutableDeployItem} - Return a standard payment\n ", + "start": 1929, + "end": 2063, + "loc": { + "start": { + "line": 57, + "column": 4 + }, + "end": { + "line": 61, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 2068, + "end": 2178, + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 64, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2072, + "end": 2079, + "loc": { + "start": { + "line": 62, + "column": 8 + }, + "end": { + "line": 62, + "column": 15 + }, + "identifierName": "payment" + }, + "name": "payment" + }, + "kind": "get", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 2082, + "end": 2178, + "loc": { + "start": { + "line": 62, + "column": 18 + }, + "end": { + "line": 64, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 2092, + "end": 2172, + "loc": { + "start": { + "line": 63, + "column": 8 + }, + "end": { + "line": 63, + "column": 88 + } + }, + "argument": { + "type": "CallExpression", + "start": 2099, + "end": 2171, + "loc": { + "start": { + "line": 63, + "column": 15 + }, + "end": { + "line": 63, + "column": 87 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2099, + "end": 2125, + "loc": { + "start": { + "line": 63, + "column": 15 + }, + "end": { + "line": 63, + "column": 41 + } + }, + "object": { + "type": "Identifier", + "start": 2099, + "end": 2109, + "loc": { + "start": { + "line": 63, + "column": 15 + }, + "end": { + "line": 63, + "column": 25 + }, + "identifierName": "DeployUtil" + }, + "name": "DeployUtil" + }, + "property": { + "type": "Identifier", + "start": 2110, + "end": 2125, + "loc": { + "start": { + "line": 63, + "column": 26 + }, + "end": { + "line": 63, + "column": 41 + }, + "identifierName": "standardPayment" + }, + "name": "standardPayment" + }, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 2126, + "end": 2170, + "loc": { + "start": { + "line": 63, + "column": 42 + }, + "end": { + "line": 63, + "column": 86 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2126, + "end": 2160, + "loc": { + "start": { + "line": 63, + "column": 42 + }, + "end": { + "line": 63, + "column": 76 + } + }, + "object": { + "type": "Identifier", + "start": 2126, + "end": 2139, + "loc": { + "start": { + "line": 63, + "column": 42 + }, + "end": { + "line": 63, + "column": 55 + }, + "identifierName": "CurrencyUtils" + }, + "name": "CurrencyUtils" + }, + "property": { + "type": "Identifier", + "start": 2140, + "end": 2160, + "loc": { + "start": { + "line": 63, + "column": 56 + }, + "end": { + "line": 63, + "column": 76 + }, + "identifierName": "convertCasperToMotes" + }, + "name": "convertCasperToMotes" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 2161, + "end": 2169, + "loc": { + "start": { + "line": 63, + "column": 77 + }, + "end": { + "line": 63, + "column": 85 + } + }, + "object": { + "type": "ThisExpression", + "start": 2161, + "end": 2165, + "loc": { + "start": { + "line": 63, + "column": 77 + }, + "end": { + "line": 63, + "column": 81 + } + } + }, + "property": { + "type": "Identifier", + "start": 2166, + "end": 2169, + "loc": { + "start": { + "line": 63, + "column": 82 + }, + "end": { + "line": 63, + "column": 85 + }, + "identifierName": "fee" + }, + "name": "fee" + }, + "computed": false + } + ] + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Get the payment deploy argument\n *\n * @return {DeployUtil.ExecutableDeployItem} - Return a standard payment\n ", + "start": 1929, + "end": 2063, + "loc": { + "start": { + "line": 57, + "column": 4 + }, + "end": { + "line": 61, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Get a DeployResult constructor\n *\n * @return {DeployResult.constructor} - Return the constructor of a given DeployResult\n ", + "start": 2184, + "end": 2331, + "loc": { + "start": { + "line": 66, + "column": 4 + }, + "end": { + "line": 70, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 2336, + "end": 2397, + "loc": { + "start": { + "line": 71, + "column": 4 + }, + "end": { + "line": 73, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2340, + "end": 2352, + "loc": { + "start": { + "line": 71, + "column": 8 + }, + "end": { + "line": 71, + "column": 20 + }, + "identifierName": "deployResult" + }, + "name": "deployResult" + }, + "kind": "get", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 2355, + "end": 2397, + "loc": { + "start": { + "line": 71, + "column": 23 + }, + "end": { + "line": 73, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 2365, + "end": 2391, + "loc": { + "start": { + "line": 72, + "column": 8 + }, + "end": { + "line": 72, + "column": 34 + } + }, + "argument": { + "type": "Identifier", + "start": 2372, + "end": 2391, + "loc": { + "start": { + "line": 72, + "column": 15 + }, + "end": { + "line": 72, + "column": 34 + }, + "identifierName": "SmartContractResult" + }, + "name": "SmartContractResult" + } + } + ], + "directives": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Get a DeployResult constructor\n *\n * @return {DeployResult.constructor} - Return the constructor of a given DeployResult\n ", + "start": 2184, + "end": 2331, + "loc": { + "start": { + "line": 66, + "column": 4 + }, + "end": { + "line": 70, + "column": 7 + } + } + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * SmartContractDeployParameters class\n * Class used to define the parameters of a deployment to send a smart contract on the network\n ", + "start": 295, + "end": 436, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * SmartContractDeployParameters class\n * Class used to define the parameters of a deployment to send a smart contract on the network\n ", + "start": 295, + "end": 436, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + } + ] + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\n * SmartContractDeployParameters class\n * Class used to define the parameters of a deployment to send a smart contract on the network\n ", + "start": 295, + "end": 436, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 532, + "end": 553, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 25 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 573, + "end": 594, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 25 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {Buffer} ", + "start": 612, + "end": 633, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 25 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {number} ", + "start": 663, + "end": 684, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 25 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {string} activeKey - Current active key in the public hex format\n * @param {string} network - Current network to execute the deployment\n * @param {Buffer} smartContractBuffer - Buffer of the SmartContract previously read\n * @param {number} fee - Runtime fee for the given SmartContract operation\n ", + "start": 699, + "end": 1058, + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 27, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Get the deployParams deploy argument\n *\n * @return {DeployUtil.DeployParams} - Return a DeployParams\n ", + "start": 1298, + "end": 1425, + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 40, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Get the session deploy argument\n *\n * @return {DeployUtil.ExecutableDeployItem} - Return a session with a SmartContract stored by hash on the network\n ", + "start": 1591, + "end": 1767, + "loc": { + "start": { + "line": 48, + "column": 4 + }, + "end": { + "line": 52, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Get the payment deploy argument\n *\n * @return {DeployUtil.ExecutableDeployItem} - Return a standard payment\n ", + "start": 1929, + "end": 2063, + "loc": { + "start": { + "line": 57, + "column": 4 + }, + "end": { + "line": 61, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Get a DeployResult constructor\n *\n * @return {DeployResult.constructor} - Return the constructor of a given DeployResult\n ", + "start": 2184, + "end": 2331, + "loc": { + "start": { + "line": 66, + "column": 4 + }, + "end": { + "line": 70, + "column": 7 + } + } + } + ], + "tokens": [ + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 0, + "end": 6, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7, + "end": 8, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "AbstractSmartContractDeployParameters", + "start": 8, + "end": 45, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 45 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 45, + "end": 46, + "loc": { + "start": { + "line": 1, + "column": 45 + }, + "end": { + "line": 1, + "column": 46 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 47, + "end": 51, + "loc": { + "start": { + "line": 1, + "column": 47 + }, + "end": { + "line": 1, + "column": 51 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "../abstractSmartContractDeployParameters", + "start": 52, + "end": 94, + "loc": { + "start": { + "line": 1, + "column": 52 + }, + "end": { + "line": 1, + "column": 94 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 94, + "end": 95, + "loc": { + "start": { + "line": 1, + "column": 94 + }, + "end": { + "line": 1, + "column": 95 + } + } + }, + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 96, + "end": 102, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 103, + "end": 104, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CLPublicKey", + "start": 104, + "end": 115, + "loc": { + "start": { + "line": 2, + "column": 8 + }, + "end": { + "line": 2, + "column": 19 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 115, + "end": 116, + "loc": { + "start": { + "line": 2, + "column": 19 + }, + "end": { + "line": 2, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "DeployUtil", + "start": 117, + "end": 127, + "loc": { + "start": { + "line": 2, + "column": 21 + }, + "end": { + "line": 2, + "column": 31 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 127, + "end": 128, + "loc": { + "start": { + "line": 2, + "column": 31 + }, + "end": { + "line": 2, + "column": 32 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "RuntimeArgs", + "start": 129, + "end": 140, + "loc": { + "start": { + "line": 2, + "column": 33 + }, + "end": { + "line": 2, + "column": 44 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 140, + "end": 141, + "loc": { + "start": { + "line": 2, + "column": 44 + }, + "end": { + "line": 2, + "column": 45 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 142, + "end": 146, + "loc": { + "start": { + "line": 2, + "column": 46 + }, + "end": { + "line": 2, + "column": 50 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "casper-js-sdk", + "start": 147, + "end": 162, + "loc": { + "start": { + "line": 2, + "column": 51 + }, + "end": { + "line": 2, + "column": 66 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 162, + "end": 163, + "loc": { + "start": { + "line": 2, + "column": 66 + }, + "end": { + "line": 2, + "column": 67 + } + } + }, + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 164, + "end": 170, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 171, + "end": 172, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "SmartContractResult", + "start": 172, + "end": 191, + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 3, + "column": 27 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 191, + "end": 192, + "loc": { + "start": { + "line": 3, + "column": 27 + }, + "end": { + "line": 3, + "column": 28 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 193, + "end": 197, + "loc": { + "start": { + "line": 3, + "column": 29 + }, + "end": { + "line": 3, + "column": 33 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "../../results/smartContractResult", + "start": 198, + "end": 233, + "loc": { + "start": { + "line": 3, + "column": 34 + }, + "end": { + "line": 3, + "column": 69 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 233, + "end": 234, + "loc": { + "start": { + "line": 3, + "column": 69 + }, + "end": { + "line": 3, + "column": 70 + } + } + }, + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 235, + "end": 241, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 242, + "end": 243, + "loc": { + "start": { + "line": 4, + "column": 7 + }, + "end": { + "line": 4, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CurrencyUtils", + "start": 243, + "end": 256, + "loc": { + "start": { + "line": 4, + "column": 8 + }, + "end": { + "line": 4, + "column": 21 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 256, + "end": 257, + "loc": { + "start": { + "line": 4, + "column": 21 + }, + "end": { + "line": 4, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 258, + "end": 262, + "loc": { + "start": { + "line": 4, + "column": 23 + }, + "end": { + "line": 4, + "column": 27 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "../../helpers/currencyUtils", + "start": 263, + "end": 292, + "loc": { + "start": { + "line": 4, + "column": 28 + }, + "end": { + "line": 4, + "column": 57 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 292, + "end": 293, + "loc": { + "start": { + "line": 4, + "column": 57 + }, + "end": { + "line": 4, + "column": 58 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * SmartContractDeployParameters class\n * Class used to define the parameters of a deployment to send a smart contract on the network\n ", + "start": 295, + "end": 436, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 437, + "end": 443, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 10, + "column": 6 + } + } + }, + { + "type": { + "label": "class", + "keyword": "class", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "class", + "start": 444, + "end": 449, + "loc": { + "start": { + "line": 10, + "column": 7 + }, + "end": { + "line": 10, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "SmartContractDeployParameters", + "start": 450, + "end": 479, + "loc": { + "start": { + "line": 10, + "column": 13 + }, + "end": { + "line": 10, + "column": 42 + } + } + }, + { + "type": { + "label": "extends", + "keyword": "extends", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "extends", + "start": 480, + "end": 487, + "loc": { + "start": { + "line": 10, + "column": 43 + }, + "end": { + "line": 10, + "column": 50 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "AbstractSmartContractDeployParameters", + "start": 488, + "end": 525, + "loc": { + "start": { + "line": 10, + "column": 51 + }, + "end": { + "line": 10, + "column": 88 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 526, + "end": 527, + "loc": { + "start": { + "line": 10, + "column": 89 + }, + "end": { + "line": 10, + "column": 90 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 532, + "end": 553, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "activeKey", + "start": 558, + "end": 567, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 13 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 567, + "end": 568, + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 14 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 573, + "end": 594, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "network", + "start": 599, + "end": 606, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 11 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 606, + "end": 607, + "loc": { + "start": { + "line": 14, + "column": 11 + }, + "end": { + "line": 14, + "column": 12 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {Buffer} ", + "start": 612, + "end": 633, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "smartContractBuffer", + "start": 638, + "end": 657, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 16, + "column": 23 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 657, + "end": 658, + "loc": { + "start": { + "line": 16, + "column": 23 + }, + "end": { + "line": 16, + "column": 24 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {number} ", + "start": 663, + "end": 684, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "fee", + "start": 689, + "end": 692, + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 7 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 692, + "end": 693, + "loc": { + "start": { + "line": 18, + "column": 7 + }, + "end": { + "line": 18, + "column": 8 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {string} activeKey - Current active key in the public hex format\n * @param {string} network - Current network to execute the deployment\n * @param {Buffer} smartContractBuffer - Buffer of the SmartContract previously read\n * @param {number} fee - Runtime fee for the given SmartContract operation\n ", + "start": 699, + "end": 1058, + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 27, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "constructor", + "start": 1063, + "end": 1074, + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 28, + "column": 15 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1074, + "end": 1075, + "loc": { + "start": { + "line": 28, + "column": 15 + }, + "end": { + "line": 28, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "activeKey", + "start": 1075, + "end": 1084, + "loc": { + "start": { + "line": 28, + "column": 16 + }, + "end": { + "line": 28, + "column": 25 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1084, + "end": 1085, + "loc": { + "start": { + "line": 28, + "column": 25 + }, + "end": { + "line": 28, + "column": 26 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "network", + "start": 1086, + "end": 1093, + "loc": { + "start": { + "line": 28, + "column": 27 + }, + "end": { + "line": 28, + "column": 34 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1093, + "end": 1094, + "loc": { + "start": { + "line": 28, + "column": 34 + }, + "end": { + "line": 28, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "smartContractBuffer", + "start": 1095, + "end": 1114, + "loc": { + "start": { + "line": 28, + "column": 36 + }, + "end": { + "line": 28, + "column": 55 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1114, + "end": 1115, + "loc": { + "start": { + "line": 28, + "column": 55 + }, + "end": { + "line": 28, + "column": 56 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "fee", + "start": 1116, + "end": 1119, + "loc": { + "start": { + "line": 28, + "column": 57 + }, + "end": { + "line": 28, + "column": 60 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1119, + "end": 1120, + "loc": { + "start": { + "line": 28, + "column": 60 + }, + "end": { + "line": 28, + "column": 61 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1121, + "end": 1122, + "loc": { + "start": { + "line": 28, + "column": 62 + }, + "end": { + "line": 28, + "column": 63 + } + } + }, + { + "type": { + "label": "super", + "keyword": "super", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "super", + "start": 1131, + "end": 1136, + "loc": { + "start": { + "line": 29, + "column": 8 + }, + "end": { + "line": 29, + "column": 13 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1136, + "end": 1137, + "loc": { + "start": { + "line": 29, + "column": 13 + }, + "end": { + "line": 29, + "column": 14 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1137, + "end": 1138, + "loc": { + "start": { + "line": 29, + "column": 14 + }, + "end": { + "line": 29, + "column": 15 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 1147, + "end": 1151, + "loc": { + "start": { + "line": 30, + "column": 8 + }, + "end": { + "line": 30, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1151, + "end": 1152, + "loc": { + "start": { + "line": 30, + "column": 12 + }, + "end": { + "line": 30, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "activeKey", + "start": 1152, + "end": 1161, + "loc": { + "start": { + "line": 30, + "column": 13 + }, + "end": { + "line": 30, + "column": 22 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1162, + "end": 1163, + "loc": { + "start": { + "line": 30, + "column": 23 + }, + "end": { + "line": 30, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "activeKey", + "start": 1164, + "end": 1173, + "loc": { + "start": { + "line": 30, + "column": 25 + }, + "end": { + "line": 30, + "column": 34 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1173, + "end": 1174, + "loc": { + "start": { + "line": 30, + "column": 34 + }, + "end": { + "line": 30, + "column": 35 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 1183, + "end": 1187, + "loc": { + "start": { + "line": 31, + "column": 8 + }, + "end": { + "line": 31, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1187, + "end": 1188, + "loc": { + "start": { + "line": 31, + "column": 12 + }, + "end": { + "line": 31, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "network", + "start": 1188, + "end": 1195, + "loc": { + "start": { + "line": 31, + "column": 13 + }, + "end": { + "line": 31, + "column": 20 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1196, + "end": 1197, + "loc": { + "start": { + "line": 31, + "column": 21 + }, + "end": { + "line": 31, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "network", + "start": 1198, + "end": 1205, + "loc": { + "start": { + "line": 31, + "column": 23 + }, + "end": { + "line": 31, + "column": 30 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1205, + "end": 1206, + "loc": { + "start": { + "line": 31, + "column": 30 + }, + "end": { + "line": 31, + "column": 31 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 1215, + "end": 1219, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1219, + "end": 1220, + "loc": { + "start": { + "line": 32, + "column": 12 + }, + "end": { + "line": 32, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "smartContractBuffer", + "start": 1220, + "end": 1239, + "loc": { + "start": { + "line": 32, + "column": 13 + }, + "end": { + "line": 32, + "column": 32 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1240, + "end": 1241, + "loc": { + "start": { + "line": 32, + "column": 33 + }, + "end": { + "line": 32, + "column": 34 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "smartContractBuffer", + "start": 1242, + "end": 1261, + "loc": { + "start": { + "line": 32, + "column": 35 + }, + "end": { + "line": 32, + "column": 54 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1261, + "end": 1262, + "loc": { + "start": { + "line": 32, + "column": 54 + }, + "end": { + "line": 32, + "column": 55 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 1271, + "end": 1275, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 33, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1275, + "end": 1276, + "loc": { + "start": { + "line": 33, + "column": 12 + }, + "end": { + "line": 33, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "fee", + "start": 1276, + "end": 1279, + "loc": { + "start": { + "line": 33, + "column": 13 + }, + "end": { + "line": 33, + "column": 16 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1280, + "end": 1281, + "loc": { + "start": { + "line": 33, + "column": 17 + }, + "end": { + "line": 33, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "fee", + "start": 1282, + "end": 1285, + "loc": { + "start": { + "line": 33, + "column": 19 + }, + "end": { + "line": 33, + "column": 22 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1285, + "end": 1286, + "loc": { + "start": { + "line": 33, + "column": 22 + }, + "end": { + "line": 33, + "column": 23 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1291, + "end": 1292, + "loc": { + "start": { + "line": 34, + "column": 4 + }, + "end": { + "line": 34, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Get the deployParams deploy argument\n *\n * @return {DeployUtil.DeployParams} - Return a DeployParams\n ", + "start": 1298, + "end": 1425, + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 40, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "get", + "start": 1430, + "end": 1433, + "loc": { + "start": { + "line": 41, + "column": 4 + }, + "end": { + "line": 41, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "deployParams", + "start": 1434, + "end": 1446, + "loc": { + "start": { + "line": 41, + "column": 8 + }, + "end": { + "line": 41, + "column": 20 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1446, + "end": 1447, + "loc": { + "start": { + "line": 41, + "column": 20 + }, + "end": { + "line": 41, + "column": 21 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1447, + "end": 1448, + "loc": { + "start": { + "line": 41, + "column": 21 + }, + "end": { + "line": 41, + "column": 22 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1449, + "end": 1450, + "loc": { + "start": { + "line": 41, + "column": 23 + }, + "end": { + "line": 41, + "column": 24 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 1459, + "end": 1465, + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 42, + "column": 14 + } + } + }, + { + "type": { + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "new", + "start": 1466, + "end": 1469, + "loc": { + "start": { + "line": 42, + "column": 15 + }, + "end": { + "line": 42, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "DeployUtil", + "start": 1470, + "end": 1480, + "loc": { + "start": { + "line": 42, + "column": 19 + }, + "end": { + "line": 42, + "column": 29 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1480, + "end": 1481, + "loc": { + "start": { + "line": 42, + "column": 29 + }, + "end": { + "line": 42, + "column": 30 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "DeployParams", + "start": 1481, + "end": 1493, + "loc": { + "start": { + "line": 42, + "column": 30 + }, + "end": { + "line": 42, + "column": 42 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1493, + "end": 1494, + "loc": { + "start": { + "line": 42, + "column": 42 + }, + "end": { + "line": 42, + "column": 43 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CLPublicKey", + "start": 1507, + "end": 1518, + "loc": { + "start": { + "line": 43, + "column": 12 + }, + "end": { + "line": 43, + "column": 23 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1518, + "end": 1519, + "loc": { + "start": { + "line": 43, + "column": 23 + }, + "end": { + "line": 43, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "fromHex", + "start": 1519, + "end": 1526, + "loc": { + "start": { + "line": 43, + "column": 24 + }, + "end": { + "line": 43, + "column": 31 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1526, + "end": 1527, + "loc": { + "start": { + "line": 43, + "column": 31 + }, + "end": { + "line": 43, + "column": 32 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 1527, + "end": 1531, + "loc": { + "start": { + "line": 43, + "column": 32 + }, + "end": { + "line": 43, + "column": 36 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1531, + "end": 1532, + "loc": { + "start": { + "line": 43, + "column": 36 + }, + "end": { + "line": 43, + "column": 37 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "activeKey", + "start": 1532, + "end": 1541, + "loc": { + "start": { + "line": 43, + "column": 37 + }, + "end": { + "line": 43, + "column": 46 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1541, + "end": 1542, + "loc": { + "start": { + "line": 43, + "column": 46 + }, + "end": { + "line": 43, + "column": 47 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1542, + "end": 1543, + "loc": { + "start": { + "line": 43, + "column": 47 + }, + "end": { + "line": 43, + "column": 48 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 1556, + "end": 1560, + "loc": { + "start": { + "line": 44, + "column": 12 + }, + "end": { + "line": 44, + "column": 16 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1560, + "end": 1561, + "loc": { + "start": { + "line": 44, + "column": 16 + }, + "end": { + "line": 44, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "network", + "start": 1561, + "end": 1568, + "loc": { + "start": { + "line": 44, + "column": 17 + }, + "end": { + "line": 44, + "column": 24 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1577, + "end": 1578, + "loc": { + "start": { + "line": 45, + "column": 8 + }, + "end": { + "line": 45, + "column": 9 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1578, + "end": 1579, + "loc": { + "start": { + "line": 45, + "column": 9 + }, + "end": { + "line": 45, + "column": 10 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1584, + "end": 1585, + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 46, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Get the session deploy argument\n *\n * @return {DeployUtil.ExecutableDeployItem} - Return a session with a SmartContract stored by hash on the network\n ", + "start": 1591, + "end": 1767, + "loc": { + "start": { + "line": 48, + "column": 4 + }, + "end": { + "line": 52, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "get", + "start": 1772, + "end": 1775, + "loc": { + "start": { + "line": 53, + "column": 4 + }, + "end": { + "line": 53, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "session", + "start": 1776, + "end": 1783, + "loc": { + "start": { + "line": 53, + "column": 8 + }, + "end": { + "line": 53, + "column": 15 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1783, + "end": 1784, + "loc": { + "start": { + "line": 53, + "column": 15 + }, + "end": { + "line": 53, + "column": 16 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1784, + "end": 1785, + "loc": { + "start": { + "line": 53, + "column": 16 + }, + "end": { + "line": 53, + "column": 17 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1786, + "end": 1787, + "loc": { + "start": { + "line": 53, + "column": 18 + }, + "end": { + "line": 53, + "column": 19 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 1796, + "end": 1802, + "loc": { + "start": { + "line": 54, + "column": 8 + }, + "end": { + "line": 54, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "DeployUtil", + "start": 1803, + "end": 1813, + "loc": { + "start": { + "line": 54, + "column": 15 + }, + "end": { + "line": 54, + "column": 25 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1813, + "end": 1814, + "loc": { + "start": { + "line": 54, + "column": 25 + }, + "end": { + "line": 54, + "column": 26 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "ExecutableDeployItem", + "start": 1814, + "end": 1834, + "loc": { + "start": { + "line": 54, + "column": 26 + }, + "end": { + "line": 54, + "column": 46 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1834, + "end": 1835, + "loc": { + "start": { + "line": 54, + "column": 46 + }, + "end": { + "line": 54, + "column": 47 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "newModuleBytes", + "start": 1835, + "end": 1849, + "loc": { + "start": { + "line": 54, + "column": 47 + }, + "end": { + "line": 54, + "column": 61 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1849, + "end": 1850, + "loc": { + "start": { + "line": 54, + "column": 61 + }, + "end": { + "line": 54, + "column": 62 + } + } + }, + { + "type": { + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "new", + "start": 1850, + "end": 1853, + "loc": { + "start": { + "line": 54, + "column": 62 + }, + "end": { + "line": 54, + "column": 65 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Uint8Array", + "start": 1854, + "end": 1864, + "loc": { + "start": { + "line": 54, + "column": 66 + }, + "end": { + "line": 54, + "column": 76 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1864, + "end": 1865, + "loc": { + "start": { + "line": 54, + "column": 76 + }, + "end": { + "line": 54, + "column": 77 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 1865, + "end": 1869, + "loc": { + "start": { + "line": 54, + "column": 77 + }, + "end": { + "line": 54, + "column": 81 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1869, + "end": 1870, + "loc": { + "start": { + "line": 54, + "column": 81 + }, + "end": { + "line": 54, + "column": 82 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "smartContractBuffer", + "start": 1870, + "end": 1889, + "loc": { + "start": { + "line": 54, + "column": 82 + }, + "end": { + "line": 54, + "column": 101 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1889, + "end": 1890, + "loc": { + "start": { + "line": 54, + "column": 101 + }, + "end": { + "line": 54, + "column": 102 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1890, + "end": 1891, + "loc": { + "start": { + "line": 54, + "column": 102 + }, + "end": { + "line": 54, + "column": 103 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "RuntimeArgs", + "start": 1892, + "end": 1903, + "loc": { + "start": { + "line": 54, + "column": 104 + }, + "end": { + "line": 54, + "column": 115 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1903, + "end": 1904, + "loc": { + "start": { + "line": 54, + "column": 115 + }, + "end": { + "line": 54, + "column": 116 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "fromMap", + "start": 1904, + "end": 1911, + "loc": { + "start": { + "line": 54, + "column": 116 + }, + "end": { + "line": 54, + "column": 123 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1911, + "end": 1912, + "loc": { + "start": { + "line": 54, + "column": 123 + }, + "end": { + "line": 54, + "column": 124 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1912, + "end": 1913, + "loc": { + "start": { + "line": 54, + "column": 124 + }, + "end": { + "line": 54, + "column": 125 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1913, + "end": 1914, + "loc": { + "start": { + "line": 54, + "column": 125 + }, + "end": { + "line": 54, + "column": 126 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1914, + "end": 1915, + "loc": { + "start": { + "line": 54, + "column": 126 + }, + "end": { + "line": 54, + "column": 127 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1915, + "end": 1916, + "loc": { + "start": { + "line": 54, + "column": 127 + }, + "end": { + "line": 54, + "column": 128 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1916, + "end": 1917, + "loc": { + "start": { + "line": 54, + "column": 128 + }, + "end": { + "line": 54, + "column": 129 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1922, + "end": 1923, + "loc": { + "start": { + "line": 55, + "column": 4 + }, + "end": { + "line": 55, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Get the payment deploy argument\n *\n * @return {DeployUtil.ExecutableDeployItem} - Return a standard payment\n ", + "start": 1929, + "end": 2063, + "loc": { + "start": { + "line": 57, + "column": 4 + }, + "end": { + "line": 61, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "get", + "start": 2068, + "end": 2071, + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 62, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "payment", + "start": 2072, + "end": 2079, + "loc": { + "start": { + "line": 62, + "column": 8 + }, + "end": { + "line": 62, + "column": 15 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2079, + "end": 2080, + "loc": { + "start": { + "line": 62, + "column": 15 + }, + "end": { + "line": 62, + "column": 16 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2080, + "end": 2081, + "loc": { + "start": { + "line": 62, + "column": 16 + }, + "end": { + "line": 62, + "column": 17 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2082, + "end": 2083, + "loc": { + "start": { + "line": 62, + "column": 18 + }, + "end": { + "line": 62, + "column": 19 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 2092, + "end": 2098, + "loc": { + "start": { + "line": 63, + "column": 8 + }, + "end": { + "line": 63, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "DeployUtil", + "start": 2099, + "end": 2109, + "loc": { + "start": { + "line": 63, + "column": 15 + }, + "end": { + "line": 63, + "column": 25 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2109, + "end": 2110, + "loc": { + "start": { + "line": 63, + "column": 25 + }, + "end": { + "line": 63, + "column": 26 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "standardPayment", + "start": 2110, + "end": 2125, + "loc": { + "start": { + "line": 63, + "column": 26 + }, + "end": { + "line": 63, + "column": 41 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2125, + "end": 2126, + "loc": { + "start": { + "line": 63, + "column": 41 + }, + "end": { + "line": 63, + "column": 42 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CurrencyUtils", + "start": 2126, + "end": 2139, + "loc": { + "start": { + "line": 63, + "column": 42 + }, + "end": { + "line": 63, + "column": 55 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2139, + "end": 2140, + "loc": { + "start": { + "line": 63, + "column": 55 + }, + "end": { + "line": 63, + "column": 56 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "convertCasperToMotes", + "start": 2140, + "end": 2160, + "loc": { + "start": { + "line": 63, + "column": 56 + }, + "end": { + "line": 63, + "column": 76 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2160, + "end": 2161, + "loc": { + "start": { + "line": 63, + "column": 76 + }, + "end": { + "line": 63, + "column": 77 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 2161, + "end": 2165, + "loc": { + "start": { + "line": 63, + "column": 77 + }, + "end": { + "line": 63, + "column": 81 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2165, + "end": 2166, + "loc": { + "start": { + "line": 63, + "column": 81 + }, + "end": { + "line": 63, + "column": 82 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "fee", + "start": 2166, + "end": 2169, + "loc": { + "start": { + "line": 63, + "column": 82 + }, + "end": { + "line": 63, + "column": 85 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2169, + "end": 2170, + "loc": { + "start": { + "line": 63, + "column": 85 + }, + "end": { + "line": 63, + "column": 86 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2170, + "end": 2171, + "loc": { + "start": { + "line": 63, + "column": 86 + }, + "end": { + "line": 63, + "column": 87 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2171, + "end": 2172, + "loc": { + "start": { + "line": 63, + "column": 87 + }, + "end": { + "line": 63, + "column": 88 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2177, + "end": 2178, + "loc": { + "start": { + "line": 64, + "column": 4 + }, + "end": { + "line": 64, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Get a DeployResult constructor\n *\n * @return {DeployResult.constructor} - Return the constructor of a given DeployResult\n ", + "start": 2184, + "end": 2331, + "loc": { + "start": { + "line": 66, + "column": 4 + }, + "end": { + "line": 70, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "get", + "start": 2336, + "end": 2339, + "loc": { + "start": { + "line": 71, + "column": 4 + }, + "end": { + "line": 71, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "deployResult", + "start": 2340, + "end": 2352, + "loc": { + "start": { + "line": 71, + "column": 8 + }, + "end": { + "line": 71, + "column": 20 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2352, + "end": 2353, + "loc": { + "start": { + "line": 71, + "column": 20 + }, + "end": { + "line": 71, + "column": 21 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2353, + "end": 2354, + "loc": { + "start": { + "line": 71, + "column": 21 + }, + "end": { + "line": 71, + "column": 22 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2355, + "end": 2356, + "loc": { + "start": { + "line": 71, + "column": 23 + }, + "end": { + "line": 71, + "column": 24 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 2365, + "end": 2371, + "loc": { + "start": { + "line": 72, + "column": 8 + }, + "end": { + "line": 72, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "SmartContractResult", + "start": 2372, + "end": 2391, + "loc": { + "start": { + "line": 72, + "column": 15 + }, + "end": { + "line": 72, + "column": 34 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2396, + "end": 2397, + "loc": { + "start": { + "line": 73, + "column": 4 + }, + "end": { + "line": 73, + "column": 5 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2398, + "end": 2399, + "loc": { + "start": { + "line": 74, + "column": 0 + }, + "end": { + "line": 74, + "column": 1 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2399, + "end": 2399, + "loc": { + "start": { + "line": 74, + "column": 1 + }, + "end": { + "line": 74, + "column": 1 + } + } + } + ] +} \ No newline at end of file diff --git a/ast/source/services/deploys/transfer/TransferDeployParameters.js.json b/ast/source/services/deploys/transfer/TransferDeployParameters.js.json new file mode 100644 index 0000000..7c7246d --- /dev/null +++ b/ast/source/services/deploys/transfer/TransferDeployParameters.js.json @@ -0,0 +1,8105 @@ +{ + "type": "File", + "start": 0, + "end": 2516, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 89, + "column": 1 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 2516, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 89, + "column": 1 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 95, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 95 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 8, + "end": 45, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 45 + } + }, + "imported": { + "type": "Identifier", + "start": 8, + "end": 45, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 45 + }, + "identifierName": "AbstractSmartContractDeployParameters" + }, + "name": "AbstractSmartContractDeployParameters" + }, + "local": { + "type": "Identifier", + "start": 8, + "end": 45, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 45 + }, + "identifierName": "AbstractSmartContractDeployParameters" + }, + "name": "AbstractSmartContractDeployParameters" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 52, + "end": 94, + "loc": { + "start": { + "line": 1, + "column": 52 + }, + "end": { + "line": 1, + "column": 94 + } + }, + "extra": { + "rawValue": "../abstractSmartContractDeployParameters", + "raw": "\"../abstractSmartContractDeployParameters\"" + }, + "value": "../abstractSmartContractDeployParameters" + } + }, + { + "type": "ImportDeclaration", + "start": 96, + "end": 150, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 54 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 104, + "end": 115, + "loc": { + "start": { + "line": 2, + "column": 8 + }, + "end": { + "line": 2, + "column": 19 + } + }, + "imported": { + "type": "Identifier", + "start": 104, + "end": 115, + "loc": { + "start": { + "line": 2, + "column": 8 + }, + "end": { + "line": 2, + "column": 19 + }, + "identifierName": "CLPublicKey" + }, + "name": "CLPublicKey" + }, + "local": { + "type": "Identifier", + "start": 104, + "end": 115, + "loc": { + "start": { + "line": 2, + "column": 8 + }, + "end": { + "line": 2, + "column": 19 + }, + "identifierName": "CLPublicKey" + }, + "name": "CLPublicKey" + } + }, + { + "type": "ImportSpecifier", + "start": 117, + "end": 127, + "loc": { + "start": { + "line": 2, + "column": 21 + }, + "end": { + "line": 2, + "column": 31 + } + }, + "imported": { + "type": "Identifier", + "start": 117, + "end": 127, + "loc": { + "start": { + "line": 2, + "column": 21 + }, + "end": { + "line": 2, + "column": 31 + }, + "identifierName": "DeployUtil" + }, + "name": "DeployUtil" + }, + "local": { + "type": "Identifier", + "start": 117, + "end": 127, + "loc": { + "start": { + "line": 2, + "column": 21 + }, + "end": { + "line": 2, + "column": 31 + }, + "identifierName": "DeployUtil" + }, + "name": "DeployUtil" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 134, + "end": 149, + "loc": { + "start": { + "line": 2, + "column": 38 + }, + "end": { + "line": 2, + "column": 53 + } + }, + "extra": { + "rawValue": "casper-js-sdk", + "raw": "\"casper-js-sdk\"" + }, + "value": "casper-js-sdk" + } + }, + { + "type": "ImportDeclaration", + "start": 151, + "end": 195, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 44 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 159, + "end": 172, + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 3, + "column": 21 + } + }, + "imported": { + "type": "Identifier", + "start": 159, + "end": 172, + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 3, + "column": 21 + }, + "identifierName": "CurrencyUtils" + }, + "name": "CurrencyUtils" + }, + "local": { + "type": "Identifier", + "start": 159, + "end": 172, + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 3, + "column": 21 + }, + "identifierName": "CurrencyUtils" + }, + "name": "CurrencyUtils" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 179, + "end": 194, + "loc": { + "start": { + "line": 3, + "column": 28 + }, + "end": { + "line": 3, + "column": 43 + } + }, + "extra": { + "rawValue": "../../helpers", + "raw": "\"../../helpers\"" + }, + "value": "../../helpers" + } + }, + { + "type": "ImportDeclaration", + "start": 196, + "end": 241, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 45 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 204, + "end": 218, + "loc": { + "start": { + "line": 4, + "column": 8 + }, + "end": { + "line": 4, + "column": 22 + } + }, + "imported": { + "type": "Identifier", + "start": 204, + "end": 218, + "loc": { + "start": { + "line": 4, + "column": 8 + }, + "end": { + "line": 4, + "column": 22 + }, + "identifierName": "TransferResult" + }, + "name": "TransferResult" + }, + "local": { + "type": "Identifier", + "start": 204, + "end": 218, + "loc": { + "start": { + "line": 4, + "column": 8 + }, + "end": { + "line": 4, + "column": 22 + }, + "identifierName": "TransferResult" + }, + "name": "TransferResult" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 225, + "end": 240, + "loc": { + "start": { + "line": 4, + "column": 29 + }, + "end": { + "line": 4, + "column": 44 + } + }, + "extra": { + "rawValue": "../../results", + "raw": "\"../../results\"" + }, + "value": "../../results" + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * @constant\n * @type {number}\n ", + "start": 243, + "end": 281, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + } + ] + }, + { + "type": "VariableDeclaration", + "start": 282, + "end": 299, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 10, + "column": 17 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 288, + "end": 299, + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 10, + "column": 17 + } + }, + "id": { + "type": "Identifier", + "start": 288, + "end": 291, + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 10, + "column": 9 + }, + "identifierName": "fee" + }, + "name": "fee", + "leadingComments": null + }, + "init": { + "type": "NumericLiteral", + "start": 294, + "end": 299, + "loc": { + "start": { + "line": 10, + "column": 12 + }, + "end": { + "line": 10, + "column": 17 + } + }, + "extra": { + "rawValue": 10000, + "raw": "10000" + }, + "value": 10000, + "leadingComments": null, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * @constant\n * @type {number}\n ", + "start": 243, + "end": 281, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * TransferDeployParameters class\n * Class used to create DeployParameters for a Transfer operation\n ", + "start": 301, + "end": 408, + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 15, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 409, + "end": 2516, + "loc": { + "start": { + "line": 16, + "column": 0 + }, + "end": { + "line": 89, + "column": 1 + } + }, + "specifiers": [], + "source": null, + "declaration": { + "type": "ClassDeclaration", + "start": 416, + "end": 2516, + "loc": { + "start": { + "line": 16, + "column": 7 + }, + "end": { + "line": 89, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 422, + "end": 446, + "loc": { + "start": { + "line": 16, + "column": 13 + }, + "end": { + "line": 16, + "column": 37 + }, + "identifierName": "TransferDeployParameters" + }, + "name": "TransferDeployParameters", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 455, + "end": 492, + "loc": { + "start": { + "line": 16, + "column": 46 + }, + "end": { + "line": 16, + "column": 83 + }, + "identifierName": "AbstractSmartContractDeployParameters" + }, + "name": "AbstractSmartContractDeployParameters" + }, + "body": { + "type": "ClassBody", + "start": 493, + "end": 2516, + "loc": { + "start": { + "line": 16, + "column": 84 + }, + "end": { + "line": 89, + "column": 1 + } + }, + "body": [ + { + "type": "ClassProperty", + "start": 525, + "end": 535, + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 14 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 525, + "end": 534, + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 13 + }, + "identifierName": "activeKey" + }, + "name": "activeKey", + "leadingComments": null + }, + "value": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 499, + "end": 520, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 25 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 540, + "end": 561, + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 25 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 566, + "end": 574, + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 12 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 566, + "end": 573, + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 11 + }, + "identifierName": "network" + }, + "name": "network", + "leadingComments": null + }, + "value": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 540, + "end": 561, + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 25 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "* @type {number} ", + "start": 579, + "end": 600, + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 25 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 605, + "end": 612, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 11 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 605, + "end": 611, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 10 + }, + "identifierName": "amount" + }, + "name": "amount", + "leadingComments": null + }, + "value": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "* @type {number} ", + "start": 579, + "end": 600, + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 25 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 617, + "end": 638, + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 25 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 643, + "end": 650, + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 11 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 643, + "end": 649, + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 10 + }, + "identifierName": "target" + }, + "name": "target", + "leadingComments": null + }, + "value": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 617, + "end": 638, + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 25 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 655, + "end": 676, + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 25 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 681, + "end": 692, + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 15 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 681, + "end": 691, + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 14 + }, + "identifierName": "transferID" + }, + "name": "transferID", + "leadingComments": null + }, + "value": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 655, + "end": 676, + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 25 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {string} activeKey - Current active key in the public hex format\n * @param {string} network - Current network to execute the deployment\n * @param {number} amount - Amount to transfer in casper\n * @param {string} target - Public key in the hex format of the receiver\n * @param {string} transferID - TransferID of the transfer operation\n ", + "start": 698, + "end": 1100, + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 36, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 1105, + "end": 1354, + "loc": { + "start": { + "line": 37, + "column": 4 + }, + "end": { + "line": 44, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1105, + "end": 1116, + "loc": { + "start": { + "line": 37, + "column": 4 + }, + "end": { + "line": 37, + "column": 15 + }, + "identifierName": "constructor" + }, + "name": "constructor", + "leadingComments": null + }, + "kind": "constructor", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1117, + "end": 1126, + "loc": { + "start": { + "line": 37, + "column": 16 + }, + "end": { + "line": 37, + "column": 25 + }, + "identifierName": "activeKey" + }, + "name": "activeKey" + }, + { + "type": "Identifier", + "start": 1128, + "end": 1135, + "loc": { + "start": { + "line": 37, + "column": 27 + }, + "end": { + "line": 37, + "column": 34 + }, + "identifierName": "network" + }, + "name": "network" + }, + { + "type": "Identifier", + "start": 1137, + "end": 1143, + "loc": { + "start": { + "line": 37, + "column": 36 + }, + "end": { + "line": 37, + "column": 42 + }, + "identifierName": "amount" + }, + "name": "amount" + }, + { + "type": "Identifier", + "start": 1145, + "end": 1151, + "loc": { + "start": { + "line": 37, + "column": 44 + }, + "end": { + "line": 37, + "column": 50 + }, + "identifierName": "target" + }, + "name": "target" + }, + { + "type": "Identifier", + "start": 1153, + "end": 1163, + "loc": { + "start": { + "line": 37, + "column": 52 + }, + "end": { + "line": 37, + "column": 62 + }, + "identifierName": "transferID" + }, + "name": "transferID" + } + ], + "body": { + "type": "BlockStatement", + "start": 1165, + "end": 1354, + "loc": { + "start": { + "line": 37, + "column": 64 + }, + "end": { + "line": 44, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1175, + "end": 1182, + "loc": { + "start": { + "line": 38, + "column": 8 + }, + "end": { + "line": 38, + "column": 15 + } + }, + "expression": { + "type": "CallExpression", + "start": 1175, + "end": 1182, + "loc": { + "start": { + "line": 38, + "column": 8 + }, + "end": { + "line": 38, + "column": 15 + } + }, + "callee": { + "type": "Super", + "start": 1175, + "end": 1180, + "loc": { + "start": { + "line": 38, + "column": 8 + }, + "end": { + "line": 38, + "column": 13 + } + } + }, + "arguments": [] + } + }, + { + "type": "ExpressionStatement", + "start": 1191, + "end": 1218, + "loc": { + "start": { + "line": 39, + "column": 8 + }, + "end": { + "line": 39, + "column": 35 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1191, + "end": 1217, + "loc": { + "start": { + "line": 39, + "column": 8 + }, + "end": { + "line": 39, + "column": 34 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 1191, + "end": 1205, + "loc": { + "start": { + "line": 39, + "column": 8 + }, + "end": { + "line": 39, + "column": 22 + } + }, + "object": { + "type": "ThisExpression", + "start": 1191, + "end": 1195, + "loc": { + "start": { + "line": 39, + "column": 8 + }, + "end": { + "line": 39, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 1196, + "end": 1205, + "loc": { + "start": { + "line": 39, + "column": 13 + }, + "end": { + "line": 39, + "column": 22 + }, + "identifierName": "activeKey" + }, + "name": "activeKey" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 1208, + "end": 1217, + "loc": { + "start": { + "line": 39, + "column": 25 + }, + "end": { + "line": 39, + "column": 34 + }, + "identifierName": "activeKey" + }, + "name": "activeKey" + } + } + }, + { + "type": "ExpressionStatement", + "start": 1227, + "end": 1250, + "loc": { + "start": { + "line": 40, + "column": 8 + }, + "end": { + "line": 40, + "column": 31 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1227, + "end": 1249, + "loc": { + "start": { + "line": 40, + "column": 8 + }, + "end": { + "line": 40, + "column": 30 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 1227, + "end": 1239, + "loc": { + "start": { + "line": 40, + "column": 8 + }, + "end": { + "line": 40, + "column": 20 + } + }, + "object": { + "type": "ThisExpression", + "start": 1227, + "end": 1231, + "loc": { + "start": { + "line": 40, + "column": 8 + }, + "end": { + "line": 40, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 1232, + "end": 1239, + "loc": { + "start": { + "line": 40, + "column": 13 + }, + "end": { + "line": 40, + "column": 20 + }, + "identifierName": "network" + }, + "name": "network" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 1242, + "end": 1249, + "loc": { + "start": { + "line": 40, + "column": 23 + }, + "end": { + "line": 40, + "column": 30 + }, + "identifierName": "network" + }, + "name": "network" + } + } + }, + { + "type": "ExpressionStatement", + "start": 1259, + "end": 1280, + "loc": { + "start": { + "line": 41, + "column": 8 + }, + "end": { + "line": 41, + "column": 29 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1259, + "end": 1279, + "loc": { + "start": { + "line": 41, + "column": 8 + }, + "end": { + "line": 41, + "column": 28 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 1259, + "end": 1270, + "loc": { + "start": { + "line": 41, + "column": 8 + }, + "end": { + "line": 41, + "column": 19 + } + }, + "object": { + "type": "ThisExpression", + "start": 1259, + "end": 1263, + "loc": { + "start": { + "line": 41, + "column": 8 + }, + "end": { + "line": 41, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 1264, + "end": 1270, + "loc": { + "start": { + "line": 41, + "column": 13 + }, + "end": { + "line": 41, + "column": 19 + }, + "identifierName": "amount" + }, + "name": "amount" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 1273, + "end": 1279, + "loc": { + "start": { + "line": 41, + "column": 22 + }, + "end": { + "line": 41, + "column": 28 + }, + "identifierName": "amount" + }, + "name": "amount" + } + } + }, + { + "type": "ExpressionStatement", + "start": 1289, + "end": 1310, + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 42, + "column": 29 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1289, + "end": 1309, + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 42, + "column": 28 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 1289, + "end": 1300, + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 42, + "column": 19 + } + }, + "object": { + "type": "ThisExpression", + "start": 1289, + "end": 1293, + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 42, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 1294, + "end": 1300, + "loc": { + "start": { + "line": 42, + "column": 13 + }, + "end": { + "line": 42, + "column": 19 + }, + "identifierName": "target" + }, + "name": "target" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 1303, + "end": 1309, + "loc": { + "start": { + "line": 42, + "column": 22 + }, + "end": { + "line": 42, + "column": 28 + }, + "identifierName": "target" + }, + "name": "target" + } + } + }, + { + "type": "ExpressionStatement", + "start": 1319, + "end": 1348, + "loc": { + "start": { + "line": 43, + "column": 8 + }, + "end": { + "line": 43, + "column": 37 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1319, + "end": 1347, + "loc": { + "start": { + "line": 43, + "column": 8 + }, + "end": { + "line": 43, + "column": 36 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 1319, + "end": 1334, + "loc": { + "start": { + "line": 43, + "column": 8 + }, + "end": { + "line": 43, + "column": 23 + } + }, + "object": { + "type": "ThisExpression", + "start": 1319, + "end": 1323, + "loc": { + "start": { + "line": 43, + "column": 8 + }, + "end": { + "line": 43, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 1324, + "end": 1334, + "loc": { + "start": { + "line": 43, + "column": 13 + }, + "end": { + "line": 43, + "column": 23 + }, + "identifierName": "transferID" + }, + "name": "transferID" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 1337, + "end": 1347, + "loc": { + "start": { + "line": 43, + "column": 26 + }, + "end": { + "line": 43, + "column": 36 + }, + "identifierName": "transferID" + }, + "name": "transferID" + } + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {string} activeKey - Current active key in the public hex format\n * @param {string} network - Current network to execute the deployment\n * @param {number} amount - Amount to transfer in casper\n * @param {string} target - Public key in the hex format of the receiver\n * @param {string} transferID - TransferID of the transfer operation\n ", + "start": 698, + "end": 1100, + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 36, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Get the deployParams deploy argument\n *\n * @return {DeployUtil.DeployParams} - Return a DeployParams\n ", + "start": 1360, + "end": 1487, + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 50, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 1492, + "end": 1647, + "loc": { + "start": { + "line": 51, + "column": 4 + }, + "end": { + "line": 56, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1496, + "end": 1508, + "loc": { + "start": { + "line": 51, + "column": 8 + }, + "end": { + "line": 51, + "column": 20 + }, + "identifierName": "deployParams" + }, + "name": "deployParams" + }, + "kind": "get", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 1511, + "end": 1647, + "loc": { + "start": { + "line": 51, + "column": 23 + }, + "end": { + "line": 56, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 1521, + "end": 1641, + "loc": { + "start": { + "line": 52, + "column": 8 + }, + "end": { + "line": 55, + "column": 10 + } + }, + "argument": { + "type": "NewExpression", + "start": 1528, + "end": 1640, + "loc": { + "start": { + "line": 52, + "column": 15 + }, + "end": { + "line": 55, + "column": 9 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1532, + "end": 1555, + "loc": { + "start": { + "line": 52, + "column": 19 + }, + "end": { + "line": 52, + "column": 42 + } + }, + "object": { + "type": "Identifier", + "start": 1532, + "end": 1542, + "loc": { + "start": { + "line": 52, + "column": 19 + }, + "end": { + "line": 52, + "column": 29 + }, + "identifierName": "DeployUtil" + }, + "name": "DeployUtil" + }, + "property": { + "type": "Identifier", + "start": 1543, + "end": 1555, + "loc": { + "start": { + "line": 52, + "column": 30 + }, + "end": { + "line": 52, + "column": 42 + }, + "identifierName": "DeployParams" + }, + "name": "DeployParams" + }, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 1569, + "end": 1604, + "loc": { + "start": { + "line": 53, + "column": 12 + }, + "end": { + "line": 53, + "column": 47 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1569, + "end": 1588, + "loc": { + "start": { + "line": 53, + "column": 12 + }, + "end": { + "line": 53, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 1569, + "end": 1580, + "loc": { + "start": { + "line": 53, + "column": 12 + }, + "end": { + "line": 53, + "column": 23 + }, + "identifierName": "CLPublicKey" + }, + "name": "CLPublicKey" + }, + "property": { + "type": "Identifier", + "start": 1581, + "end": 1588, + "loc": { + "start": { + "line": 53, + "column": 24 + }, + "end": { + "line": 53, + "column": 31 + }, + "identifierName": "fromHex" + }, + "name": "fromHex" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 1589, + "end": 1603, + "loc": { + "start": { + "line": 53, + "column": 32 + }, + "end": { + "line": 53, + "column": 46 + } + }, + "object": { + "type": "ThisExpression", + "start": 1589, + "end": 1593, + "loc": { + "start": { + "line": 53, + "column": 32 + }, + "end": { + "line": 53, + "column": 36 + } + } + }, + "property": { + "type": "Identifier", + "start": 1594, + "end": 1603, + "loc": { + "start": { + "line": 53, + "column": 37 + }, + "end": { + "line": 53, + "column": 46 + }, + "identifierName": "activeKey" + }, + "name": "activeKey" + }, + "computed": false + } + ] + }, + { + "type": "MemberExpression", + "start": 1618, + "end": 1630, + "loc": { + "start": { + "line": 54, + "column": 12 + }, + "end": { + "line": 54, + "column": 24 + } + }, + "object": { + "type": "ThisExpression", + "start": 1618, + "end": 1622, + "loc": { + "start": { + "line": 54, + "column": 12 + }, + "end": { + "line": 54, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "start": 1623, + "end": 1630, + "loc": { + "start": { + "line": 54, + "column": 17 + }, + "end": { + "line": 54, + "column": 24 + }, + "identifierName": "network" + }, + "name": "network" + }, + "computed": false + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Get the deployParams deploy argument\n *\n * @return {DeployUtil.DeployParams} - Return a DeployParams\n ", + "start": 1360, + "end": 1487, + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 50, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Get the session deploy argument\n *\n * @return {DeployUtil.ExecutableDeployItem} - Return a session with a SmartContract stored by hash on the network\n ", + "start": 1653, + "end": 1829, + "loc": { + "start": { + "line": 58, + "column": 4 + }, + "end": { + "line": 62, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 1834, + "end": 2084, + "loc": { + "start": { + "line": 63, + "column": 4 + }, + "end": { + "line": 70, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1838, + "end": 1845, + "loc": { + "start": { + "line": 63, + "column": 8 + }, + "end": { + "line": 63, + "column": 15 + }, + "identifierName": "session" + }, + "name": "session" + }, + "kind": "get", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 1848, + "end": 2084, + "loc": { + "start": { + "line": 63, + "column": 18 + }, + "end": { + "line": 70, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 1858, + "end": 2078, + "loc": { + "start": { + "line": 64, + "column": 8 + }, + "end": { + "line": 69, + "column": 10 + } + }, + "argument": { + "type": "CallExpression", + "start": 1865, + "end": 2077, + "loc": { + "start": { + "line": 64, + "column": 15 + }, + "end": { + "line": 69, + "column": 9 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1865, + "end": 1908, + "loc": { + "start": { + "line": 64, + "column": 15 + }, + "end": { + "line": 64, + "column": 58 + } + }, + "object": { + "type": "MemberExpression", + "start": 1865, + "end": 1896, + "loc": { + "start": { + "line": 64, + "column": 15 + }, + "end": { + "line": 64, + "column": 46 + } + }, + "object": { + "type": "Identifier", + "start": 1865, + "end": 1875, + "loc": { + "start": { + "line": 64, + "column": 15 + }, + "end": { + "line": 64, + "column": 25 + }, + "identifierName": "DeployUtil" + }, + "name": "DeployUtil" + }, + "property": { + "type": "Identifier", + "start": 1876, + "end": 1896, + "loc": { + "start": { + "line": 64, + "column": 26 + }, + "end": { + "line": 64, + "column": 46 + }, + "identifierName": "ExecutableDeployItem" + }, + "name": "ExecutableDeployItem" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1897, + "end": 1908, + "loc": { + "start": { + "line": 64, + "column": 47 + }, + "end": { + "line": 64, + "column": 58 + }, + "identifierName": "newTransfer" + }, + "name": "newTransfer" + }, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 1922, + "end": 1969, + "loc": { + "start": { + "line": 65, + "column": 12 + }, + "end": { + "line": 65, + "column": 59 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1922, + "end": 1956, + "loc": { + "start": { + "line": 65, + "column": 12 + }, + "end": { + "line": 65, + "column": 46 + } + }, + "object": { + "type": "Identifier", + "start": 1922, + "end": 1935, + "loc": { + "start": { + "line": 65, + "column": 12 + }, + "end": { + "line": 65, + "column": 25 + }, + "identifierName": "CurrencyUtils" + }, + "name": "CurrencyUtils" + }, + "property": { + "type": "Identifier", + "start": 1936, + "end": 1956, + "loc": { + "start": { + "line": 65, + "column": 26 + }, + "end": { + "line": 65, + "column": 46 + }, + "identifierName": "convertCasperToMotes" + }, + "name": "convertCasperToMotes" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 1957, + "end": 1968, + "loc": { + "start": { + "line": 65, + "column": 47 + }, + "end": { + "line": 65, + "column": 58 + } + }, + "object": { + "type": "ThisExpression", + "start": 1957, + "end": 1961, + "loc": { + "start": { + "line": 65, + "column": 47 + }, + "end": { + "line": 65, + "column": 51 + } + } + }, + "property": { + "type": "Identifier", + "start": 1962, + "end": 1968, + "loc": { + "start": { + "line": 65, + "column": 52 + }, + "end": { + "line": 65, + "column": 58 + }, + "identifierName": "amount" + }, + "name": "amount" + }, + "computed": false + } + ] + }, + { + "type": "CallExpression", + "start": 1983, + "end": 2015, + "loc": { + "start": { + "line": 66, + "column": 12 + }, + "end": { + "line": 66, + "column": 44 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1983, + "end": 2002, + "loc": { + "start": { + "line": 66, + "column": 12 + }, + "end": { + "line": 66, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 1983, + "end": 1994, + "loc": { + "start": { + "line": 66, + "column": 12 + }, + "end": { + "line": 66, + "column": 23 + }, + "identifierName": "CLPublicKey" + }, + "name": "CLPublicKey" + }, + "property": { + "type": "Identifier", + "start": 1995, + "end": 2002, + "loc": { + "start": { + "line": 66, + "column": 24 + }, + "end": { + "line": 66, + "column": 31 + }, + "identifierName": "fromHex" + }, + "name": "fromHex" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 2003, + "end": 2014, + "loc": { + "start": { + "line": 66, + "column": 32 + }, + "end": { + "line": 66, + "column": 43 + } + }, + "object": { + "type": "ThisExpression", + "start": 2003, + "end": 2007, + "loc": { + "start": { + "line": 66, + "column": 32 + }, + "end": { + "line": 66, + "column": 36 + } + } + }, + "property": { + "type": "Identifier", + "start": 2008, + "end": 2014, + "loc": { + "start": { + "line": 66, + "column": 37 + }, + "end": { + "line": 66, + "column": 43 + }, + "identifierName": "target" + }, + "name": "target" + }, + "computed": false + } + ] + }, + { + "type": "Identifier", + "start": 2029, + "end": 2038, + "loc": { + "start": { + "line": 67, + "column": 12 + }, + "end": { + "line": 67, + "column": 21 + }, + "identifierName": "undefined" + }, + "name": "undefined" + }, + { + "type": "MemberExpression", + "start": 2052, + "end": 2067, + "loc": { + "start": { + "line": 68, + "column": 12 + }, + "end": { + "line": 68, + "column": 27 + } + }, + "object": { + "type": "ThisExpression", + "start": 2052, + "end": 2056, + "loc": { + "start": { + "line": 68, + "column": 12 + }, + "end": { + "line": 68, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "start": 2057, + "end": 2067, + "loc": { + "start": { + "line": 68, + "column": 17 + }, + "end": { + "line": 68, + "column": 27 + }, + "identifierName": "transferID" + }, + "name": "transferID" + }, + "computed": false + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Get the session deploy argument\n *\n * @return {DeployUtil.ExecutableDeployItem} - Return a session with a SmartContract stored by hash on the network\n ", + "start": 1653, + "end": 1829, + "loc": { + "start": { + "line": 58, + "column": 4 + }, + "end": { + "line": 62, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Get the payment deploy argument\n *\n * @return {DeployUtil.ExecutableDeployItem} - Return a standard payment\n ", + "start": 2090, + "end": 2224, + "loc": { + "start": { + "line": 72, + "column": 4 + }, + "end": { + "line": 76, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 2229, + "end": 2298, + "loc": { + "start": { + "line": 77, + "column": 4 + }, + "end": { + "line": 79, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2233, + "end": 2240, + "loc": { + "start": { + "line": 77, + "column": 8 + }, + "end": { + "line": 77, + "column": 15 + }, + "identifierName": "payment" + }, + "name": "payment" + }, + "kind": "get", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 2243, + "end": 2298, + "loc": { + "start": { + "line": 77, + "column": 18 + }, + "end": { + "line": 79, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 2253, + "end": 2292, + "loc": { + "start": { + "line": 78, + "column": 8 + }, + "end": { + "line": 78, + "column": 47 + } + }, + "argument": { + "type": "CallExpression", + "start": 2260, + "end": 2291, + "loc": { + "start": { + "line": 78, + "column": 15 + }, + "end": { + "line": 78, + "column": 46 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2260, + "end": 2286, + "loc": { + "start": { + "line": 78, + "column": 15 + }, + "end": { + "line": 78, + "column": 41 + } + }, + "object": { + "type": "Identifier", + "start": 2260, + "end": 2270, + "loc": { + "start": { + "line": 78, + "column": 15 + }, + "end": { + "line": 78, + "column": 25 + }, + "identifierName": "DeployUtil" + }, + "name": "DeployUtil" + }, + "property": { + "type": "Identifier", + "start": 2271, + "end": 2286, + "loc": { + "start": { + "line": 78, + "column": 26 + }, + "end": { + "line": 78, + "column": 41 + }, + "identifierName": "standardPayment" + }, + "name": "standardPayment" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 2287, + "end": 2290, + "loc": { + "start": { + "line": 78, + "column": 42 + }, + "end": { + "line": 78, + "column": 45 + }, + "identifierName": "fee" + }, + "name": "fee" + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Get the payment deploy argument\n *\n * @return {DeployUtil.ExecutableDeployItem} - Return a standard payment\n ", + "start": 2090, + "end": 2224, + "loc": { + "start": { + "line": 72, + "column": 4 + }, + "end": { + "line": 76, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Get a DeployResult constructor\n *\n * @return {TransferResult.constructor} - Return the constructor of a given DeployResult\n ", + "start": 2304, + "end": 2453, + "loc": { + "start": { + "line": 81, + "column": 4 + }, + "end": { + "line": 85, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 2458, + "end": 2514, + "loc": { + "start": { + "line": 86, + "column": 4 + }, + "end": { + "line": 88, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2462, + "end": 2474, + "loc": { + "start": { + "line": 86, + "column": 8 + }, + "end": { + "line": 86, + "column": 20 + }, + "identifierName": "deployResult" + }, + "name": "deployResult" + }, + "kind": "get", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 2477, + "end": 2514, + "loc": { + "start": { + "line": 86, + "column": 23 + }, + "end": { + "line": 88, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 2487, + "end": 2508, + "loc": { + "start": { + "line": 87, + "column": 8 + }, + "end": { + "line": 87, + "column": 29 + } + }, + "argument": { + "type": "Identifier", + "start": 2494, + "end": 2508, + "loc": { + "start": { + "line": 87, + "column": 15 + }, + "end": { + "line": 87, + "column": 29 + }, + "identifierName": "TransferResult" + }, + "name": "TransferResult" + } + } + ], + "directives": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Get a DeployResult constructor\n *\n * @return {TransferResult.constructor} - Return the constructor of a given DeployResult\n ", + "start": 2304, + "end": 2453, + "loc": { + "start": { + "line": 81, + "column": 4 + }, + "end": { + "line": 85, + "column": 7 + } + } + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * TransferDeployParameters class\n * Class used to create DeployParameters for a Transfer operation\n ", + "start": 301, + "end": 408, + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 15, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * TransferDeployParameters class\n * Class used to create DeployParameters for a Transfer operation\n ", + "start": 301, + "end": 408, + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 15, + "column": 3 + } + } + } + ] + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\n * @constant\n * @type {number}\n ", + "start": 243, + "end": 281, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * TransferDeployParameters class\n * Class used to create DeployParameters for a Transfer operation\n ", + "start": 301, + "end": 408, + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 15, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 499, + "end": 520, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 25 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 540, + "end": 561, + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 25 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {number} ", + "start": 579, + "end": 600, + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 25 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 617, + "end": 638, + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 25 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 655, + "end": 676, + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 25 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {string} activeKey - Current active key in the public hex format\n * @param {string} network - Current network to execute the deployment\n * @param {number} amount - Amount to transfer in casper\n * @param {string} target - Public key in the hex format of the receiver\n * @param {string} transferID - TransferID of the transfer operation\n ", + "start": 698, + "end": 1100, + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 36, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Get the deployParams deploy argument\n *\n * @return {DeployUtil.DeployParams} - Return a DeployParams\n ", + "start": 1360, + "end": 1487, + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 50, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Get the session deploy argument\n *\n * @return {DeployUtil.ExecutableDeployItem} - Return a session with a SmartContract stored by hash on the network\n ", + "start": 1653, + "end": 1829, + "loc": { + "start": { + "line": 58, + "column": 4 + }, + "end": { + "line": 62, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Get the payment deploy argument\n *\n * @return {DeployUtil.ExecutableDeployItem} - Return a standard payment\n ", + "start": 2090, + "end": 2224, + "loc": { + "start": { + "line": 72, + "column": 4 + }, + "end": { + "line": 76, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Get a DeployResult constructor\n *\n * @return {TransferResult.constructor} - Return the constructor of a given DeployResult\n ", + "start": 2304, + "end": 2453, + "loc": { + "start": { + "line": 81, + "column": 4 + }, + "end": { + "line": 85, + "column": 7 + } + } + } + ], + "tokens": [ + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 0, + "end": 6, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7, + "end": 8, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "AbstractSmartContractDeployParameters", + "start": 8, + "end": 45, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 45 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 45, + "end": 46, + "loc": { + "start": { + "line": 1, + "column": 45 + }, + "end": { + "line": 1, + "column": 46 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 47, + "end": 51, + "loc": { + "start": { + "line": 1, + "column": 47 + }, + "end": { + "line": 1, + "column": 51 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "../abstractSmartContractDeployParameters", + "start": 52, + "end": 94, + "loc": { + "start": { + "line": 1, + "column": 52 + }, + "end": { + "line": 1, + "column": 94 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 94, + "end": 95, + "loc": { + "start": { + "line": 1, + "column": 94 + }, + "end": { + "line": 1, + "column": 95 + } + } + }, + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 96, + "end": 102, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 103, + "end": 104, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CLPublicKey", + "start": 104, + "end": 115, + "loc": { + "start": { + "line": 2, + "column": 8 + }, + "end": { + "line": 2, + "column": 19 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 115, + "end": 116, + "loc": { + "start": { + "line": 2, + "column": 19 + }, + "end": { + "line": 2, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "DeployUtil", + "start": 117, + "end": 127, + "loc": { + "start": { + "line": 2, + "column": 21 + }, + "end": { + "line": 2, + "column": 31 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 127, + "end": 128, + "loc": { + "start": { + "line": 2, + "column": 31 + }, + "end": { + "line": 2, + "column": 32 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 129, + "end": 133, + "loc": { + "start": { + "line": 2, + "column": 33 + }, + "end": { + "line": 2, + "column": 37 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "casper-js-sdk", + "start": 134, + "end": 149, + "loc": { + "start": { + "line": 2, + "column": 38 + }, + "end": { + "line": 2, + "column": 53 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 149, + "end": 150, + "loc": { + "start": { + "line": 2, + "column": 53 + }, + "end": { + "line": 2, + "column": 54 + } + } + }, + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 151, + "end": 157, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 158, + "end": 159, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CurrencyUtils", + "start": 159, + "end": 172, + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 3, + "column": 21 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 172, + "end": 173, + "loc": { + "start": { + "line": 3, + "column": 21 + }, + "end": { + "line": 3, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 174, + "end": 178, + "loc": { + "start": { + "line": 3, + "column": 23 + }, + "end": { + "line": 3, + "column": 27 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "../../helpers", + "start": 179, + "end": 194, + "loc": { + "start": { + "line": 3, + "column": 28 + }, + "end": { + "line": 3, + "column": 43 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 194, + "end": 195, + "loc": { + "start": { + "line": 3, + "column": 43 + }, + "end": { + "line": 3, + "column": 44 + } + } + }, + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 196, + "end": 202, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 203, + "end": 204, + "loc": { + "start": { + "line": 4, + "column": 7 + }, + "end": { + "line": 4, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "TransferResult", + "start": 204, + "end": 218, + "loc": { + "start": { + "line": 4, + "column": 8 + }, + "end": { + "line": 4, + "column": 22 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 218, + "end": 219, + "loc": { + "start": { + "line": 4, + "column": 22 + }, + "end": { + "line": 4, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 220, + "end": 224, + "loc": { + "start": { + "line": 4, + "column": 24 + }, + "end": { + "line": 4, + "column": 28 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "../../results", + "start": 225, + "end": 240, + "loc": { + "start": { + "line": 4, + "column": 29 + }, + "end": { + "line": 4, + "column": 44 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 240, + "end": 241, + "loc": { + "start": { + "line": 4, + "column": 44 + }, + "end": { + "line": 4, + "column": 45 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @constant\n * @type {number}\n ", + "start": 243, + "end": 281, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 282, + "end": 287, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 10, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "fee", + "start": 288, + "end": 291, + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 10, + "column": 9 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 292, + "end": 293, + "loc": { + "start": { + "line": 10, + "column": 10 + }, + "end": { + "line": 10, + "column": 11 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 10000, + "start": 294, + "end": 299, + "loc": { + "start": { + "line": 10, + "column": 12 + }, + "end": { + "line": 10, + "column": 17 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * TransferDeployParameters class\n * Class used to create DeployParameters for a Transfer operation\n ", + "start": 301, + "end": 408, + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 15, + "column": 3 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 409, + "end": 415, + "loc": { + "start": { + "line": 16, + "column": 0 + }, + "end": { + "line": 16, + "column": 6 + } + } + }, + { + "type": { + "label": "class", + "keyword": "class", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "class", + "start": 416, + "end": 421, + "loc": { + "start": { + "line": 16, + "column": 7 + }, + "end": { + "line": 16, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "TransferDeployParameters", + "start": 422, + "end": 446, + "loc": { + "start": { + "line": 16, + "column": 13 + }, + "end": { + "line": 16, + "column": 37 + } + } + }, + { + "type": { + "label": "extends", + "keyword": "extends", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "extends", + "start": 447, + "end": 454, + "loc": { + "start": { + "line": 16, + "column": 38 + }, + "end": { + "line": 16, + "column": 45 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "AbstractSmartContractDeployParameters", + "start": 455, + "end": 492, + "loc": { + "start": { + "line": 16, + "column": 46 + }, + "end": { + "line": 16, + "column": 83 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 493, + "end": 494, + "loc": { + "start": { + "line": 16, + "column": 84 + }, + "end": { + "line": 16, + "column": 85 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 499, + "end": 520, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "activeKey", + "start": 525, + "end": 534, + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 13 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 534, + "end": 535, + "loc": { + "start": { + "line": 18, + "column": 13 + }, + "end": { + "line": 18, + "column": 14 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 540, + "end": 561, + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "network", + "start": 566, + "end": 573, + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 11 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 573, + "end": 574, + "loc": { + "start": { + "line": 20, + "column": 11 + }, + "end": { + "line": 20, + "column": 12 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {number} ", + "start": 579, + "end": 600, + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "amount", + "start": 605, + "end": 611, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 10 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 611, + "end": 612, + "loc": { + "start": { + "line": 22, + "column": 10 + }, + "end": { + "line": 22, + "column": 11 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 617, + "end": 638, + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "target", + "start": 643, + "end": 649, + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 10 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 649, + "end": 650, + "loc": { + "start": { + "line": 24, + "column": 10 + }, + "end": { + "line": 24, + "column": 11 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 655, + "end": 676, + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "transferID", + "start": 681, + "end": 691, + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 14 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 691, + "end": 692, + "loc": { + "start": { + "line": 26, + "column": 14 + }, + "end": { + "line": 26, + "column": 15 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {string} activeKey - Current active key in the public hex format\n * @param {string} network - Current network to execute the deployment\n * @param {number} amount - Amount to transfer in casper\n * @param {string} target - Public key in the hex format of the receiver\n * @param {string} transferID - TransferID of the transfer operation\n ", + "start": 698, + "end": 1100, + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 36, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "constructor", + "start": 1105, + "end": 1116, + "loc": { + "start": { + "line": 37, + "column": 4 + }, + "end": { + "line": 37, + "column": 15 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1116, + "end": 1117, + "loc": { + "start": { + "line": 37, + "column": 15 + }, + "end": { + "line": 37, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "activeKey", + "start": 1117, + "end": 1126, + "loc": { + "start": { + "line": 37, + "column": 16 + }, + "end": { + "line": 37, + "column": 25 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1126, + "end": 1127, + "loc": { + "start": { + "line": 37, + "column": 25 + }, + "end": { + "line": 37, + "column": 26 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "network", + "start": 1128, + "end": 1135, + "loc": { + "start": { + "line": 37, + "column": 27 + }, + "end": { + "line": 37, + "column": 34 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1135, + "end": 1136, + "loc": { + "start": { + "line": 37, + "column": 34 + }, + "end": { + "line": 37, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "amount", + "start": 1137, + "end": 1143, + "loc": { + "start": { + "line": 37, + "column": 36 + }, + "end": { + "line": 37, + "column": 42 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1143, + "end": 1144, + "loc": { + "start": { + "line": 37, + "column": 42 + }, + "end": { + "line": 37, + "column": 43 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "target", + "start": 1145, + "end": 1151, + "loc": { + "start": { + "line": 37, + "column": 44 + }, + "end": { + "line": 37, + "column": 50 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1151, + "end": 1152, + "loc": { + "start": { + "line": 37, + "column": 50 + }, + "end": { + "line": 37, + "column": 51 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "transferID", + "start": 1153, + "end": 1163, + "loc": { + "start": { + "line": 37, + "column": 52 + }, + "end": { + "line": 37, + "column": 62 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1163, + "end": 1164, + "loc": { + "start": { + "line": 37, + "column": 62 + }, + "end": { + "line": 37, + "column": 63 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1165, + "end": 1166, + "loc": { + "start": { + "line": 37, + "column": 64 + }, + "end": { + "line": 37, + "column": 65 + } + } + }, + { + "type": { + "label": "super", + "keyword": "super", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "super", + "start": 1175, + "end": 1180, + "loc": { + "start": { + "line": 38, + "column": 8 + }, + "end": { + "line": 38, + "column": 13 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1180, + "end": 1181, + "loc": { + "start": { + "line": 38, + "column": 13 + }, + "end": { + "line": 38, + "column": 14 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1181, + "end": 1182, + "loc": { + "start": { + "line": 38, + "column": 14 + }, + "end": { + "line": 38, + "column": 15 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 1191, + "end": 1195, + "loc": { + "start": { + "line": 39, + "column": 8 + }, + "end": { + "line": 39, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1195, + "end": 1196, + "loc": { + "start": { + "line": 39, + "column": 12 + }, + "end": { + "line": 39, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "activeKey", + "start": 1196, + "end": 1205, + "loc": { + "start": { + "line": 39, + "column": 13 + }, + "end": { + "line": 39, + "column": 22 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1206, + "end": 1207, + "loc": { + "start": { + "line": 39, + "column": 23 + }, + "end": { + "line": 39, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "activeKey", + "start": 1208, + "end": 1217, + "loc": { + "start": { + "line": 39, + "column": 25 + }, + "end": { + "line": 39, + "column": 34 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1217, + "end": 1218, + "loc": { + "start": { + "line": 39, + "column": 34 + }, + "end": { + "line": 39, + "column": 35 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 1227, + "end": 1231, + "loc": { + "start": { + "line": 40, + "column": 8 + }, + "end": { + "line": 40, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1231, + "end": 1232, + "loc": { + "start": { + "line": 40, + "column": 12 + }, + "end": { + "line": 40, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "network", + "start": 1232, + "end": 1239, + "loc": { + "start": { + "line": 40, + "column": 13 + }, + "end": { + "line": 40, + "column": 20 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1240, + "end": 1241, + "loc": { + "start": { + "line": 40, + "column": 21 + }, + "end": { + "line": 40, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "network", + "start": 1242, + "end": 1249, + "loc": { + "start": { + "line": 40, + "column": 23 + }, + "end": { + "line": 40, + "column": 30 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1249, + "end": 1250, + "loc": { + "start": { + "line": 40, + "column": 30 + }, + "end": { + "line": 40, + "column": 31 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 1259, + "end": 1263, + "loc": { + "start": { + "line": 41, + "column": 8 + }, + "end": { + "line": 41, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1263, + "end": 1264, + "loc": { + "start": { + "line": 41, + "column": 12 + }, + "end": { + "line": 41, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "amount", + "start": 1264, + "end": 1270, + "loc": { + "start": { + "line": 41, + "column": 13 + }, + "end": { + "line": 41, + "column": 19 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1271, + "end": 1272, + "loc": { + "start": { + "line": 41, + "column": 20 + }, + "end": { + "line": 41, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "amount", + "start": 1273, + "end": 1279, + "loc": { + "start": { + "line": 41, + "column": 22 + }, + "end": { + "line": 41, + "column": 28 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1279, + "end": 1280, + "loc": { + "start": { + "line": 41, + "column": 28 + }, + "end": { + "line": 41, + "column": 29 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 1289, + "end": 1293, + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 42, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1293, + "end": 1294, + "loc": { + "start": { + "line": 42, + "column": 12 + }, + "end": { + "line": 42, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "target", + "start": 1294, + "end": 1300, + "loc": { + "start": { + "line": 42, + "column": 13 + }, + "end": { + "line": 42, + "column": 19 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1301, + "end": 1302, + "loc": { + "start": { + "line": 42, + "column": 20 + }, + "end": { + "line": 42, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "target", + "start": 1303, + "end": 1309, + "loc": { + "start": { + "line": 42, + "column": 22 + }, + "end": { + "line": 42, + "column": 28 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1309, + "end": 1310, + "loc": { + "start": { + "line": 42, + "column": 28 + }, + "end": { + "line": 42, + "column": 29 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 1319, + "end": 1323, + "loc": { + "start": { + "line": 43, + "column": 8 + }, + "end": { + "line": 43, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1323, + "end": 1324, + "loc": { + "start": { + "line": 43, + "column": 12 + }, + "end": { + "line": 43, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "transferID", + "start": 1324, + "end": 1334, + "loc": { + "start": { + "line": 43, + "column": 13 + }, + "end": { + "line": 43, + "column": 23 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1335, + "end": 1336, + "loc": { + "start": { + "line": 43, + "column": 24 + }, + "end": { + "line": 43, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "transferID", + "start": 1337, + "end": 1347, + "loc": { + "start": { + "line": 43, + "column": 26 + }, + "end": { + "line": 43, + "column": 36 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1347, + "end": 1348, + "loc": { + "start": { + "line": 43, + "column": 36 + }, + "end": { + "line": 43, + "column": 37 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1353, + "end": 1354, + "loc": { + "start": { + "line": 44, + "column": 4 + }, + "end": { + "line": 44, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Get the deployParams deploy argument\n *\n * @return {DeployUtil.DeployParams} - Return a DeployParams\n ", + "start": 1360, + "end": 1487, + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 50, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "get", + "start": 1492, + "end": 1495, + "loc": { + "start": { + "line": 51, + "column": 4 + }, + "end": { + "line": 51, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "deployParams", + "start": 1496, + "end": 1508, + "loc": { + "start": { + "line": 51, + "column": 8 + }, + "end": { + "line": 51, + "column": 20 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1508, + "end": 1509, + "loc": { + "start": { + "line": 51, + "column": 20 + }, + "end": { + "line": 51, + "column": 21 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1509, + "end": 1510, + "loc": { + "start": { + "line": 51, + "column": 21 + }, + "end": { + "line": 51, + "column": 22 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1511, + "end": 1512, + "loc": { + "start": { + "line": 51, + "column": 23 + }, + "end": { + "line": 51, + "column": 24 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 1521, + "end": 1527, + "loc": { + "start": { + "line": 52, + "column": 8 + }, + "end": { + "line": 52, + "column": 14 + } + } + }, + { + "type": { + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "new", + "start": 1528, + "end": 1531, + "loc": { + "start": { + "line": 52, + "column": 15 + }, + "end": { + "line": 52, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "DeployUtil", + "start": 1532, + "end": 1542, + "loc": { + "start": { + "line": 52, + "column": 19 + }, + "end": { + "line": 52, + "column": 29 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1542, + "end": 1543, + "loc": { + "start": { + "line": 52, + "column": 29 + }, + "end": { + "line": 52, + "column": 30 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "DeployParams", + "start": 1543, + "end": 1555, + "loc": { + "start": { + "line": 52, + "column": 30 + }, + "end": { + "line": 52, + "column": 42 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1555, + "end": 1556, + "loc": { + "start": { + "line": 52, + "column": 42 + }, + "end": { + "line": 52, + "column": 43 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CLPublicKey", + "start": 1569, + "end": 1580, + "loc": { + "start": { + "line": 53, + "column": 12 + }, + "end": { + "line": 53, + "column": 23 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1580, + "end": 1581, + "loc": { + "start": { + "line": 53, + "column": 23 + }, + "end": { + "line": 53, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "fromHex", + "start": 1581, + "end": 1588, + "loc": { + "start": { + "line": 53, + "column": 24 + }, + "end": { + "line": 53, + "column": 31 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1588, + "end": 1589, + "loc": { + "start": { + "line": 53, + "column": 31 + }, + "end": { + "line": 53, + "column": 32 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 1589, + "end": 1593, + "loc": { + "start": { + "line": 53, + "column": 32 + }, + "end": { + "line": 53, + "column": 36 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1593, + "end": 1594, + "loc": { + "start": { + "line": 53, + "column": 36 + }, + "end": { + "line": 53, + "column": 37 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "activeKey", + "start": 1594, + "end": 1603, + "loc": { + "start": { + "line": 53, + "column": 37 + }, + "end": { + "line": 53, + "column": 46 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1603, + "end": 1604, + "loc": { + "start": { + "line": 53, + "column": 46 + }, + "end": { + "line": 53, + "column": 47 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1604, + "end": 1605, + "loc": { + "start": { + "line": 53, + "column": 47 + }, + "end": { + "line": 53, + "column": 48 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 1618, + "end": 1622, + "loc": { + "start": { + "line": 54, + "column": 12 + }, + "end": { + "line": 54, + "column": 16 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1622, + "end": 1623, + "loc": { + "start": { + "line": 54, + "column": 16 + }, + "end": { + "line": 54, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "network", + "start": 1623, + "end": 1630, + "loc": { + "start": { + "line": 54, + "column": 17 + }, + "end": { + "line": 54, + "column": 24 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1639, + "end": 1640, + "loc": { + "start": { + "line": 55, + "column": 8 + }, + "end": { + "line": 55, + "column": 9 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1640, + "end": 1641, + "loc": { + "start": { + "line": 55, + "column": 9 + }, + "end": { + "line": 55, + "column": 10 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1646, + "end": 1647, + "loc": { + "start": { + "line": 56, + "column": 4 + }, + "end": { + "line": 56, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Get the session deploy argument\n *\n * @return {DeployUtil.ExecutableDeployItem} - Return a session with a SmartContract stored by hash on the network\n ", + "start": 1653, + "end": 1829, + "loc": { + "start": { + "line": 58, + "column": 4 + }, + "end": { + "line": 62, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "get", + "start": 1834, + "end": 1837, + "loc": { + "start": { + "line": 63, + "column": 4 + }, + "end": { + "line": 63, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "session", + "start": 1838, + "end": 1845, + "loc": { + "start": { + "line": 63, + "column": 8 + }, + "end": { + "line": 63, + "column": 15 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1845, + "end": 1846, + "loc": { + "start": { + "line": 63, + "column": 15 + }, + "end": { + "line": 63, + "column": 16 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1846, + "end": 1847, + "loc": { + "start": { + "line": 63, + "column": 16 + }, + "end": { + "line": 63, + "column": 17 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1848, + "end": 1849, + "loc": { + "start": { + "line": 63, + "column": 18 + }, + "end": { + "line": 63, + "column": 19 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 1858, + "end": 1864, + "loc": { + "start": { + "line": 64, + "column": 8 + }, + "end": { + "line": 64, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "DeployUtil", + "start": 1865, + "end": 1875, + "loc": { + "start": { + "line": 64, + "column": 15 + }, + "end": { + "line": 64, + "column": 25 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1875, + "end": 1876, + "loc": { + "start": { + "line": 64, + "column": 25 + }, + "end": { + "line": 64, + "column": 26 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "ExecutableDeployItem", + "start": 1876, + "end": 1896, + "loc": { + "start": { + "line": 64, + "column": 26 + }, + "end": { + "line": 64, + "column": 46 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1896, + "end": 1897, + "loc": { + "start": { + "line": 64, + "column": 46 + }, + "end": { + "line": 64, + "column": 47 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "newTransfer", + "start": 1897, + "end": 1908, + "loc": { + "start": { + "line": 64, + "column": 47 + }, + "end": { + "line": 64, + "column": 58 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1908, + "end": 1909, + "loc": { + "start": { + "line": 64, + "column": 58 + }, + "end": { + "line": 64, + "column": 59 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CurrencyUtils", + "start": 1922, + "end": 1935, + "loc": { + "start": { + "line": 65, + "column": 12 + }, + "end": { + "line": 65, + "column": 25 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1935, + "end": 1936, + "loc": { + "start": { + "line": 65, + "column": 25 + }, + "end": { + "line": 65, + "column": 26 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "convertCasperToMotes", + "start": 1936, + "end": 1956, + "loc": { + "start": { + "line": 65, + "column": 26 + }, + "end": { + "line": 65, + "column": 46 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1956, + "end": 1957, + "loc": { + "start": { + "line": 65, + "column": 46 + }, + "end": { + "line": 65, + "column": 47 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 1957, + "end": 1961, + "loc": { + "start": { + "line": 65, + "column": 47 + }, + "end": { + "line": 65, + "column": 51 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1961, + "end": 1962, + "loc": { + "start": { + "line": 65, + "column": 51 + }, + "end": { + "line": 65, + "column": 52 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "amount", + "start": 1962, + "end": 1968, + "loc": { + "start": { + "line": 65, + "column": 52 + }, + "end": { + "line": 65, + "column": 58 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1968, + "end": 1969, + "loc": { + "start": { + "line": 65, + "column": 58 + }, + "end": { + "line": 65, + "column": 59 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1969, + "end": 1970, + "loc": { + "start": { + "line": 65, + "column": 59 + }, + "end": { + "line": 65, + "column": 60 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CLPublicKey", + "start": 1983, + "end": 1994, + "loc": { + "start": { + "line": 66, + "column": 12 + }, + "end": { + "line": 66, + "column": 23 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1994, + "end": 1995, + "loc": { + "start": { + "line": 66, + "column": 23 + }, + "end": { + "line": 66, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "fromHex", + "start": 1995, + "end": 2002, + "loc": { + "start": { + "line": 66, + "column": 24 + }, + "end": { + "line": 66, + "column": 31 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2002, + "end": 2003, + "loc": { + "start": { + "line": 66, + "column": 31 + }, + "end": { + "line": 66, + "column": 32 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 2003, + "end": 2007, + "loc": { + "start": { + "line": 66, + "column": 32 + }, + "end": { + "line": 66, + "column": 36 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2007, + "end": 2008, + "loc": { + "start": { + "line": 66, + "column": 36 + }, + "end": { + "line": 66, + "column": 37 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "target", + "start": 2008, + "end": 2014, + "loc": { + "start": { + "line": 66, + "column": 37 + }, + "end": { + "line": 66, + "column": 43 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2014, + "end": 2015, + "loc": { + "start": { + "line": 66, + "column": 43 + }, + "end": { + "line": 66, + "column": 44 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2015, + "end": 2016, + "loc": { + "start": { + "line": 66, + "column": 44 + }, + "end": { + "line": 66, + "column": 45 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "undefined", + "start": 2029, + "end": 2038, + "loc": { + "start": { + "line": 67, + "column": 12 + }, + "end": { + "line": 67, + "column": 21 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2038, + "end": 2039, + "loc": { + "start": { + "line": 67, + "column": 21 + }, + "end": { + "line": 67, + "column": 22 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 2052, + "end": 2056, + "loc": { + "start": { + "line": 68, + "column": 12 + }, + "end": { + "line": 68, + "column": 16 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2056, + "end": 2057, + "loc": { + "start": { + "line": 68, + "column": 16 + }, + "end": { + "line": 68, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "transferID", + "start": 2057, + "end": 2067, + "loc": { + "start": { + "line": 68, + "column": 17 + }, + "end": { + "line": 68, + "column": 27 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2076, + "end": 2077, + "loc": { + "start": { + "line": 69, + "column": 8 + }, + "end": { + "line": 69, + "column": 9 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2077, + "end": 2078, + "loc": { + "start": { + "line": 69, + "column": 9 + }, + "end": { + "line": 69, + "column": 10 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2083, + "end": 2084, + "loc": { + "start": { + "line": 70, + "column": 4 + }, + "end": { + "line": 70, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Get the payment deploy argument\n *\n * @return {DeployUtil.ExecutableDeployItem} - Return a standard payment\n ", + "start": 2090, + "end": 2224, + "loc": { + "start": { + "line": 72, + "column": 4 + }, + "end": { + "line": 76, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "get", + "start": 2229, + "end": 2232, + "loc": { + "start": { + "line": 77, + "column": 4 + }, + "end": { + "line": 77, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "payment", + "start": 2233, + "end": 2240, + "loc": { + "start": { + "line": 77, + "column": 8 + }, + "end": { + "line": 77, + "column": 15 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2240, + "end": 2241, + "loc": { + "start": { + "line": 77, + "column": 15 + }, + "end": { + "line": 77, + "column": 16 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2241, + "end": 2242, + "loc": { + "start": { + "line": 77, + "column": 16 + }, + "end": { + "line": 77, + "column": 17 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2243, + "end": 2244, + "loc": { + "start": { + "line": 77, + "column": 18 + }, + "end": { + "line": 77, + "column": 19 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 2253, + "end": 2259, + "loc": { + "start": { + "line": 78, + "column": 8 + }, + "end": { + "line": 78, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "DeployUtil", + "start": 2260, + "end": 2270, + "loc": { + "start": { + "line": 78, + "column": 15 + }, + "end": { + "line": 78, + "column": 25 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2270, + "end": 2271, + "loc": { + "start": { + "line": 78, + "column": 25 + }, + "end": { + "line": 78, + "column": 26 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "standardPayment", + "start": 2271, + "end": 2286, + "loc": { + "start": { + "line": 78, + "column": 26 + }, + "end": { + "line": 78, + "column": 41 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2286, + "end": 2287, + "loc": { + "start": { + "line": 78, + "column": 41 + }, + "end": { + "line": 78, + "column": 42 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "fee", + "start": 2287, + "end": 2290, + "loc": { + "start": { + "line": 78, + "column": 42 + }, + "end": { + "line": 78, + "column": 45 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2290, + "end": 2291, + "loc": { + "start": { + "line": 78, + "column": 45 + }, + "end": { + "line": 78, + "column": 46 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2291, + "end": 2292, + "loc": { + "start": { + "line": 78, + "column": 46 + }, + "end": { + "line": 78, + "column": 47 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2297, + "end": 2298, + "loc": { + "start": { + "line": 79, + "column": 4 + }, + "end": { + "line": 79, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Get a DeployResult constructor\n *\n * @return {TransferResult.constructor} - Return the constructor of a given DeployResult\n ", + "start": 2304, + "end": 2453, + "loc": { + "start": { + "line": 81, + "column": 4 + }, + "end": { + "line": 85, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "get", + "start": 2458, + "end": 2461, + "loc": { + "start": { + "line": 86, + "column": 4 + }, + "end": { + "line": 86, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "deployResult", + "start": 2462, + "end": 2474, + "loc": { + "start": { + "line": 86, + "column": 8 + }, + "end": { + "line": 86, + "column": 20 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2474, + "end": 2475, + "loc": { + "start": { + "line": 86, + "column": 20 + }, + "end": { + "line": 86, + "column": 21 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2475, + "end": 2476, + "loc": { + "start": { + "line": 86, + "column": 21 + }, + "end": { + "line": 86, + "column": 22 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2477, + "end": 2478, + "loc": { + "start": { + "line": 86, + "column": 23 + }, + "end": { + "line": 86, + "column": 24 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 2487, + "end": 2493, + "loc": { + "start": { + "line": 87, + "column": 8 + }, + "end": { + "line": 87, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "TransferResult", + "start": 2494, + "end": 2508, + "loc": { + "start": { + "line": 87, + "column": 15 + }, + "end": { + "line": 87, + "column": 29 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2513, + "end": 2514, + "loc": { + "start": { + "line": 88, + "column": 4 + }, + "end": { + "line": 88, + "column": 5 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2515, + "end": 2516, + "loc": { + "start": { + "line": 89, + "column": 0 + }, + "end": { + "line": 89, + "column": 1 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2516, + "end": 2516, + "loc": { + "start": { + "line": 89, + "column": 1 + }, + "end": { + "line": 89, + "column": 1 + } + } + } + ] +} \ No newline at end of file diff --git a/ast/source/services/errors/extendableError.js.json b/ast/source/services/errors/extendableError.js.json new file mode 100644 index 0000000..e4ac4b6 --- /dev/null +++ b/ast/source/services/errors/extendableError.js.json @@ -0,0 +1,3067 @@ +{ + "type": "File", + "start": 0, + "end": 609, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 25, + "column": 1 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 609, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 25, + "column": 1 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ExportNamedDeclaration", + "start": 100, + "end": 609, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 25, + "column": 1 + } + }, + "specifiers": [], + "source": null, + "declaration": { + "type": "ClassDeclaration", + "start": 107, + "end": 609, + "loc": { + "start": { + "line": 5, + "column": 7 + }, + "end": { + "line": 25, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 113, + "end": 128, + "loc": { + "start": { + "line": 5, + "column": 13 + }, + "end": { + "line": 5, + "column": 28 + }, + "identifierName": "ExtendableError" + }, + "name": "ExtendableError", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 137, + "end": 142, + "loc": { + "start": { + "line": 5, + "column": 37 + }, + "end": { + "line": 5, + "column": 42 + }, + "identifierName": "Error" + }, + "name": "Error" + }, + "body": { + "type": "ClassBody", + "start": 143, + "end": 609, + "loc": { + "start": { + "line": 5, + "column": 43 + }, + "end": { + "line": 25, + "column": 1 + } + }, + "body": [ + { + "type": "ClassProperty", + "start": 175, + "end": 179, + "loc": { + "start": { + "line": 7, + "column": 4 + }, + "end": { + "line": 7, + "column": 8 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 175, + "end": 179, + "loc": { + "start": { + "line": 7, + "column": 4 + }, + "end": { + "line": 7, + "column": 8 + }, + "identifierName": "name" + }, + "name": "name", + "leadingComments": null, + "trailingComments": null + }, + "value": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 149, + "end": 170, + "loc": { + "start": { + "line": 6, + "column": 4 + }, + "end": { + "line": 6, + "column": 25 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 184, + "end": 205, + "loc": { + "start": { + "line": 8, + "column": 4 + }, + "end": { + "line": 8, + "column": 25 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 210, + "end": 215, + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 9, + "column": 9 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 210, + "end": 215, + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 9, + "column": 9 + }, + "identifierName": "stack" + }, + "name": "stack", + "leadingComments": null, + "trailingComments": null + }, + "value": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 149, + "end": 170, + "loc": { + "start": { + "line": 6, + "column": 4 + }, + "end": { + "line": 6, + "column": 25 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 184, + "end": 205, + "loc": { + "start": { + "line": 8, + "column": 4 + }, + "end": { + "line": 8, + "column": 25 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {string} message - Error message\n ", + "start": 221, + "end": 305, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 15, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 310, + "end": 607, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 24, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 310, + "end": 321, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 16, + "column": 15 + }, + "identifierName": "constructor" + }, + "name": "constructor", + "leadingComments": null + }, + "kind": "constructor", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 322, + "end": 329, + "loc": { + "start": { + "line": 16, + "column": 16 + }, + "end": { + "line": 16, + "column": 23 + }, + "identifierName": "message" + }, + "name": "message" + } + ], + "body": { + "type": "BlockStatement", + "start": 331, + "end": 607, + "loc": { + "start": { + "line": 16, + "column": 25 + }, + "end": { + "line": 24, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 341, + "end": 356, + "loc": { + "start": { + "line": 17, + "column": 8 + }, + "end": { + "line": 17, + "column": 23 + } + }, + "expression": { + "type": "CallExpression", + "start": 341, + "end": 355, + "loc": { + "start": { + "line": 17, + "column": 8 + }, + "end": { + "line": 17, + "column": 22 + } + }, + "callee": { + "type": "Super", + "start": 341, + "end": 346, + "loc": { + "start": { + "line": 17, + "column": 8 + }, + "end": { + "line": 17, + "column": 13 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "start": 347, + "end": 354, + "loc": { + "start": { + "line": 17, + "column": 14 + }, + "end": { + "line": 17, + "column": 21 + }, + "identifierName": "message" + }, + "name": "message" + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 365, + "end": 399, + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 42 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 365, + "end": 398, + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 41 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 365, + "end": 374, + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 17 + } + }, + "object": { + "type": "ThisExpression", + "start": 365, + "end": 369, + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 370, + "end": 374, + "loc": { + "start": { + "line": 18, + "column": 13 + }, + "end": { + "line": 18, + "column": 17 + }, + "identifierName": "name" + }, + "name": "name" + }, + "computed": false + }, + "right": { + "type": "MemberExpression", + "start": 377, + "end": 398, + "loc": { + "start": { + "line": 18, + "column": 20 + }, + "end": { + "line": 18, + "column": 41 + } + }, + "object": { + "type": "MemberExpression", + "start": 377, + "end": 393, + "loc": { + "start": { + "line": 18, + "column": 20 + }, + "end": { + "line": 18, + "column": 36 + } + }, + "object": { + "type": "ThisExpression", + "start": 377, + "end": 381, + "loc": { + "start": { + "line": 18, + "column": 20 + }, + "end": { + "line": 18, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "start": 382, + "end": 393, + "loc": { + "start": { + "line": 18, + "column": 25 + }, + "end": { + "line": 18, + "column": 36 + }, + "identifierName": "constructor" + }, + "name": "constructor" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 394, + "end": 398, + "loc": { + "start": { + "line": 18, + "column": 37 + }, + "end": { + "line": 18, + "column": 41 + }, + "identifierName": "name" + }, + "name": "name" + }, + "computed": false + } + } + }, + { + "type": "IfStatement", + "start": 408, + "end": 601, + "loc": { + "start": { + "line": 19, + "column": 8 + }, + "end": { + "line": 23, + "column": 9 + } + }, + "test": { + "type": "BinaryExpression", + "start": 412, + "end": 457, + "loc": { + "start": { + "line": 19, + "column": 12 + }, + "end": { + "line": 19, + "column": 57 + } + }, + "left": { + "type": "UnaryExpression", + "start": 412, + "end": 442, + "loc": { + "start": { + "line": 19, + "column": 12 + }, + "end": { + "line": 19, + "column": 42 + } + }, + "operator": "typeof", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 419, + "end": 442, + "loc": { + "start": { + "line": 19, + "column": 19 + }, + "end": { + "line": 19, + "column": 42 + } + }, + "object": { + "type": "Identifier", + "start": 419, + "end": 424, + "loc": { + "start": { + "line": 19, + "column": 19 + }, + "end": { + "line": 19, + "column": 24 + }, + "identifierName": "Error" + }, + "name": "Error" + }, + "property": { + "type": "Identifier", + "start": 425, + "end": 442, + "loc": { + "start": { + "line": 19, + "column": 25 + }, + "end": { + "line": 19, + "column": 42 + }, + "identifierName": "captureStackTrace" + }, + "name": "captureStackTrace" + }, + "computed": false + }, + "extra": { + "parenthesizedArgument": false + } + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 447, + "end": 457, + "loc": { + "start": { + "line": 19, + "column": 47 + }, + "end": { + "line": 19, + "column": 57 + } + }, + "extra": { + "rawValue": "function", + "raw": "\"function\"" + }, + "value": "function" + } + }, + "consequent": { + "type": "BlockStatement", + "start": 459, + "end": 531, + "loc": { + "start": { + "line": 19, + "column": 59 + }, + "end": { + "line": 21, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 473, + "end": 521, + "loc": { + "start": { + "line": 20, + "column": 12 + }, + "end": { + "line": 20, + "column": 60 + } + }, + "expression": { + "type": "CallExpression", + "start": 473, + "end": 520, + "loc": { + "start": { + "line": 20, + "column": 12 + }, + "end": { + "line": 20, + "column": 59 + } + }, + "callee": { + "type": "MemberExpression", + "start": 473, + "end": 496, + "loc": { + "start": { + "line": 20, + "column": 12 + }, + "end": { + "line": 20, + "column": 35 + } + }, + "object": { + "type": "Identifier", + "start": 473, + "end": 478, + "loc": { + "start": { + "line": 20, + "column": 12 + }, + "end": { + "line": 20, + "column": 17 + }, + "identifierName": "Error" + }, + "name": "Error" + }, + "property": { + "type": "Identifier", + "start": 479, + "end": 496, + "loc": { + "start": { + "line": 20, + "column": 18 + }, + "end": { + "line": 20, + "column": 35 + }, + "identifierName": "captureStackTrace" + }, + "name": "captureStackTrace" + }, + "computed": false + }, + "arguments": [ + { + "type": "ThisExpression", + "start": 497, + "end": 501, + "loc": { + "start": { + "line": 20, + "column": 36 + }, + "end": { + "line": 20, + "column": 40 + } + } + }, + { + "type": "MemberExpression", + "start": 503, + "end": 519, + "loc": { + "start": { + "line": 20, + "column": 42 + }, + "end": { + "line": 20, + "column": 58 + } + }, + "object": { + "type": "ThisExpression", + "start": 503, + "end": 507, + "loc": { + "start": { + "line": 20, + "column": 42 + }, + "end": { + "line": 20, + "column": 46 + } + } + }, + "property": { + "type": "Identifier", + "start": 508, + "end": 519, + "loc": { + "start": { + "line": 20, + "column": 47 + }, + "end": { + "line": 20, + "column": 58 + }, + "identifierName": "constructor" + }, + "name": "constructor" + }, + "computed": false + } + ] + } + } + ], + "directives": [] + }, + "alternate": { + "type": "BlockStatement", + "start": 537, + "end": 601, + "loc": { + "start": { + "line": 21, + "column": 15 + }, + "end": { + "line": 23, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 551, + "end": 591, + "loc": { + "start": { + "line": 22, + "column": 12 + }, + "end": { + "line": 22, + "column": 52 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 551, + "end": 590, + "loc": { + "start": { + "line": 22, + "column": 12 + }, + "end": { + "line": 22, + "column": 51 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 551, + "end": 561, + "loc": { + "start": { + "line": 22, + "column": 12 + }, + "end": { + "line": 22, + "column": 22 + } + }, + "object": { + "type": "ThisExpression", + "start": 551, + "end": 555, + "loc": { + "start": { + "line": 22, + "column": 12 + }, + "end": { + "line": 22, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "start": 556, + "end": 561, + "loc": { + "start": { + "line": 22, + "column": 17 + }, + "end": { + "line": 22, + "column": 22 + }, + "identifierName": "stack" + }, + "name": "stack" + }, + "computed": false + }, + "right": { + "type": "MemberExpression", + "start": 564, + "end": 590, + "loc": { + "start": { + "line": 22, + "column": 25 + }, + "end": { + "line": 22, + "column": 51 + } + }, + "object": { + "type": "NewExpression", + "start": 565, + "end": 583, + "loc": { + "start": { + "line": 22, + "column": 26 + }, + "end": { + "line": 22, + "column": 44 + } + }, + "callee": { + "type": "Identifier", + "start": 569, + "end": 574, + "loc": { + "start": { + "line": 22, + "column": 30 + }, + "end": { + "line": 22, + "column": 35 + }, + "identifierName": "Error" + }, + "name": "Error" + }, + "arguments": [ + { + "type": "Identifier", + "start": 575, + "end": 582, + "loc": { + "start": { + "line": 22, + "column": 36 + }, + "end": { + "line": 22, + "column": 43 + }, + "identifierName": "message" + }, + "name": "message" + } + ], + "extra": { + "parenthesized": true, + "parenStart": 564 + } + }, + "property": { + "type": "Identifier", + "start": 585, + "end": 590, + "loc": { + "start": { + "line": 22, + "column": 46 + }, + "end": { + "line": 22, + "column": 51 + }, + "identifierName": "stack" + }, + "name": "stack" + }, + "computed": false + } + } + } + ], + "directives": [] + } + } + ], + "directives": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {string} message - Error message\n ", + "start": 221, + "end": 305, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 15, + "column": 7 + } + } + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * ExtendableError class\n * Generic error class used as a wrapper to define specific errors\n ", + "start": 0, + "end": 99, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 4, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * ExtendableError class\n * Generic error class used as a wrapper to define specific errors\n ", + "start": 0, + "end": 99, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 4, + "column": 3 + } + } + } + ] + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\n * ExtendableError class\n * Generic error class used as a wrapper to define specific errors\n ", + "start": 0, + "end": 99, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 4, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 149, + "end": 170, + "loc": { + "start": { + "line": 6, + "column": 4 + }, + "end": { + "line": 6, + "column": 25 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 184, + "end": 205, + "loc": { + "start": { + "line": 8, + "column": 4 + }, + "end": { + "line": 8, + "column": 25 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {string} message - Error message\n ", + "start": 221, + "end": 305, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 15, + "column": 7 + } + } + } + ], + "tokens": [ + { + "type": "CommentBlock", + "value": "*\n * ExtendableError class\n * Generic error class used as a wrapper to define specific errors\n ", + "start": 0, + "end": 99, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 4, + "column": 3 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 100, + "end": 106, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 6 + } + } + }, + { + "type": { + "label": "class", + "keyword": "class", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "class", + "start": 107, + "end": 112, + "loc": { + "start": { + "line": 5, + "column": 7 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "ExtendableError", + "start": 113, + "end": 128, + "loc": { + "start": { + "line": 5, + "column": 13 + }, + "end": { + "line": 5, + "column": 28 + } + } + }, + { + "type": { + "label": "extends", + "keyword": "extends", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "extends", + "start": 129, + "end": 136, + "loc": { + "start": { + "line": 5, + "column": 29 + }, + "end": { + "line": 5, + "column": 36 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Error", + "start": 137, + "end": 142, + "loc": { + "start": { + "line": 5, + "column": 37 + }, + "end": { + "line": 5, + "column": 42 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 143, + "end": 144, + "loc": { + "start": { + "line": 5, + "column": 43 + }, + "end": { + "line": 5, + "column": 44 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 149, + "end": 170, + "loc": { + "start": { + "line": 6, + "column": 4 + }, + "end": { + "line": 6, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "name", + "start": 175, + "end": 179, + "loc": { + "start": { + "line": 7, + "column": 4 + }, + "end": { + "line": 7, + "column": 8 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 184, + "end": 205, + "loc": { + "start": { + "line": 8, + "column": 4 + }, + "end": { + "line": 8, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "stack", + "start": 210, + "end": 215, + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 9, + "column": 9 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {string} message - Error message\n ", + "start": 221, + "end": 305, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 15, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "constructor", + "start": 310, + "end": 321, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 16, + "column": 15 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 321, + "end": 322, + "loc": { + "start": { + "line": 16, + "column": 15 + }, + "end": { + "line": 16, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "message", + "start": 322, + "end": 329, + "loc": { + "start": { + "line": 16, + "column": 16 + }, + "end": { + "line": 16, + "column": 23 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 329, + "end": 330, + "loc": { + "start": { + "line": 16, + "column": 23 + }, + "end": { + "line": 16, + "column": 24 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 331, + "end": 332, + "loc": { + "start": { + "line": 16, + "column": 25 + }, + "end": { + "line": 16, + "column": 26 + } + } + }, + { + "type": { + "label": "super", + "keyword": "super", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "super", + "start": 341, + "end": 346, + "loc": { + "start": { + "line": 17, + "column": 8 + }, + "end": { + "line": 17, + "column": 13 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 346, + "end": 347, + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 17, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "message", + "start": 347, + "end": 354, + "loc": { + "start": { + "line": 17, + "column": 14 + }, + "end": { + "line": 17, + "column": 21 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 354, + "end": 355, + "loc": { + "start": { + "line": 17, + "column": 21 + }, + "end": { + "line": 17, + "column": 22 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 355, + "end": 356, + "loc": { + "start": { + "line": 17, + "column": 22 + }, + "end": { + "line": 17, + "column": 23 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 365, + "end": 369, + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 369, + "end": 370, + "loc": { + "start": { + "line": 18, + "column": 12 + }, + "end": { + "line": 18, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "name", + "start": 370, + "end": 374, + "loc": { + "start": { + "line": 18, + "column": 13 + }, + "end": { + "line": 18, + "column": 17 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 375, + "end": 376, + "loc": { + "start": { + "line": 18, + "column": 18 + }, + "end": { + "line": 18, + "column": 19 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 377, + "end": 381, + "loc": { + "start": { + "line": 18, + "column": 20 + }, + "end": { + "line": 18, + "column": 24 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 381, + "end": 382, + "loc": { + "start": { + "line": 18, + "column": 24 + }, + "end": { + "line": 18, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "constructor", + "start": 382, + "end": 393, + "loc": { + "start": { + "line": 18, + "column": 25 + }, + "end": { + "line": 18, + "column": 36 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 393, + "end": 394, + "loc": { + "start": { + "line": 18, + "column": 36 + }, + "end": { + "line": 18, + "column": 37 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "name", + "start": 394, + "end": 398, + "loc": { + "start": { + "line": 18, + "column": 37 + }, + "end": { + "line": 18, + "column": 41 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 398, + "end": 399, + "loc": { + "start": { + "line": 18, + "column": 41 + }, + "end": { + "line": 18, + "column": 42 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 408, + "end": 410, + "loc": { + "start": { + "line": 19, + "column": 8 + }, + "end": { + "line": 19, + "column": 10 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 411, + "end": 412, + "loc": { + "start": { + "line": 19, + "column": 11 + }, + "end": { + "line": 19, + "column": 12 + } + } + }, + { + "type": { + "label": "typeof", + "keyword": "typeof", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "typeof", + "start": 412, + "end": 418, + "loc": { + "start": { + "line": 19, + "column": 12 + }, + "end": { + "line": 19, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Error", + "start": 419, + "end": 424, + "loc": { + "start": { + "line": 19, + "column": 19 + }, + "end": { + "line": 19, + "column": 24 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 424, + "end": 425, + "loc": { + "start": { + "line": 19, + "column": 24 + }, + "end": { + "line": 19, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "captureStackTrace", + "start": 425, + "end": 442, + "loc": { + "start": { + "line": 19, + "column": 25 + }, + "end": { + "line": 19, + "column": 42 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "===", + "start": 443, + "end": 446, + "loc": { + "start": { + "line": 19, + "column": 43 + }, + "end": { + "line": 19, + "column": 46 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "function", + "start": 447, + "end": 457, + "loc": { + "start": { + "line": 19, + "column": 47 + }, + "end": { + "line": 19, + "column": 57 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 457, + "end": 458, + "loc": { + "start": { + "line": 19, + "column": 57 + }, + "end": { + "line": 19, + "column": 58 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 459, + "end": 460, + "loc": { + "start": { + "line": 19, + "column": 59 + }, + "end": { + "line": 19, + "column": 60 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Error", + "start": 473, + "end": 478, + "loc": { + "start": { + "line": 20, + "column": 12 + }, + "end": { + "line": 20, + "column": 17 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 478, + "end": 479, + "loc": { + "start": { + "line": 20, + "column": 17 + }, + "end": { + "line": 20, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "captureStackTrace", + "start": 479, + "end": 496, + "loc": { + "start": { + "line": 20, + "column": 18 + }, + "end": { + "line": 20, + "column": 35 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 496, + "end": 497, + "loc": { + "start": { + "line": 20, + "column": 35 + }, + "end": { + "line": 20, + "column": 36 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 497, + "end": 501, + "loc": { + "start": { + "line": 20, + "column": 36 + }, + "end": { + "line": 20, + "column": 40 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 501, + "end": 502, + "loc": { + "start": { + "line": 20, + "column": 40 + }, + "end": { + "line": 20, + "column": 41 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 503, + "end": 507, + "loc": { + "start": { + "line": 20, + "column": 42 + }, + "end": { + "line": 20, + "column": 46 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 507, + "end": 508, + "loc": { + "start": { + "line": 20, + "column": 46 + }, + "end": { + "line": 20, + "column": 47 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "constructor", + "start": 508, + "end": 519, + "loc": { + "start": { + "line": 20, + "column": 47 + }, + "end": { + "line": 20, + "column": 58 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 519, + "end": 520, + "loc": { + "start": { + "line": 20, + "column": 58 + }, + "end": { + "line": 20, + "column": 59 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 520, + "end": 521, + "loc": { + "start": { + "line": 20, + "column": 59 + }, + "end": { + "line": 20, + "column": 60 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 530, + "end": 531, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 9 + } + } + }, + { + "type": { + "label": "else", + "keyword": "else", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "else", + "start": 532, + "end": 536, + "loc": { + "start": { + "line": 21, + "column": 10 + }, + "end": { + "line": 21, + "column": 14 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 537, + "end": 538, + "loc": { + "start": { + "line": 21, + "column": 15 + }, + "end": { + "line": 21, + "column": 16 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 551, + "end": 555, + "loc": { + "start": { + "line": 22, + "column": 12 + }, + "end": { + "line": 22, + "column": 16 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 555, + "end": 556, + "loc": { + "start": { + "line": 22, + "column": 16 + }, + "end": { + "line": 22, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "stack", + "start": 556, + "end": 561, + "loc": { + "start": { + "line": 22, + "column": 17 + }, + "end": { + "line": 22, + "column": 22 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 562, + "end": 563, + "loc": { + "start": { + "line": 22, + "column": 23 + }, + "end": { + "line": 22, + "column": 24 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 564, + "end": 565, + "loc": { + "start": { + "line": 22, + "column": 25 + }, + "end": { + "line": 22, + "column": 26 + } + } + }, + { + "type": { + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "new", + "start": 565, + "end": 568, + "loc": { + "start": { + "line": 22, + "column": 26 + }, + "end": { + "line": 22, + "column": 29 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Error", + "start": 569, + "end": 574, + "loc": { + "start": { + "line": 22, + "column": 30 + }, + "end": { + "line": 22, + "column": 35 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 574, + "end": 575, + "loc": { + "start": { + "line": 22, + "column": 35 + }, + "end": { + "line": 22, + "column": 36 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "message", + "start": 575, + "end": 582, + "loc": { + "start": { + "line": 22, + "column": 36 + }, + "end": { + "line": 22, + "column": 43 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 582, + "end": 583, + "loc": { + "start": { + "line": 22, + "column": 43 + }, + "end": { + "line": 22, + "column": 44 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 583, + "end": 584, + "loc": { + "start": { + "line": 22, + "column": 44 + }, + "end": { + "line": 22, + "column": 45 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 584, + "end": 585, + "loc": { + "start": { + "line": 22, + "column": 45 + }, + "end": { + "line": 22, + "column": 46 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "stack", + "start": 585, + "end": 590, + "loc": { + "start": { + "line": 22, + "column": 46 + }, + "end": { + "line": 22, + "column": 51 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 590, + "end": 591, + "loc": { + "start": { + "line": 22, + "column": 51 + }, + "end": { + "line": 22, + "column": 52 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 600, + "end": 601, + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 9 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 606, + "end": 607, + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 5 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 608, + "end": 609, + "loc": { + "start": { + "line": 25, + "column": 0 + }, + "end": { + "line": 25, + "column": 1 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 609, + "end": 609, + "loc": { + "start": { + "line": 25, + "column": 1 + }, + "end": { + "line": 25, + "column": 1 + } + } + } + ] +} \ No newline at end of file diff --git a/ast/source/services/errors/index.js.json b/ast/source/services/errors/index.js.json new file mode 100644 index 0000000..289cd0e --- /dev/null +++ b/ast/source/services/errors/index.js.json @@ -0,0 +1,908 @@ +{ + "type": "File", + "start": 0, + "end": 183, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 5, + "column": 28 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 183, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 5, + "column": 28 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ExportAllDeclaration", + "start": 0, + "end": 36, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 36 + } + }, + "source": { + "type": "StringLiteral", + "start": 14, + "end": 35, + "loc": { + "start": { + "line": 1, + "column": 14 + }, + "end": { + "line": 1, + "column": 35 + } + }, + "extra": { + "rawValue": "./insufficientFunds", + "raw": "'./insufficientFunds'" + }, + "value": "./insufficientFunds" + } + }, + { + "type": "ExportAllDeclaration", + "start": 37, + "end": 72, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 35 + } + }, + "source": { + "type": "StringLiteral", + "start": 51, + "end": 71, + "loc": { + "start": { + "line": 2, + "column": 14 + }, + "end": { + "line": 2, + "column": 34 + } + }, + "extra": { + "rawValue": "./noActiveKeyError", + "raw": "'./noActiveKeyError'" + }, + "value": "./noActiveKeyError" + } + }, + { + "type": "ExportAllDeclaration", + "start": 73, + "end": 111, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 38 + } + }, + "source": { + "type": "StringLiteral", + "start": 87, + "end": 110, + "loc": { + "start": { + "line": 3, + "column": 14 + }, + "end": { + "line": 3, + "column": 37 + } + }, + "extra": { + "rawValue": "./noStakeBalanceError", + "raw": "'./noStakeBalanceError'" + }, + "value": "./noStakeBalanceError" + } + }, + { + "type": "ExportAllDeclaration", + "start": 112, + "end": 154, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 42 + } + }, + "source": { + "type": "StringLiteral", + "start": 126, + "end": 153, + "loc": { + "start": { + "line": 4, + "column": 14 + }, + "end": { + "line": 4, + "column": 41 + } + }, + "extra": { + "rawValue": "./noValidatorBalanceError", + "raw": "'./noValidatorBalanceError'" + }, + "value": "./noValidatorBalanceError" + } + }, + { + "type": "ExportAllDeclaration", + "start": 155, + "end": 183, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 28 + } + }, + "source": { + "type": "StringLiteral", + "start": 169, + "end": 182, + "loc": { + "start": { + "line": 5, + "column": 14 + }, + "end": { + "line": 5, + "column": 27 + } + }, + "extra": { + "rawValue": "./signError", + "raw": "'./signError'" + }, + "value": "./signError" + } + } + ], + "directives": [] + }, + "comments": [], + "tokens": [ + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 0, + "end": 6, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 6 + } + } + }, + { + "type": { + "label": "*", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 10, + "updateContext": null + }, + "value": "*", + "start": 7, + "end": 8, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 9, + "end": 13, + "loc": { + "start": { + "line": 1, + "column": 9 + }, + "end": { + "line": 1, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./insufficientFunds", + "start": 14, + "end": 35, + "loc": { + "start": { + "line": 1, + "column": 14 + }, + "end": { + "line": 1, + "column": 35 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 35, + "end": 36, + "loc": { + "start": { + "line": 1, + "column": 35 + }, + "end": { + "line": 1, + "column": 36 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 37, + "end": 43, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 6 + } + } + }, + { + "type": { + "label": "*", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 10, + "updateContext": null + }, + "value": "*", + "start": 44, + "end": 45, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 46, + "end": 50, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./noActiveKeyError", + "start": 51, + "end": 71, + "loc": { + "start": { + "line": 2, + "column": 14 + }, + "end": { + "line": 2, + "column": 34 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 71, + "end": 72, + "loc": { + "start": { + "line": 2, + "column": 34 + }, + "end": { + "line": 2, + "column": 35 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 73, + "end": 79, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 6 + } + } + }, + { + "type": { + "label": "*", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 10, + "updateContext": null + }, + "value": "*", + "start": 80, + "end": 81, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 82, + "end": 86, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./noStakeBalanceError", + "start": 87, + "end": 110, + "loc": { + "start": { + "line": 3, + "column": 14 + }, + "end": { + "line": 3, + "column": 37 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 110, + "end": 111, + "loc": { + "start": { + "line": 3, + "column": 37 + }, + "end": { + "line": 3, + "column": 38 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 112, + "end": 118, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 6 + } + } + }, + { + "type": { + "label": "*", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 10, + "updateContext": null + }, + "value": "*", + "start": 119, + "end": 120, + "loc": { + "start": { + "line": 4, + "column": 7 + }, + "end": { + "line": 4, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 121, + "end": 125, + "loc": { + "start": { + "line": 4, + "column": 9 + }, + "end": { + "line": 4, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./noValidatorBalanceError", + "start": 126, + "end": 153, + "loc": { + "start": { + "line": 4, + "column": 14 + }, + "end": { + "line": 4, + "column": 41 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 153, + "end": 154, + "loc": { + "start": { + "line": 4, + "column": 41 + }, + "end": { + "line": 4, + "column": 42 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 155, + "end": 161, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 6 + } + } + }, + { + "type": { + "label": "*", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 10, + "updateContext": null + }, + "value": "*", + "start": 162, + "end": 163, + "loc": { + "start": { + "line": 5, + "column": 7 + }, + "end": { + "line": 5, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 164, + "end": 168, + "loc": { + "start": { + "line": 5, + "column": 9 + }, + "end": { + "line": 5, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./signError", + "start": 169, + "end": 182, + "loc": { + "start": { + "line": 5, + "column": 14 + }, + "end": { + "line": 5, + "column": 27 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 182, + "end": 183, + "loc": { + "start": { + "line": 5, + "column": 27 + }, + "end": { + "line": 5, + "column": 28 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 183, + "end": 183, + "loc": { + "start": { + "line": 5, + "column": 28 + }, + "end": { + "line": 5, + "column": 28 + } + } + } + ] +} \ No newline at end of file diff --git a/ast/source/services/errors/insufficientFunds.js.json b/ast/source/services/errors/insufficientFunds.js.json new file mode 100644 index 0000000..6e2ff29 --- /dev/null +++ b/ast/source/services/errors/insufficientFunds.js.json @@ -0,0 +1,1343 @@ +{ + "type": "File", + "start": 0, + "end": 420, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 16, + "column": 1 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 420, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 16, + "column": 1 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 50, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 50 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 8, + "end": 23, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 23 + } + }, + "imported": { + "type": "Identifier", + "start": 8, + "end": 23, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 23 + }, + "identifierName": "ExtendableError" + }, + "name": "ExtendableError" + }, + "local": { + "type": "Identifier", + "start": 8, + "end": 23, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 23 + }, + "identifierName": "ExtendableError" + }, + "name": "ExtendableError" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 30, + "end": 49, + "loc": { + "start": { + "line": 1, + "column": 30 + }, + "end": { + "line": 1, + "column": 49 + } + }, + "extra": { + "rawValue": "./extendableError", + "raw": "\"./extendableError\"" + }, + "value": "./extendableError" + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * InsufficientFunds class\n * Error thrown when the user as insufficient funds in his balance\n ", + "start": 52, + "end": 153, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 154, + "end": 420, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 16, + "column": 1 + } + }, + "specifiers": [], + "source": null, + "declaration": { + "type": "ClassDeclaration", + "start": 161, + "end": 420, + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 16, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 167, + "end": 184, + "loc": { + "start": { + "line": 7, + "column": 13 + }, + "end": { + "line": 7, + "column": 30 + }, + "identifierName": "InsufficientFunds" + }, + "name": "InsufficientFunds", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 193, + "end": 208, + "loc": { + "start": { + "line": 7, + "column": 39 + }, + "end": { + "line": 7, + "column": 54 + }, + "identifierName": "ExtendableError" + }, + "name": "ExtendableError" + }, + "body": { + "type": "ClassBody", + "start": 209, + "end": 420, + "loc": { + "start": { + "line": 7, + "column": 55 + }, + "end": { + "line": 16, + "column": 1 + } + }, + "body": [ + { + "type": "ClassMethod", + "start": 299, + "end": 418, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 15, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 299, + "end": 310, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 15 + }, + "identifierName": "constructor" + }, + "name": "constructor", + "leadingComments": null + }, + "kind": "constructor", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 311, + "end": 314, + "loc": { + "start": { + "line": 13, + "column": 16 + }, + "end": { + "line": 13, + "column": 19 + }, + "identifierName": "min" + }, + "name": "min" + } + ], + "body": { + "type": "BlockStatement", + "start": 316, + "end": 418, + "loc": { + "start": { + "line": 13, + "column": 21 + }, + "end": { + "line": 15, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 326, + "end": 412, + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 94 + } + }, + "expression": { + "type": "CallExpression", + "start": 326, + "end": 411, + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 93 + } + }, + "callee": { + "type": "Super", + "start": 326, + "end": 331, + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 13 + } + } + }, + "arguments": [ + { + "type": "BinaryExpression", + "start": 332, + "end": 410, + "loc": { + "start": { + "line": 14, + "column": 14 + }, + "end": { + "line": 14, + "column": 92 + } + }, + "left": { + "type": "BinaryExpression", + "start": 332, + "end": 384, + "loc": { + "start": { + "line": 14, + "column": 14 + }, + "end": { + "line": 14, + "column": 66 + } + }, + "left": { + "type": "StringLiteral", + "start": 332, + "end": 378, + "loc": { + "start": { + "line": 14, + "column": 14 + }, + "end": { + "line": 14, + "column": 60 + } + }, + "extra": { + "rawValue": "Insufficient funds. You must have more than ", + "raw": "\"Insufficient funds. You must have more than \"" + }, + "value": "Insufficient funds. You must have more than " + }, + "operator": "+", + "right": { + "type": "Identifier", + "start": 381, + "end": 384, + "loc": { + "start": { + "line": 14, + "column": 63 + }, + "end": { + "line": 14, + "column": 66 + }, + "identifierName": "min" + }, + "name": "min" + } + }, + "operator": "+", + "right": { + "type": "StringLiteral", + "start": 387, + "end": 410, + "loc": { + "start": { + "line": 14, + "column": 69 + }, + "end": { + "line": 14, + "column": 92 + } + }, + "extra": { + "rawValue": " CSPR on your wallet.", + "raw": "\" CSPR on your wallet.\"" + }, + "value": " CSPR on your wallet." + } + } + ] + } + } + ], + "directives": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param min - Minimum casper needed\n ", + "start": 215, + "end": 294, + "loc": { + "start": { + "line": 8, + "column": 4 + }, + "end": { + "line": 12, + "column": 7 + } + } + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * InsufficientFunds class\n * Error thrown when the user as insufficient funds in his balance\n ", + "start": 52, + "end": 153, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * InsufficientFunds class\n * Error thrown when the user as insufficient funds in his balance\n ", + "start": 52, + "end": 153, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + } + } + ] + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\n * InsufficientFunds class\n * Error thrown when the user as insufficient funds in his balance\n ", + "start": 52, + "end": 153, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param min - Minimum casper needed\n ", + "start": 215, + "end": 294, + "loc": { + "start": { + "line": 8, + "column": 4 + }, + "end": { + "line": 12, + "column": 7 + } + } + } + ], + "tokens": [ + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 0, + "end": 6, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7, + "end": 8, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "ExtendableError", + "start": 8, + "end": 23, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 23 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 23, + "end": 24, + "loc": { + "start": { + "line": 1, + "column": 23 + }, + "end": { + "line": 1, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 25, + "end": 29, + "loc": { + "start": { + "line": 1, + "column": 25 + }, + "end": { + "line": 1, + "column": 29 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./extendableError", + "start": 30, + "end": 49, + "loc": { + "start": { + "line": 1, + "column": 30 + }, + "end": { + "line": 1, + "column": 49 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 49, + "end": 50, + "loc": { + "start": { + "line": 1, + "column": 49 + }, + "end": { + "line": 1, + "column": 50 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * InsufficientFunds class\n * Error thrown when the user as insufficient funds in his balance\n ", + "start": 52, + "end": 153, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 154, + "end": 160, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 6 + } + } + }, + { + "type": { + "label": "class", + "keyword": "class", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "class", + "start": 161, + "end": 166, + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "InsufficientFunds", + "start": 167, + "end": 184, + "loc": { + "start": { + "line": 7, + "column": 13 + }, + "end": { + "line": 7, + "column": 30 + } + } + }, + { + "type": { + "label": "extends", + "keyword": "extends", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "extends", + "start": 185, + "end": 192, + "loc": { + "start": { + "line": 7, + "column": 31 + }, + "end": { + "line": 7, + "column": 38 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "ExtendableError", + "start": 193, + "end": 208, + "loc": { + "start": { + "line": 7, + "column": 39 + }, + "end": { + "line": 7, + "column": 54 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 209, + "end": 210, + "loc": { + "start": { + "line": 7, + "column": 55 + }, + "end": { + "line": 7, + "column": 56 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param min - Minimum casper needed\n ", + "start": 215, + "end": 294, + "loc": { + "start": { + "line": 8, + "column": 4 + }, + "end": { + "line": 12, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "constructor", + "start": 299, + "end": 310, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 15 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 310, + "end": 311, + "loc": { + "start": { + "line": 13, + "column": 15 + }, + "end": { + "line": 13, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "min", + "start": 311, + "end": 314, + "loc": { + "start": { + "line": 13, + "column": 16 + }, + "end": { + "line": 13, + "column": 19 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 314, + "end": 315, + "loc": { + "start": { + "line": 13, + "column": 19 + }, + "end": { + "line": 13, + "column": 20 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 316, + "end": 317, + "loc": { + "start": { + "line": 13, + "column": 21 + }, + "end": { + "line": 13, + "column": 22 + } + } + }, + { + "type": { + "label": "super", + "keyword": "super", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "super", + "start": 326, + "end": 331, + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 13 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 331, + "end": 332, + "loc": { + "start": { + "line": 14, + "column": 13 + }, + "end": { + "line": 14, + "column": 14 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "Insufficient funds. You must have more than ", + "start": 332, + "end": 378, + "loc": { + "start": { + "line": 14, + "column": 14 + }, + "end": { + "line": 14, + "column": 60 + } + } + }, + { + "type": { + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": 9, + "updateContext": null + }, + "value": "+", + "start": 379, + "end": 380, + "loc": { + "start": { + "line": 14, + "column": 61 + }, + "end": { + "line": 14, + "column": 62 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "min", + "start": 381, + "end": 384, + "loc": { + "start": { + "line": 14, + "column": 63 + }, + "end": { + "line": 14, + "column": 66 + } + } + }, + { + "type": { + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": 9, + "updateContext": null + }, + "value": "+", + "start": 385, + "end": 386, + "loc": { + "start": { + "line": 14, + "column": 67 + }, + "end": { + "line": 14, + "column": 68 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": " CSPR on your wallet.", + "start": 387, + "end": 410, + "loc": { + "start": { + "line": 14, + "column": 69 + }, + "end": { + "line": 14, + "column": 92 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 410, + "end": 411, + "loc": { + "start": { + "line": 14, + "column": 92 + }, + "end": { + "line": 14, + "column": 93 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 411, + "end": 412, + "loc": { + "start": { + "line": 14, + "column": 93 + }, + "end": { + "line": 14, + "column": 94 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 417, + "end": 418, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 5 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 419, + "end": 420, + "loc": { + "start": { + "line": 16, + "column": 0 + }, + "end": { + "line": 16, + "column": 1 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 420, + "end": 420, + "loc": { + "start": { + "line": 16, + "column": 1 + }, + "end": { + "line": 16, + "column": 1 + } + } + } + ] +} \ No newline at end of file diff --git a/ast/source/services/errors/noActiveKeyError.js.json b/ast/source/services/errors/noActiveKeyError.js.json new file mode 100644 index 0000000..5c59381 --- /dev/null +++ b/ast/source/services/errors/noActiveKeyError.js.json @@ -0,0 +1,1123 @@ +{ + "type": "File", + "start": 0, + "end": 325, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 14, + "column": 1 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 325, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 14, + "column": 1 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 50, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 50 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 8, + "end": 23, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 23 + } + }, + "imported": { + "type": "Identifier", + "start": 8, + "end": 23, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 23 + }, + "identifierName": "ExtendableError" + }, + "name": "ExtendableError" + }, + "local": { + "type": "Identifier", + "start": 8, + "end": 23, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 23 + }, + "identifierName": "ExtendableError" + }, + "name": "ExtendableError" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 30, + "end": 49, + "loc": { + "start": { + "line": 1, + "column": 30 + }, + "end": { + "line": 1, + "column": 49 + } + }, + "extra": { + "rawValue": "./extendableError", + "raw": "\"./extendableError\"" + }, + "value": "./extendableError" + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * NoActiveKeyError class\n * Error thrown when the user is not connected to the Casper signer extension\n ", + "start": 52, + "end": 163, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 164, + "end": 325, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 14, + "column": 1 + } + }, + "specifiers": [], + "source": null, + "declaration": { + "type": "ClassDeclaration", + "start": 171, + "end": 325, + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 14, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 177, + "end": 193, + "loc": { + "start": { + "line": 7, + "column": 13 + }, + "end": { + "line": 7, + "column": 29 + }, + "identifierName": "NoActiveKeyError" + }, + "name": "NoActiveKeyError", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 202, + "end": 217, + "loc": { + "start": { + "line": 7, + "column": 38 + }, + "end": { + "line": 7, + "column": 53 + }, + "identifierName": "ExtendableError" + }, + "name": "ExtendableError" + }, + "body": { + "type": "ClassBody", + "start": 218, + "end": 325, + "loc": { + "start": { + "line": 7, + "column": 54 + }, + "end": { + "line": 14, + "column": 1 + } + }, + "body": [ + { + "type": "ClassMethod", + "start": 259, + "end": 323, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 13, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 259, + "end": 270, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 15 + }, + "identifierName": "constructor" + }, + "name": "constructor", + "leadingComments": null + }, + "kind": "constructor", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 273, + "end": 323, + "loc": { + "start": { + "line": 11, + "column": 18 + }, + "end": { + "line": 13, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 283, + "end": 317, + "loc": { + "start": { + "line": 12, + "column": 8 + }, + "end": { + "line": 12, + "column": 42 + } + }, + "expression": { + "type": "CallExpression", + "start": 283, + "end": 316, + "loc": { + "start": { + "line": 12, + "column": 8 + }, + "end": { + "line": 12, + "column": 41 + } + }, + "callee": { + "type": "Super", + "start": 283, + "end": 288, + "loc": { + "start": { + "line": 12, + "column": 8 + }, + "end": { + "line": 12, + "column": 13 + } + } + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 289, + "end": 315, + "loc": { + "start": { + "line": 12, + "column": 14 + }, + "end": { + "line": 12, + "column": 40 + } + }, + "extra": { + "rawValue": "Not connected on Signer.", + "raw": "\"Not connected on Signer.\"" + }, + "value": "Not connected on Signer." + } + ] + } + } + ], + "directives": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Constructor\n ", + "start": 224, + "end": 254, + "loc": { + "start": { + "line": 8, + "column": 4 + }, + "end": { + "line": 10, + "column": 7 + } + } + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * NoActiveKeyError class\n * Error thrown when the user is not connected to the Casper signer extension\n ", + "start": 52, + "end": 163, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * NoActiveKeyError class\n * Error thrown when the user is not connected to the Casper signer extension\n ", + "start": 52, + "end": 163, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + } + } + ] + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\n * NoActiveKeyError class\n * Error thrown when the user is not connected to the Casper signer extension\n ", + "start": 52, + "end": 163, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Constructor\n ", + "start": 224, + "end": 254, + "loc": { + "start": { + "line": 8, + "column": 4 + }, + "end": { + "line": 10, + "column": 7 + } + } + } + ], + "tokens": [ + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 0, + "end": 6, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7, + "end": 8, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "ExtendableError", + "start": 8, + "end": 23, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 23 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 23, + "end": 24, + "loc": { + "start": { + "line": 1, + "column": 23 + }, + "end": { + "line": 1, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 25, + "end": 29, + "loc": { + "start": { + "line": 1, + "column": 25 + }, + "end": { + "line": 1, + "column": 29 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./extendableError", + "start": 30, + "end": 49, + "loc": { + "start": { + "line": 1, + "column": 30 + }, + "end": { + "line": 1, + "column": 49 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 49, + "end": 50, + "loc": { + "start": { + "line": 1, + "column": 49 + }, + "end": { + "line": 1, + "column": 50 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * NoActiveKeyError class\n * Error thrown when the user is not connected to the Casper signer extension\n ", + "start": 52, + "end": 163, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 164, + "end": 170, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 6 + } + } + }, + { + "type": { + "label": "class", + "keyword": "class", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "class", + "start": 171, + "end": 176, + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "NoActiveKeyError", + "start": 177, + "end": 193, + "loc": { + "start": { + "line": 7, + "column": 13 + }, + "end": { + "line": 7, + "column": 29 + } + } + }, + { + "type": { + "label": "extends", + "keyword": "extends", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "extends", + "start": 194, + "end": 201, + "loc": { + "start": { + "line": 7, + "column": 30 + }, + "end": { + "line": 7, + "column": 37 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "ExtendableError", + "start": 202, + "end": 217, + "loc": { + "start": { + "line": 7, + "column": 38 + }, + "end": { + "line": 7, + "column": 53 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 218, + "end": 219, + "loc": { + "start": { + "line": 7, + "column": 54 + }, + "end": { + "line": 7, + "column": 55 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Constructor\n ", + "start": 224, + "end": 254, + "loc": { + "start": { + "line": 8, + "column": 4 + }, + "end": { + "line": 10, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "constructor", + "start": 259, + "end": 270, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 15 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 270, + "end": 271, + "loc": { + "start": { + "line": 11, + "column": 15 + }, + "end": { + "line": 11, + "column": 16 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 271, + "end": 272, + "loc": { + "start": { + "line": 11, + "column": 16 + }, + "end": { + "line": 11, + "column": 17 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 273, + "end": 274, + "loc": { + "start": { + "line": 11, + "column": 18 + }, + "end": { + "line": 11, + "column": 19 + } + } + }, + { + "type": { + "label": "super", + "keyword": "super", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "super", + "start": 283, + "end": 288, + "loc": { + "start": { + "line": 12, + "column": 8 + }, + "end": { + "line": 12, + "column": 13 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 288, + "end": 289, + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 14 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "Not connected on Signer.", + "start": 289, + "end": 315, + "loc": { + "start": { + "line": 12, + "column": 14 + }, + "end": { + "line": 12, + "column": 40 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 315, + "end": 316, + "loc": { + "start": { + "line": 12, + "column": 40 + }, + "end": { + "line": 12, + "column": 41 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 316, + "end": 317, + "loc": { + "start": { + "line": 12, + "column": 41 + }, + "end": { + "line": 12, + "column": 42 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 322, + "end": 323, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 5 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 324, + "end": 325, + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 14, + "column": 1 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 325, + "end": 325, + "loc": { + "start": { + "line": 14, + "column": 1 + }, + "end": { + "line": 14, + "column": 1 + } + } + } + ] +} \ No newline at end of file diff --git a/ast/source/services/errors/noStakeBalanceError.js.json b/ast/source/services/errors/noStakeBalanceError.js.json new file mode 100644 index 0000000..e48ff3e --- /dev/null +++ b/ast/source/services/errors/noStakeBalanceError.js.json @@ -0,0 +1,1123 @@ +{ + "type": "File", + "start": 0, + "end": 307, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 14, + "column": 1 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 307, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 14, + "column": 1 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 50, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 50 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 8, + "end": 23, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 23 + } + }, + "imported": { + "type": "Identifier", + "start": 8, + "end": 23, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 23 + }, + "identifierName": "ExtendableError" + }, + "name": "ExtendableError" + }, + "local": { + "type": "Identifier", + "start": 8, + "end": 23, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 23 + }, + "identifierName": "ExtendableError" + }, + "name": "ExtendableError" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 30, + "end": 49, + "loc": { + "start": { + "line": 1, + "column": 30 + }, + "end": { + "line": 1, + "column": 49 + } + }, + "extra": { + "rawValue": "./extendableError", + "raw": "\"./extendableError\"" + }, + "value": "./extendableError" + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * NoStakeBalanceError class\n * Error thrown when the user doesn't have a staking balance\n ", + "start": 52, + "end": 149, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 150, + "end": 307, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 14, + "column": 1 + } + }, + "specifiers": [], + "source": null, + "declaration": { + "type": "ClassDeclaration", + "start": 157, + "end": 307, + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 14, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 163, + "end": 182, + "loc": { + "start": { + "line": 7, + "column": 13 + }, + "end": { + "line": 7, + "column": 32 + }, + "identifierName": "NoStakeBalanceError" + }, + "name": "NoStakeBalanceError", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 191, + "end": 206, + "loc": { + "start": { + "line": 7, + "column": 41 + }, + "end": { + "line": 7, + "column": 56 + }, + "identifierName": "ExtendableError" + }, + "name": "ExtendableError" + }, + "body": { + "type": "ClassBody", + "start": 207, + "end": 307, + "loc": { + "start": { + "line": 7, + "column": 57 + }, + "end": { + "line": 14, + "column": 1 + } + }, + "body": [ + { + "type": "ClassMethod", + "start": 248, + "end": 305, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 13, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 248, + "end": 259, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 15 + }, + "identifierName": "constructor" + }, + "name": "constructor", + "leadingComments": null + }, + "kind": "constructor", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 262, + "end": 305, + "loc": { + "start": { + "line": 11, + "column": 18 + }, + "end": { + "line": 13, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 272, + "end": 299, + "loc": { + "start": { + "line": 12, + "column": 8 + }, + "end": { + "line": 12, + "column": 35 + } + }, + "expression": { + "type": "CallExpression", + "start": 272, + "end": 298, + "loc": { + "start": { + "line": 12, + "column": 8 + }, + "end": { + "line": 12, + "column": 34 + } + }, + "callee": { + "type": "Super", + "start": 272, + "end": 277, + "loc": { + "start": { + "line": 12, + "column": 8 + }, + "end": { + "line": 12, + "column": 13 + } + } + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 278, + "end": 297, + "loc": { + "start": { + "line": 12, + "column": 14 + }, + "end": { + "line": 12, + "column": 33 + } + }, + "extra": { + "rawValue": "No staking funds.", + "raw": "\"No staking funds.\"" + }, + "value": "No staking funds." + } + ] + } + } + ], + "directives": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Constructor\n ", + "start": 213, + "end": 243, + "loc": { + "start": { + "line": 8, + "column": 4 + }, + "end": { + "line": 10, + "column": 7 + } + } + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * NoStakeBalanceError class\n * Error thrown when the user doesn't have a staking balance\n ", + "start": 52, + "end": 149, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * NoStakeBalanceError class\n * Error thrown when the user doesn't have a staking balance\n ", + "start": 52, + "end": 149, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + } + } + ] + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\n * NoStakeBalanceError class\n * Error thrown when the user doesn't have a staking balance\n ", + "start": 52, + "end": 149, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Constructor\n ", + "start": 213, + "end": 243, + "loc": { + "start": { + "line": 8, + "column": 4 + }, + "end": { + "line": 10, + "column": 7 + } + } + } + ], + "tokens": [ + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 0, + "end": 6, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7, + "end": 8, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "ExtendableError", + "start": 8, + "end": 23, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 23 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 23, + "end": 24, + "loc": { + "start": { + "line": 1, + "column": 23 + }, + "end": { + "line": 1, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 25, + "end": 29, + "loc": { + "start": { + "line": 1, + "column": 25 + }, + "end": { + "line": 1, + "column": 29 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./extendableError", + "start": 30, + "end": 49, + "loc": { + "start": { + "line": 1, + "column": 30 + }, + "end": { + "line": 1, + "column": 49 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 49, + "end": 50, + "loc": { + "start": { + "line": 1, + "column": 49 + }, + "end": { + "line": 1, + "column": 50 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * NoStakeBalanceError class\n * Error thrown when the user doesn't have a staking balance\n ", + "start": 52, + "end": 149, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 150, + "end": 156, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 6 + } + } + }, + { + "type": { + "label": "class", + "keyword": "class", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "class", + "start": 157, + "end": 162, + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "NoStakeBalanceError", + "start": 163, + "end": 182, + "loc": { + "start": { + "line": 7, + "column": 13 + }, + "end": { + "line": 7, + "column": 32 + } + } + }, + { + "type": { + "label": "extends", + "keyword": "extends", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "extends", + "start": 183, + "end": 190, + "loc": { + "start": { + "line": 7, + "column": 33 + }, + "end": { + "line": 7, + "column": 40 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "ExtendableError", + "start": 191, + "end": 206, + "loc": { + "start": { + "line": 7, + "column": 41 + }, + "end": { + "line": 7, + "column": 56 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 207, + "end": 208, + "loc": { + "start": { + "line": 7, + "column": 57 + }, + "end": { + "line": 7, + "column": 58 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Constructor\n ", + "start": 213, + "end": 243, + "loc": { + "start": { + "line": 8, + "column": 4 + }, + "end": { + "line": 10, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "constructor", + "start": 248, + "end": 259, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 15 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 259, + "end": 260, + "loc": { + "start": { + "line": 11, + "column": 15 + }, + "end": { + "line": 11, + "column": 16 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 260, + "end": 261, + "loc": { + "start": { + "line": 11, + "column": 16 + }, + "end": { + "line": 11, + "column": 17 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 262, + "end": 263, + "loc": { + "start": { + "line": 11, + "column": 18 + }, + "end": { + "line": 11, + "column": 19 + } + } + }, + { + "type": { + "label": "super", + "keyword": "super", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "super", + "start": 272, + "end": 277, + "loc": { + "start": { + "line": 12, + "column": 8 + }, + "end": { + "line": 12, + "column": 13 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 277, + "end": 278, + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 14 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "No staking funds.", + "start": 278, + "end": 297, + "loc": { + "start": { + "line": 12, + "column": 14 + }, + "end": { + "line": 12, + "column": 33 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 297, + "end": 298, + "loc": { + "start": { + "line": 12, + "column": 33 + }, + "end": { + "line": 12, + "column": 34 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 298, + "end": 299, + "loc": { + "start": { + "line": 12, + "column": 34 + }, + "end": { + "line": 12, + "column": 35 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 304, + "end": 305, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 5 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 306, + "end": 307, + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 14, + "column": 1 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 307, + "end": 307, + "loc": { + "start": { + "line": 14, + "column": 1 + }, + "end": { + "line": 14, + "column": 1 + } + } + } + ] +} \ No newline at end of file diff --git a/ast/source/services/errors/noValidatorBalanceError.js.json b/ast/source/services/errors/noValidatorBalanceError.js.json new file mode 100644 index 0000000..f64576d --- /dev/null +++ b/ast/source/services/errors/noValidatorBalanceError.js.json @@ -0,0 +1,1123 @@ +{ + "type": "File", + "start": 0, + "end": 406, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 14, + "column": 1 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 406, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 14, + "column": 1 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 50, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 50 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 8, + "end": 23, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 23 + } + }, + "imported": { + "type": "Identifier", + "start": 8, + "end": 23, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 23 + }, + "identifierName": "ExtendableError" + }, + "name": "ExtendableError" + }, + "local": { + "type": "Identifier", + "start": 8, + "end": 23, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 23 + }, + "identifierName": "ExtendableError" + }, + "name": "ExtendableError" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 30, + "end": 49, + "loc": { + "start": { + "line": 1, + "column": 30 + }, + "end": { + "line": 1, + "column": 49 + } + }, + "extra": { + "rawValue": "./extendableError", + "raw": "\"./extendableError\"" + }, + "value": "./extendableError" + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * NoValidatorBalanceError class\n * Error thrown when the current user doesn't have a validator balance\n ", + "start": 52, + "end": 163, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 164, + "end": 406, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 14, + "column": 1 + } + }, + "specifiers": [], + "source": null, + "declaration": { + "type": "ClassDeclaration", + "start": 171, + "end": 406, + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 14, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 177, + "end": 200, + "loc": { + "start": { + "line": 7, + "column": 13 + }, + "end": { + "line": 7, + "column": 36 + }, + "identifierName": "NoValidatorBalanceError" + }, + "name": "NoValidatorBalanceError", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 209, + "end": 224, + "loc": { + "start": { + "line": 7, + "column": 45 + }, + "end": { + "line": 7, + "column": 60 + }, + "identifierName": "ExtendableError" + }, + "name": "ExtendableError" + }, + "body": { + "type": "ClassBody", + "start": 225, + "end": 406, + "loc": { + "start": { + "line": 7, + "column": 61 + }, + "end": { + "line": 14, + "column": 1 + } + }, + "body": [ + { + "type": "ClassMethod", + "start": 266, + "end": 404, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 13, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 266, + "end": 277, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 15 + }, + "identifierName": "constructor" + }, + "name": "constructor", + "leadingComments": null + }, + "kind": "constructor", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 280, + "end": 404, + "loc": { + "start": { + "line": 11, + "column": 18 + }, + "end": { + "line": 13, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 290, + "end": 398, + "loc": { + "start": { + "line": 12, + "column": 8 + }, + "end": { + "line": 12, + "column": 116 + } + }, + "expression": { + "type": "CallExpression", + "start": 290, + "end": 397, + "loc": { + "start": { + "line": 12, + "column": 8 + }, + "end": { + "line": 12, + "column": 115 + } + }, + "callee": { + "type": "Super", + "start": 290, + "end": 295, + "loc": { + "start": { + "line": 12, + "column": 8 + }, + "end": { + "line": 12, + "column": 13 + } + } + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 296, + "end": 396, + "loc": { + "start": { + "line": 12, + "column": 14 + }, + "end": { + "line": 12, + "column": 114 + } + }, + "extra": { + "rawValue": "Unable to retrieve your Validator balance. Make sure that you are correctly bonded to the network.", + "raw": "\"Unable to retrieve your Validator balance. Make sure that you are correctly bonded to the network.\"" + }, + "value": "Unable to retrieve your Validator balance. Make sure that you are correctly bonded to the network." + } + ] + } + } + ], + "directives": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Constructor\n ", + "start": 231, + "end": 261, + "loc": { + "start": { + "line": 8, + "column": 4 + }, + "end": { + "line": 10, + "column": 7 + } + } + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * NoValidatorBalanceError class\n * Error thrown when the current user doesn't have a validator balance\n ", + "start": 52, + "end": 163, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * NoValidatorBalanceError class\n * Error thrown when the current user doesn't have a validator balance\n ", + "start": 52, + "end": 163, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + } + } + ] + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\n * NoValidatorBalanceError class\n * Error thrown when the current user doesn't have a validator balance\n ", + "start": 52, + "end": 163, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Constructor\n ", + "start": 231, + "end": 261, + "loc": { + "start": { + "line": 8, + "column": 4 + }, + "end": { + "line": 10, + "column": 7 + } + } + } + ], + "tokens": [ + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 0, + "end": 6, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7, + "end": 8, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "ExtendableError", + "start": 8, + "end": 23, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 23 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 23, + "end": 24, + "loc": { + "start": { + "line": 1, + "column": 23 + }, + "end": { + "line": 1, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 25, + "end": 29, + "loc": { + "start": { + "line": 1, + "column": 25 + }, + "end": { + "line": 1, + "column": 29 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./extendableError", + "start": 30, + "end": 49, + "loc": { + "start": { + "line": 1, + "column": 30 + }, + "end": { + "line": 1, + "column": 49 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 49, + "end": 50, + "loc": { + "start": { + "line": 1, + "column": 49 + }, + "end": { + "line": 1, + "column": 50 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * NoValidatorBalanceError class\n * Error thrown when the current user doesn't have a validator balance\n ", + "start": 52, + "end": 163, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 164, + "end": 170, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 6 + } + } + }, + { + "type": { + "label": "class", + "keyword": "class", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "class", + "start": 171, + "end": 176, + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "NoValidatorBalanceError", + "start": 177, + "end": 200, + "loc": { + "start": { + "line": 7, + "column": 13 + }, + "end": { + "line": 7, + "column": 36 + } + } + }, + { + "type": { + "label": "extends", + "keyword": "extends", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "extends", + "start": 201, + "end": 208, + "loc": { + "start": { + "line": 7, + "column": 37 + }, + "end": { + "line": 7, + "column": 44 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "ExtendableError", + "start": 209, + "end": 224, + "loc": { + "start": { + "line": 7, + "column": 45 + }, + "end": { + "line": 7, + "column": 60 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 225, + "end": 226, + "loc": { + "start": { + "line": 7, + "column": 61 + }, + "end": { + "line": 7, + "column": 62 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Constructor\n ", + "start": 231, + "end": 261, + "loc": { + "start": { + "line": 8, + "column": 4 + }, + "end": { + "line": 10, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "constructor", + "start": 266, + "end": 277, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 15 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 277, + "end": 278, + "loc": { + "start": { + "line": 11, + "column": 15 + }, + "end": { + "line": 11, + "column": 16 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 278, + "end": 279, + "loc": { + "start": { + "line": 11, + "column": 16 + }, + "end": { + "line": 11, + "column": 17 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 280, + "end": 281, + "loc": { + "start": { + "line": 11, + "column": 18 + }, + "end": { + "line": 11, + "column": 19 + } + } + }, + { + "type": { + "label": "super", + "keyword": "super", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "super", + "start": 290, + "end": 295, + "loc": { + "start": { + "line": 12, + "column": 8 + }, + "end": { + "line": 12, + "column": 13 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 295, + "end": 296, + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 14 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "Unable to retrieve your Validator balance. Make sure that you are correctly bonded to the network.", + "start": 296, + "end": 396, + "loc": { + "start": { + "line": 12, + "column": 14 + }, + "end": { + "line": 12, + "column": 114 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 396, + "end": 397, + "loc": { + "start": { + "line": 12, + "column": 114 + }, + "end": { + "line": 12, + "column": 115 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 397, + "end": 398, + "loc": { + "start": { + "line": 12, + "column": 115 + }, + "end": { + "line": 12, + "column": 116 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 403, + "end": 404, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 5 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 405, + "end": 406, + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 14, + "column": 1 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 406, + "end": 406, + "loc": { + "start": { + "line": 14, + "column": 1 + }, + "end": { + "line": 14, + "column": 1 + } + } + } + ] +} \ No newline at end of file diff --git a/ast/source/services/errors/signError.js.json b/ast/source/services/errors/signError.js.json new file mode 100644 index 0000000..c5e8f49 --- /dev/null +++ b/ast/source/services/errors/signError.js.json @@ -0,0 +1,1123 @@ +{ + "type": "File", + "start": 0, + "end": 352, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 14, + "column": 1 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 352, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 14, + "column": 1 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 50, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 50 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 8, + "end": 23, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 23 + } + }, + "imported": { + "type": "Identifier", + "start": 8, + "end": 23, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 23 + }, + "identifierName": "ExtendableError" + }, + "name": "ExtendableError" + }, + "local": { + "type": "Identifier", + "start": 8, + "end": 23, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 23 + }, + "identifierName": "ExtendableError" + }, + "name": "ExtendableError" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 30, + "end": 49, + "loc": { + "start": { + "line": 1, + "column": 30 + }, + "end": { + "line": 1, + "column": 49 + } + }, + "extra": { + "rawValue": "./extendableError", + "raw": "\"./extendableError\"" + }, + "value": "./extendableError" + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * SignError class\n * Error thrown when there's a error with the deploy signature process\n ", + "start": 52, + "end": 149, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 150, + "end": 352, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 14, + "column": 1 + } + }, + "specifiers": [], + "source": null, + "declaration": { + "type": "ClassDeclaration", + "start": 157, + "end": 352, + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 14, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 163, + "end": 172, + "loc": { + "start": { + "line": 7, + "column": 13 + }, + "end": { + "line": 7, + "column": 22 + }, + "identifierName": "SignError" + }, + "name": "SignError", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 181, + "end": 196, + "loc": { + "start": { + "line": 7, + "column": 31 + }, + "end": { + "line": 7, + "column": 46 + }, + "identifierName": "ExtendableError" + }, + "name": "ExtendableError" + }, + "body": { + "type": "ClassBody", + "start": 197, + "end": 352, + "loc": { + "start": { + "line": 7, + "column": 47 + }, + "end": { + "line": 14, + "column": 1 + } + }, + "body": [ + { + "type": "ClassMethod", + "start": 238, + "end": 350, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 13, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 238, + "end": 249, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 15 + }, + "identifierName": "constructor" + }, + "name": "constructor", + "leadingComments": null + }, + "kind": "constructor", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 252, + "end": 350, + "loc": { + "start": { + "line": 11, + "column": 18 + }, + "end": { + "line": 13, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 262, + "end": 344, + "loc": { + "start": { + "line": 12, + "column": 8 + }, + "end": { + "line": 12, + "column": 90 + } + }, + "expression": { + "type": "CallExpression", + "start": 262, + "end": 343, + "loc": { + "start": { + "line": 12, + "column": 8 + }, + "end": { + "line": 12, + "column": 89 + } + }, + "callee": { + "type": "Super", + "start": 262, + "end": 267, + "loc": { + "start": { + "line": 12, + "column": 8 + }, + "end": { + "line": 12, + "column": 13 + } + } + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 268, + "end": 342, + "loc": { + "start": { + "line": 12, + "column": 14 + }, + "end": { + "line": 12, + "column": 88 + } + }, + "extra": { + "rawValue": "Failed to sign the contract. Please retry if you canceled the operation.", + "raw": "\"Failed to sign the contract. Please retry if you canceled the operation.\"" + }, + "value": "Failed to sign the contract. Please retry if you canceled the operation." + } + ] + } + } + ], + "directives": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Constructor\n ", + "start": 203, + "end": 233, + "loc": { + "start": { + "line": 8, + "column": 4 + }, + "end": { + "line": 10, + "column": 7 + } + } + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * SignError class\n * Error thrown when there's a error with the deploy signature process\n ", + "start": 52, + "end": 149, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * SignError class\n * Error thrown when there's a error with the deploy signature process\n ", + "start": 52, + "end": 149, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + } + } + ] + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\n * SignError class\n * Error thrown when there's a error with the deploy signature process\n ", + "start": 52, + "end": 149, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Constructor\n ", + "start": 203, + "end": 233, + "loc": { + "start": { + "line": 8, + "column": 4 + }, + "end": { + "line": 10, + "column": 7 + } + } + } + ], + "tokens": [ + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 0, + "end": 6, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7, + "end": 8, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "ExtendableError", + "start": 8, + "end": 23, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 23 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 23, + "end": 24, + "loc": { + "start": { + "line": 1, + "column": 23 + }, + "end": { + "line": 1, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 25, + "end": 29, + "loc": { + "start": { + "line": 1, + "column": 25 + }, + "end": { + "line": 1, + "column": 29 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./extendableError", + "start": 30, + "end": 49, + "loc": { + "start": { + "line": 1, + "column": 30 + }, + "end": { + "line": 1, + "column": 49 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 49, + "end": 50, + "loc": { + "start": { + "line": 1, + "column": 49 + }, + "end": { + "line": 1, + "column": 50 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * SignError class\n * Error thrown when there's a error with the deploy signature process\n ", + "start": 52, + "end": 149, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 150, + "end": 156, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 6 + } + } + }, + { + "type": { + "label": "class", + "keyword": "class", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "class", + "start": 157, + "end": 162, + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "SignError", + "start": 163, + "end": 172, + "loc": { + "start": { + "line": 7, + "column": 13 + }, + "end": { + "line": 7, + "column": 22 + } + } + }, + { + "type": { + "label": "extends", + "keyword": "extends", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "extends", + "start": 173, + "end": 180, + "loc": { + "start": { + "line": 7, + "column": 23 + }, + "end": { + "line": 7, + "column": 30 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "ExtendableError", + "start": 181, + "end": 196, + "loc": { + "start": { + "line": 7, + "column": 31 + }, + "end": { + "line": 7, + "column": 46 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 197, + "end": 198, + "loc": { + "start": { + "line": 7, + "column": 47 + }, + "end": { + "line": 7, + "column": 48 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Constructor\n ", + "start": 203, + "end": 233, + "loc": { + "start": { + "line": 8, + "column": 4 + }, + "end": { + "line": 10, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "constructor", + "start": 238, + "end": 249, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 15 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 249, + "end": 250, + "loc": { + "start": { + "line": 11, + "column": 15 + }, + "end": { + "line": 11, + "column": 16 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 250, + "end": 251, + "loc": { + "start": { + "line": 11, + "column": 16 + }, + "end": { + "line": 11, + "column": 17 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 252, + "end": 253, + "loc": { + "start": { + "line": 11, + "column": 18 + }, + "end": { + "line": 11, + "column": 19 + } + } + }, + { + "type": { + "label": "super", + "keyword": "super", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "super", + "start": 262, + "end": 267, + "loc": { + "start": { + "line": 12, + "column": 8 + }, + "end": { + "line": 12, + "column": 13 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 267, + "end": 268, + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 14 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "Failed to sign the contract. Please retry if you canceled the operation.", + "start": 268, + "end": 342, + "loc": { + "start": { + "line": 12, + "column": 14 + }, + "end": { + "line": 12, + "column": 88 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 342, + "end": 343, + "loc": { + "start": { + "line": 12, + "column": 88 + }, + "end": { + "line": 12, + "column": 89 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 343, + "end": 344, + "loc": { + "start": { + "line": 12, + "column": 89 + }, + "end": { + "line": 12, + "column": 90 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 349, + "end": 350, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 5 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 351, + "end": 352, + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 14, + "column": 1 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 352, + "end": 352, + "loc": { + "start": { + "line": 14, + "column": 1 + }, + "end": { + "line": 14, + "column": 1 + } + } + } + ] +} \ No newline at end of file diff --git a/ast/source/services/helpers/currencyUtils.js.json b/ast/source/services/helpers/currencyUtils.js.json new file mode 100644 index 0000000..f7a874b --- /dev/null +++ b/ast/source/services/helpers/currencyUtils.js.json @@ -0,0 +1,1364 @@ +{ + "type": "File", + "start": 0, + "end": 557, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 26, + "column": 1 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 557, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 26, + "column": 1 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ExportNamedDeclaration", + "start": 71, + "end": 557, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 26, + "column": 1 + } + }, + "specifiers": [], + "source": null, + "declaration": { + "type": "ClassDeclaration", + "start": 78, + "end": 557, + "loc": { + "start": { + "line": 5, + "column": 7 + }, + "end": { + "line": 26, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 84, + "end": 97, + "loc": { + "start": { + "line": 5, + "column": 13 + }, + "end": { + "line": 5, + "column": 26 + }, + "identifierName": "CurrencyUtils" + }, + "name": "CurrencyUtils", + "leadingComments": null + }, + "superClass": null, + "body": { + "type": "ClassBody", + "start": 98, + "end": 557, + "loc": { + "start": { + "line": 5, + "column": 27 + }, + "end": { + "line": 26, + "column": 1 + } + }, + "body": [ + { + "type": "ClassMethod", + "start": 236, + "end": 325, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 15, + "column": 5 + } + }, + "static": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 243, + "end": 263, + "loc": { + "start": { + "line": 13, + "column": 11 + }, + "end": { + "line": 13, + "column": 31 + }, + "identifierName": "convertMotesToCasper" + }, + "name": "convertMotesToCasper" + }, + "kind": "method", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 264, + "end": 275, + "loc": { + "start": { + "line": 13, + "column": 32 + }, + "end": { + "line": 13, + "column": 43 + }, + "identifierName": "motesAmount" + }, + "name": "motesAmount" + } + ], + "body": { + "type": "BlockStatement", + "start": 277, + "end": 325, + "loc": { + "start": { + "line": 13, + "column": 45 + }, + "end": { + "line": 15, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 287, + "end": 319, + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 40 + } + }, + "argument": { + "type": "BinaryExpression", + "start": 294, + "end": 318, + "loc": { + "start": { + "line": 14, + "column": 15 + }, + "end": { + "line": 14, + "column": 39 + } + }, + "left": { + "type": "Identifier", + "start": 294, + "end": 305, + "loc": { + "start": { + "line": 14, + "column": 15 + }, + "end": { + "line": 14, + "column": 26 + }, + "identifierName": "motesAmount" + }, + "name": "motesAmount" + }, + "operator": "/", + "right": { + "type": "NumericLiteral", + "start": 308, + "end": 318, + "loc": { + "start": { + "line": 14, + "column": 29 + }, + "end": { + "line": 14, + "column": 39 + } + }, + "extra": { + "rawValue": 1000000000, + "raw": "1000000000" + }, + "value": 1000000000 + } + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Convert motes to casper\n *\n * @param {number} motesAmount - Amount in motes\n * @return {number}\n ", + "start": 105, + "end": 231, + "loc": { + "start": { + "line": 7, + "column": 4 + }, + "end": { + "line": 12, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Convert casper to motes\n *\n * @param {number} casperAmount - Amount in casper\n * @return {number}\n ", + "start": 331, + "end": 459, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 22, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 464, + "end": 555, + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 25, + "column": 5 + } + }, + "static": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 471, + "end": 491, + "loc": { + "start": { + "line": 23, + "column": 11 + }, + "end": { + "line": 23, + "column": 31 + }, + "identifierName": "convertCasperToMotes" + }, + "name": "convertCasperToMotes" + }, + "kind": "method", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 492, + "end": 504, + "loc": { + "start": { + "line": 23, + "column": 32 + }, + "end": { + "line": 23, + "column": 44 + }, + "identifierName": "casperAmount" + }, + "name": "casperAmount" + } + ], + "body": { + "type": "BlockStatement", + "start": 506, + "end": 555, + "loc": { + "start": { + "line": 23, + "column": 46 + }, + "end": { + "line": 25, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 516, + "end": 549, + "loc": { + "start": { + "line": 24, + "column": 8 + }, + "end": { + "line": 24, + "column": 41 + } + }, + "argument": { + "type": "BinaryExpression", + "start": 523, + "end": 548, + "loc": { + "start": { + "line": 24, + "column": 15 + }, + "end": { + "line": 24, + "column": 40 + } + }, + "left": { + "type": "Identifier", + "start": 523, + "end": 535, + "loc": { + "start": { + "line": 24, + "column": 15 + }, + "end": { + "line": 24, + "column": 27 + }, + "identifierName": "casperAmount" + }, + "name": "casperAmount" + }, + "operator": "*", + "right": { + "type": "NumericLiteral", + "start": 538, + "end": 548, + "loc": { + "start": { + "line": 24, + "column": 30 + }, + "end": { + "line": 24, + "column": 40 + } + }, + "extra": { + "rawValue": 1000000000, + "raw": "1000000000" + }, + "value": 1000000000 + } + } + } + ], + "directives": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Convert casper to motes\n *\n * @param {number} casperAmount - Amount in casper\n * @return {number}\n ", + "start": 331, + "end": 459, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 22, + "column": 7 + } + } + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * CurrencyUtils class\n * Used to convert from/to casper/motes\n ", + "start": 0, + "end": 70, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 4, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * CurrencyUtils class\n * Used to convert from/to casper/motes\n ", + "start": 0, + "end": 70, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 4, + "column": 3 + } + } + } + ] + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\n * CurrencyUtils class\n * Used to convert from/to casper/motes\n ", + "start": 0, + "end": 70, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 4, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Convert motes to casper\n *\n * @param {number} motesAmount - Amount in motes\n * @return {number}\n ", + "start": 105, + "end": 231, + "loc": { + "start": { + "line": 7, + "column": 4 + }, + "end": { + "line": 12, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Convert casper to motes\n *\n * @param {number} casperAmount - Amount in casper\n * @return {number}\n ", + "start": 331, + "end": 459, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 22, + "column": 7 + } + } + } + ], + "tokens": [ + { + "type": "CommentBlock", + "value": "*\n * CurrencyUtils class\n * Used to convert from/to casper/motes\n ", + "start": 0, + "end": 70, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 4, + "column": 3 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 71, + "end": 77, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 6 + } + } + }, + { + "type": { + "label": "class", + "keyword": "class", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "class", + "start": 78, + "end": 83, + "loc": { + "start": { + "line": 5, + "column": 7 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CurrencyUtils", + "start": 84, + "end": 97, + "loc": { + "start": { + "line": 5, + "column": 13 + }, + "end": { + "line": 5, + "column": 26 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 98, + "end": 99, + "loc": { + "start": { + "line": 5, + "column": 27 + }, + "end": { + "line": 5, + "column": 28 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Convert motes to casper\n *\n * @param {number} motesAmount - Amount in motes\n * @return {number}\n ", + "start": 105, + "end": 231, + "loc": { + "start": { + "line": 7, + "column": 4 + }, + "end": { + "line": 12, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "static", + "start": 236, + "end": 242, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 10 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "convertMotesToCasper", + "start": 243, + "end": 263, + "loc": { + "start": { + "line": 13, + "column": 11 + }, + "end": { + "line": 13, + "column": 31 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 263, + "end": 264, + "loc": { + "start": { + "line": 13, + "column": 31 + }, + "end": { + "line": 13, + "column": 32 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "motesAmount", + "start": 264, + "end": 275, + "loc": { + "start": { + "line": 13, + "column": 32 + }, + "end": { + "line": 13, + "column": 43 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 275, + "end": 276, + "loc": { + "start": { + "line": 13, + "column": 43 + }, + "end": { + "line": 13, + "column": 44 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 277, + "end": 278, + "loc": { + "start": { + "line": 13, + "column": 45 + }, + "end": { + "line": 13, + "column": 46 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 287, + "end": 293, + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "motesAmount", + "start": 294, + "end": 305, + "loc": { + "start": { + "line": 14, + "column": 15 + }, + "end": { + "line": 14, + "column": 26 + } + } + }, + { + "type": { + "label": "/", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 10, + "updateContext": null + }, + "value": "/", + "start": 306, + "end": 307, + "loc": { + "start": { + "line": 14, + "column": 27 + }, + "end": { + "line": 14, + "column": 28 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 1000000000, + "start": 308, + "end": 318, + "loc": { + "start": { + "line": 14, + "column": 29 + }, + "end": { + "line": 14, + "column": 39 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 318, + "end": 319, + "loc": { + "start": { + "line": 14, + "column": 39 + }, + "end": { + "line": 14, + "column": 40 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 324, + "end": 325, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 15, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Convert casper to motes\n *\n * @param {number} casperAmount - Amount in casper\n * @return {number}\n ", + "start": 331, + "end": 459, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 22, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "static", + "start": 464, + "end": 470, + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 10 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "convertCasperToMotes", + "start": 471, + "end": 491, + "loc": { + "start": { + "line": 23, + "column": 11 + }, + "end": { + "line": 23, + "column": 31 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 491, + "end": 492, + "loc": { + "start": { + "line": 23, + "column": 31 + }, + "end": { + "line": 23, + "column": 32 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "casperAmount", + "start": 492, + "end": 504, + "loc": { + "start": { + "line": 23, + "column": 32 + }, + "end": { + "line": 23, + "column": 44 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 504, + "end": 505, + "loc": { + "start": { + "line": 23, + "column": 44 + }, + "end": { + "line": 23, + "column": 45 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 506, + "end": 507, + "loc": { + "start": { + "line": 23, + "column": 46 + }, + "end": { + "line": 23, + "column": 47 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 516, + "end": 522, + "loc": { + "start": { + "line": 24, + "column": 8 + }, + "end": { + "line": 24, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "casperAmount", + "start": 523, + "end": 535, + "loc": { + "start": { + "line": 24, + "column": 15 + }, + "end": { + "line": 24, + "column": 27 + } + } + }, + { + "type": { + "label": "*", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 10, + "updateContext": null + }, + "value": "*", + "start": 536, + "end": 537, + "loc": { + "start": { + "line": 24, + "column": 28 + }, + "end": { + "line": 24, + "column": 29 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 1000000000, + "start": 538, + "end": 548, + "loc": { + "start": { + "line": 24, + "column": 30 + }, + "end": { + "line": 24, + "column": 40 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 548, + "end": 549, + "loc": { + "start": { + "line": 24, + "column": 40 + }, + "end": { + "line": 24, + "column": 41 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 554, + "end": 555, + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 5 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 556, + "end": 557, + "loc": { + "start": { + "line": 26, + "column": 0 + }, + "end": { + "line": 26, + "column": 1 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 557, + "end": 557, + "loc": { + "start": { + "line": 26, + "column": 1 + }, + "end": { + "line": 26, + "column": 1 + } + } + } + ] +} \ No newline at end of file diff --git a/ast/source/services/helpers/index.js.json b/ast/source/services/helpers/index.js.json new file mode 100644 index 0000000..2e69b7c --- /dev/null +++ b/ast/source/services/helpers/index.js.json @@ -0,0 +1,232 @@ +{ + "type": "File", + "start": 0, + "end": 32, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 32 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 32, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 32 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ExportAllDeclaration", + "start": 0, + "end": 32, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 32 + } + }, + "source": { + "type": "StringLiteral", + "start": 14, + "end": 31, + "loc": { + "start": { + "line": 1, + "column": 14 + }, + "end": { + "line": 1, + "column": 31 + } + }, + "extra": { + "rawValue": "./currencyUtils", + "raw": "'./currencyUtils'" + }, + "value": "./currencyUtils" + } + } + ], + "directives": [] + }, + "comments": [], + "tokens": [ + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 0, + "end": 6, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 6 + } + } + }, + { + "type": { + "label": "*", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 10, + "updateContext": null + }, + "value": "*", + "start": 7, + "end": 8, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 9, + "end": 13, + "loc": { + "start": { + "line": 1, + "column": 9 + }, + "end": { + "line": 1, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./currencyUtils", + "start": 14, + "end": 31, + "loc": { + "start": { + "line": 1, + "column": 14 + }, + "end": { + "line": 1, + "column": 31 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 31, + "end": 32, + "loc": { + "start": { + "line": 1, + "column": 31 + }, + "end": { + "line": 1, + "column": 32 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 32, + "end": 32, + "loc": { + "start": { + "line": 1, + "column": 32 + }, + "end": { + "line": 1, + "column": 32 + } + } + } + ] +} \ No newline at end of file diff --git a/ast/source/services/index.js.json b/ast/source/services/index.js.json new file mode 100644 index 0000000..b3826ea --- /dev/null +++ b/ast/source/services/index.js.json @@ -0,0 +1,1415 @@ +{ + "type": "File", + "start": 0, + "end": 219, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 8, + "column": 34 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 219, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 8, + "column": 34 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ExportAllDeclaration", + "start": 0, + "end": 26, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 26 + } + }, + "source": { + "type": "StringLiteral", + "start": 14, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 14 + }, + "end": { + "line": 1, + "column": 25 + } + }, + "extra": { + "rawValue": "./clients", + "raw": "'./clients'" + }, + "value": "./clients" + } + }, + { + "type": "ExportAllDeclaration", + "start": 27, + "end": 53, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 26 + } + }, + "source": { + "type": "StringLiteral", + "start": 41, + "end": 52, + "loc": { + "start": { + "line": 2, + "column": 14 + }, + "end": { + "line": 2, + "column": 25 + } + }, + "extra": { + "rawValue": "./deploys", + "raw": "'./deploys'" + }, + "value": "./deploys" + } + }, + { + "type": "ExportAllDeclaration", + "start": 54, + "end": 79, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 25 + } + }, + "source": { + "type": "StringLiteral", + "start": 68, + "end": 78, + "loc": { + "start": { + "line": 3, + "column": 14 + }, + "end": { + "line": 3, + "column": 24 + } + }, + "extra": { + "rawValue": "./errors", + "raw": "'./errors'" + }, + "value": "./errors" + } + }, + { + "type": "ExportAllDeclaration", + "start": 80, + "end": 106, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 26 + } + }, + "source": { + "type": "StringLiteral", + "start": 94, + "end": 105, + "loc": { + "start": { + "line": 4, + "column": 14 + }, + "end": { + "line": 4, + "column": 25 + } + }, + "extra": { + "rawValue": "./helpers", + "raw": "'./helpers'" + }, + "value": "./helpers" + } + }, + { + "type": "ExportAllDeclaration", + "start": 107, + "end": 130, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 23 + } + }, + "source": { + "type": "StringLiteral", + "start": 121, + "end": 129, + "loc": { + "start": { + "line": 5, + "column": 14 + }, + "end": { + "line": 5, + "column": 22 + } + }, + "extra": { + "rawValue": "./keys", + "raw": "'./keys'" + }, + "value": "./keys" + } + }, + { + "type": "ExportAllDeclaration", + "start": 131, + "end": 157, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 6, + "column": 26 + } + }, + "source": { + "type": "StringLiteral", + "start": 145, + "end": 156, + "loc": { + "start": { + "line": 6, + "column": 14 + }, + "end": { + "line": 6, + "column": 25 + } + }, + "extra": { + "rawValue": "./results", + "raw": "'./results'" + }, + "value": "./results" + } + }, + { + "type": "ExportAllDeclaration", + "start": 158, + "end": 184, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 26 + } + }, + "source": { + "type": "StringLiteral", + "start": 172, + "end": 183, + "loc": { + "start": { + "line": 7, + "column": 14 + }, + "end": { + "line": 7, + "column": 25 + } + }, + "extra": { + "rawValue": "./signers", + "raw": "'./signers'" + }, + "value": "./signers" + } + }, + { + "type": "ExportAllDeclaration", + "start": 185, + "end": 219, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 34 + } + }, + "source": { + "type": "StringLiteral", + "start": 199, + "end": 218, + "loc": { + "start": { + "line": 8, + "column": 14 + }, + "end": { + "line": 8, + "column": 33 + } + }, + "extra": { + "rawValue": "./balance/balance", + "raw": "'./balance/balance'" + }, + "value": "./balance/balance" + } + } + ], + "directives": [] + }, + "comments": [], + "tokens": [ + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 0, + "end": 6, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 6 + } + } + }, + { + "type": { + "label": "*", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 10, + "updateContext": null + }, + "value": "*", + "start": 7, + "end": 8, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 9, + "end": 13, + "loc": { + "start": { + "line": 1, + "column": 9 + }, + "end": { + "line": 1, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./clients", + "start": 14, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 14 + }, + "end": { + "line": 1, + "column": 25 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 25, + "end": 26, + "loc": { + "start": { + "line": 1, + "column": 25 + }, + "end": { + "line": 1, + "column": 26 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 27, + "end": 33, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 6 + } + } + }, + { + "type": { + "label": "*", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 10, + "updateContext": null + }, + "value": "*", + "start": 34, + "end": 35, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 36, + "end": 40, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./deploys", + "start": 41, + "end": 52, + "loc": { + "start": { + "line": 2, + "column": 14 + }, + "end": { + "line": 2, + "column": 25 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 52, + "end": 53, + "loc": { + "start": { + "line": 2, + "column": 25 + }, + "end": { + "line": 2, + "column": 26 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 54, + "end": 60, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 6 + } + } + }, + { + "type": { + "label": "*", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 10, + "updateContext": null + }, + "value": "*", + "start": 61, + "end": 62, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 63, + "end": 67, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./errors", + "start": 68, + "end": 78, + "loc": { + "start": { + "line": 3, + "column": 14 + }, + "end": { + "line": 3, + "column": 24 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 78, + "end": 79, + "loc": { + "start": { + "line": 3, + "column": 24 + }, + "end": { + "line": 3, + "column": 25 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 80, + "end": 86, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 6 + } + } + }, + { + "type": { + "label": "*", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 10, + "updateContext": null + }, + "value": "*", + "start": 87, + "end": 88, + "loc": { + "start": { + "line": 4, + "column": 7 + }, + "end": { + "line": 4, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 89, + "end": 93, + "loc": { + "start": { + "line": 4, + "column": 9 + }, + "end": { + "line": 4, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./helpers", + "start": 94, + "end": 105, + "loc": { + "start": { + "line": 4, + "column": 14 + }, + "end": { + "line": 4, + "column": 25 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 105, + "end": 106, + "loc": { + "start": { + "line": 4, + "column": 25 + }, + "end": { + "line": 4, + "column": 26 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 107, + "end": 113, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 6 + } + } + }, + { + "type": { + "label": "*", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 10, + "updateContext": null + }, + "value": "*", + "start": 114, + "end": 115, + "loc": { + "start": { + "line": 5, + "column": 7 + }, + "end": { + "line": 5, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 116, + "end": 120, + "loc": { + "start": { + "line": 5, + "column": 9 + }, + "end": { + "line": 5, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./keys", + "start": 121, + "end": 129, + "loc": { + "start": { + "line": 5, + "column": 14 + }, + "end": { + "line": 5, + "column": 22 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 129, + "end": 130, + "loc": { + "start": { + "line": 5, + "column": 22 + }, + "end": { + "line": 5, + "column": 23 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 131, + "end": 137, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 6, + "column": 6 + } + } + }, + { + "type": { + "label": "*", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 10, + "updateContext": null + }, + "value": "*", + "start": 138, + "end": 139, + "loc": { + "start": { + "line": 6, + "column": 7 + }, + "end": { + "line": 6, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 140, + "end": 144, + "loc": { + "start": { + "line": 6, + "column": 9 + }, + "end": { + "line": 6, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./results", + "start": 145, + "end": 156, + "loc": { + "start": { + "line": 6, + "column": 14 + }, + "end": { + "line": 6, + "column": 25 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 156, + "end": 157, + "loc": { + "start": { + "line": 6, + "column": 25 + }, + "end": { + "line": 6, + "column": 26 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 158, + "end": 164, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 6 + } + } + }, + { + "type": { + "label": "*", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 10, + "updateContext": null + }, + "value": "*", + "start": 165, + "end": 166, + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 167, + "end": 171, + "loc": { + "start": { + "line": 7, + "column": 9 + }, + "end": { + "line": 7, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./signers", + "start": 172, + "end": 183, + "loc": { + "start": { + "line": 7, + "column": 14 + }, + "end": { + "line": 7, + "column": 25 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 183, + "end": 184, + "loc": { + "start": { + "line": 7, + "column": 25 + }, + "end": { + "line": 7, + "column": 26 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 185, + "end": 191, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 6 + } + } + }, + { + "type": { + "label": "*", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 10, + "updateContext": null + }, + "value": "*", + "start": 192, + "end": 193, + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 194, + "end": 198, + "loc": { + "start": { + "line": 8, + "column": 9 + }, + "end": { + "line": 8, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./balance/balance", + "start": 199, + "end": 218, + "loc": { + "start": { + "line": 8, + "column": 14 + }, + "end": { + "line": 8, + "column": 33 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 218, + "end": 219, + "loc": { + "start": { + "line": 8, + "column": 33 + }, + "end": { + "line": 8, + "column": 34 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 219, + "end": 219, + "loc": { + "start": { + "line": 8, + "column": 34 + }, + "end": { + "line": 8, + "column": 34 + } + } + } + ] +} \ No newline at end of file diff --git a/ast/source/services/keys/abstractKeyManager.js.json b/ast/source/services/keys/abstractKeyManager.js.json new file mode 100644 index 0000000..266e929 --- /dev/null +++ b/ast/source/services/keys/abstractKeyManager.js.json @@ -0,0 +1,847 @@ +{ + "type": "File", + "start": 0, + "end": 315, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 14, + "column": 1 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 315, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 14, + "column": 1 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ExportNamedDeclaration", + "start": 76, + "end": 315, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 14, + "column": 1 + } + }, + "specifiers": [], + "source": null, + "declaration": { + "type": "ClassDeclaration", + "start": 83, + "end": 315, + "loc": { + "start": { + "line": 5, + "column": 7 + }, + "end": { + "line": 14, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 89, + "end": 107, + "loc": { + "start": { + "line": 5, + "column": 13 + }, + "end": { + "line": 5, + "column": 31 + }, + "identifierName": "AbstractKeyManager" + }, + "name": "AbstractKeyManager", + "leadingComments": null + }, + "superClass": null, + "body": { + "type": "ClassBody", + "start": 108, + "end": 315, + "loc": { + "start": { + "line": 5, + "column": 32 + }, + "end": { + "line": 14, + "column": 1 + } + }, + "body": [ + { + "type": "ClassMethod", + "start": 229, + "end": 313, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 13, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 233, + "end": 242, + "loc": { + "start": { + "line": 11, + "column": 8 + }, + "end": { + "line": 11, + "column": 17 + }, + "identifierName": "activeKey" + }, + "name": "activeKey" + }, + "kind": "get", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 245, + "end": 313, + "loc": { + "start": { + "line": 11, + "column": 20 + }, + "end": { + "line": 13, + "column": 5 + } + }, + "body": [ + { + "type": "ThrowStatement", + "start": 255, + "end": 307, + "loc": { + "start": { + "line": 12, + "column": 8 + }, + "end": { + "line": 12, + "column": 60 + } + }, + "argument": { + "type": "NewExpression", + "start": 261, + "end": 306, + "loc": { + "start": { + "line": 12, + "column": 14 + }, + "end": { + "line": 12, + "column": 59 + } + }, + "callee": { + "type": "Identifier", + "start": 265, + "end": 270, + "loc": { + "start": { + "line": 12, + "column": 18 + }, + "end": { + "line": 12, + "column": 23 + }, + "identifierName": "Error" + }, + "name": "Error" + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 271, + "end": 305, + "loc": { + "start": { + "line": 12, + "column": 24 + }, + "end": { + "line": 12, + "column": 58 + } + }, + "extra": { + "rawValue": "You must implement this function", + "raw": "'You must implement this function'" + }, + "value": "You must implement this function" + } + ] + } + } + ], + "directives": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Retrieve the current active key\n *\n * @return string - Must return a public key hex\n ", + "start": 114, + "end": 224, + "loc": { + "start": { + "line": 6, + "column": 4 + }, + "end": { + "line": 10, + "column": 7 + } + } + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * AbstractKeyManager class\n * Used to define multiple key managers\n ", + "start": 0, + "end": 75, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 4, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * AbstractKeyManager class\n * Used to define multiple key managers\n ", + "start": 0, + "end": 75, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 4, + "column": 3 + } + } + } + ] + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\n * AbstractKeyManager class\n * Used to define multiple key managers\n ", + "start": 0, + "end": 75, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 4, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Retrieve the current active key\n *\n * @return string - Must return a public key hex\n ", + "start": 114, + "end": 224, + "loc": { + "start": { + "line": 6, + "column": 4 + }, + "end": { + "line": 10, + "column": 7 + } + } + } + ], + "tokens": [ + { + "type": "CommentBlock", + "value": "*\n * AbstractKeyManager class\n * Used to define multiple key managers\n ", + "start": 0, + "end": 75, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 4, + "column": 3 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 76, + "end": 82, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 6 + } + } + }, + { + "type": { + "label": "class", + "keyword": "class", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "class", + "start": 83, + "end": 88, + "loc": { + "start": { + "line": 5, + "column": 7 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "AbstractKeyManager", + "start": 89, + "end": 107, + "loc": { + "start": { + "line": 5, + "column": 13 + }, + "end": { + "line": 5, + "column": 31 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 108, + "end": 109, + "loc": { + "start": { + "line": 5, + "column": 32 + }, + "end": { + "line": 5, + "column": 33 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Retrieve the current active key\n *\n * @return string - Must return a public key hex\n ", + "start": 114, + "end": 224, + "loc": { + "start": { + "line": 6, + "column": 4 + }, + "end": { + "line": 10, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "get", + "start": 229, + "end": 232, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "activeKey", + "start": 233, + "end": 242, + "loc": { + "start": { + "line": 11, + "column": 8 + }, + "end": { + "line": 11, + "column": 17 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 242, + "end": 243, + "loc": { + "start": { + "line": 11, + "column": 17 + }, + "end": { + "line": 11, + "column": 18 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 243, + "end": 244, + "loc": { + "start": { + "line": 11, + "column": 18 + }, + "end": { + "line": 11, + "column": 19 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 245, + "end": 246, + "loc": { + "start": { + "line": 11, + "column": 20 + }, + "end": { + "line": 11, + "column": 21 + } + } + }, + { + "type": { + "label": "throw", + "keyword": "throw", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "throw", + "start": 255, + "end": 260, + "loc": { + "start": { + "line": 12, + "column": 8 + }, + "end": { + "line": 12, + "column": 13 + } + } + }, + { + "type": { + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "new", + "start": 261, + "end": 264, + "loc": { + "start": { + "line": 12, + "column": 14 + }, + "end": { + "line": 12, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Error", + "start": 265, + "end": 270, + "loc": { + "start": { + "line": 12, + "column": 18 + }, + "end": { + "line": 12, + "column": 23 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 270, + "end": 271, + "loc": { + "start": { + "line": 12, + "column": 23 + }, + "end": { + "line": 12, + "column": 24 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "You must implement this function", + "start": 271, + "end": 305, + "loc": { + "start": { + "line": 12, + "column": 24 + }, + "end": { + "line": 12, + "column": 58 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 305, + "end": 306, + "loc": { + "start": { + "line": 12, + "column": 58 + }, + "end": { + "line": 12, + "column": 59 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 306, + "end": 307, + "loc": { + "start": { + "line": 12, + "column": 59 + }, + "end": { + "line": 12, + "column": 60 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 312, + "end": 313, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 5 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 314, + "end": 315, + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 14, + "column": 1 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 315, + "end": 315, + "loc": { + "start": { + "line": 14, + "column": 1 + }, + "end": { + "line": 14, + "column": 1 + } + } + } + ] +} \ No newline at end of file diff --git a/ast/source/services/keys/index.js.json b/ast/source/services/keys/index.js.json new file mode 100644 index 0000000..9e9c970 --- /dev/null +++ b/ast/source/services/keys/index.js.json @@ -0,0 +1,401 @@ +{ + "type": "File", + "start": 0, + "end": 71, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 2, + "column": 33 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 71, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 2, + "column": 33 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ExportAllDeclaration", + "start": 0, + "end": 37, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 37 + } + }, + "source": { + "type": "StringLiteral", + "start": 14, + "end": 36, + "loc": { + "start": { + "line": 1, + "column": 14 + }, + "end": { + "line": 1, + "column": 36 + } + }, + "extra": { + "rawValue": "./abstractKeyManager", + "raw": "'./abstractKeyManager'" + }, + "value": "./abstractKeyManager" + } + }, + { + "type": "ExportAllDeclaration", + "start": 38, + "end": 71, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 33 + } + }, + "source": { + "type": "StringLiteral", + "start": 52, + "end": 70, + "loc": { + "start": { + "line": 2, + "column": 14 + }, + "end": { + "line": 2, + "column": 32 + } + }, + "extra": { + "rawValue": "./vuexKeyManager", + "raw": "'./vuexKeyManager'" + }, + "value": "./vuexKeyManager" + } + } + ], + "directives": [] + }, + "comments": [], + "tokens": [ + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 0, + "end": 6, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 6 + } + } + }, + { + "type": { + "label": "*", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 10, + "updateContext": null + }, + "value": "*", + "start": 7, + "end": 8, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 9, + "end": 13, + "loc": { + "start": { + "line": 1, + "column": 9 + }, + "end": { + "line": 1, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./abstractKeyManager", + "start": 14, + "end": 36, + "loc": { + "start": { + "line": 1, + "column": 14 + }, + "end": { + "line": 1, + "column": 36 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 36, + "end": 37, + "loc": { + "start": { + "line": 1, + "column": 36 + }, + "end": { + "line": 1, + "column": 37 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 38, + "end": 44, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 6 + } + } + }, + { + "type": { + "label": "*", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 10, + "updateContext": null + }, + "value": "*", + "start": 45, + "end": 46, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 47, + "end": 51, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./vuexKeyManager", + "start": 52, + "end": 70, + "loc": { + "start": { + "line": 2, + "column": 14 + }, + "end": { + "line": 2, + "column": 32 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 70, + "end": 71, + "loc": { + "start": { + "line": 2, + "column": 32 + }, + "end": { + "line": 2, + "column": 33 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 71, + "end": 71, + "loc": { + "start": { + "line": 2, + "column": 33 + }, + "end": { + "line": 2, + "column": 33 + } + } + } + ] +} \ No newline at end of file diff --git a/ast/source/services/results/addBidResult.js.json b/ast/source/services/results/addBidResult.js.json new file mode 100644 index 0000000..eadc6c0 --- /dev/null +++ b/ast/source/services/results/addBidResult.js.json @@ -0,0 +1,1726 @@ +{ + "type": "File", + "start": 0, + "end": 527, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 24, + "column": 1 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 527, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 24, + "column": 1 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 44, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 44 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 8, + "end": 20, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 20 + } + }, + "imported": { + "type": "Identifier", + "start": 8, + "end": 20, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 20 + }, + "identifierName": "DeployResult" + }, + "name": "DeployResult" + }, + "local": { + "type": "Identifier", + "start": 8, + "end": 20, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 20 + }, + "identifierName": "DeployResult" + }, + "name": "DeployResult" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 27, + "end": 43, + "loc": { + "start": { + "line": 1, + "column": 27 + }, + "end": { + "line": 1, + "column": 43 + } + }, + "extra": { + "rawValue": "./deployResult", + "raw": "\"./deployResult\"" + }, + "value": "./deployResult" + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * AddBidResult class\n ", + "start": 46, + "end": 75, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 76, + "end": 527, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 24, + "column": 1 + } + }, + "specifiers": [], + "source": null, + "declaration": { + "type": "ClassDeclaration", + "start": 83, + "end": 527, + "loc": { + "start": { + "line": 6, + "column": 7 + }, + "end": { + "line": 24, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 89, + "end": 101, + "loc": { + "start": { + "line": 6, + "column": 13 + }, + "end": { + "line": 6, + "column": 25 + }, + "identifierName": "AddBidResult" + }, + "name": "AddBidResult", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 110, + "end": 122, + "loc": { + "start": { + "line": 6, + "column": 34 + }, + "end": { + "line": 6, + "column": 46 + }, + "identifierName": "DeployResult" + }, + "name": "DeployResult" + }, + "body": { + "type": "ClassBody", + "start": 123, + "end": 527, + "loc": { + "start": { + "line": 6, + "column": 47 + }, + "end": { + "line": 24, + "column": 1 + } + }, + "body": [ + { + "type": "ClassMethod", + "start": 230, + "end": 299, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 14, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 230, + "end": 241, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 15 + }, + "identifierName": "constructor" + }, + "name": "constructor", + "leadingComments": null + }, + "kind": "constructor", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 242, + "end": 246, + "loc": { + "start": { + "line": 12, + "column": 16 + }, + "end": { + "line": 12, + "column": 20 + }, + "identifierName": "hash" + }, + "name": "hash" + } + ], + "body": { + "type": "BlockStatement", + "start": 248, + "end": 299, + "loc": { + "start": { + "line": 12, + "column": 22 + }, + "end": { + "line": 14, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 258, + "end": 293, + "loc": { + "start": { + "line": 13, + "column": 8 + }, + "end": { + "line": 13, + "column": 43 + } + }, + "expression": { + "type": "CallExpression", + "start": 258, + "end": 293, + "loc": { + "start": { + "line": 13, + "column": 8 + }, + "end": { + "line": 13, + "column": 43 + } + }, + "callee": { + "type": "Super", + "start": 258, + "end": 263, + "loc": { + "start": { + "line": 13, + "column": 8 + }, + "end": { + "line": 13, + "column": 13 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "start": 264, + "end": 268, + "loc": { + "start": { + "line": 13, + "column": 14 + }, + "end": { + "line": 13, + "column": 18 + }, + "identifierName": "hash" + }, + "name": "hash" + }, + { + "type": "CallExpression", + "start": 270, + "end": 292, + "loc": { + "start": { + "line": 13, + "column": 20 + }, + "end": { + "line": 13, + "column": 42 + } + }, + "callee": { + "type": "MemberExpression", + "start": 270, + "end": 290, + "loc": { + "start": { + "line": 13, + "column": 20 + }, + "end": { + "line": 13, + "column": 40 + } + }, + "object": { + "type": "Identifier", + "start": 270, + "end": 282, + "loc": { + "start": { + "line": 13, + "column": 20 + }, + "end": { + "line": 13, + "column": 32 + }, + "identifierName": "AddBidResult" + }, + "name": "AddBidResult" + }, + "property": { + "type": "Identifier", + "start": 283, + "end": 290, + "loc": { + "start": { + "line": 13, + "column": 33 + }, + "end": { + "line": 13, + "column": 40 + }, + "identifierName": "getName" + }, + "name": "getName" + }, + "computed": false + }, + "arguments": [] + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {string} hash - DeployHash of the deployment\n ", + "start": 129, + "end": 225, + "loc": { + "start": { + "line": 7, + "column": 4 + }, + "end": { + "line": 11, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Retrieve the name of the operation behind the deployment\n *\n * @return {string} - the name of the operation behind the deployment\n ", + "start": 305, + "end": 461, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 20, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 466, + "end": 525, + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 23, + "column": 5 + } + }, + "static": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 473, + "end": 480, + "loc": { + "start": { + "line": 21, + "column": 11 + }, + "end": { + "line": 21, + "column": 18 + }, + "identifierName": "getName" + }, + "name": "getName" + }, + "kind": "method", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 483, + "end": 525, + "loc": { + "start": { + "line": 21, + "column": 21 + }, + "end": { + "line": 23, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 493, + "end": 519, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 34 + } + }, + "argument": { + "type": "StringLiteral", + "start": 500, + "end": 519, + "loc": { + "start": { + "line": 22, + "column": 15 + }, + "end": { + "line": 22, + "column": 34 + } + }, + "extra": { + "rawValue": "Add bid Operation", + "raw": "'Add bid Operation'" + }, + "value": "Add bid Operation" + } + } + ], + "directives": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Retrieve the name of the operation behind the deployment\n *\n * @return {string} - the name of the operation behind the deployment\n ", + "start": 305, + "end": 461, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 20, + "column": 7 + } + } + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * AddBidResult class\n ", + "start": 46, + "end": 75, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * AddBidResult class\n ", + "start": 46, + "end": 75, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + } + ] + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\n * AddBidResult class\n ", + "start": 46, + "end": 75, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {string} hash - DeployHash of the deployment\n ", + "start": 129, + "end": 225, + "loc": { + "start": { + "line": 7, + "column": 4 + }, + "end": { + "line": 11, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Retrieve the name of the operation behind the deployment\n *\n * @return {string} - the name of the operation behind the deployment\n ", + "start": 305, + "end": 461, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 20, + "column": 7 + } + } + } + ], + "tokens": [ + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 0, + "end": 6, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7, + "end": 8, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "DeployResult", + "start": 8, + "end": 20, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 20 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 20, + "end": 21, + "loc": { + "start": { + "line": 1, + "column": 20 + }, + "end": { + "line": 1, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 22, + "end": 26, + "loc": { + "start": { + "line": 1, + "column": 22 + }, + "end": { + "line": 1, + "column": 26 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./deployResult", + "start": 27, + "end": 43, + "loc": { + "start": { + "line": 1, + "column": 27 + }, + "end": { + "line": 1, + "column": 43 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 43, + "end": 44, + "loc": { + "start": { + "line": 1, + "column": 43 + }, + "end": { + "line": 1, + "column": 44 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * AddBidResult class\n ", + "start": 46, + "end": 75, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 76, + "end": 82, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 6, + "column": 6 + } + } + }, + { + "type": { + "label": "class", + "keyword": "class", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "class", + "start": 83, + "end": 88, + "loc": { + "start": { + "line": 6, + "column": 7 + }, + "end": { + "line": 6, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "AddBidResult", + "start": 89, + "end": 101, + "loc": { + "start": { + "line": 6, + "column": 13 + }, + "end": { + "line": 6, + "column": 25 + } + } + }, + { + "type": { + "label": "extends", + "keyword": "extends", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "extends", + "start": 102, + "end": 109, + "loc": { + "start": { + "line": 6, + "column": 26 + }, + "end": { + "line": 6, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "DeployResult", + "start": 110, + "end": 122, + "loc": { + "start": { + "line": 6, + "column": 34 + }, + "end": { + "line": 6, + "column": 46 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 123, + "end": 124, + "loc": { + "start": { + "line": 6, + "column": 47 + }, + "end": { + "line": 6, + "column": 48 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {string} hash - DeployHash of the deployment\n ", + "start": 129, + "end": 225, + "loc": { + "start": { + "line": 7, + "column": 4 + }, + "end": { + "line": 11, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "constructor", + "start": 230, + "end": 241, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 15 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 241, + "end": 242, + "loc": { + "start": { + "line": 12, + "column": 15 + }, + "end": { + "line": 12, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "hash", + "start": 242, + "end": 246, + "loc": { + "start": { + "line": 12, + "column": 16 + }, + "end": { + "line": 12, + "column": 20 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 246, + "end": 247, + "loc": { + "start": { + "line": 12, + "column": 20 + }, + "end": { + "line": 12, + "column": 21 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 248, + "end": 249, + "loc": { + "start": { + "line": 12, + "column": 22 + }, + "end": { + "line": 12, + "column": 23 + } + } + }, + { + "type": { + "label": "super", + "keyword": "super", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "super", + "start": 258, + "end": 263, + "loc": { + "start": { + "line": 13, + "column": 8 + }, + "end": { + "line": 13, + "column": 13 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 263, + "end": 264, + "loc": { + "start": { + "line": 13, + "column": 13 + }, + "end": { + "line": 13, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "hash", + "start": 264, + "end": 268, + "loc": { + "start": { + "line": 13, + "column": 14 + }, + "end": { + "line": 13, + "column": 18 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 268, + "end": 269, + "loc": { + "start": { + "line": 13, + "column": 18 + }, + "end": { + "line": 13, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "AddBidResult", + "start": 270, + "end": 282, + "loc": { + "start": { + "line": 13, + "column": 20 + }, + "end": { + "line": 13, + "column": 32 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 282, + "end": 283, + "loc": { + "start": { + "line": 13, + "column": 32 + }, + "end": { + "line": 13, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "getName", + "start": 283, + "end": 290, + "loc": { + "start": { + "line": 13, + "column": 33 + }, + "end": { + "line": 13, + "column": 40 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 290, + "end": 291, + "loc": { + "start": { + "line": 13, + "column": 40 + }, + "end": { + "line": 13, + "column": 41 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 291, + "end": 292, + "loc": { + "start": { + "line": 13, + "column": 41 + }, + "end": { + "line": 13, + "column": 42 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 292, + "end": 293, + "loc": { + "start": { + "line": 13, + "column": 42 + }, + "end": { + "line": 13, + "column": 43 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 298, + "end": 299, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Retrieve the name of the operation behind the deployment\n *\n * @return {string} - the name of the operation behind the deployment\n ", + "start": 305, + "end": 461, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 20, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "static", + "start": 466, + "end": 472, + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 10 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "getName", + "start": 473, + "end": 480, + "loc": { + "start": { + "line": 21, + "column": 11 + }, + "end": { + "line": 21, + "column": 18 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 480, + "end": 481, + "loc": { + "start": { + "line": 21, + "column": 18 + }, + "end": { + "line": 21, + "column": 19 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 481, + "end": 482, + "loc": { + "start": { + "line": 21, + "column": 19 + }, + "end": { + "line": 21, + "column": 20 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 483, + "end": 484, + "loc": { + "start": { + "line": 21, + "column": 21 + }, + "end": { + "line": 21, + "column": 22 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 493, + "end": 499, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 14 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "Add bid Operation", + "start": 500, + "end": 519, + "loc": { + "start": { + "line": 22, + "column": 15 + }, + "end": { + "line": 22, + "column": 34 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 524, + "end": 525, + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 5 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 526, + "end": 527, + "loc": { + "start": { + "line": 24, + "column": 0 + }, + "end": { + "line": 24, + "column": 1 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 527, + "end": 527, + "loc": { + "start": { + "line": 24, + "column": 1 + }, + "end": { + "line": 24, + "column": 1 + } + } + } + ] +} \ No newline at end of file diff --git a/ast/source/services/results/delegateResult.js.json b/ast/source/services/results/delegateResult.js.json new file mode 100644 index 0000000..c2f6401 --- /dev/null +++ b/ast/source/services/results/delegateResult.js.json @@ -0,0 +1,1726 @@ +{ + "type": "File", + "start": 0, + "end": 533, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 24, + "column": 1 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 533, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 24, + "column": 1 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 44, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 44 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 8, + "end": 20, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 20 + } + }, + "imported": { + "type": "Identifier", + "start": 8, + "end": 20, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 20 + }, + "identifierName": "DeployResult" + }, + "name": "DeployResult" + }, + "local": { + "type": "Identifier", + "start": 8, + "end": 20, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 20 + }, + "identifierName": "DeployResult" + }, + "name": "DeployResult" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 27, + "end": 43, + "loc": { + "start": { + "line": 1, + "column": 27 + }, + "end": { + "line": 1, + "column": 43 + } + }, + "extra": { + "rawValue": "./deployResult", + "raw": "\"./deployResult\"" + }, + "value": "./deployResult" + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * DelegateResult class\n ", + "start": 46, + "end": 77, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 78, + "end": 533, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 24, + "column": 1 + } + }, + "specifiers": [], + "source": null, + "declaration": { + "type": "ClassDeclaration", + "start": 85, + "end": 533, + "loc": { + "start": { + "line": 6, + "column": 7 + }, + "end": { + "line": 24, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 91, + "end": 105, + "loc": { + "start": { + "line": 6, + "column": 13 + }, + "end": { + "line": 6, + "column": 27 + }, + "identifierName": "DelegateResult" + }, + "name": "DelegateResult", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 114, + "end": 126, + "loc": { + "start": { + "line": 6, + "column": 36 + }, + "end": { + "line": 6, + "column": 48 + }, + "identifierName": "DeployResult" + }, + "name": "DeployResult" + }, + "body": { + "type": "ClassBody", + "start": 127, + "end": 533, + "loc": { + "start": { + "line": 6, + "column": 49 + }, + "end": { + "line": 24, + "column": 1 + } + }, + "body": [ + { + "type": "ClassMethod", + "start": 234, + "end": 305, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 14, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 234, + "end": 245, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 15 + }, + "identifierName": "constructor" + }, + "name": "constructor", + "leadingComments": null + }, + "kind": "constructor", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 246, + "end": 250, + "loc": { + "start": { + "line": 12, + "column": 16 + }, + "end": { + "line": 12, + "column": 20 + }, + "identifierName": "hash" + }, + "name": "hash" + } + ], + "body": { + "type": "BlockStatement", + "start": 252, + "end": 305, + "loc": { + "start": { + "line": 12, + "column": 22 + }, + "end": { + "line": 14, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 262, + "end": 299, + "loc": { + "start": { + "line": 13, + "column": 8 + }, + "end": { + "line": 13, + "column": 45 + } + }, + "expression": { + "type": "CallExpression", + "start": 262, + "end": 299, + "loc": { + "start": { + "line": 13, + "column": 8 + }, + "end": { + "line": 13, + "column": 45 + } + }, + "callee": { + "type": "Super", + "start": 262, + "end": 267, + "loc": { + "start": { + "line": 13, + "column": 8 + }, + "end": { + "line": 13, + "column": 13 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "start": 268, + "end": 272, + "loc": { + "start": { + "line": 13, + "column": 14 + }, + "end": { + "line": 13, + "column": 18 + }, + "identifierName": "hash" + }, + "name": "hash" + }, + { + "type": "CallExpression", + "start": 274, + "end": 298, + "loc": { + "start": { + "line": 13, + "column": 20 + }, + "end": { + "line": 13, + "column": 44 + } + }, + "callee": { + "type": "MemberExpression", + "start": 274, + "end": 296, + "loc": { + "start": { + "line": 13, + "column": 20 + }, + "end": { + "line": 13, + "column": 42 + } + }, + "object": { + "type": "Identifier", + "start": 274, + "end": 288, + "loc": { + "start": { + "line": 13, + "column": 20 + }, + "end": { + "line": 13, + "column": 34 + }, + "identifierName": "DelegateResult" + }, + "name": "DelegateResult" + }, + "property": { + "type": "Identifier", + "start": 289, + "end": 296, + "loc": { + "start": { + "line": 13, + "column": 35 + }, + "end": { + "line": 13, + "column": 42 + }, + "identifierName": "getName" + }, + "name": "getName" + }, + "computed": false + }, + "arguments": [] + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {string} hash - DeployHash of the deployment\n ", + "start": 133, + "end": 229, + "loc": { + "start": { + "line": 7, + "column": 4 + }, + "end": { + "line": 11, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Retrieve the name of the operation behind the deployment\n *\n * @return {string} - the name of the operation behind the deployment\n ", + "start": 311, + "end": 467, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 20, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 472, + "end": 531, + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 23, + "column": 5 + } + }, + "static": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 479, + "end": 486, + "loc": { + "start": { + "line": 21, + "column": 11 + }, + "end": { + "line": 21, + "column": 18 + }, + "identifierName": "getName" + }, + "name": "getName" + }, + "kind": "method", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 489, + "end": 531, + "loc": { + "start": { + "line": 21, + "column": 21 + }, + "end": { + "line": 23, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 499, + "end": 525, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 34 + } + }, + "argument": { + "type": "StringLiteral", + "start": 506, + "end": 525, + "loc": { + "start": { + "line": 22, + "column": 15 + }, + "end": { + "line": 22, + "column": 34 + } + }, + "extra": { + "rawValue": "Staking Operation", + "raw": "'Staking Operation'" + }, + "value": "Staking Operation" + } + } + ], + "directives": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Retrieve the name of the operation behind the deployment\n *\n * @return {string} - the name of the operation behind the deployment\n ", + "start": 311, + "end": 467, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 20, + "column": 7 + } + } + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * DelegateResult class\n ", + "start": 46, + "end": 77, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * DelegateResult class\n ", + "start": 46, + "end": 77, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + } + ] + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\n * DelegateResult class\n ", + "start": 46, + "end": 77, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {string} hash - DeployHash of the deployment\n ", + "start": 133, + "end": 229, + "loc": { + "start": { + "line": 7, + "column": 4 + }, + "end": { + "line": 11, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Retrieve the name of the operation behind the deployment\n *\n * @return {string} - the name of the operation behind the deployment\n ", + "start": 311, + "end": 467, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 20, + "column": 7 + } + } + } + ], + "tokens": [ + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 0, + "end": 6, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7, + "end": 8, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "DeployResult", + "start": 8, + "end": 20, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 20 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 20, + "end": 21, + "loc": { + "start": { + "line": 1, + "column": 20 + }, + "end": { + "line": 1, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 22, + "end": 26, + "loc": { + "start": { + "line": 1, + "column": 22 + }, + "end": { + "line": 1, + "column": 26 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./deployResult", + "start": 27, + "end": 43, + "loc": { + "start": { + "line": 1, + "column": 27 + }, + "end": { + "line": 1, + "column": 43 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 43, + "end": 44, + "loc": { + "start": { + "line": 1, + "column": 43 + }, + "end": { + "line": 1, + "column": 44 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * DelegateResult class\n ", + "start": 46, + "end": 77, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 78, + "end": 84, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 6, + "column": 6 + } + } + }, + { + "type": { + "label": "class", + "keyword": "class", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "class", + "start": 85, + "end": 90, + "loc": { + "start": { + "line": 6, + "column": 7 + }, + "end": { + "line": 6, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "DelegateResult", + "start": 91, + "end": 105, + "loc": { + "start": { + "line": 6, + "column": 13 + }, + "end": { + "line": 6, + "column": 27 + } + } + }, + { + "type": { + "label": "extends", + "keyword": "extends", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "extends", + "start": 106, + "end": 113, + "loc": { + "start": { + "line": 6, + "column": 28 + }, + "end": { + "line": 6, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "DeployResult", + "start": 114, + "end": 126, + "loc": { + "start": { + "line": 6, + "column": 36 + }, + "end": { + "line": 6, + "column": 48 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 127, + "end": 128, + "loc": { + "start": { + "line": 6, + "column": 49 + }, + "end": { + "line": 6, + "column": 50 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {string} hash - DeployHash of the deployment\n ", + "start": 133, + "end": 229, + "loc": { + "start": { + "line": 7, + "column": 4 + }, + "end": { + "line": 11, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "constructor", + "start": 234, + "end": 245, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 15 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 245, + "end": 246, + "loc": { + "start": { + "line": 12, + "column": 15 + }, + "end": { + "line": 12, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "hash", + "start": 246, + "end": 250, + "loc": { + "start": { + "line": 12, + "column": 16 + }, + "end": { + "line": 12, + "column": 20 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 250, + "end": 251, + "loc": { + "start": { + "line": 12, + "column": 20 + }, + "end": { + "line": 12, + "column": 21 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 252, + "end": 253, + "loc": { + "start": { + "line": 12, + "column": 22 + }, + "end": { + "line": 12, + "column": 23 + } + } + }, + { + "type": { + "label": "super", + "keyword": "super", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "super", + "start": 262, + "end": 267, + "loc": { + "start": { + "line": 13, + "column": 8 + }, + "end": { + "line": 13, + "column": 13 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 267, + "end": 268, + "loc": { + "start": { + "line": 13, + "column": 13 + }, + "end": { + "line": 13, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "hash", + "start": 268, + "end": 272, + "loc": { + "start": { + "line": 13, + "column": 14 + }, + "end": { + "line": 13, + "column": 18 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 272, + "end": 273, + "loc": { + "start": { + "line": 13, + "column": 18 + }, + "end": { + "line": 13, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "DelegateResult", + "start": 274, + "end": 288, + "loc": { + "start": { + "line": 13, + "column": 20 + }, + "end": { + "line": 13, + "column": 34 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 288, + "end": 289, + "loc": { + "start": { + "line": 13, + "column": 34 + }, + "end": { + "line": 13, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "getName", + "start": 289, + "end": 296, + "loc": { + "start": { + "line": 13, + "column": 35 + }, + "end": { + "line": 13, + "column": 42 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 296, + "end": 297, + "loc": { + "start": { + "line": 13, + "column": 42 + }, + "end": { + "line": 13, + "column": 43 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 297, + "end": 298, + "loc": { + "start": { + "line": 13, + "column": 43 + }, + "end": { + "line": 13, + "column": 44 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 298, + "end": 299, + "loc": { + "start": { + "line": 13, + "column": 44 + }, + "end": { + "line": 13, + "column": 45 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 304, + "end": 305, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Retrieve the name of the operation behind the deployment\n *\n * @return {string} - the name of the operation behind the deployment\n ", + "start": 311, + "end": 467, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 20, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "static", + "start": 472, + "end": 478, + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 10 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "getName", + "start": 479, + "end": 486, + "loc": { + "start": { + "line": 21, + "column": 11 + }, + "end": { + "line": 21, + "column": 18 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 486, + "end": 487, + "loc": { + "start": { + "line": 21, + "column": 18 + }, + "end": { + "line": 21, + "column": 19 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 487, + "end": 488, + "loc": { + "start": { + "line": 21, + "column": 19 + }, + "end": { + "line": 21, + "column": 20 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 489, + "end": 490, + "loc": { + "start": { + "line": 21, + "column": 21 + }, + "end": { + "line": 21, + "column": 22 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 499, + "end": 505, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 14 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "Staking Operation", + "start": 506, + "end": 525, + "loc": { + "start": { + "line": 22, + "column": 15 + }, + "end": { + "line": 22, + "column": 34 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 530, + "end": 531, + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 5 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 532, + "end": 533, + "loc": { + "start": { + "line": 24, + "column": 0 + }, + "end": { + "line": 24, + "column": 1 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 533, + "end": 533, + "loc": { + "start": { + "line": 24, + "column": 1 + }, + "end": { + "line": 24, + "column": 1 + } + } + } + ] +} \ No newline at end of file diff --git a/ast/source/services/results/deployResult.js.json b/ast/source/services/results/deployResult.js.json new file mode 100644 index 0000000..063ddd0 --- /dev/null +++ b/ast/source/services/results/deployResult.js.json @@ -0,0 +1,4593 @@ +{ + "type": "File", + "start": 0, + "end": 1145, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 57, + "column": 1 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 1145, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 57, + "column": 1 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ExportNamedDeclaration", + "start": 39, + "end": 79, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 40 + } + }, + "specifiers": [], + "source": null, + "declaration": { + "type": "VariableDeclaration", + "start": 46, + "end": 79, + "loc": { + "start": { + "line": 5, + "column": 7 + }, + "end": { + "line": 5, + "column": 40 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 52, + "end": 78, + "loc": { + "start": { + "line": 5, + "column": 13 + }, + "end": { + "line": 5, + "column": 39 + } + }, + "id": { + "type": "Identifier", + "start": 52, + "end": 66, + "loc": { + "start": { + "line": 5, + "column": 13 + }, + "end": { + "line": 5, + "column": 27 + }, + "identifierName": "STATUS_UNKNOWN" + }, + "name": "STATUS_UNKNOWN", + "leadingComments": null + }, + "init": { + "type": "StringLiteral", + "start": 69, + "end": 78, + "loc": { + "start": { + "line": 5, + "column": 30 + }, + "end": { + "line": 5, + "column": 39 + } + }, + "extra": { + "rawValue": "Unknown", + "raw": "\"Unknown\"" + }, + "value": "Unknown" + }, + "leadingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * @constant\n * @type {string}\n ", + "start": 0, + "end": 38, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 4, + "column": 3 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * @constant\n * @type {string}\n ", + "start": 80, + "end": 118, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + } + ] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * @constant\n * @type {string}\n ", + "start": 0, + "end": 38, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 4, + "column": 3 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * @constant\n * @type {string}\n ", + "start": 80, + "end": 118, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 119, + "end": 154, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 10, + "column": 35 + } + }, + "specifiers": [], + "source": null, + "declaration": { + "type": "VariableDeclaration", + "start": 126, + "end": 154, + "loc": { + "start": { + "line": 10, + "column": 7 + }, + "end": { + "line": 10, + "column": 35 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 132, + "end": 153, + "loc": { + "start": { + "line": 10, + "column": 13 + }, + "end": { + "line": 10, + "column": 34 + } + }, + "id": { + "type": "Identifier", + "start": 132, + "end": 141, + "loc": { + "start": { + "line": 10, + "column": 13 + }, + "end": { + "line": 10, + "column": 22 + }, + "identifierName": "STATUS_OK" + }, + "name": "STATUS_OK", + "leadingComments": null + }, + "init": { + "type": "StringLiteral", + "start": 144, + "end": 153, + "loc": { + "start": { + "line": 10, + "column": 25 + }, + "end": { + "line": 10, + "column": 34 + } + }, + "extra": { + "rawValue": "Success", + "raw": "\"Success\"" + }, + "value": "Success" + }, + "leadingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * @constant\n * @type {string}\n ", + "start": 80, + "end": 118, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * @constant\n * @type {string}\n ", + "start": 155, + "end": 193, + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + } + } + ] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * @constant\n * @type {string}\n ", + "start": 80, + "end": 118, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * @constant\n * @type {string}\n ", + "start": 155, + "end": 193, + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 194, + "end": 229, + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 15, + "column": 35 + } + }, + "specifiers": [], + "source": null, + "declaration": { + "type": "VariableDeclaration", + "start": 201, + "end": 229, + "loc": { + "start": { + "line": 15, + "column": 7 + }, + "end": { + "line": 15, + "column": 35 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 207, + "end": 228, + "loc": { + "start": { + "line": 15, + "column": 13 + }, + "end": { + "line": 15, + "column": 34 + } + }, + "id": { + "type": "Identifier", + "start": 207, + "end": 216, + "loc": { + "start": { + "line": 15, + "column": 13 + }, + "end": { + "line": 15, + "column": 22 + }, + "identifierName": "STATUS_KO" + }, + "name": "STATUS_KO", + "leadingComments": null + }, + "init": { + "type": "StringLiteral", + "start": 219, + "end": 228, + "loc": { + "start": { + "line": 15, + "column": 25 + }, + "end": { + "line": 15, + "column": 34 + } + }, + "extra": { + "rawValue": "Failure", + "raw": "\"Failure\"" + }, + "value": "Failure" + }, + "leadingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * @constant\n * @type {string}\n ", + "start": 155, + "end": 193, + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * DeployResult class\n * Object used to keep the track of a deploy result.\n ", + "start": 231, + "end": 313, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 20, + "column": 3 + } + } + } + ] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * @constant\n * @type {string}\n ", + "start": 155, + "end": 193, + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * DeployResult class\n * Object used to keep the track of a deploy result.\n ", + "start": 231, + "end": 313, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 20, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 314, + "end": 1145, + "loc": { + "start": { + "line": 21, + "column": 0 + }, + "end": { + "line": 57, + "column": 1 + } + }, + "specifiers": [], + "source": null, + "declaration": { + "type": "ClassDeclaration", + "start": 321, + "end": 1145, + "loc": { + "start": { + "line": 21, + "column": 7 + }, + "end": { + "line": 57, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 327, + "end": 339, + "loc": { + "start": { + "line": 21, + "column": 13 + }, + "end": { + "line": 21, + "column": 25 + }, + "identifierName": "DeployResult" + }, + "name": "DeployResult", + "leadingComments": null + }, + "superClass": null, + "body": { + "type": "ClassBody", + "start": 340, + "end": 1145, + "loc": { + "start": { + "line": 21, + "column": 26 + }, + "end": { + "line": 57, + "column": 1 + } + }, + "body": [ + { + "type": "ClassProperty", + "start": 372, + "end": 377, + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 9 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 372, + "end": 376, + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 8 + }, + "identifierName": "hash" + }, + "name": "hash", + "leadingComments": null + }, + "value": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 346, + "end": 367, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 25 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "* @type {number} ", + "start": 382, + "end": 403, + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 25 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 408, + "end": 413, + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 9 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 408, + "end": 412, + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 8 + }, + "identifierName": "cost" + }, + "name": "cost", + "leadingComments": null + }, + "value": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "* @type {number} ", + "start": 382, + "end": 403, + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 25 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 418, + "end": 439, + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 25 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 444, + "end": 451, + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 27, + "column": 11 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 444, + "end": 450, + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 27, + "column": 10 + }, + "identifierName": "status" + }, + "name": "status", + "leadingComments": null + }, + "value": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 418, + "end": 439, + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 25 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 456, + "end": 477, + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 28, + "column": 25 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 482, + "end": 490, + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 29, + "column": 12 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 482, + "end": 489, + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 29, + "column": 11 + }, + "identifierName": "message" + }, + "name": "message", + "leadingComments": null + }, + "value": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 456, + "end": 477, + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 28, + "column": 25 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "* @type {number} ", + "start": 495, + "end": 516, + "loc": { + "start": { + "line": 30, + "column": 4 + }, + "end": { + "line": 30, + "column": 25 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 521, + "end": 528, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 11 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 521, + "end": 527, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 10 + }, + "identifierName": "amount" + }, + "name": "amount", + "leadingComments": null + }, + "value": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "* @type {number} ", + "start": 495, + "end": 516, + "loc": { + "start": { + "line": 30, + "column": 4 + }, + "end": { + "line": 30, + "column": 25 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 533, + "end": 554, + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 32, + "column": 25 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 559, + "end": 564, + "loc": { + "start": { + "line": 33, + "column": 4 + }, + "end": { + "line": 33, + "column": 9 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 559, + "end": 563, + "loc": { + "start": { + "line": 33, + "column": 4 + }, + "end": { + "line": 33, + "column": 8 + }, + "identifierName": "name" + }, + "name": "name", + "leadingComments": null + }, + "value": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 533, + "end": 554, + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 32, + "column": 25 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {string} hash - DeployHash of the deployment\n * @param {string} name - Name of the operation\n ", + "start": 570, + "end": 718, + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 40, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 723, + "end": 919, + "loc": { + "start": { + "line": 41, + "column": 4 + }, + "end": { + "line": 48, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 723, + "end": 734, + "loc": { + "start": { + "line": 41, + "column": 4 + }, + "end": { + "line": 41, + "column": 15 + }, + "identifierName": "constructor" + }, + "name": "constructor", + "leadingComments": null + }, + "kind": "constructor", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 735, + "end": 739, + "loc": { + "start": { + "line": 41, + "column": 16 + }, + "end": { + "line": 41, + "column": 20 + }, + "identifierName": "hash" + }, + "name": "hash" + }, + { + "type": "Identifier", + "start": 741, + "end": 745, + "loc": { + "start": { + "line": 41, + "column": 22 + }, + "end": { + "line": 41, + "column": 26 + }, + "identifierName": "name" + }, + "name": "name" + } + ], + "body": { + "type": "BlockStatement", + "start": 747, + "end": 919, + "loc": { + "start": { + "line": 41, + "column": 28 + }, + "end": { + "line": 48, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 757, + "end": 774, + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 42, + "column": 25 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 757, + "end": 773, + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 42, + "column": 24 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 757, + "end": 766, + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 42, + "column": 17 + } + }, + "object": { + "type": "ThisExpression", + "start": 757, + "end": 761, + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 42, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 762, + "end": 766, + "loc": { + "start": { + "line": 42, + "column": 13 + }, + "end": { + "line": 42, + "column": 17 + }, + "identifierName": "hash" + }, + "name": "hash" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 769, + "end": 773, + "loc": { + "start": { + "line": 42, + "column": 20 + }, + "end": { + "line": 42, + "column": 24 + }, + "identifierName": "hash" + }, + "name": "hash" + } + } + }, + { + "type": "ExpressionStatement", + "start": 783, + "end": 797, + "loc": { + "start": { + "line": 43, + "column": 8 + }, + "end": { + "line": 43, + "column": 22 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 783, + "end": 796, + "loc": { + "start": { + "line": 43, + "column": 8 + }, + "end": { + "line": 43, + "column": 21 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 783, + "end": 792, + "loc": { + "start": { + "line": 43, + "column": 8 + }, + "end": { + "line": 43, + "column": 17 + } + }, + "object": { + "type": "ThisExpression", + "start": 783, + "end": 787, + "loc": { + "start": { + "line": 43, + "column": 8 + }, + "end": { + "line": 43, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 788, + "end": 792, + "loc": { + "start": { + "line": 43, + "column": 13 + }, + "end": { + "line": 43, + "column": 17 + }, + "identifierName": "cost" + }, + "name": "cost" + }, + "computed": false + }, + "right": { + "type": "NumericLiteral", + "start": 795, + "end": 796, + "loc": { + "start": { + "line": 43, + "column": 20 + }, + "end": { + "line": 43, + "column": 21 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + } + } + }, + { + "type": "ExpressionStatement", + "start": 806, + "end": 835, + "loc": { + "start": { + "line": 44, + "column": 8 + }, + "end": { + "line": 44, + "column": 37 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 806, + "end": 834, + "loc": { + "start": { + "line": 44, + "column": 8 + }, + "end": { + "line": 44, + "column": 36 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 806, + "end": 817, + "loc": { + "start": { + "line": 44, + "column": 8 + }, + "end": { + "line": 44, + "column": 19 + } + }, + "object": { + "type": "ThisExpression", + "start": 806, + "end": 810, + "loc": { + "start": { + "line": 44, + "column": 8 + }, + "end": { + "line": 44, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 811, + "end": 817, + "loc": { + "start": { + "line": 44, + "column": 13 + }, + "end": { + "line": 44, + "column": 19 + }, + "identifierName": "status" + }, + "name": "status" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 820, + "end": 834, + "loc": { + "start": { + "line": 44, + "column": 22 + }, + "end": { + "line": 44, + "column": 36 + }, + "identifierName": "STATUS_UNKNOWN" + }, + "name": "STATUS_UNKNOWN" + } + } + }, + { + "type": "ExpressionStatement", + "start": 844, + "end": 862, + "loc": { + "start": { + "line": 45, + "column": 8 + }, + "end": { + "line": 45, + "column": 26 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 844, + "end": 861, + "loc": { + "start": { + "line": 45, + "column": 8 + }, + "end": { + "line": 45, + "column": 25 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 844, + "end": 856, + "loc": { + "start": { + "line": 45, + "column": 8 + }, + "end": { + "line": 45, + "column": 20 + } + }, + "object": { + "type": "ThisExpression", + "start": 844, + "end": 848, + "loc": { + "start": { + "line": 45, + "column": 8 + }, + "end": { + "line": 45, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 849, + "end": 856, + "loc": { + "start": { + "line": 45, + "column": 13 + }, + "end": { + "line": 45, + "column": 20 + }, + "identifierName": "message" + }, + "name": "message" + }, + "computed": false + }, + "right": { + "type": "StringLiteral", + "start": 859, + "end": 861, + "loc": { + "start": { + "line": 45, + "column": 23 + }, + "end": { + "line": 45, + "column": 25 + } + }, + "extra": { + "rawValue": "", + "raw": "\"\"" + }, + "value": "" + } + } + }, + { + "type": "ExpressionStatement", + "start": 871, + "end": 887, + "loc": { + "start": { + "line": 46, + "column": 8 + }, + "end": { + "line": 46, + "column": 24 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 871, + "end": 886, + "loc": { + "start": { + "line": 46, + "column": 8 + }, + "end": { + "line": 46, + "column": 23 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 871, + "end": 882, + "loc": { + "start": { + "line": 46, + "column": 8 + }, + "end": { + "line": 46, + "column": 19 + } + }, + "object": { + "type": "ThisExpression", + "start": 871, + "end": 875, + "loc": { + "start": { + "line": 46, + "column": 8 + }, + "end": { + "line": 46, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 876, + "end": 882, + "loc": { + "start": { + "line": 46, + "column": 13 + }, + "end": { + "line": 46, + "column": 19 + }, + "identifierName": "amount" + }, + "name": "amount" + }, + "computed": false + }, + "right": { + "type": "NumericLiteral", + "start": 885, + "end": 886, + "loc": { + "start": { + "line": 46, + "column": 22 + }, + "end": { + "line": 46, + "column": 23 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + } + } + }, + { + "type": "ExpressionStatement", + "start": 896, + "end": 913, + "loc": { + "start": { + "line": 47, + "column": 8 + }, + "end": { + "line": 47, + "column": 25 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 896, + "end": 912, + "loc": { + "start": { + "line": 47, + "column": 8 + }, + "end": { + "line": 47, + "column": 24 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 896, + "end": 905, + "loc": { + "start": { + "line": 47, + "column": 8 + }, + "end": { + "line": 47, + "column": 17 + } + }, + "object": { + "type": "ThisExpression", + "start": 896, + "end": 900, + "loc": { + "start": { + "line": 47, + "column": 8 + }, + "end": { + "line": 47, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 901, + "end": 905, + "loc": { + "start": { + "line": 47, + "column": 13 + }, + "end": { + "line": 47, + "column": 17 + }, + "identifierName": "name" + }, + "name": "name" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 908, + "end": 912, + "loc": { + "start": { + "line": 47, + "column": 20 + }, + "end": { + "line": 47, + "column": 24 + }, + "identifierName": "name" + }, + "name": "name" + } + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {string} hash - DeployHash of the deployment\n * @param {string} name - Name of the operation\n ", + "start": 570, + "end": 718, + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 40, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Retrieve the name of the operation behind the deployment\n * Must return the name of the operation behind the deployment\n ", + "start": 925, + "end": 1067, + "loc": { + "start": { + "line": 50, + "column": 4 + }, + "end": { + "line": 53, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 1072, + "end": 1143, + "loc": { + "start": { + "line": 54, + "column": 4 + }, + "end": { + "line": 56, + "column": 5 + } + }, + "static": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 1079, + "end": 1086, + "loc": { + "start": { + "line": 54, + "column": 11 + }, + "end": { + "line": 54, + "column": 18 + }, + "identifierName": "getName" + }, + "name": "getName" + }, + "kind": "method", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 1089, + "end": 1143, + "loc": { + "start": { + "line": 54, + "column": 21 + }, + "end": { + "line": 56, + "column": 5 + } + }, + "body": [ + { + "type": "ThrowStatement", + "start": 1099, + "end": 1137, + "loc": { + "start": { + "line": 55, + "column": 8 + }, + "end": { + "line": 55, + "column": 46 + } + }, + "argument": { + "type": "StringLiteral", + "start": 1105, + "end": 1137, + "loc": { + "start": { + "line": 55, + "column": 14 + }, + "end": { + "line": 55, + "column": 46 + } + }, + "extra": { + "rawValue": "You must implement this method", + "raw": "\"You must implement this method\"" + }, + "value": "You must implement this method" + } + } + ], + "directives": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Retrieve the name of the operation behind the deployment\n * Must return the name of the operation behind the deployment\n ", + "start": 925, + "end": 1067, + "loc": { + "start": { + "line": 50, + "column": 4 + }, + "end": { + "line": 53, + "column": 7 + } + } + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * DeployResult class\n * Object used to keep the track of a deploy result.\n ", + "start": 231, + "end": 313, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 20, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * DeployResult class\n * Object used to keep the track of a deploy result.\n ", + "start": 231, + "end": 313, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 20, + "column": 3 + } + } + } + ] + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\n * @constant\n * @type {string}\n ", + "start": 0, + "end": 38, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 4, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @constant\n * @type {string}\n ", + "start": 80, + "end": 118, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @constant\n * @type {string}\n ", + "start": 155, + "end": 193, + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * DeployResult class\n * Object used to keep the track of a deploy result.\n ", + "start": 231, + "end": 313, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 20, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 346, + "end": 367, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 25 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {number} ", + "start": 382, + "end": 403, + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 25 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 418, + "end": 439, + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 25 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 456, + "end": 477, + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 28, + "column": 25 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {number} ", + "start": 495, + "end": 516, + "loc": { + "start": { + "line": 30, + "column": 4 + }, + "end": { + "line": 30, + "column": 25 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 533, + "end": 554, + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 32, + "column": 25 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {string} hash - DeployHash of the deployment\n * @param {string} name - Name of the operation\n ", + "start": 570, + "end": 718, + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 40, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Retrieve the name of the operation behind the deployment\n * Must return the name of the operation behind the deployment\n ", + "start": 925, + "end": 1067, + "loc": { + "start": { + "line": 50, + "column": 4 + }, + "end": { + "line": 53, + "column": 7 + } + } + } + ], + "tokens": [ + { + "type": "CommentBlock", + "value": "*\n * @constant\n * @type {string}\n ", + "start": 0, + "end": 38, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 4, + "column": 3 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 39, + "end": 45, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 6 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 46, + "end": 51, + "loc": { + "start": { + "line": 5, + "column": 7 + }, + "end": { + "line": 5, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "STATUS_UNKNOWN", + "start": 52, + "end": 66, + "loc": { + "start": { + "line": 5, + "column": 13 + }, + "end": { + "line": 5, + "column": 27 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 67, + "end": 68, + "loc": { + "start": { + "line": 5, + "column": 28 + }, + "end": { + "line": 5, + "column": 29 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "Unknown", + "start": 69, + "end": 78, + "loc": { + "start": { + "line": 5, + "column": 30 + }, + "end": { + "line": 5, + "column": 39 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 78, + "end": 79, + "loc": { + "start": { + "line": 5, + "column": 39 + }, + "end": { + "line": 5, + "column": 40 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @constant\n * @type {string}\n ", + "start": 80, + "end": 118, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 119, + "end": 125, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 10, + "column": 6 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 126, + "end": 131, + "loc": { + "start": { + "line": 10, + "column": 7 + }, + "end": { + "line": 10, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "STATUS_OK", + "start": 132, + "end": 141, + "loc": { + "start": { + "line": 10, + "column": 13 + }, + "end": { + "line": 10, + "column": 22 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 142, + "end": 143, + "loc": { + "start": { + "line": 10, + "column": 23 + }, + "end": { + "line": 10, + "column": 24 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "Success", + "start": 144, + "end": 153, + "loc": { + "start": { + "line": 10, + "column": 25 + }, + "end": { + "line": 10, + "column": 34 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 153, + "end": 154, + "loc": { + "start": { + "line": 10, + "column": 34 + }, + "end": { + "line": 10, + "column": 35 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @constant\n * @type {string}\n ", + "start": 155, + "end": 193, + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 194, + "end": 200, + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 15, + "column": 6 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 201, + "end": 206, + "loc": { + "start": { + "line": 15, + "column": 7 + }, + "end": { + "line": 15, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "STATUS_KO", + "start": 207, + "end": 216, + "loc": { + "start": { + "line": 15, + "column": 13 + }, + "end": { + "line": 15, + "column": 22 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 217, + "end": 218, + "loc": { + "start": { + "line": 15, + "column": 23 + }, + "end": { + "line": 15, + "column": 24 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "Failure", + "start": 219, + "end": 228, + "loc": { + "start": { + "line": 15, + "column": 25 + }, + "end": { + "line": 15, + "column": 34 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 228, + "end": 229, + "loc": { + "start": { + "line": 15, + "column": 34 + }, + "end": { + "line": 15, + "column": 35 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * DeployResult class\n * Object used to keep the track of a deploy result.\n ", + "start": 231, + "end": 313, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 20, + "column": 3 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 314, + "end": 320, + "loc": { + "start": { + "line": 21, + "column": 0 + }, + "end": { + "line": 21, + "column": 6 + } + } + }, + { + "type": { + "label": "class", + "keyword": "class", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "class", + "start": 321, + "end": 326, + "loc": { + "start": { + "line": 21, + "column": 7 + }, + "end": { + "line": 21, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "DeployResult", + "start": 327, + "end": 339, + "loc": { + "start": { + "line": 21, + "column": 13 + }, + "end": { + "line": 21, + "column": 25 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 340, + "end": 341, + "loc": { + "start": { + "line": 21, + "column": 26 + }, + "end": { + "line": 21, + "column": 27 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 346, + "end": 367, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "hash", + "start": 372, + "end": 376, + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 8 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 376, + "end": 377, + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 9 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {number} ", + "start": 382, + "end": 403, + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "cost", + "start": 408, + "end": 412, + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 8 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 412, + "end": 413, + "loc": { + "start": { + "line": 25, + "column": 8 + }, + "end": { + "line": 25, + "column": 9 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 418, + "end": 439, + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "status", + "start": 444, + "end": 450, + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 27, + "column": 10 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 450, + "end": 451, + "loc": { + "start": { + "line": 27, + "column": 10 + }, + "end": { + "line": 27, + "column": 11 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 456, + "end": 477, + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 28, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "message", + "start": 482, + "end": 489, + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 29, + "column": 11 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 489, + "end": 490, + "loc": { + "start": { + "line": 29, + "column": 11 + }, + "end": { + "line": 29, + "column": 12 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {number} ", + "start": 495, + "end": 516, + "loc": { + "start": { + "line": 30, + "column": 4 + }, + "end": { + "line": 30, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "amount", + "start": 521, + "end": 527, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 10 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 527, + "end": 528, + "loc": { + "start": { + "line": 31, + "column": 10 + }, + "end": { + "line": 31, + "column": 11 + } + } + }, + { + "type": "CommentBlock", + "value": "* @type {string} ", + "start": 533, + "end": 554, + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 32, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "name", + "start": 559, + "end": 563, + "loc": { + "start": { + "line": 33, + "column": 4 + }, + "end": { + "line": 33, + "column": 8 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 563, + "end": 564, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 33, + "column": 9 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {string} hash - DeployHash of the deployment\n * @param {string} name - Name of the operation\n ", + "start": 570, + "end": 718, + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 40, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "constructor", + "start": 723, + "end": 734, + "loc": { + "start": { + "line": 41, + "column": 4 + }, + "end": { + "line": 41, + "column": 15 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 734, + "end": 735, + "loc": { + "start": { + "line": 41, + "column": 15 + }, + "end": { + "line": 41, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "hash", + "start": 735, + "end": 739, + "loc": { + "start": { + "line": 41, + "column": 16 + }, + "end": { + "line": 41, + "column": 20 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 739, + "end": 740, + "loc": { + "start": { + "line": 41, + "column": 20 + }, + "end": { + "line": 41, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "name", + "start": 741, + "end": 745, + "loc": { + "start": { + "line": 41, + "column": 22 + }, + "end": { + "line": 41, + "column": 26 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 745, + "end": 746, + "loc": { + "start": { + "line": 41, + "column": 26 + }, + "end": { + "line": 41, + "column": 27 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 747, + "end": 748, + "loc": { + "start": { + "line": 41, + "column": 28 + }, + "end": { + "line": 41, + "column": 29 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 757, + "end": 761, + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 42, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 761, + "end": 762, + "loc": { + "start": { + "line": 42, + "column": 12 + }, + "end": { + "line": 42, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "hash", + "start": 762, + "end": 766, + "loc": { + "start": { + "line": 42, + "column": 13 + }, + "end": { + "line": 42, + "column": 17 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 767, + "end": 768, + "loc": { + "start": { + "line": 42, + "column": 18 + }, + "end": { + "line": 42, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "hash", + "start": 769, + "end": 773, + "loc": { + "start": { + "line": 42, + "column": 20 + }, + "end": { + "line": 42, + "column": 24 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 773, + "end": 774, + "loc": { + "start": { + "line": 42, + "column": 24 + }, + "end": { + "line": 42, + "column": 25 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 783, + "end": 787, + "loc": { + "start": { + "line": 43, + "column": 8 + }, + "end": { + "line": 43, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 787, + "end": 788, + "loc": { + "start": { + "line": 43, + "column": 12 + }, + "end": { + "line": 43, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "cost", + "start": 788, + "end": 792, + "loc": { + "start": { + "line": 43, + "column": 13 + }, + "end": { + "line": 43, + "column": 17 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 793, + "end": 794, + "loc": { + "start": { + "line": 43, + "column": 18 + }, + "end": { + "line": 43, + "column": 19 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 0, + "start": 795, + "end": 796, + "loc": { + "start": { + "line": 43, + "column": 20 + }, + "end": { + "line": 43, + "column": 21 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 796, + "end": 797, + "loc": { + "start": { + "line": 43, + "column": 21 + }, + "end": { + "line": 43, + "column": 22 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 806, + "end": 810, + "loc": { + "start": { + "line": 44, + "column": 8 + }, + "end": { + "line": 44, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 810, + "end": 811, + "loc": { + "start": { + "line": 44, + "column": 12 + }, + "end": { + "line": 44, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "status", + "start": 811, + "end": 817, + "loc": { + "start": { + "line": 44, + "column": 13 + }, + "end": { + "line": 44, + "column": 19 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 818, + "end": 819, + "loc": { + "start": { + "line": 44, + "column": 20 + }, + "end": { + "line": 44, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "STATUS_UNKNOWN", + "start": 820, + "end": 834, + "loc": { + "start": { + "line": 44, + "column": 22 + }, + "end": { + "line": 44, + "column": 36 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 834, + "end": 835, + "loc": { + "start": { + "line": 44, + "column": 36 + }, + "end": { + "line": 44, + "column": 37 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 844, + "end": 848, + "loc": { + "start": { + "line": 45, + "column": 8 + }, + "end": { + "line": 45, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 848, + "end": 849, + "loc": { + "start": { + "line": 45, + "column": 12 + }, + "end": { + "line": 45, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "message", + "start": 849, + "end": 856, + "loc": { + "start": { + "line": 45, + "column": 13 + }, + "end": { + "line": 45, + "column": 20 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 857, + "end": 858, + "loc": { + "start": { + "line": 45, + "column": 21 + }, + "end": { + "line": 45, + "column": 22 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "", + "start": 859, + "end": 861, + "loc": { + "start": { + "line": 45, + "column": 23 + }, + "end": { + "line": 45, + "column": 25 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 861, + "end": 862, + "loc": { + "start": { + "line": 45, + "column": 25 + }, + "end": { + "line": 45, + "column": 26 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 871, + "end": 875, + "loc": { + "start": { + "line": 46, + "column": 8 + }, + "end": { + "line": 46, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 875, + "end": 876, + "loc": { + "start": { + "line": 46, + "column": 12 + }, + "end": { + "line": 46, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "amount", + "start": 876, + "end": 882, + "loc": { + "start": { + "line": 46, + "column": 13 + }, + "end": { + "line": 46, + "column": 19 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 883, + "end": 884, + "loc": { + "start": { + "line": 46, + "column": 20 + }, + "end": { + "line": 46, + "column": 21 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 0, + "start": 885, + "end": 886, + "loc": { + "start": { + "line": 46, + "column": 22 + }, + "end": { + "line": 46, + "column": 23 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 886, + "end": 887, + "loc": { + "start": { + "line": 46, + "column": 23 + }, + "end": { + "line": 46, + "column": 24 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 896, + "end": 900, + "loc": { + "start": { + "line": 47, + "column": 8 + }, + "end": { + "line": 47, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 900, + "end": 901, + "loc": { + "start": { + "line": 47, + "column": 12 + }, + "end": { + "line": 47, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "name", + "start": 901, + "end": 905, + "loc": { + "start": { + "line": 47, + "column": 13 + }, + "end": { + "line": 47, + "column": 17 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 906, + "end": 907, + "loc": { + "start": { + "line": 47, + "column": 18 + }, + "end": { + "line": 47, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "name", + "start": 908, + "end": 912, + "loc": { + "start": { + "line": 47, + "column": 20 + }, + "end": { + "line": 47, + "column": 24 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 912, + "end": 913, + "loc": { + "start": { + "line": 47, + "column": 24 + }, + "end": { + "line": 47, + "column": 25 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 918, + "end": 919, + "loc": { + "start": { + "line": 48, + "column": 4 + }, + "end": { + "line": 48, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Retrieve the name of the operation behind the deployment\n * Must return the name of the operation behind the deployment\n ", + "start": 925, + "end": 1067, + "loc": { + "start": { + "line": 50, + "column": 4 + }, + "end": { + "line": 53, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "static", + "start": 1072, + "end": 1078, + "loc": { + "start": { + "line": 54, + "column": 4 + }, + "end": { + "line": 54, + "column": 10 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "getName", + "start": 1079, + "end": 1086, + "loc": { + "start": { + "line": 54, + "column": 11 + }, + "end": { + "line": 54, + "column": 18 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1086, + "end": 1087, + "loc": { + "start": { + "line": 54, + "column": 18 + }, + "end": { + "line": 54, + "column": 19 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1087, + "end": 1088, + "loc": { + "start": { + "line": 54, + "column": 19 + }, + "end": { + "line": 54, + "column": 20 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1089, + "end": 1090, + "loc": { + "start": { + "line": 54, + "column": 21 + }, + "end": { + "line": 54, + "column": 22 + } + } + }, + { + "type": { + "label": "throw", + "keyword": "throw", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "throw", + "start": 1099, + "end": 1104, + "loc": { + "start": { + "line": 55, + "column": 8 + }, + "end": { + "line": 55, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "You must implement this method", + "start": 1105, + "end": 1137, + "loc": { + "start": { + "line": 55, + "column": 14 + }, + "end": { + "line": 55, + "column": 46 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1142, + "end": 1143, + "loc": { + "start": { + "line": 56, + "column": 4 + }, + "end": { + "line": 56, + "column": 5 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1144, + "end": 1145, + "loc": { + "start": { + "line": 57, + "column": 0 + }, + "end": { + "line": 57, + "column": 1 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1145, + "end": 1145, + "loc": { + "start": { + "line": 57, + "column": 1 + }, + "end": { + "line": 57, + "column": 1 + } + } + } + ] +} \ No newline at end of file diff --git a/ast/source/services/results/index.js.json b/ast/source/services/results/index.js.json new file mode 100644 index 0000000..6bb0a22 --- /dev/null +++ b/ast/source/services/results/index.js.json @@ -0,0 +1,1246 @@ +{ + "type": "File", + "start": 0, + "end": 243, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 7, + "column": 36 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 243, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 7, + "column": 36 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ExportAllDeclaration", + "start": 0, + "end": 31, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 31 + } + }, + "source": { + "type": "StringLiteral", + "start": 14, + "end": 30, + "loc": { + "start": { + "line": 1, + "column": 14 + }, + "end": { + "line": 1, + "column": 30 + } + }, + "extra": { + "rawValue": "./addBidResult", + "raw": "'./addBidResult'" + }, + "value": "./addBidResult" + } + }, + { + "type": "ExportAllDeclaration", + "start": 32, + "end": 65, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 33 + } + }, + "source": { + "type": "StringLiteral", + "start": 46, + "end": 64, + "loc": { + "start": { + "line": 2, + "column": 14 + }, + "end": { + "line": 2, + "column": 32 + } + }, + "extra": { + "rawValue": "./delegateResult", + "raw": "'./delegateResult'" + }, + "value": "./delegateResult" + } + }, + { + "type": "ExportAllDeclaration", + "start": 66, + "end": 97, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 31 + } + }, + "source": { + "type": "StringLiteral", + "start": 80, + "end": 96, + "loc": { + "start": { + "line": 3, + "column": 14 + }, + "end": { + "line": 3, + "column": 30 + } + }, + "extra": { + "rawValue": "./deployResult", + "raw": "'./deployResult'" + }, + "value": "./deployResult" + } + }, + { + "type": "ExportAllDeclaration", + "start": 98, + "end": 136, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 38 + } + }, + "source": { + "type": "StringLiteral", + "start": 112, + "end": 135, + "loc": { + "start": { + "line": 4, + "column": 14 + }, + "end": { + "line": 4, + "column": 37 + } + }, + "extra": { + "rawValue": "./smartContractResult", + "raw": "'./smartContractResult'" + }, + "value": "./smartContractResult" + } + }, + { + "type": "ExportAllDeclaration", + "start": 137, + "end": 170, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 33 + } + }, + "source": { + "type": "StringLiteral", + "start": 151, + "end": 169, + "loc": { + "start": { + "line": 5, + "column": 14 + }, + "end": { + "line": 5, + "column": 32 + } + }, + "extra": { + "rawValue": "./transferResult", + "raw": "'./transferResult'" + }, + "value": "./transferResult" + } + }, + { + "type": "ExportAllDeclaration", + "start": 171, + "end": 206, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 6, + "column": 35 + } + }, + "source": { + "type": "StringLiteral", + "start": 185, + "end": 205, + "loc": { + "start": { + "line": 6, + "column": 14 + }, + "end": { + "line": 6, + "column": 34 + } + }, + "extra": { + "rawValue": "./undelegateResult", + "raw": "'./undelegateResult'" + }, + "value": "./undelegateResult" + } + }, + { + "type": "ExportAllDeclaration", + "start": 207, + "end": 243, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 36 + } + }, + "source": { + "type": "StringLiteral", + "start": 221, + "end": 242, + "loc": { + "start": { + "line": 7, + "column": 14 + }, + "end": { + "line": 7, + "column": 35 + } + }, + "extra": { + "rawValue": "./withdrawBidResult", + "raw": "'./withdrawBidResult'" + }, + "value": "./withdrawBidResult" + } + } + ], + "directives": [] + }, + "comments": [], + "tokens": [ + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 0, + "end": 6, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 6 + } + } + }, + { + "type": { + "label": "*", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 10, + "updateContext": null + }, + "value": "*", + "start": 7, + "end": 8, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 9, + "end": 13, + "loc": { + "start": { + "line": 1, + "column": 9 + }, + "end": { + "line": 1, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./addBidResult", + "start": 14, + "end": 30, + "loc": { + "start": { + "line": 1, + "column": 14 + }, + "end": { + "line": 1, + "column": 30 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 30, + "end": 31, + "loc": { + "start": { + "line": 1, + "column": 30 + }, + "end": { + "line": 1, + "column": 31 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 32, + "end": 38, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 6 + } + } + }, + { + "type": { + "label": "*", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 10, + "updateContext": null + }, + "value": "*", + "start": 39, + "end": 40, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 41, + "end": 45, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./delegateResult", + "start": 46, + "end": 64, + "loc": { + "start": { + "line": 2, + "column": 14 + }, + "end": { + "line": 2, + "column": 32 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 64, + "end": 65, + "loc": { + "start": { + "line": 2, + "column": 32 + }, + "end": { + "line": 2, + "column": 33 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 66, + "end": 72, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 6 + } + } + }, + { + "type": { + "label": "*", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 10, + "updateContext": null + }, + "value": "*", + "start": 73, + "end": 74, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 75, + "end": 79, + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./deployResult", + "start": 80, + "end": 96, + "loc": { + "start": { + "line": 3, + "column": 14 + }, + "end": { + "line": 3, + "column": 30 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 96, + "end": 97, + "loc": { + "start": { + "line": 3, + "column": 30 + }, + "end": { + "line": 3, + "column": 31 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 98, + "end": 104, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 6 + } + } + }, + { + "type": { + "label": "*", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 10, + "updateContext": null + }, + "value": "*", + "start": 105, + "end": 106, + "loc": { + "start": { + "line": 4, + "column": 7 + }, + "end": { + "line": 4, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 107, + "end": 111, + "loc": { + "start": { + "line": 4, + "column": 9 + }, + "end": { + "line": 4, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./smartContractResult", + "start": 112, + "end": 135, + "loc": { + "start": { + "line": 4, + "column": 14 + }, + "end": { + "line": 4, + "column": 37 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 135, + "end": 136, + "loc": { + "start": { + "line": 4, + "column": 37 + }, + "end": { + "line": 4, + "column": 38 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 137, + "end": 143, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 6 + } + } + }, + { + "type": { + "label": "*", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 10, + "updateContext": null + }, + "value": "*", + "start": 144, + "end": 145, + "loc": { + "start": { + "line": 5, + "column": 7 + }, + "end": { + "line": 5, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 146, + "end": 150, + "loc": { + "start": { + "line": 5, + "column": 9 + }, + "end": { + "line": 5, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./transferResult", + "start": 151, + "end": 169, + "loc": { + "start": { + "line": 5, + "column": 14 + }, + "end": { + "line": 5, + "column": 32 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 169, + "end": 170, + "loc": { + "start": { + "line": 5, + "column": 32 + }, + "end": { + "line": 5, + "column": 33 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 171, + "end": 177, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 6, + "column": 6 + } + } + }, + { + "type": { + "label": "*", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 10, + "updateContext": null + }, + "value": "*", + "start": 178, + "end": 179, + "loc": { + "start": { + "line": 6, + "column": 7 + }, + "end": { + "line": 6, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 180, + "end": 184, + "loc": { + "start": { + "line": 6, + "column": 9 + }, + "end": { + "line": 6, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./undelegateResult", + "start": 185, + "end": 205, + "loc": { + "start": { + "line": 6, + "column": 14 + }, + "end": { + "line": 6, + "column": 34 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 205, + "end": 206, + "loc": { + "start": { + "line": 6, + "column": 34 + }, + "end": { + "line": 6, + "column": 35 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 207, + "end": 213, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 6 + } + } + }, + { + "type": { + "label": "*", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 10, + "updateContext": null + }, + "value": "*", + "start": 214, + "end": 215, + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 216, + "end": 220, + "loc": { + "start": { + "line": 7, + "column": 9 + }, + "end": { + "line": 7, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./withdrawBidResult", + "start": 221, + "end": 242, + "loc": { + "start": { + "line": 7, + "column": 14 + }, + "end": { + "line": 7, + "column": 35 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 242, + "end": 243, + "loc": { + "start": { + "line": 7, + "column": 35 + }, + "end": { + "line": 7, + "column": 36 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 243, + "end": 243, + "loc": { + "start": { + "line": 7, + "column": 36 + }, + "end": { + "line": 7, + "column": 36 + } + } + } + ] +} \ No newline at end of file diff --git a/ast/source/services/results/smartContractResult.js.json b/ast/source/services/results/smartContractResult.js.json new file mode 100644 index 0000000..67caca6 --- /dev/null +++ b/ast/source/services/results/smartContractResult.js.json @@ -0,0 +1,1726 @@ +{ + "type": "File", + "start": 0, + "end": 548, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 23, + "column": 1 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 548, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 23, + "column": 1 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 44, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 44 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 8, + "end": 20, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 20 + } + }, + "imported": { + "type": "Identifier", + "start": 8, + "end": 20, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 20 + }, + "identifierName": "DeployResult" + }, + "name": "DeployResult" + }, + "local": { + "type": "Identifier", + "start": 8, + "end": 20, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 20 + }, + "identifierName": "DeployResult" + }, + "name": "DeployResult" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 27, + "end": 43, + "loc": { + "start": { + "line": 1, + "column": 27 + }, + "end": { + "line": 1, + "column": 43 + } + }, + "extra": { + "rawValue": "./deployResult", + "raw": "\"./deployResult\"" + }, + "value": "./deployResult" + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * SmartContractResult class\n ", + "start": 46, + "end": 82, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 83, + "end": 548, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 23, + "column": 1 + } + }, + "specifiers": [], + "source": null, + "declaration": { + "type": "ClassDeclaration", + "start": 90, + "end": 548, + "loc": { + "start": { + "line": 6, + "column": 7 + }, + "end": { + "line": 23, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 96, + "end": 115, + "loc": { + "start": { + "line": 6, + "column": 13 + }, + "end": { + "line": 6, + "column": 32 + }, + "identifierName": "SmartContractResult" + }, + "name": "SmartContractResult", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 124, + "end": 136, + "loc": { + "start": { + "line": 6, + "column": 41 + }, + "end": { + "line": 6, + "column": 53 + }, + "identifierName": "DeployResult" + }, + "name": "DeployResult" + }, + "body": { + "type": "ClassBody", + "start": 137, + "end": 548, + "loc": { + "start": { + "line": 6, + "column": 54 + }, + "end": { + "line": 23, + "column": 1 + } + }, + "body": [ + { + "type": "ClassMethod", + "start": 237, + "end": 313, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 13, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 237, + "end": 248, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 15 + }, + "identifierName": "constructor" + }, + "name": "constructor", + "leadingComments": null + }, + "kind": "constructor", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 249, + "end": 253, + "loc": { + "start": { + "line": 11, + "column": 16 + }, + "end": { + "line": 11, + "column": 20 + }, + "identifierName": "hash" + }, + "name": "hash" + } + ], + "body": { + "type": "BlockStatement", + "start": 255, + "end": 313, + "loc": { + "start": { + "line": 11, + "column": 22 + }, + "end": { + "line": 13, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 265, + "end": 307, + "loc": { + "start": { + "line": 12, + "column": 8 + }, + "end": { + "line": 12, + "column": 50 + } + }, + "expression": { + "type": "CallExpression", + "start": 265, + "end": 307, + "loc": { + "start": { + "line": 12, + "column": 8 + }, + "end": { + "line": 12, + "column": 50 + } + }, + "callee": { + "type": "Super", + "start": 265, + "end": 270, + "loc": { + "start": { + "line": 12, + "column": 8 + }, + "end": { + "line": 12, + "column": 13 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "start": 271, + "end": 275, + "loc": { + "start": { + "line": 12, + "column": 14 + }, + "end": { + "line": 12, + "column": 18 + }, + "identifierName": "hash" + }, + "name": "hash" + }, + { + "type": "CallExpression", + "start": 277, + "end": 306, + "loc": { + "start": { + "line": 12, + "column": 20 + }, + "end": { + "line": 12, + "column": 49 + } + }, + "callee": { + "type": "MemberExpression", + "start": 277, + "end": 304, + "loc": { + "start": { + "line": 12, + "column": 20 + }, + "end": { + "line": 12, + "column": 47 + } + }, + "object": { + "type": "Identifier", + "start": 277, + "end": 296, + "loc": { + "start": { + "line": 12, + "column": 20 + }, + "end": { + "line": 12, + "column": 39 + }, + "identifierName": "SmartContractResult" + }, + "name": "SmartContractResult" + }, + "property": { + "type": "Identifier", + "start": 297, + "end": 304, + "loc": { + "start": { + "line": 12, + "column": 40 + }, + "end": { + "line": 12, + "column": 47 + }, + "identifierName": "getName" + }, + "name": "getName" + }, + "computed": false + }, + "arguments": [] + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Constructor\n * @param {string} hash - DeployHash of the deployment\n ", + "start": 143, + "end": 232, + "loc": { + "start": { + "line": 7, + "column": 4 + }, + "end": { + "line": 10, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Retrieve the name of the operation behind the deployment\n *\n * @return {string} - the name of the operation behind the deployment\n ", + "start": 319, + "end": 475, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 19, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 480, + "end": 546, + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 22, + "column": 5 + } + }, + "static": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 487, + "end": 494, + "loc": { + "start": { + "line": 20, + "column": 11 + }, + "end": { + "line": 20, + "column": 18 + }, + "identifierName": "getName" + }, + "name": "getName" + }, + "kind": "method", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 497, + "end": 546, + "loc": { + "start": { + "line": 20, + "column": 21 + }, + "end": { + "line": 22, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 507, + "end": 540, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 41 + } + }, + "argument": { + "type": "StringLiteral", + "start": 514, + "end": 540, + "loc": { + "start": { + "line": 21, + "column": 15 + }, + "end": { + "line": 21, + "column": 41 + } + }, + "extra": { + "rawValue": "Smart Contract Operation", + "raw": "'Smart Contract Operation'" + }, + "value": "Smart Contract Operation" + } + } + ], + "directives": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Retrieve the name of the operation behind the deployment\n *\n * @return {string} - the name of the operation behind the deployment\n ", + "start": 319, + "end": 475, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 19, + "column": 7 + } + } + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * SmartContractResult class\n ", + "start": 46, + "end": 82, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * SmartContractResult class\n ", + "start": 46, + "end": 82, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + } + ] + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\n * SmartContractResult class\n ", + "start": 46, + "end": 82, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Constructor\n * @param {string} hash - DeployHash of the deployment\n ", + "start": 143, + "end": 232, + "loc": { + "start": { + "line": 7, + "column": 4 + }, + "end": { + "line": 10, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Retrieve the name of the operation behind the deployment\n *\n * @return {string} - the name of the operation behind the deployment\n ", + "start": 319, + "end": 475, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 19, + "column": 7 + } + } + } + ], + "tokens": [ + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 0, + "end": 6, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7, + "end": 8, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "DeployResult", + "start": 8, + "end": 20, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 20 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 20, + "end": 21, + "loc": { + "start": { + "line": 1, + "column": 20 + }, + "end": { + "line": 1, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 22, + "end": 26, + "loc": { + "start": { + "line": 1, + "column": 22 + }, + "end": { + "line": 1, + "column": 26 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./deployResult", + "start": 27, + "end": 43, + "loc": { + "start": { + "line": 1, + "column": 27 + }, + "end": { + "line": 1, + "column": 43 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 43, + "end": 44, + "loc": { + "start": { + "line": 1, + "column": 43 + }, + "end": { + "line": 1, + "column": 44 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * SmartContractResult class\n ", + "start": 46, + "end": 82, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 83, + "end": 89, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 6, + "column": 6 + } + } + }, + { + "type": { + "label": "class", + "keyword": "class", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "class", + "start": 90, + "end": 95, + "loc": { + "start": { + "line": 6, + "column": 7 + }, + "end": { + "line": 6, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "SmartContractResult", + "start": 96, + "end": 115, + "loc": { + "start": { + "line": 6, + "column": 13 + }, + "end": { + "line": 6, + "column": 32 + } + } + }, + { + "type": { + "label": "extends", + "keyword": "extends", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "extends", + "start": 116, + "end": 123, + "loc": { + "start": { + "line": 6, + "column": 33 + }, + "end": { + "line": 6, + "column": 40 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "DeployResult", + "start": 124, + "end": 136, + "loc": { + "start": { + "line": 6, + "column": 41 + }, + "end": { + "line": 6, + "column": 53 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 137, + "end": 138, + "loc": { + "start": { + "line": 6, + "column": 54 + }, + "end": { + "line": 6, + "column": 55 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Constructor\n * @param {string} hash - DeployHash of the deployment\n ", + "start": 143, + "end": 232, + "loc": { + "start": { + "line": 7, + "column": 4 + }, + "end": { + "line": 10, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "constructor", + "start": 237, + "end": 248, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 15 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 248, + "end": 249, + "loc": { + "start": { + "line": 11, + "column": 15 + }, + "end": { + "line": 11, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "hash", + "start": 249, + "end": 253, + "loc": { + "start": { + "line": 11, + "column": 16 + }, + "end": { + "line": 11, + "column": 20 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 253, + "end": 254, + "loc": { + "start": { + "line": 11, + "column": 20 + }, + "end": { + "line": 11, + "column": 21 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 255, + "end": 256, + "loc": { + "start": { + "line": 11, + "column": 22 + }, + "end": { + "line": 11, + "column": 23 + } + } + }, + { + "type": { + "label": "super", + "keyword": "super", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "super", + "start": 265, + "end": 270, + "loc": { + "start": { + "line": 12, + "column": 8 + }, + "end": { + "line": 12, + "column": 13 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 270, + "end": 271, + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "hash", + "start": 271, + "end": 275, + "loc": { + "start": { + "line": 12, + "column": 14 + }, + "end": { + "line": 12, + "column": 18 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 275, + "end": 276, + "loc": { + "start": { + "line": 12, + "column": 18 + }, + "end": { + "line": 12, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "SmartContractResult", + "start": 277, + "end": 296, + "loc": { + "start": { + "line": 12, + "column": 20 + }, + "end": { + "line": 12, + "column": 39 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 296, + "end": 297, + "loc": { + "start": { + "line": 12, + "column": 39 + }, + "end": { + "line": 12, + "column": 40 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "getName", + "start": 297, + "end": 304, + "loc": { + "start": { + "line": 12, + "column": 40 + }, + "end": { + "line": 12, + "column": 47 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 304, + "end": 305, + "loc": { + "start": { + "line": 12, + "column": 47 + }, + "end": { + "line": 12, + "column": 48 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 305, + "end": 306, + "loc": { + "start": { + "line": 12, + "column": 48 + }, + "end": { + "line": 12, + "column": 49 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 306, + "end": 307, + "loc": { + "start": { + "line": 12, + "column": 49 + }, + "end": { + "line": 12, + "column": 50 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 312, + "end": 313, + "loc": { + "start": { + "line": 13, + "column": 4 + }, + "end": { + "line": 13, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Retrieve the name of the operation behind the deployment\n *\n * @return {string} - the name of the operation behind the deployment\n ", + "start": 319, + "end": 475, + "loc": { + "start": { + "line": 15, + "column": 4 + }, + "end": { + "line": 19, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "static", + "start": 480, + "end": 486, + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 10 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "getName", + "start": 487, + "end": 494, + "loc": { + "start": { + "line": 20, + "column": 11 + }, + "end": { + "line": 20, + "column": 18 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 494, + "end": 495, + "loc": { + "start": { + "line": 20, + "column": 18 + }, + "end": { + "line": 20, + "column": 19 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 495, + "end": 496, + "loc": { + "start": { + "line": 20, + "column": 19 + }, + "end": { + "line": 20, + "column": 20 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 497, + "end": 498, + "loc": { + "start": { + "line": 20, + "column": 21 + }, + "end": { + "line": 20, + "column": 22 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 507, + "end": 513, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 14 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "Smart Contract Operation", + "start": 514, + "end": 540, + "loc": { + "start": { + "line": 21, + "column": 15 + }, + "end": { + "line": 21, + "column": 41 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 545, + "end": 546, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 5 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 547, + "end": 548, + "loc": { + "start": { + "line": 23, + "column": 0 + }, + "end": { + "line": 23, + "column": 1 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 548, + "end": 548, + "loc": { + "start": { + "line": 23, + "column": 1 + }, + "end": { + "line": 23, + "column": 1 + } + } + } + ] +} \ No newline at end of file diff --git a/ast/source/services/results/transferResult.js.json b/ast/source/services/results/transferResult.js.json new file mode 100644 index 0000000..ca2b957 --- /dev/null +++ b/ast/source/services/results/transferResult.js.json @@ -0,0 +1,1726 @@ +{ + "type": "File", + "start": 0, + "end": 534, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 24, + "column": 1 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 534, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 24, + "column": 1 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 44, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 44 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 8, + "end": 20, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 20 + } + }, + "imported": { + "type": "Identifier", + "start": 8, + "end": 20, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 20 + }, + "identifierName": "DeployResult" + }, + "name": "DeployResult" + }, + "local": { + "type": "Identifier", + "start": 8, + "end": 20, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 20 + }, + "identifierName": "DeployResult" + }, + "name": "DeployResult" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 27, + "end": 43, + "loc": { + "start": { + "line": 1, + "column": 27 + }, + "end": { + "line": 1, + "column": 43 + } + }, + "extra": { + "rawValue": "./deployResult", + "raw": "\"./deployResult\"" + }, + "value": "./deployResult" + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * TransferResult class\n ", + "start": 46, + "end": 77, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 78, + "end": 534, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 24, + "column": 1 + } + }, + "specifiers": [], + "source": null, + "declaration": { + "type": "ClassDeclaration", + "start": 85, + "end": 534, + "loc": { + "start": { + "line": 6, + "column": 7 + }, + "end": { + "line": 24, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 91, + "end": 105, + "loc": { + "start": { + "line": 6, + "column": 13 + }, + "end": { + "line": 6, + "column": 27 + }, + "identifierName": "TransferResult" + }, + "name": "TransferResult", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 114, + "end": 126, + "loc": { + "start": { + "line": 6, + "column": 36 + }, + "end": { + "line": 6, + "column": 48 + }, + "identifierName": "DeployResult" + }, + "name": "DeployResult" + }, + "body": { + "type": "ClassBody", + "start": 127, + "end": 534, + "loc": { + "start": { + "line": 6, + "column": 49 + }, + "end": { + "line": 24, + "column": 1 + } + }, + "body": [ + { + "type": "ClassMethod", + "start": 234, + "end": 305, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 14, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 234, + "end": 245, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 15 + }, + "identifierName": "constructor" + }, + "name": "constructor", + "leadingComments": null + }, + "kind": "constructor", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 246, + "end": 250, + "loc": { + "start": { + "line": 12, + "column": 16 + }, + "end": { + "line": 12, + "column": 20 + }, + "identifierName": "hash" + }, + "name": "hash" + } + ], + "body": { + "type": "BlockStatement", + "start": 252, + "end": 305, + "loc": { + "start": { + "line": 12, + "column": 22 + }, + "end": { + "line": 14, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 262, + "end": 299, + "loc": { + "start": { + "line": 13, + "column": 8 + }, + "end": { + "line": 13, + "column": 45 + } + }, + "expression": { + "type": "CallExpression", + "start": 262, + "end": 299, + "loc": { + "start": { + "line": 13, + "column": 8 + }, + "end": { + "line": 13, + "column": 45 + } + }, + "callee": { + "type": "Super", + "start": 262, + "end": 267, + "loc": { + "start": { + "line": 13, + "column": 8 + }, + "end": { + "line": 13, + "column": 13 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "start": 268, + "end": 272, + "loc": { + "start": { + "line": 13, + "column": 14 + }, + "end": { + "line": 13, + "column": 18 + }, + "identifierName": "hash" + }, + "name": "hash" + }, + { + "type": "CallExpression", + "start": 274, + "end": 298, + "loc": { + "start": { + "line": 13, + "column": 20 + }, + "end": { + "line": 13, + "column": 44 + } + }, + "callee": { + "type": "MemberExpression", + "start": 274, + "end": 296, + "loc": { + "start": { + "line": 13, + "column": 20 + }, + "end": { + "line": 13, + "column": 42 + } + }, + "object": { + "type": "Identifier", + "start": 274, + "end": 288, + "loc": { + "start": { + "line": 13, + "column": 20 + }, + "end": { + "line": 13, + "column": 34 + }, + "identifierName": "TransferResult" + }, + "name": "TransferResult" + }, + "property": { + "type": "Identifier", + "start": 289, + "end": 296, + "loc": { + "start": { + "line": 13, + "column": 35 + }, + "end": { + "line": 13, + "column": 42 + }, + "identifierName": "getName" + }, + "name": "getName" + }, + "computed": false + }, + "arguments": [] + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {string} hash - DeployHash of the deployment\n ", + "start": 133, + "end": 229, + "loc": { + "start": { + "line": 7, + "column": 4 + }, + "end": { + "line": 11, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Retrieve the name of the operation behind the deployment\n *\n * @return {string} - the name of the operation behind the deployment\n ", + "start": 311, + "end": 467, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 20, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 472, + "end": 532, + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 23, + "column": 5 + } + }, + "static": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 479, + "end": 486, + "loc": { + "start": { + "line": 21, + "column": 11 + }, + "end": { + "line": 21, + "column": 18 + }, + "identifierName": "getName" + }, + "name": "getName" + }, + "kind": "method", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 489, + "end": 532, + "loc": { + "start": { + "line": 21, + "column": 21 + }, + "end": { + "line": 23, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 499, + "end": 526, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 35 + } + }, + "argument": { + "type": "StringLiteral", + "start": 506, + "end": 526, + "loc": { + "start": { + "line": 22, + "column": 15 + }, + "end": { + "line": 22, + "column": 35 + } + }, + "extra": { + "rawValue": "Transfer Operation", + "raw": "'Transfer Operation'" + }, + "value": "Transfer Operation" + } + } + ], + "directives": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Retrieve the name of the operation behind the deployment\n *\n * @return {string} - the name of the operation behind the deployment\n ", + "start": 311, + "end": 467, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 20, + "column": 7 + } + } + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * TransferResult class\n ", + "start": 46, + "end": 77, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * TransferResult class\n ", + "start": 46, + "end": 77, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + } + ] + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\n * TransferResult class\n ", + "start": 46, + "end": 77, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {string} hash - DeployHash of the deployment\n ", + "start": 133, + "end": 229, + "loc": { + "start": { + "line": 7, + "column": 4 + }, + "end": { + "line": 11, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Retrieve the name of the operation behind the deployment\n *\n * @return {string} - the name of the operation behind the deployment\n ", + "start": 311, + "end": 467, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 20, + "column": 7 + } + } + } + ], + "tokens": [ + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 0, + "end": 6, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7, + "end": 8, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "DeployResult", + "start": 8, + "end": 20, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 20 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 20, + "end": 21, + "loc": { + "start": { + "line": 1, + "column": 20 + }, + "end": { + "line": 1, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 22, + "end": 26, + "loc": { + "start": { + "line": 1, + "column": 22 + }, + "end": { + "line": 1, + "column": 26 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./deployResult", + "start": 27, + "end": 43, + "loc": { + "start": { + "line": 1, + "column": 27 + }, + "end": { + "line": 1, + "column": 43 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 43, + "end": 44, + "loc": { + "start": { + "line": 1, + "column": 43 + }, + "end": { + "line": 1, + "column": 44 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * TransferResult class\n ", + "start": 46, + "end": 77, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 78, + "end": 84, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 6, + "column": 6 + } + } + }, + { + "type": { + "label": "class", + "keyword": "class", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "class", + "start": 85, + "end": 90, + "loc": { + "start": { + "line": 6, + "column": 7 + }, + "end": { + "line": 6, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "TransferResult", + "start": 91, + "end": 105, + "loc": { + "start": { + "line": 6, + "column": 13 + }, + "end": { + "line": 6, + "column": 27 + } + } + }, + { + "type": { + "label": "extends", + "keyword": "extends", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "extends", + "start": 106, + "end": 113, + "loc": { + "start": { + "line": 6, + "column": 28 + }, + "end": { + "line": 6, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "DeployResult", + "start": 114, + "end": 126, + "loc": { + "start": { + "line": 6, + "column": 36 + }, + "end": { + "line": 6, + "column": 48 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 127, + "end": 128, + "loc": { + "start": { + "line": 6, + "column": 49 + }, + "end": { + "line": 6, + "column": 50 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {string} hash - DeployHash of the deployment\n ", + "start": 133, + "end": 229, + "loc": { + "start": { + "line": 7, + "column": 4 + }, + "end": { + "line": 11, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "constructor", + "start": 234, + "end": 245, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 15 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 245, + "end": 246, + "loc": { + "start": { + "line": 12, + "column": 15 + }, + "end": { + "line": 12, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "hash", + "start": 246, + "end": 250, + "loc": { + "start": { + "line": 12, + "column": 16 + }, + "end": { + "line": 12, + "column": 20 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 250, + "end": 251, + "loc": { + "start": { + "line": 12, + "column": 20 + }, + "end": { + "line": 12, + "column": 21 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 252, + "end": 253, + "loc": { + "start": { + "line": 12, + "column": 22 + }, + "end": { + "line": 12, + "column": 23 + } + } + }, + { + "type": { + "label": "super", + "keyword": "super", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "super", + "start": 262, + "end": 267, + "loc": { + "start": { + "line": 13, + "column": 8 + }, + "end": { + "line": 13, + "column": 13 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 267, + "end": 268, + "loc": { + "start": { + "line": 13, + "column": 13 + }, + "end": { + "line": 13, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "hash", + "start": 268, + "end": 272, + "loc": { + "start": { + "line": 13, + "column": 14 + }, + "end": { + "line": 13, + "column": 18 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 272, + "end": 273, + "loc": { + "start": { + "line": 13, + "column": 18 + }, + "end": { + "line": 13, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "TransferResult", + "start": 274, + "end": 288, + "loc": { + "start": { + "line": 13, + "column": 20 + }, + "end": { + "line": 13, + "column": 34 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 288, + "end": 289, + "loc": { + "start": { + "line": 13, + "column": 34 + }, + "end": { + "line": 13, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "getName", + "start": 289, + "end": 296, + "loc": { + "start": { + "line": 13, + "column": 35 + }, + "end": { + "line": 13, + "column": 42 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 296, + "end": 297, + "loc": { + "start": { + "line": 13, + "column": 42 + }, + "end": { + "line": 13, + "column": 43 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 297, + "end": 298, + "loc": { + "start": { + "line": 13, + "column": 43 + }, + "end": { + "line": 13, + "column": 44 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 298, + "end": 299, + "loc": { + "start": { + "line": 13, + "column": 44 + }, + "end": { + "line": 13, + "column": 45 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 304, + "end": 305, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Retrieve the name of the operation behind the deployment\n *\n * @return {string} - the name of the operation behind the deployment\n ", + "start": 311, + "end": 467, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 20, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "static", + "start": 472, + "end": 478, + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 10 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "getName", + "start": 479, + "end": 486, + "loc": { + "start": { + "line": 21, + "column": 11 + }, + "end": { + "line": 21, + "column": 18 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 486, + "end": 487, + "loc": { + "start": { + "line": 21, + "column": 18 + }, + "end": { + "line": 21, + "column": 19 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 487, + "end": 488, + "loc": { + "start": { + "line": 21, + "column": 19 + }, + "end": { + "line": 21, + "column": 20 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 489, + "end": 490, + "loc": { + "start": { + "line": 21, + "column": 21 + }, + "end": { + "line": 21, + "column": 22 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 499, + "end": 505, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 14 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "Transfer Operation", + "start": 506, + "end": 526, + "loc": { + "start": { + "line": 22, + "column": 15 + }, + "end": { + "line": 22, + "column": 35 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 531, + "end": 532, + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 5 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 533, + "end": 534, + "loc": { + "start": { + "line": 24, + "column": 0 + }, + "end": { + "line": 24, + "column": 1 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 534, + "end": 534, + "loc": { + "start": { + "line": 24, + "column": 1 + }, + "end": { + "line": 24, + "column": 1 + } + } + } + ] +} \ No newline at end of file diff --git a/ast/source/services/results/undelegateResult.js.json b/ast/source/services/results/undelegateResult.js.json new file mode 100644 index 0000000..2eb2e67 --- /dev/null +++ b/ast/source/services/results/undelegateResult.js.json @@ -0,0 +1,1726 @@ +{ + "type": "File", + "start": 0, + "end": 539, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 24, + "column": 1 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 539, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 24, + "column": 1 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 44, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 44 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 8, + "end": 20, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 20 + } + }, + "imported": { + "type": "Identifier", + "start": 8, + "end": 20, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 20 + }, + "identifierName": "DeployResult" + }, + "name": "DeployResult" + }, + "local": { + "type": "Identifier", + "start": 8, + "end": 20, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 20 + }, + "identifierName": "DeployResult" + }, + "name": "DeployResult" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 27, + "end": 43, + "loc": { + "start": { + "line": 1, + "column": 27 + }, + "end": { + "line": 1, + "column": 43 + } + }, + "extra": { + "rawValue": "./deployResult", + "raw": "\"./deployResult\"" + }, + "value": "./deployResult" + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * UndelegateResult class\n ", + "start": 46, + "end": 79, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 80, + "end": 539, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 24, + "column": 1 + } + }, + "specifiers": [], + "source": null, + "declaration": { + "type": "ClassDeclaration", + "start": 87, + "end": 539, + "loc": { + "start": { + "line": 6, + "column": 7 + }, + "end": { + "line": 24, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 93, + "end": 109, + "loc": { + "start": { + "line": 6, + "column": 13 + }, + "end": { + "line": 6, + "column": 29 + }, + "identifierName": "UndelegateResult" + }, + "name": "UndelegateResult", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 118, + "end": 130, + "loc": { + "start": { + "line": 6, + "column": 38 + }, + "end": { + "line": 6, + "column": 50 + }, + "identifierName": "DeployResult" + }, + "name": "DeployResult" + }, + "body": { + "type": "ClassBody", + "start": 131, + "end": 539, + "loc": { + "start": { + "line": 6, + "column": 51 + }, + "end": { + "line": 24, + "column": 1 + } + }, + "body": [ + { + "type": "ClassMethod", + "start": 238, + "end": 311, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 14, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 238, + "end": 249, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 15 + }, + "identifierName": "constructor" + }, + "name": "constructor", + "leadingComments": null + }, + "kind": "constructor", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 250, + "end": 254, + "loc": { + "start": { + "line": 12, + "column": 16 + }, + "end": { + "line": 12, + "column": 20 + }, + "identifierName": "hash" + }, + "name": "hash" + } + ], + "body": { + "type": "BlockStatement", + "start": 256, + "end": 311, + "loc": { + "start": { + "line": 12, + "column": 22 + }, + "end": { + "line": 14, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 266, + "end": 305, + "loc": { + "start": { + "line": 13, + "column": 8 + }, + "end": { + "line": 13, + "column": 47 + } + }, + "expression": { + "type": "CallExpression", + "start": 266, + "end": 305, + "loc": { + "start": { + "line": 13, + "column": 8 + }, + "end": { + "line": 13, + "column": 47 + } + }, + "callee": { + "type": "Super", + "start": 266, + "end": 271, + "loc": { + "start": { + "line": 13, + "column": 8 + }, + "end": { + "line": 13, + "column": 13 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "start": 272, + "end": 276, + "loc": { + "start": { + "line": 13, + "column": 14 + }, + "end": { + "line": 13, + "column": 18 + }, + "identifierName": "hash" + }, + "name": "hash" + }, + { + "type": "CallExpression", + "start": 278, + "end": 304, + "loc": { + "start": { + "line": 13, + "column": 20 + }, + "end": { + "line": 13, + "column": 46 + } + }, + "callee": { + "type": "MemberExpression", + "start": 278, + "end": 302, + "loc": { + "start": { + "line": 13, + "column": 20 + }, + "end": { + "line": 13, + "column": 44 + } + }, + "object": { + "type": "Identifier", + "start": 278, + "end": 294, + "loc": { + "start": { + "line": 13, + "column": 20 + }, + "end": { + "line": 13, + "column": 36 + }, + "identifierName": "UndelegateResult" + }, + "name": "UndelegateResult" + }, + "property": { + "type": "Identifier", + "start": 295, + "end": 302, + "loc": { + "start": { + "line": 13, + "column": 37 + }, + "end": { + "line": 13, + "column": 44 + }, + "identifierName": "getName" + }, + "name": "getName" + }, + "computed": false + }, + "arguments": [] + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {string} hash - DeployHash of the deployment\n ", + "start": 137, + "end": 233, + "loc": { + "start": { + "line": 7, + "column": 4 + }, + "end": { + "line": 11, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Retrieve the name of the operation behind the deployment\n *\n * @return {string} - the name of the operation behind the deployment\n ", + "start": 317, + "end": 473, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 20, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 478, + "end": 537, + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 23, + "column": 5 + } + }, + "static": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 485, + "end": 492, + "loc": { + "start": { + "line": 21, + "column": 11 + }, + "end": { + "line": 21, + "column": 18 + }, + "identifierName": "getName" + }, + "name": "getName" + }, + "kind": "method", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 495, + "end": 537, + "loc": { + "start": { + "line": 21, + "column": 21 + }, + "end": { + "line": 23, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 505, + "end": 531, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 34 + } + }, + "argument": { + "type": "StringLiteral", + "start": 512, + "end": 531, + "loc": { + "start": { + "line": 22, + "column": 15 + }, + "end": { + "line": 22, + "column": 34 + } + }, + "extra": { + "rawValue": "Unstake Operation", + "raw": "'Unstake Operation'" + }, + "value": "Unstake Operation" + } + } + ], + "directives": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Retrieve the name of the operation behind the deployment\n *\n * @return {string} - the name of the operation behind the deployment\n ", + "start": 317, + "end": 473, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 20, + "column": 7 + } + } + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * UndelegateResult class\n ", + "start": 46, + "end": 79, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * UndelegateResult class\n ", + "start": 46, + "end": 79, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + } + ] + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\n * UndelegateResult class\n ", + "start": 46, + "end": 79, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {string} hash - DeployHash of the deployment\n ", + "start": 137, + "end": 233, + "loc": { + "start": { + "line": 7, + "column": 4 + }, + "end": { + "line": 11, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Retrieve the name of the operation behind the deployment\n *\n * @return {string} - the name of the operation behind the deployment\n ", + "start": 317, + "end": 473, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 20, + "column": 7 + } + } + } + ], + "tokens": [ + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 0, + "end": 6, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7, + "end": 8, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "DeployResult", + "start": 8, + "end": 20, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 20 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 20, + "end": 21, + "loc": { + "start": { + "line": 1, + "column": 20 + }, + "end": { + "line": 1, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 22, + "end": 26, + "loc": { + "start": { + "line": 1, + "column": 22 + }, + "end": { + "line": 1, + "column": 26 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./deployResult", + "start": 27, + "end": 43, + "loc": { + "start": { + "line": 1, + "column": 27 + }, + "end": { + "line": 1, + "column": 43 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 43, + "end": 44, + "loc": { + "start": { + "line": 1, + "column": 43 + }, + "end": { + "line": 1, + "column": 44 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * UndelegateResult class\n ", + "start": 46, + "end": 79, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 80, + "end": 86, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 6, + "column": 6 + } + } + }, + { + "type": { + "label": "class", + "keyword": "class", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "class", + "start": 87, + "end": 92, + "loc": { + "start": { + "line": 6, + "column": 7 + }, + "end": { + "line": 6, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "UndelegateResult", + "start": 93, + "end": 109, + "loc": { + "start": { + "line": 6, + "column": 13 + }, + "end": { + "line": 6, + "column": 29 + } + } + }, + { + "type": { + "label": "extends", + "keyword": "extends", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "extends", + "start": 110, + "end": 117, + "loc": { + "start": { + "line": 6, + "column": 30 + }, + "end": { + "line": 6, + "column": 37 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "DeployResult", + "start": 118, + "end": 130, + "loc": { + "start": { + "line": 6, + "column": 38 + }, + "end": { + "line": 6, + "column": 50 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 131, + "end": 132, + "loc": { + "start": { + "line": 6, + "column": 51 + }, + "end": { + "line": 6, + "column": 52 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {string} hash - DeployHash of the deployment\n ", + "start": 137, + "end": 233, + "loc": { + "start": { + "line": 7, + "column": 4 + }, + "end": { + "line": 11, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "constructor", + "start": 238, + "end": 249, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 15 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 249, + "end": 250, + "loc": { + "start": { + "line": 12, + "column": 15 + }, + "end": { + "line": 12, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "hash", + "start": 250, + "end": 254, + "loc": { + "start": { + "line": 12, + "column": 16 + }, + "end": { + "line": 12, + "column": 20 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 254, + "end": 255, + "loc": { + "start": { + "line": 12, + "column": 20 + }, + "end": { + "line": 12, + "column": 21 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 256, + "end": 257, + "loc": { + "start": { + "line": 12, + "column": 22 + }, + "end": { + "line": 12, + "column": 23 + } + } + }, + { + "type": { + "label": "super", + "keyword": "super", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "super", + "start": 266, + "end": 271, + "loc": { + "start": { + "line": 13, + "column": 8 + }, + "end": { + "line": 13, + "column": 13 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 271, + "end": 272, + "loc": { + "start": { + "line": 13, + "column": 13 + }, + "end": { + "line": 13, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "hash", + "start": 272, + "end": 276, + "loc": { + "start": { + "line": 13, + "column": 14 + }, + "end": { + "line": 13, + "column": 18 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 276, + "end": 277, + "loc": { + "start": { + "line": 13, + "column": 18 + }, + "end": { + "line": 13, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "UndelegateResult", + "start": 278, + "end": 294, + "loc": { + "start": { + "line": 13, + "column": 20 + }, + "end": { + "line": 13, + "column": 36 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 294, + "end": 295, + "loc": { + "start": { + "line": 13, + "column": 36 + }, + "end": { + "line": 13, + "column": 37 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "getName", + "start": 295, + "end": 302, + "loc": { + "start": { + "line": 13, + "column": 37 + }, + "end": { + "line": 13, + "column": 44 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 302, + "end": 303, + "loc": { + "start": { + "line": 13, + "column": 44 + }, + "end": { + "line": 13, + "column": 45 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 303, + "end": 304, + "loc": { + "start": { + "line": 13, + "column": 45 + }, + "end": { + "line": 13, + "column": 46 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 304, + "end": 305, + "loc": { + "start": { + "line": 13, + "column": 46 + }, + "end": { + "line": 13, + "column": 47 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 310, + "end": 311, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Retrieve the name of the operation behind the deployment\n *\n * @return {string} - the name of the operation behind the deployment\n ", + "start": 317, + "end": 473, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 20, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "static", + "start": 478, + "end": 484, + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 10 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "getName", + "start": 485, + "end": 492, + "loc": { + "start": { + "line": 21, + "column": 11 + }, + "end": { + "line": 21, + "column": 18 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 492, + "end": 493, + "loc": { + "start": { + "line": 21, + "column": 18 + }, + "end": { + "line": 21, + "column": 19 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 493, + "end": 494, + "loc": { + "start": { + "line": 21, + "column": 19 + }, + "end": { + "line": 21, + "column": 20 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 495, + "end": 496, + "loc": { + "start": { + "line": 21, + "column": 21 + }, + "end": { + "line": 21, + "column": 22 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 505, + "end": 511, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 14 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "Unstake Operation", + "start": 512, + "end": 531, + "loc": { + "start": { + "line": 22, + "column": 15 + }, + "end": { + "line": 22, + "column": 34 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 536, + "end": 537, + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 5 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 538, + "end": 539, + "loc": { + "start": { + "line": 24, + "column": 0 + }, + "end": { + "line": 24, + "column": 1 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 539, + "end": 539, + "loc": { + "start": { + "line": 24, + "column": 1 + }, + "end": { + "line": 24, + "column": 1 + } + } + } + ] +} \ No newline at end of file diff --git a/ast/source/services/results/withdrawBidResult.js.json b/ast/source/services/results/withdrawBidResult.js.json new file mode 100644 index 0000000..ee5a885 --- /dev/null +++ b/ast/source/services/results/withdrawBidResult.js.json @@ -0,0 +1,1726 @@ +{ + "type": "File", + "start": 0, + "end": 547, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 24, + "column": 1 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 547, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 24, + "column": 1 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 44, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 44 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 8, + "end": 20, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 20 + } + }, + "imported": { + "type": "Identifier", + "start": 8, + "end": 20, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 20 + }, + "identifierName": "DeployResult" + }, + "name": "DeployResult" + }, + "local": { + "type": "Identifier", + "start": 8, + "end": 20, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 20 + }, + "identifierName": "DeployResult" + }, + "name": "DeployResult" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 27, + "end": 43, + "loc": { + "start": { + "line": 1, + "column": 27 + }, + "end": { + "line": 1, + "column": 43 + } + }, + "extra": { + "rawValue": "./deployResult", + "raw": "\"./deployResult\"" + }, + "value": "./deployResult" + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * WithdrawBidResult class\n ", + "start": 46, + "end": 80, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 81, + "end": 547, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 24, + "column": 1 + } + }, + "specifiers": [], + "source": null, + "declaration": { + "type": "ClassDeclaration", + "start": 88, + "end": 547, + "loc": { + "start": { + "line": 6, + "column": 7 + }, + "end": { + "line": 24, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 94, + "end": 111, + "loc": { + "start": { + "line": 6, + "column": 13 + }, + "end": { + "line": 6, + "column": 30 + }, + "identifierName": "WithdrawBidResult" + }, + "name": "WithdrawBidResult", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 120, + "end": 132, + "loc": { + "start": { + "line": 6, + "column": 39 + }, + "end": { + "line": 6, + "column": 51 + }, + "identifierName": "DeployResult" + }, + "name": "DeployResult" + }, + "body": { + "type": "ClassBody", + "start": 133, + "end": 547, + "loc": { + "start": { + "line": 6, + "column": 52 + }, + "end": { + "line": 24, + "column": 1 + } + }, + "body": [ + { + "type": "ClassMethod", + "start": 240, + "end": 314, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 14, + "column": 5 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 240, + "end": 251, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 15 + }, + "identifierName": "constructor" + }, + "name": "constructor", + "leadingComments": null + }, + "kind": "constructor", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 252, + "end": 256, + "loc": { + "start": { + "line": 12, + "column": 16 + }, + "end": { + "line": 12, + "column": 20 + }, + "identifierName": "hash" + }, + "name": "hash" + } + ], + "body": { + "type": "BlockStatement", + "start": 258, + "end": 314, + "loc": { + "start": { + "line": 12, + "column": 22 + }, + "end": { + "line": 14, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 268, + "end": 308, + "loc": { + "start": { + "line": 13, + "column": 8 + }, + "end": { + "line": 13, + "column": 48 + } + }, + "expression": { + "type": "CallExpression", + "start": 268, + "end": 308, + "loc": { + "start": { + "line": 13, + "column": 8 + }, + "end": { + "line": 13, + "column": 48 + } + }, + "callee": { + "type": "Super", + "start": 268, + "end": 273, + "loc": { + "start": { + "line": 13, + "column": 8 + }, + "end": { + "line": 13, + "column": 13 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "start": 274, + "end": 278, + "loc": { + "start": { + "line": 13, + "column": 14 + }, + "end": { + "line": 13, + "column": 18 + }, + "identifierName": "hash" + }, + "name": "hash" + }, + { + "type": "CallExpression", + "start": 280, + "end": 307, + "loc": { + "start": { + "line": 13, + "column": 20 + }, + "end": { + "line": 13, + "column": 47 + } + }, + "callee": { + "type": "MemberExpression", + "start": 280, + "end": 305, + "loc": { + "start": { + "line": 13, + "column": 20 + }, + "end": { + "line": 13, + "column": 45 + } + }, + "object": { + "type": "Identifier", + "start": 280, + "end": 297, + "loc": { + "start": { + "line": 13, + "column": 20 + }, + "end": { + "line": 13, + "column": 37 + }, + "identifierName": "WithdrawBidResult" + }, + "name": "WithdrawBidResult" + }, + "property": { + "type": "Identifier", + "start": 298, + "end": 305, + "loc": { + "start": { + "line": 13, + "column": 38 + }, + "end": { + "line": 13, + "column": 45 + }, + "identifierName": "getName" + }, + "name": "getName" + }, + "computed": false + }, + "arguments": [] + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {string} hash - DeployHash of the deployment\n ", + "start": 139, + "end": 235, + "loc": { + "start": { + "line": 7, + "column": 4 + }, + "end": { + "line": 11, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Retrieve the name of the operation behind the deployment\n *\n * @return {string} - the name of the operation behind the deployment\n ", + "start": 320, + "end": 476, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 20, + "column": 7 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 481, + "end": 545, + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 23, + "column": 5 + } + }, + "static": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 488, + "end": 495, + "loc": { + "start": { + "line": 21, + "column": 11 + }, + "end": { + "line": 21, + "column": 18 + }, + "identifierName": "getName" + }, + "name": "getName" + }, + "kind": "method", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 498, + "end": 545, + "loc": { + "start": { + "line": 21, + "column": 21 + }, + "end": { + "line": 23, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 508, + "end": 539, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 39 + } + }, + "argument": { + "type": "StringLiteral", + "start": 515, + "end": 539, + "loc": { + "start": { + "line": 22, + "column": 15 + }, + "end": { + "line": 22, + "column": 39 + } + }, + "extra": { + "rawValue": "Withdraw bid Operation", + "raw": "'Withdraw bid Operation'" + }, + "value": "Withdraw bid Operation" + } + } + ], + "directives": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Retrieve the name of the operation behind the deployment\n *\n * @return {string} - the name of the operation behind the deployment\n ", + "start": 320, + "end": 476, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 20, + "column": 7 + } + } + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * WithdrawBidResult class\n ", + "start": 46, + "end": 80, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * WithdrawBidResult class\n ", + "start": 46, + "end": 80, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + } + ] + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\n * WithdrawBidResult class\n ", + "start": 46, + "end": 80, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {string} hash - DeployHash of the deployment\n ", + "start": 139, + "end": 235, + "loc": { + "start": { + "line": 7, + "column": 4 + }, + "end": { + "line": 11, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Retrieve the name of the operation behind the deployment\n *\n * @return {string} - the name of the operation behind the deployment\n ", + "start": 320, + "end": 476, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 20, + "column": 7 + } + } + } + ], + "tokens": [ + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 0, + "end": 6, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7, + "end": 8, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "DeployResult", + "start": 8, + "end": 20, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 20 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 20, + "end": 21, + "loc": { + "start": { + "line": 1, + "column": 20 + }, + "end": { + "line": 1, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 22, + "end": 26, + "loc": { + "start": { + "line": 1, + "column": 22 + }, + "end": { + "line": 1, + "column": 26 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./deployResult", + "start": 27, + "end": 43, + "loc": { + "start": { + "line": 1, + "column": 27 + }, + "end": { + "line": 1, + "column": 43 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 43, + "end": 44, + "loc": { + "start": { + "line": 1, + "column": 43 + }, + "end": { + "line": 1, + "column": 44 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * WithdrawBidResult class\n ", + "start": 46, + "end": 80, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 81, + "end": 87, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 6, + "column": 6 + } + } + }, + { + "type": { + "label": "class", + "keyword": "class", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "class", + "start": 88, + "end": 93, + "loc": { + "start": { + "line": 6, + "column": 7 + }, + "end": { + "line": 6, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "WithdrawBidResult", + "start": 94, + "end": 111, + "loc": { + "start": { + "line": 6, + "column": 13 + }, + "end": { + "line": 6, + "column": 30 + } + } + }, + { + "type": { + "label": "extends", + "keyword": "extends", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "extends", + "start": 112, + "end": 119, + "loc": { + "start": { + "line": 6, + "column": 31 + }, + "end": { + "line": 6, + "column": 38 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "DeployResult", + "start": 120, + "end": 132, + "loc": { + "start": { + "line": 6, + "column": 39 + }, + "end": { + "line": 6, + "column": 51 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 133, + "end": 134, + "loc": { + "start": { + "line": 6, + "column": 52 + }, + "end": { + "line": 6, + "column": 53 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Constructor\n *\n * @param {string} hash - DeployHash of the deployment\n ", + "start": 139, + "end": 235, + "loc": { + "start": { + "line": 7, + "column": 4 + }, + "end": { + "line": 11, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "constructor", + "start": 240, + "end": 251, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 15 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 251, + "end": 252, + "loc": { + "start": { + "line": 12, + "column": 15 + }, + "end": { + "line": 12, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "hash", + "start": 252, + "end": 256, + "loc": { + "start": { + "line": 12, + "column": 16 + }, + "end": { + "line": 12, + "column": 20 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 256, + "end": 257, + "loc": { + "start": { + "line": 12, + "column": 20 + }, + "end": { + "line": 12, + "column": 21 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 258, + "end": 259, + "loc": { + "start": { + "line": 12, + "column": 22 + }, + "end": { + "line": 12, + "column": 23 + } + } + }, + { + "type": { + "label": "super", + "keyword": "super", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "super", + "start": 268, + "end": 273, + "loc": { + "start": { + "line": 13, + "column": 8 + }, + "end": { + "line": 13, + "column": 13 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 273, + "end": 274, + "loc": { + "start": { + "line": 13, + "column": 13 + }, + "end": { + "line": 13, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "hash", + "start": 274, + "end": 278, + "loc": { + "start": { + "line": 13, + "column": 14 + }, + "end": { + "line": 13, + "column": 18 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 278, + "end": 279, + "loc": { + "start": { + "line": 13, + "column": 18 + }, + "end": { + "line": 13, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "WithdrawBidResult", + "start": 280, + "end": 297, + "loc": { + "start": { + "line": 13, + "column": 20 + }, + "end": { + "line": 13, + "column": 37 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 297, + "end": 298, + "loc": { + "start": { + "line": 13, + "column": 37 + }, + "end": { + "line": 13, + "column": 38 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "getName", + "start": 298, + "end": 305, + "loc": { + "start": { + "line": 13, + "column": 38 + }, + "end": { + "line": 13, + "column": 45 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 305, + "end": 306, + "loc": { + "start": { + "line": 13, + "column": 45 + }, + "end": { + "line": 13, + "column": 46 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 306, + "end": 307, + "loc": { + "start": { + "line": 13, + "column": 46 + }, + "end": { + "line": 13, + "column": 47 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 307, + "end": 308, + "loc": { + "start": { + "line": 13, + "column": 47 + }, + "end": { + "line": 13, + "column": 48 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 313, + "end": 314, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Retrieve the name of the operation behind the deployment\n *\n * @return {string} - the name of the operation behind the deployment\n ", + "start": 320, + "end": 476, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 20, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "static", + "start": 481, + "end": 487, + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 10 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "getName", + "start": 488, + "end": 495, + "loc": { + "start": { + "line": 21, + "column": 11 + }, + "end": { + "line": 21, + "column": 18 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 495, + "end": 496, + "loc": { + "start": { + "line": 21, + "column": 18 + }, + "end": { + "line": 21, + "column": 19 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 496, + "end": 497, + "loc": { + "start": { + "line": 21, + "column": 19 + }, + "end": { + "line": 21, + "column": 20 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 498, + "end": 499, + "loc": { + "start": { + "line": 21, + "column": 21 + }, + "end": { + "line": 21, + "column": 22 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 508, + "end": 514, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 14 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "Withdraw bid Operation", + "start": 515, + "end": 539, + "loc": { + "start": { + "line": 22, + "column": 15 + }, + "end": { + "line": 22, + "column": 39 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 544, + "end": 545, + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 5 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 546, + "end": 547, + "loc": { + "start": { + "line": 24, + "column": 0 + }, + "end": { + "line": 24, + "column": 1 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 547, + "end": 547, + "loc": { + "start": { + "line": 24, + "column": 1 + }, + "end": { + "line": 24, + "column": 1 + } + } + } + ] +} \ No newline at end of file diff --git a/ast/source/services/signers/abstractSigner.js.json b/ast/source/services/signers/abstractSigner.js.json new file mode 100644 index 0000000..e2d1feb --- /dev/null +++ b/ast/source/services/signers/abstractSigner.js.json @@ -0,0 +1,1158 @@ +{ + "type": "File", + "start": 0, + "end": 619, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 20, + "column": 1 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 619, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 20, + "column": 1 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ExportNamedDeclaration", + "start": 174, + "end": 619, + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 20, + "column": 1 + } + }, + "specifiers": [], + "source": null, + "declaration": { + "type": "ClassDeclaration", + "start": 181, + "end": 619, + "loc": { + "start": { + "line": 9, + "column": 7 + }, + "end": { + "line": 20, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 187, + "end": 201, + "loc": { + "start": { + "line": 9, + "column": 13 + }, + "end": { + "line": 9, + "column": 27 + }, + "identifierName": "AbstractSigner" + }, + "name": "AbstractSigner", + "leadingComments": null + }, + "superClass": null, + "body": { + "type": "ClassBody", + "start": 202, + "end": 619, + "loc": { + "start": { + "line": 9, + "column": 28 + }, + "end": { + "line": 20, + "column": 1 + } + }, + "body": [ + { + "type": "ClassMethod", + "start": 509, + "end": 617, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 19, + "column": 5 + } + }, + "static": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 522, + "end": 526, + "loc": { + "start": { + "line": 17, + "column": 17 + }, + "end": { + "line": 17, + "column": 21 + }, + "identifierName": "sign" + }, + "name": "sign" + }, + "kind": "method", + "id": null, + "generator": false, + "expression": false, + "async": true, + "params": [ + { + "type": "Identifier", + "start": 527, + "end": 533, + "loc": { + "start": { + "line": 17, + "column": 22 + }, + "end": { + "line": 17, + "column": 28 + }, + "identifierName": "deploy" + }, + "name": "deploy" + }, + { + "type": "AssignmentPattern", + "start": 535, + "end": 547, + "loc": { + "start": { + "line": 17, + "column": 30 + }, + "end": { + "line": 17, + "column": 42 + } + }, + "left": { + "type": "Identifier", + "start": 535, + "end": 542, + "loc": { + "start": { + "line": 17, + "column": 30 + }, + "end": { + "line": 17, + "column": 37 + }, + "identifierName": "options" + }, + "name": "options" + }, + "right": { + "type": "ObjectExpression", + "start": 545, + "end": 547, + "loc": { + "start": { + "line": 17, + "column": 40 + }, + "end": { + "line": 17, + "column": 42 + } + }, + "properties": [] + } + } + ], + "body": { + "type": "BlockStatement", + "start": 549, + "end": 617, + "loc": { + "start": { + "line": 17, + "column": 44 + }, + "end": { + "line": 19, + "column": 5 + } + }, + "body": [ + { + "type": "ThrowStatement", + "start": 559, + "end": 611, + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 60 + } + }, + "argument": { + "type": "NewExpression", + "start": 565, + "end": 610, + "loc": { + "start": { + "line": 18, + "column": 14 + }, + "end": { + "line": 18, + "column": 59 + } + }, + "callee": { + "type": "Identifier", + "start": 569, + "end": 574, + "loc": { + "start": { + "line": 18, + "column": 18 + }, + "end": { + "line": 18, + "column": 23 + }, + "identifierName": "Error" + }, + "name": "Error" + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 575, + "end": 609, + "loc": { + "start": { + "line": 18, + "column": 24 + }, + "end": { + "line": 18, + "column": 58 + } + }, + "extra": { + "rawValue": "You must implement this function", + "raw": "'You must implement this function'" + }, + "value": "You must implement this function" + } + ] + } + } + ], + "directives": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Abstract method to sign a deployment.\n *\n * @param {Deploy} deploy - Deploy object\n * @param {Object} options - Generic options object used to pass additional arguments needed for the different signing methods\n * @return {Promise} - Signed deploy object\n ", + "start": 208, + "end": 504, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 16, + "column": 7 + } + } + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * @typedef {import(\"casper-js-sdk\").DeployUtil.Deploy} Deploy\n ", + "start": 0, + "end": 70, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * AbstractSigner class\n * Abstract class used as a skeleton to implement deployment signing.\n ", + "start": 72, + "end": 173, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * @typedef {import(\"casper-js-sdk\").DeployUtil.Deploy} Deploy\n ", + "start": 0, + "end": 70, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * AbstractSigner class\n * Abstract class used as a skeleton to implement deployment signing.\n ", + "start": 72, + "end": 173, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + } + } + ] + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\n * @typedef {import(\"casper-js-sdk\").DeployUtil.Deploy} Deploy\n ", + "start": 0, + "end": 70, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * AbstractSigner class\n * Abstract class used as a skeleton to implement deployment signing.\n ", + "start": 72, + "end": 173, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Abstract method to sign a deployment.\n *\n * @param {Deploy} deploy - Deploy object\n * @param {Object} options - Generic options object used to pass additional arguments needed for the different signing methods\n * @return {Promise} - Signed deploy object\n ", + "start": 208, + "end": 504, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 16, + "column": 7 + } + } + } + ], + "tokens": [ + { + "type": "CommentBlock", + "value": "*\n * @typedef {import(\"casper-js-sdk\").DeployUtil.Deploy} Deploy\n ", + "start": 0, + "end": 70, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * AbstractSigner class\n * Abstract class used as a skeleton to implement deployment signing.\n ", + "start": 72, + "end": 173, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 174, + "end": 180, + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 6 + } + } + }, + { + "type": { + "label": "class", + "keyword": "class", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "class", + "start": 181, + "end": 186, + "loc": { + "start": { + "line": 9, + "column": 7 + }, + "end": { + "line": 9, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "AbstractSigner", + "start": 187, + "end": 201, + "loc": { + "start": { + "line": 9, + "column": 13 + }, + "end": { + "line": 9, + "column": 27 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 202, + "end": 203, + "loc": { + "start": { + "line": 9, + "column": 28 + }, + "end": { + "line": 9, + "column": 29 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Abstract method to sign a deployment.\n *\n * @param {Deploy} deploy - Deploy object\n * @param {Object} options - Generic options object used to pass additional arguments needed for the different signing methods\n * @return {Promise} - Signed deploy object\n ", + "start": 208, + "end": 504, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 16, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "static", + "start": 509, + "end": 515, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 10 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "async", + "start": 516, + "end": 521, + "loc": { + "start": { + "line": 17, + "column": 11 + }, + "end": { + "line": 17, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "sign", + "start": 522, + "end": 526, + "loc": { + "start": { + "line": 17, + "column": 17 + }, + "end": { + "line": 17, + "column": 21 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 526, + "end": 527, + "loc": { + "start": { + "line": 17, + "column": 21 + }, + "end": { + "line": 17, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "deploy", + "start": 527, + "end": 533, + "loc": { + "start": { + "line": 17, + "column": 22 + }, + "end": { + "line": 17, + "column": 28 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 533, + "end": 534, + "loc": { + "start": { + "line": 17, + "column": 28 + }, + "end": { + "line": 17, + "column": 29 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 535, + "end": 542, + "loc": { + "start": { + "line": 17, + "column": 30 + }, + "end": { + "line": 17, + "column": 37 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 543, + "end": 544, + "loc": { + "start": { + "line": 17, + "column": 38 + }, + "end": { + "line": 17, + "column": 39 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 545, + "end": 546, + "loc": { + "start": { + "line": 17, + "column": 40 + }, + "end": { + "line": 17, + "column": 41 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 546, + "end": 547, + "loc": { + "start": { + "line": 17, + "column": 41 + }, + "end": { + "line": 17, + "column": 42 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 547, + "end": 548, + "loc": { + "start": { + "line": 17, + "column": 42 + }, + "end": { + "line": 17, + "column": 43 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 549, + "end": 550, + "loc": { + "start": { + "line": 17, + "column": 44 + }, + "end": { + "line": 17, + "column": 45 + } + } + }, + { + "type": { + "label": "throw", + "keyword": "throw", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "throw", + "start": 559, + "end": 564, + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 13 + } + } + }, + { + "type": { + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "new", + "start": 565, + "end": 568, + "loc": { + "start": { + "line": 18, + "column": 14 + }, + "end": { + "line": 18, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Error", + "start": 569, + "end": 574, + "loc": { + "start": { + "line": 18, + "column": 18 + }, + "end": { + "line": 18, + "column": 23 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 574, + "end": 575, + "loc": { + "start": { + "line": 18, + "column": 23 + }, + "end": { + "line": 18, + "column": 24 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "You must implement this function", + "start": 575, + "end": 609, + "loc": { + "start": { + "line": 18, + "column": 24 + }, + "end": { + "line": 18, + "column": 58 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 609, + "end": 610, + "loc": { + "start": { + "line": 18, + "column": 58 + }, + "end": { + "line": 18, + "column": 59 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 610, + "end": 611, + "loc": { + "start": { + "line": 18, + "column": 59 + }, + "end": { + "line": 18, + "column": 60 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 616, + "end": 617, + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 5 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 618, + "end": 619, + "loc": { + "start": { + "line": 20, + "column": 0 + }, + "end": { + "line": 20, + "column": 1 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 619, + "end": 619, + "loc": { + "start": { + "line": 20, + "column": 1 + }, + "end": { + "line": 20, + "column": 1 + } + } + } + ] +} \ No newline at end of file diff --git a/ast/source/services/signers/casperSigner.js.json b/ast/source/services/signers/casperSigner.js.json new file mode 100644 index 0000000..d95b324 --- /dev/null +++ b/ast/source/services/signers/casperSigner.js.json @@ -0,0 +1,4792 @@ +{ + "type": "File", + "start": 0, + "end": 1319, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 34, + "column": 1 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 1319, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 34, + "column": 1 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 49, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 49 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 8, + "end": 18, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 18 + } + }, + "imported": { + "type": "Identifier", + "start": 8, + "end": 18, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 18 + }, + "identifierName": "DeployUtil" + }, + "name": "DeployUtil" + }, + "local": { + "type": "Identifier", + "start": 8, + "end": 18, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 18 + }, + "identifierName": "DeployUtil" + }, + "name": "DeployUtil" + } + }, + { + "type": "ImportSpecifier", + "start": 20, + "end": 26, + "loc": { + "start": { + "line": 1, + "column": 20 + }, + "end": { + "line": 1, + "column": 26 + } + }, + "imported": { + "type": "Identifier", + "start": 20, + "end": 26, + "loc": { + "start": { + "line": 1, + "column": 20 + }, + "end": { + "line": 1, + "column": 26 + }, + "identifierName": "Signer" + }, + "name": "Signer" + }, + "local": { + "type": "Identifier", + "start": 20, + "end": 26, + "loc": { + "start": { + "line": 1, + "column": 20 + }, + "end": { + "line": 1, + "column": 26 + }, + "identifierName": "Signer" + }, + "name": "Signer" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 33, + "end": 48, + "loc": { + "start": { + "line": 1, + "column": 33 + }, + "end": { + "line": 1, + "column": 48 + } + }, + "extra": { + "rawValue": "casper-js-sdk", + "raw": "\"casper-js-sdk\"" + }, + "value": "casper-js-sdk" + } + }, + { + "type": "ImportDeclaration", + "start": 50, + "end": 98, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 48 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 58, + "end": 72, + "loc": { + "start": { + "line": 2, + "column": 8 + }, + "end": { + "line": 2, + "column": 22 + } + }, + "imported": { + "type": "Identifier", + "start": 58, + "end": 72, + "loc": { + "start": { + "line": 2, + "column": 8 + }, + "end": { + "line": 2, + "column": 22 + }, + "identifierName": "AbstractSigner" + }, + "name": "AbstractSigner" + }, + "local": { + "type": "Identifier", + "start": 58, + "end": 72, + "loc": { + "start": { + "line": 2, + "column": 8 + }, + "end": { + "line": 2, + "column": 22 + }, + "identifierName": "AbstractSigner" + }, + "name": "AbstractSigner" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 79, + "end": 97, + "loc": { + "start": { + "line": 2, + "column": 29 + }, + "end": { + "line": 2, + "column": 47 + } + }, + "extra": { + "rawValue": "./abstractSigner", + "raw": "\"./abstractSigner\"" + }, + "value": "./abstractSigner" + } + }, + { + "type": "ImportDeclaration", + "start": 99, + "end": 135, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 36 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 107, + "end": 116, + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 3, + "column": 17 + } + }, + "imported": { + "type": "Identifier", + "start": 107, + "end": 116, + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 3, + "column": 17 + }, + "identifierName": "SignError" + }, + "name": "SignError" + }, + "local": { + "type": "Identifier", + "start": 107, + "end": 116, + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 3, + "column": 17 + }, + "identifierName": "SignError" + }, + "name": "SignError" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 123, + "end": 134, + "loc": { + "start": { + "line": 3, + "column": 24 + }, + "end": { + "line": 3, + "column": 35 + } + }, + "extra": { + "rawValue": "../errors", + "raw": "\"../errors\"" + }, + "value": "../errors" + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * CasperSigner class\n * Used to sign a deployment with the Casper Signer extension\n ", + "start": 137, + "end": 228, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 229, + "end": 1319, + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 34, + "column": 1 + } + }, + "specifiers": [], + "source": null, + "declaration": { + "type": "ClassDeclaration", + "start": 236, + "end": 1319, + "loc": { + "start": { + "line": 9, + "column": 7 + }, + "end": { + "line": 34, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 242, + "end": 254, + "loc": { + "start": { + "line": 9, + "column": 13 + }, + "end": { + "line": 9, + "column": 25 + }, + "identifierName": "CasperSigner" + }, + "name": "CasperSigner", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 263, + "end": 277, + "loc": { + "start": { + "line": 9, + "column": 34 + }, + "end": { + "line": 9, + "column": 48 + }, + "identifierName": "AbstractSigner" + }, + "name": "AbstractSigner" + }, + "body": { + "type": "ClassBody", + "start": 278, + "end": 1319, + "loc": { + "start": { + "line": 9, + "column": 49 + }, + "end": { + "line": 34, + "column": 1 + } + }, + "body": [ + { + "type": "ClassMethod", + "start": 806, + "end": 1317, + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 33, + "column": 5 + } + }, + "static": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 819, + "end": 823, + "loc": { + "start": { + "line": 20, + "column": 17 + }, + "end": { + "line": 20, + "column": 21 + }, + "identifierName": "sign" + }, + "name": "sign" + }, + "kind": "method", + "id": null, + "generator": false, + "expression": false, + "async": true, + "params": [ + { + "type": "Identifier", + "start": 824, + "end": 830, + "loc": { + "start": { + "line": 20, + "column": 22 + }, + "end": { + "line": 20, + "column": 28 + }, + "identifierName": "deploy" + }, + "name": "deploy" + }, + { + "type": "AssignmentPattern", + "start": 832, + "end": 844, + "loc": { + "start": { + "line": 20, + "column": 30 + }, + "end": { + "line": 20, + "column": 42 + } + }, + "left": { + "type": "Identifier", + "start": 832, + "end": 839, + "loc": { + "start": { + "line": 20, + "column": 30 + }, + "end": { + "line": 20, + "column": 37 + }, + "identifierName": "options" + }, + "name": "options" + }, + "right": { + "type": "ObjectExpression", + "start": 842, + "end": 844, + "loc": { + "start": { + "line": 20, + "column": 40 + }, + "end": { + "line": 20, + "column": 42 + } + }, + "properties": [] + } + } + ], + "body": { + "type": "BlockStatement", + "start": 846, + "end": 1317, + "loc": { + "start": { + "line": 20, + "column": 44 + }, + "end": { + "line": 33, + "column": 5 + } + }, + "body": [ + { + "type": "TryStatement", + "start": 856, + "end": 1311, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 32, + "column": 9 + } + }, + "block": { + "type": "BlockStatement", + "start": 860, + "end": 1226, + "loc": { + "start": { + "line": 21, + "column": 12 + }, + "end": { + "line": 29, + "column": 9 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 874, + "end": 981, + "loc": { + "start": { + "line": 22, + "column": 12 + }, + "end": { + "line": 22, + "column": 119 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 880, + "end": 980, + "loc": { + "start": { + "line": 22, + "column": 18 + }, + "end": { + "line": 22, + "column": 118 + } + }, + "id": { + "type": "Identifier", + "start": 880, + "end": 896, + "loc": { + "start": { + "line": 22, + "column": 18 + }, + "end": { + "line": 22, + "column": 34 + }, + "identifierName": "signedJsonDeploy" + }, + "name": "signedJsonDeploy" + }, + "init": { + "type": "AwaitExpression", + "start": 899, + "end": 980, + "loc": { + "start": { + "line": 22, + "column": 37 + }, + "end": { + "line": 22, + "column": 118 + } + }, + "argument": { + "type": "CallExpression", + "start": 905, + "end": 980, + "loc": { + "start": { + "line": 22, + "column": 43 + }, + "end": { + "line": 22, + "column": 118 + } + }, + "callee": { + "type": "MemberExpression", + "start": 905, + "end": 916, + "loc": { + "start": { + "line": 22, + "column": 43 + }, + "end": { + "line": 22, + "column": 54 + } + }, + "object": { + "type": "Identifier", + "start": 905, + "end": 911, + "loc": { + "start": { + "line": 22, + "column": 43 + }, + "end": { + "line": 22, + "column": 49 + }, + "identifierName": "Signer" + }, + "name": "Signer" + }, + "property": { + "type": "Identifier", + "start": 912, + "end": 916, + "loc": { + "start": { + "line": 22, + "column": 50 + }, + "end": { + "line": 22, + "column": 54 + }, + "identifierName": "sign" + }, + "name": "sign" + }, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 917, + "end": 948, + "loc": { + "start": { + "line": 22, + "column": 55 + }, + "end": { + "line": 22, + "column": 86 + } + }, + "callee": { + "type": "MemberExpression", + "start": 917, + "end": 940, + "loc": { + "start": { + "line": 22, + "column": 55 + }, + "end": { + "line": 22, + "column": 78 + } + }, + "object": { + "type": "Identifier", + "start": 917, + "end": 927, + "loc": { + "start": { + "line": 22, + "column": 55 + }, + "end": { + "line": 22, + "column": 65 + }, + "identifierName": "DeployUtil" + }, + "name": "DeployUtil" + }, + "property": { + "type": "Identifier", + "start": 928, + "end": 940, + "loc": { + "start": { + "line": 22, + "column": 66 + }, + "end": { + "line": 22, + "column": 78 + }, + "identifierName": "deployToJson" + }, + "name": "deployToJson" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 941, + "end": 947, + "loc": { + "start": { + "line": 22, + "column": 79 + }, + "end": { + "line": 22, + "column": 85 + }, + "identifierName": "deploy" + }, + "name": "deploy" + } + ] + }, + { + "type": "MemberExpression", + "start": 950, + "end": 967, + "loc": { + "start": { + "line": 22, + "column": 88 + }, + "end": { + "line": 22, + "column": 105 + } + }, + "object": { + "type": "Identifier", + "start": 950, + "end": 957, + "loc": { + "start": { + "line": 22, + "column": 88 + }, + "end": { + "line": 22, + "column": 95 + }, + "identifierName": "options" + }, + "name": "options" + }, + "property": { + "type": "Identifier", + "start": 958, + "end": 967, + "loc": { + "start": { + "line": 22, + "column": 96 + }, + "end": { + "line": 22, + "column": 105 + }, + "identifierName": "activeKey" + }, + "name": "activeKey" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 969, + "end": 979, + "loc": { + "start": { + "line": 22, + "column": 107 + }, + "end": { + "line": 22, + "column": 117 + } + }, + "object": { + "type": "Identifier", + "start": 969, + "end": 976, + "loc": { + "start": { + "line": 22, + "column": 107 + }, + "end": { + "line": 22, + "column": 114 + }, + "identifierName": "options" + }, + "name": "options" + }, + "property": { + "type": "Identifier", + "start": 977, + "end": 979, + "loc": { + "start": { + "line": 22, + "column": 115 + }, + "end": { + "line": 22, + "column": 117 + }, + "identifierName": "to" + }, + "name": "to" + }, + "computed": false + } + ] + } + } + } + ], + "kind": "const" + }, + { + "type": "VariableDeclaration", + "start": 994, + "end": 1065, + "loc": { + "start": { + "line": 23, + "column": 12 + }, + "end": { + "line": 23, + "column": 83 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1000, + "end": 1064, + "loc": { + "start": { + "line": 23, + "column": 18 + }, + "end": { + "line": 23, + "column": 82 + } + }, + "id": { + "type": "Identifier", + "start": 1000, + "end": 1012, + "loc": { + "start": { + "line": 23, + "column": 18 + }, + "end": { + "line": 23, + "column": 30 + }, + "identifierName": "signedDeploy" + }, + "name": "signedDeploy" + }, + "init": { + "type": "AwaitExpression", + "start": 1015, + "end": 1064, + "loc": { + "start": { + "line": 23, + "column": 33 + }, + "end": { + "line": 23, + "column": 82 + } + }, + "argument": { + "type": "CallExpression", + "start": 1021, + "end": 1064, + "loc": { + "start": { + "line": 23, + "column": 39 + }, + "end": { + "line": 23, + "column": 82 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1021, + "end": 1046, + "loc": { + "start": { + "line": 23, + "column": 39 + }, + "end": { + "line": 23, + "column": 64 + } + }, + "object": { + "type": "Identifier", + "start": 1021, + "end": 1031, + "loc": { + "start": { + "line": 23, + "column": 39 + }, + "end": { + "line": 23, + "column": 49 + }, + "identifierName": "DeployUtil" + }, + "name": "DeployUtil" + }, + "property": { + "type": "Identifier", + "start": 1032, + "end": 1046, + "loc": { + "start": { + "line": 23, + "column": 50 + }, + "end": { + "line": 23, + "column": 64 + }, + "identifierName": "deployFromJson" + }, + "name": "deployFromJson" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 1047, + "end": 1063, + "loc": { + "start": { + "line": 23, + "column": 65 + }, + "end": { + "line": 23, + "column": 81 + }, + "identifierName": "signedJsonDeploy" + }, + "name": "signedJsonDeploy" + } + ] + } + } + } + ], + "kind": "const" + }, + { + "type": "IfStatement", + "start": 1078, + "end": 1216, + "loc": { + "start": { + "line": 24, + "column": 12 + }, + "end": { + "line": 28, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 1082, + "end": 1097, + "loc": { + "start": { + "line": 24, + "column": 16 + }, + "end": { + "line": 24, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 1082, + "end": 1094, + "loc": { + "start": { + "line": 24, + "column": 16 + }, + "end": { + "line": 24, + "column": 28 + }, + "identifierName": "signedDeploy" + }, + "name": "signedDeploy" + }, + "property": { + "type": "Identifier", + "start": 1095, + "end": 1097, + "loc": { + "start": { + "line": 24, + "column": 29 + }, + "end": { + "line": 24, + "column": 31 + }, + "identifierName": "ok" + }, + "name": "ok" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 1099, + "end": 1155, + "loc": { + "start": { + "line": 24, + "column": 33 + }, + "end": { + "line": 26, + "column": 13 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 1117, + "end": 1141, + "loc": { + "start": { + "line": 25, + "column": 16 + }, + "end": { + "line": 25, + "column": 40 + } + }, + "argument": { + "type": "MemberExpression", + "start": 1124, + "end": 1140, + "loc": { + "start": { + "line": 25, + "column": 23 + }, + "end": { + "line": 25, + "column": 39 + } + }, + "object": { + "type": "Identifier", + "start": 1124, + "end": 1136, + "loc": { + "start": { + "line": 25, + "column": 23 + }, + "end": { + "line": 25, + "column": 35 + }, + "identifierName": "signedDeploy" + }, + "name": "signedDeploy" + }, + "property": { + "type": "Identifier", + "start": 1137, + "end": 1140, + "loc": { + "start": { + "line": 25, + "column": 36 + }, + "end": { + "line": 25, + "column": 39 + }, + "identifierName": "val" + }, + "name": "val" + }, + "computed": false + } + } + ], + "directives": [] + }, + "alternate": { + "type": "BlockStatement", + "start": 1161, + "end": 1216, + "loc": { + "start": { + "line": 26, + "column": 19 + }, + "end": { + "line": 28, + "column": 13 + } + }, + "body": [ + { + "type": "ThrowStatement", + "start": 1179, + "end": 1202, + "loc": { + "start": { + "line": 27, + "column": 16 + }, + "end": { + "line": 27, + "column": 39 + } + }, + "argument": { + "type": "MemberExpression", + "start": 1185, + "end": 1201, + "loc": { + "start": { + "line": 27, + "column": 22 + }, + "end": { + "line": 27, + "column": 38 + } + }, + "object": { + "type": "Identifier", + "start": 1185, + "end": 1197, + "loc": { + "start": { + "line": 27, + "column": 22 + }, + "end": { + "line": 27, + "column": 34 + }, + "identifierName": "signedDeploy" + }, + "name": "signedDeploy" + }, + "property": { + "type": "Identifier", + "start": 1198, + "end": 1201, + "loc": { + "start": { + "line": 27, + "column": 35 + }, + "end": { + "line": 27, + "column": 38 + }, + "identifierName": "val" + }, + "name": "val" + }, + "computed": false + } + } + ], + "directives": [] + } + } + ], + "directives": [] + }, + "handler": { + "type": "CatchClause", + "start": 1227, + "end": 1311, + "loc": { + "start": { + "line": 29, + "column": 10 + }, + "end": { + "line": 32, + "column": 9 + } + }, + "param": { + "type": "Identifier", + "start": 1234, + "end": 1235, + "loc": { + "start": { + "line": 29, + "column": 17 + }, + "end": { + "line": 29, + "column": 18 + }, + "identifierName": "e" + }, + "name": "e" + }, + "body": { + "type": "BlockStatement", + "start": 1237, + "end": 1311, + "loc": { + "start": { + "line": 29, + "column": 20 + }, + "end": { + "line": 32, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1251, + "end": 1266, + "loc": { + "start": { + "line": 30, + "column": 12 + }, + "end": { + "line": 30, + "column": 27 + } + }, + "expression": { + "type": "CallExpression", + "start": 1251, + "end": 1265, + "loc": { + "start": { + "line": 30, + "column": 12 + }, + "end": { + "line": 30, + "column": 26 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1251, + "end": 1262, + "loc": { + "start": { + "line": 30, + "column": 12 + }, + "end": { + "line": 30, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 1251, + "end": 1258, + "loc": { + "start": { + "line": 30, + "column": 12 + }, + "end": { + "line": 30, + "column": 19 + }, + "identifierName": "console" + }, + "name": "console" + }, + "property": { + "type": "Identifier", + "start": 1259, + "end": 1262, + "loc": { + "start": { + "line": 30, + "column": 20 + }, + "end": { + "line": 30, + "column": 23 + }, + "identifierName": "log" + }, + "name": "log" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 1263, + "end": 1264, + "loc": { + "start": { + "line": 30, + "column": 24 + }, + "end": { + "line": 30, + "column": 25 + }, + "identifierName": "e" + }, + "name": "e" + } + ] + } + }, + { + "type": "ThrowStatement", + "start": 1279, + "end": 1301, + "loc": { + "start": { + "line": 31, + "column": 12 + }, + "end": { + "line": 31, + "column": 34 + } + }, + "argument": { + "type": "NewExpression", + "start": 1285, + "end": 1300, + "loc": { + "start": { + "line": 31, + "column": 18 + }, + "end": { + "line": 31, + "column": 33 + } + }, + "callee": { + "type": "Identifier", + "start": 1289, + "end": 1298, + "loc": { + "start": { + "line": 31, + "column": 22 + }, + "end": { + "line": 31, + "column": 31 + }, + "identifierName": "SignError" + }, + "name": "SignError" + }, + "arguments": [] + } + } + ], + "directives": [] + } + }, + "guardedHandlers": [], + "finalizer": null + } + ], + "directives": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Sign a given Deploy Object with the corresponding public key.\n * You must pass the active public key from the user and the public key where the deploy is going to be used.\n *\n * @param {DeployUtil.Deploy} deploy - Deploy object\n * @param {Object} options - Options object\n * Must contains the public key of the user in the activeKey property\n * Must contains the public key of the targeted wallet\n * @returns {Promise} - Signed deploy object\n ", + "start": 284, + "end": 801, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 19, + "column": 7 + } + } + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * CasperSigner class\n * Used to sign a deployment with the Casper Signer extension\n ", + "start": 137, + "end": 228, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * CasperSigner class\n * Used to sign a deployment with the Casper Signer extension\n ", + "start": 137, + "end": 228, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + } + } + ] + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\n * CasperSigner class\n * Used to sign a deployment with the Casper Signer extension\n ", + "start": 137, + "end": 228, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Sign a given Deploy Object with the corresponding public key.\n * You must pass the active public key from the user and the public key where the deploy is going to be used.\n *\n * @param {DeployUtil.Deploy} deploy - Deploy object\n * @param {Object} options - Options object\n * Must contains the public key of the user in the activeKey property\n * Must contains the public key of the targeted wallet\n * @returns {Promise} - Signed deploy object\n ", + "start": 284, + "end": 801, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 19, + "column": 7 + } + } + } + ], + "tokens": [ + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 0, + "end": 6, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7, + "end": 8, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "DeployUtil", + "start": 8, + "end": 18, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 18 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 18, + "end": 19, + "loc": { + "start": { + "line": 1, + "column": 18 + }, + "end": { + "line": 1, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Signer", + "start": 20, + "end": 26, + "loc": { + "start": { + "line": 1, + "column": 20 + }, + "end": { + "line": 1, + "column": 26 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 26, + "end": 27, + "loc": { + "start": { + "line": 1, + "column": 26 + }, + "end": { + "line": 1, + "column": 27 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 28, + "end": 32, + "loc": { + "start": { + "line": 1, + "column": 28 + }, + "end": { + "line": 1, + "column": 32 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "casper-js-sdk", + "start": 33, + "end": 48, + "loc": { + "start": { + "line": 1, + "column": 33 + }, + "end": { + "line": 1, + "column": 48 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 48, + "end": 49, + "loc": { + "start": { + "line": 1, + "column": 48 + }, + "end": { + "line": 1, + "column": 49 + } + } + }, + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 50, + "end": 56, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 57, + "end": 58, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "AbstractSigner", + "start": 58, + "end": 72, + "loc": { + "start": { + "line": 2, + "column": 8 + }, + "end": { + "line": 2, + "column": 22 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 72, + "end": 73, + "loc": { + "start": { + "line": 2, + "column": 22 + }, + "end": { + "line": 2, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 74, + "end": 78, + "loc": { + "start": { + "line": 2, + "column": 24 + }, + "end": { + "line": 2, + "column": 28 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./abstractSigner", + "start": 79, + "end": 97, + "loc": { + "start": { + "line": 2, + "column": 29 + }, + "end": { + "line": 2, + "column": 47 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 97, + "end": 98, + "loc": { + "start": { + "line": 2, + "column": 47 + }, + "end": { + "line": 2, + "column": 48 + } + } + }, + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 99, + "end": 105, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 106, + "end": 107, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "SignError", + "start": 107, + "end": 116, + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 3, + "column": 17 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 116, + "end": 117, + "loc": { + "start": { + "line": 3, + "column": 17 + }, + "end": { + "line": 3, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 118, + "end": 122, + "loc": { + "start": { + "line": 3, + "column": 19 + }, + "end": { + "line": 3, + "column": 23 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "../errors", + "start": 123, + "end": 134, + "loc": { + "start": { + "line": 3, + "column": 24 + }, + "end": { + "line": 3, + "column": 35 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 134, + "end": 135, + "loc": { + "start": { + "line": 3, + "column": 35 + }, + "end": { + "line": 3, + "column": 36 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * CasperSigner class\n * Used to sign a deployment with the Casper Signer extension\n ", + "start": 137, + "end": 228, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 229, + "end": 235, + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 6 + } + } + }, + { + "type": { + "label": "class", + "keyword": "class", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "class", + "start": 236, + "end": 241, + "loc": { + "start": { + "line": 9, + "column": 7 + }, + "end": { + "line": 9, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CasperSigner", + "start": 242, + "end": 254, + "loc": { + "start": { + "line": 9, + "column": 13 + }, + "end": { + "line": 9, + "column": 25 + } + } + }, + { + "type": { + "label": "extends", + "keyword": "extends", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "extends", + "start": 255, + "end": 262, + "loc": { + "start": { + "line": 9, + "column": 26 + }, + "end": { + "line": 9, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "AbstractSigner", + "start": 263, + "end": 277, + "loc": { + "start": { + "line": 9, + "column": 34 + }, + "end": { + "line": 9, + "column": 48 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 278, + "end": 279, + "loc": { + "start": { + "line": 9, + "column": 49 + }, + "end": { + "line": 9, + "column": 50 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Sign a given Deploy Object with the corresponding public key.\n * You must pass the active public key from the user and the public key where the deploy is going to be used.\n *\n * @param {DeployUtil.Deploy} deploy - Deploy object\n * @param {Object} options - Options object\n * Must contains the public key of the user in the activeKey property\n * Must contains the public key of the targeted wallet\n * @returns {Promise} - Signed deploy object\n ", + "start": 284, + "end": 801, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 19, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "static", + "start": 806, + "end": 812, + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 10 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "async", + "start": 813, + "end": 818, + "loc": { + "start": { + "line": 20, + "column": 11 + }, + "end": { + "line": 20, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "sign", + "start": 819, + "end": 823, + "loc": { + "start": { + "line": 20, + "column": 17 + }, + "end": { + "line": 20, + "column": 21 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 823, + "end": 824, + "loc": { + "start": { + "line": 20, + "column": 21 + }, + "end": { + "line": 20, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "deploy", + "start": 824, + "end": 830, + "loc": { + "start": { + "line": 20, + "column": 22 + }, + "end": { + "line": 20, + "column": 28 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 830, + "end": 831, + "loc": { + "start": { + "line": 20, + "column": 28 + }, + "end": { + "line": 20, + "column": 29 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 832, + "end": 839, + "loc": { + "start": { + "line": 20, + "column": 30 + }, + "end": { + "line": 20, + "column": 37 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 840, + "end": 841, + "loc": { + "start": { + "line": 20, + "column": 38 + }, + "end": { + "line": 20, + "column": 39 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 842, + "end": 843, + "loc": { + "start": { + "line": 20, + "column": 40 + }, + "end": { + "line": 20, + "column": 41 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 843, + "end": 844, + "loc": { + "start": { + "line": 20, + "column": 41 + }, + "end": { + "line": 20, + "column": 42 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 844, + "end": 845, + "loc": { + "start": { + "line": 20, + "column": 42 + }, + "end": { + "line": 20, + "column": 43 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 846, + "end": 847, + "loc": { + "start": { + "line": 20, + "column": 44 + }, + "end": { + "line": 20, + "column": 45 + } + } + }, + { + "type": { + "label": "try", + "keyword": "try", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "try", + "start": 856, + "end": 859, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 11 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 860, + "end": 861, + "loc": { + "start": { + "line": 21, + "column": 12 + }, + "end": { + "line": 21, + "column": 13 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 874, + "end": 879, + "loc": { + "start": { + "line": 22, + "column": 12 + }, + "end": { + "line": 22, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "signedJsonDeploy", + "start": 880, + "end": 896, + "loc": { + "start": { + "line": 22, + "column": 18 + }, + "end": { + "line": 22, + "column": 34 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 897, + "end": 898, + "loc": { + "start": { + "line": 22, + "column": 35 + }, + "end": { + "line": 22, + "column": 36 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "await", + "start": 899, + "end": 904, + "loc": { + "start": { + "line": 22, + "column": 37 + }, + "end": { + "line": 22, + "column": 42 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Signer", + "start": 905, + "end": 911, + "loc": { + "start": { + "line": 22, + "column": 43 + }, + "end": { + "line": 22, + "column": 49 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 911, + "end": 912, + "loc": { + "start": { + "line": 22, + "column": 49 + }, + "end": { + "line": 22, + "column": 50 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "sign", + "start": 912, + "end": 916, + "loc": { + "start": { + "line": 22, + "column": 50 + }, + "end": { + "line": 22, + "column": 54 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 916, + "end": 917, + "loc": { + "start": { + "line": 22, + "column": 54 + }, + "end": { + "line": 22, + "column": 55 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "DeployUtil", + "start": 917, + "end": 927, + "loc": { + "start": { + "line": 22, + "column": 55 + }, + "end": { + "line": 22, + "column": 65 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 927, + "end": 928, + "loc": { + "start": { + "line": 22, + "column": 65 + }, + "end": { + "line": 22, + "column": 66 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "deployToJson", + "start": 928, + "end": 940, + "loc": { + "start": { + "line": 22, + "column": 66 + }, + "end": { + "line": 22, + "column": 78 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 940, + "end": 941, + "loc": { + "start": { + "line": 22, + "column": 78 + }, + "end": { + "line": 22, + "column": 79 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "deploy", + "start": 941, + "end": 947, + "loc": { + "start": { + "line": 22, + "column": 79 + }, + "end": { + "line": 22, + "column": 85 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 947, + "end": 948, + "loc": { + "start": { + "line": 22, + "column": 85 + }, + "end": { + "line": 22, + "column": 86 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 948, + "end": 949, + "loc": { + "start": { + "line": 22, + "column": 86 + }, + "end": { + "line": 22, + "column": 87 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 950, + "end": 957, + "loc": { + "start": { + "line": 22, + "column": 88 + }, + "end": { + "line": 22, + "column": 95 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 957, + "end": 958, + "loc": { + "start": { + "line": 22, + "column": 95 + }, + "end": { + "line": 22, + "column": 96 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "activeKey", + "start": 958, + "end": 967, + "loc": { + "start": { + "line": 22, + "column": 96 + }, + "end": { + "line": 22, + "column": 105 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 967, + "end": 968, + "loc": { + "start": { + "line": 22, + "column": 105 + }, + "end": { + "line": 22, + "column": 106 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 969, + "end": 976, + "loc": { + "start": { + "line": 22, + "column": 107 + }, + "end": { + "line": 22, + "column": 114 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 976, + "end": 977, + "loc": { + "start": { + "line": 22, + "column": 114 + }, + "end": { + "line": 22, + "column": 115 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "to", + "start": 977, + "end": 979, + "loc": { + "start": { + "line": 22, + "column": 115 + }, + "end": { + "line": 22, + "column": 117 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 979, + "end": 980, + "loc": { + "start": { + "line": 22, + "column": 117 + }, + "end": { + "line": 22, + "column": 118 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 980, + "end": 981, + "loc": { + "start": { + "line": 22, + "column": 118 + }, + "end": { + "line": 22, + "column": 119 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 994, + "end": 999, + "loc": { + "start": { + "line": 23, + "column": 12 + }, + "end": { + "line": 23, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "signedDeploy", + "start": 1000, + "end": 1012, + "loc": { + "start": { + "line": 23, + "column": 18 + }, + "end": { + "line": 23, + "column": 30 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1013, + "end": 1014, + "loc": { + "start": { + "line": 23, + "column": 31 + }, + "end": { + "line": 23, + "column": 32 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "await", + "start": 1015, + "end": 1020, + "loc": { + "start": { + "line": 23, + "column": 33 + }, + "end": { + "line": 23, + "column": 38 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "DeployUtil", + "start": 1021, + "end": 1031, + "loc": { + "start": { + "line": 23, + "column": 39 + }, + "end": { + "line": 23, + "column": 49 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1031, + "end": 1032, + "loc": { + "start": { + "line": 23, + "column": 49 + }, + "end": { + "line": 23, + "column": 50 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "deployFromJson", + "start": 1032, + "end": 1046, + "loc": { + "start": { + "line": 23, + "column": 50 + }, + "end": { + "line": 23, + "column": 64 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1046, + "end": 1047, + "loc": { + "start": { + "line": 23, + "column": 64 + }, + "end": { + "line": 23, + "column": 65 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "signedJsonDeploy", + "start": 1047, + "end": 1063, + "loc": { + "start": { + "line": 23, + "column": 65 + }, + "end": { + "line": 23, + "column": 81 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1063, + "end": 1064, + "loc": { + "start": { + "line": 23, + "column": 81 + }, + "end": { + "line": 23, + "column": 82 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1064, + "end": 1065, + "loc": { + "start": { + "line": 23, + "column": 82 + }, + "end": { + "line": 23, + "column": 83 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 1078, + "end": 1080, + "loc": { + "start": { + "line": 24, + "column": 12 + }, + "end": { + "line": 24, + "column": 14 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1081, + "end": 1082, + "loc": { + "start": { + "line": 24, + "column": 15 + }, + "end": { + "line": 24, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "signedDeploy", + "start": 1082, + "end": 1094, + "loc": { + "start": { + "line": 24, + "column": 16 + }, + "end": { + "line": 24, + "column": 28 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1094, + "end": 1095, + "loc": { + "start": { + "line": 24, + "column": 28 + }, + "end": { + "line": 24, + "column": 29 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "ok", + "start": 1095, + "end": 1097, + "loc": { + "start": { + "line": 24, + "column": 29 + }, + "end": { + "line": 24, + "column": 31 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1097, + "end": 1098, + "loc": { + "start": { + "line": 24, + "column": 31 + }, + "end": { + "line": 24, + "column": 32 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1099, + "end": 1100, + "loc": { + "start": { + "line": 24, + "column": 33 + }, + "end": { + "line": 24, + "column": 34 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 1117, + "end": 1123, + "loc": { + "start": { + "line": 25, + "column": 16 + }, + "end": { + "line": 25, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "signedDeploy", + "start": 1124, + "end": 1136, + "loc": { + "start": { + "line": 25, + "column": 23 + }, + "end": { + "line": 25, + "column": 35 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1136, + "end": 1137, + "loc": { + "start": { + "line": 25, + "column": 35 + }, + "end": { + "line": 25, + "column": 36 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "val", + "start": 1137, + "end": 1140, + "loc": { + "start": { + "line": 25, + "column": 36 + }, + "end": { + "line": 25, + "column": 39 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1140, + "end": 1141, + "loc": { + "start": { + "line": 25, + "column": 39 + }, + "end": { + "line": 25, + "column": 40 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1154, + "end": 1155, + "loc": { + "start": { + "line": 26, + "column": 12 + }, + "end": { + "line": 26, + "column": 13 + } + } + }, + { + "type": { + "label": "else", + "keyword": "else", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "else", + "start": 1156, + "end": 1160, + "loc": { + "start": { + "line": 26, + "column": 14 + }, + "end": { + "line": 26, + "column": 18 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1161, + "end": 1162, + "loc": { + "start": { + "line": 26, + "column": 19 + }, + "end": { + "line": 26, + "column": 20 + } + } + }, + { + "type": { + "label": "throw", + "keyword": "throw", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "throw", + "start": 1179, + "end": 1184, + "loc": { + "start": { + "line": 27, + "column": 16 + }, + "end": { + "line": 27, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "signedDeploy", + "start": 1185, + "end": 1197, + "loc": { + "start": { + "line": 27, + "column": 22 + }, + "end": { + "line": 27, + "column": 34 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1197, + "end": 1198, + "loc": { + "start": { + "line": 27, + "column": 34 + }, + "end": { + "line": 27, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "val", + "start": 1198, + "end": 1201, + "loc": { + "start": { + "line": 27, + "column": 35 + }, + "end": { + "line": 27, + "column": 38 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1201, + "end": 1202, + "loc": { + "start": { + "line": 27, + "column": 38 + }, + "end": { + "line": 27, + "column": 39 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1215, + "end": 1216, + "loc": { + "start": { + "line": 28, + "column": 12 + }, + "end": { + "line": 28, + "column": 13 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1225, + "end": 1226, + "loc": { + "start": { + "line": 29, + "column": 8 + }, + "end": { + "line": 29, + "column": 9 + } + } + }, + { + "type": { + "label": "catch", + "keyword": "catch", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "catch", + "start": 1227, + "end": 1232, + "loc": { + "start": { + "line": 29, + "column": 10 + }, + "end": { + "line": 29, + "column": 15 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1233, + "end": 1234, + "loc": { + "start": { + "line": 29, + "column": 16 + }, + "end": { + "line": 29, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "e", + "start": 1234, + "end": 1235, + "loc": { + "start": { + "line": 29, + "column": 17 + }, + "end": { + "line": 29, + "column": 18 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1235, + "end": 1236, + "loc": { + "start": { + "line": 29, + "column": 18 + }, + "end": { + "line": 29, + "column": 19 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1237, + "end": 1238, + "loc": { + "start": { + "line": 29, + "column": 20 + }, + "end": { + "line": 29, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "console", + "start": 1251, + "end": 1258, + "loc": { + "start": { + "line": 30, + "column": 12 + }, + "end": { + "line": 30, + "column": 19 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1258, + "end": 1259, + "loc": { + "start": { + "line": 30, + "column": 19 + }, + "end": { + "line": 30, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "log", + "start": 1259, + "end": 1262, + "loc": { + "start": { + "line": 30, + "column": 20 + }, + "end": { + "line": 30, + "column": 23 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1262, + "end": 1263, + "loc": { + "start": { + "line": 30, + "column": 23 + }, + "end": { + "line": 30, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "e", + "start": 1263, + "end": 1264, + "loc": { + "start": { + "line": 30, + "column": 24 + }, + "end": { + "line": 30, + "column": 25 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1264, + "end": 1265, + "loc": { + "start": { + "line": 30, + "column": 25 + }, + "end": { + "line": 30, + "column": 26 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1265, + "end": 1266, + "loc": { + "start": { + "line": 30, + "column": 26 + }, + "end": { + "line": 30, + "column": 27 + } + } + }, + { + "type": { + "label": "throw", + "keyword": "throw", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "throw", + "start": 1279, + "end": 1284, + "loc": { + "start": { + "line": 31, + "column": 12 + }, + "end": { + "line": 31, + "column": 17 + } + } + }, + { + "type": { + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "new", + "start": 1285, + "end": 1288, + "loc": { + "start": { + "line": 31, + "column": 18 + }, + "end": { + "line": 31, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "SignError", + "start": 1289, + "end": 1298, + "loc": { + "start": { + "line": 31, + "column": 22 + }, + "end": { + "line": 31, + "column": 31 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1298, + "end": 1299, + "loc": { + "start": { + "line": 31, + "column": 31 + }, + "end": { + "line": 31, + "column": 32 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1299, + "end": 1300, + "loc": { + "start": { + "line": 31, + "column": 32 + }, + "end": { + "line": 31, + "column": 33 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1300, + "end": 1301, + "loc": { + "start": { + "line": 31, + "column": 33 + }, + "end": { + "line": 31, + "column": 34 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1310, + "end": 1311, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 9 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1316, + "end": 1317, + "loc": { + "start": { + "line": 33, + "column": 4 + }, + "end": { + "line": 33, + "column": 5 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1318, + "end": 1319, + "loc": { + "start": { + "line": 34, + "column": 0 + }, + "end": { + "line": 34, + "column": 1 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1319, + "end": 1319, + "loc": { + "start": { + "line": 34, + "column": 1 + }, + "end": { + "line": 34, + "column": 1 + } + } + } + ] +} \ No newline at end of file diff --git a/ast/source/services/signers/index.js.json b/ast/source/services/signers/index.js.json new file mode 100644 index 0000000..9005e9e --- /dev/null +++ b/ast/source/services/signers/index.js.json @@ -0,0 +1,401 @@ +{ + "type": "File", + "start": 0, + "end": 62, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 2, + "column": 30 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 62, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 2, + "column": 30 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ExportAllDeclaration", + "start": 0, + "end": 31, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 31 + } + }, + "source": { + "type": "StringLiteral", + "start": 14, + "end": 30, + "loc": { + "start": { + "line": 1, + "column": 14 + }, + "end": { + "line": 1, + "column": 30 + } + }, + "extra": { + "rawValue": "./casperSigner", + "raw": "'./casperSigner'" + }, + "value": "./casperSigner" + } + }, + { + "type": "ExportAllDeclaration", + "start": 32, + "end": 62, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 30 + } + }, + "source": { + "type": "StringLiteral", + "start": 46, + "end": 61, + "loc": { + "start": { + "line": 2, + "column": 14 + }, + "end": { + "line": 2, + "column": 29 + } + }, + "extra": { + "rawValue": "./localSigner", + "raw": "'./localSigner'" + }, + "value": "./localSigner" + } + } + ], + "directives": [] + }, + "comments": [], + "tokens": [ + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 0, + "end": 6, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 6 + } + } + }, + { + "type": { + "label": "*", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 10, + "updateContext": null + }, + "value": "*", + "start": 7, + "end": 8, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 9, + "end": 13, + "loc": { + "start": { + "line": 1, + "column": 9 + }, + "end": { + "line": 1, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./casperSigner", + "start": 14, + "end": 30, + "loc": { + "start": { + "line": 1, + "column": 14 + }, + "end": { + "line": 1, + "column": 30 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 30, + "end": 31, + "loc": { + "start": { + "line": 1, + "column": 30 + }, + "end": { + "line": 1, + "column": 31 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 32, + "end": 38, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 6 + } + } + }, + { + "type": { + "label": "*", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 10, + "updateContext": null + }, + "value": "*", + "start": 39, + "end": 40, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 41, + "end": 45, + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./localSigner", + "start": 46, + "end": 61, + "loc": { + "start": { + "line": 2, + "column": 14 + }, + "end": { + "line": 2, + "column": 29 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 61, + "end": 62, + "loc": { + "start": { + "line": 2, + "column": 29 + }, + "end": { + "line": 2, + "column": 30 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 62, + "end": 62, + "loc": { + "start": { + "line": 2, + "column": 30 + }, + "end": { + "line": 2, + "column": 30 + } + } + } + ] +} \ No newline at end of file diff --git a/ast/source/services/signers/localSigner.js.json b/ast/source/services/signers/localSigner.js.json new file mode 100644 index 0000000..0f5a16e --- /dev/null +++ b/ast/source/services/signers/localSigner.js.json @@ -0,0 +1,3013 @@ +{ + "type": "File", + "start": 0, + "end": 801, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 25, + "column": 1 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 801, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 25, + "column": 1 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 41, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 41 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 8, + "end": 18, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 18 + } + }, + "imported": { + "type": "Identifier", + "start": 8, + "end": 18, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 18 + }, + "identifierName": "DeployUtil" + }, + "name": "DeployUtil" + }, + "local": { + "type": "Identifier", + "start": 8, + "end": 18, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 18 + }, + "identifierName": "DeployUtil" + }, + "name": "DeployUtil" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 25, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 25 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "extra": { + "rawValue": "casper-js-sdk", + "raw": "\"casper-js-sdk\"" + }, + "value": "casper-js-sdk" + } + }, + { + "type": "ImportDeclaration", + "start": 42, + "end": 78, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 36 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 50, + "end": 59, + "loc": { + "start": { + "line": 2, + "column": 8 + }, + "end": { + "line": 2, + "column": 17 + } + }, + "imported": { + "type": "Identifier", + "start": 50, + "end": 59, + "loc": { + "start": { + "line": 2, + "column": 8 + }, + "end": { + "line": 2, + "column": 17 + }, + "identifierName": "SignError" + }, + "name": "SignError" + }, + "local": { + "type": "Identifier", + "start": 50, + "end": 59, + "loc": { + "start": { + "line": 2, + "column": 8 + }, + "end": { + "line": 2, + "column": 17 + }, + "identifierName": "SignError" + }, + "name": "SignError" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 66, + "end": 77, + "loc": { + "start": { + "line": 2, + "column": 24 + }, + "end": { + "line": 2, + "column": 35 + } + }, + "extra": { + "rawValue": "../errors", + "raw": "\"../errors\"" + }, + "value": "../errors" + } + }, + { + "type": "ImportDeclaration", + "start": 79, + "end": 127, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 48 + } + }, + "specifiers": [ + { + "type": "ImportSpecifier", + "start": 87, + "end": 101, + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 3, + "column": 22 + } + }, + "imported": { + "type": "Identifier", + "start": 87, + "end": 101, + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 3, + "column": 22 + }, + "identifierName": "AbstractSigner" + }, + "name": "AbstractSigner" + }, + "local": { + "type": "Identifier", + "start": 87, + "end": 101, + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 3, + "column": 22 + }, + "identifierName": "AbstractSigner" + }, + "name": "AbstractSigner" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 108, + "end": 126, + "loc": { + "start": { + "line": 3, + "column": 29 + }, + "end": { + "line": 3, + "column": 47 + } + }, + "extra": { + "rawValue": "./abstractSigner", + "raw": "\"./abstractSigner\"" + }, + "value": "./abstractSigner" + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * LocalSigner class\n * Used to sign a deployment with local keys\n ", + "start": 129, + "end": 202, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + } + } + ] + }, + { + "type": "ExportNamedDeclaration", + "start": 203, + "end": 801, + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 25, + "column": 1 + } + }, + "specifiers": [], + "source": null, + "declaration": { + "type": "ClassDeclaration", + "start": 210, + "end": 801, + "loc": { + "start": { + "line": 9, + "column": 7 + }, + "end": { + "line": 25, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 216, + "end": 227, + "loc": { + "start": { + "line": 9, + "column": 13 + }, + "end": { + "line": 9, + "column": 24 + }, + "identifierName": "LocalSigner" + }, + "name": "LocalSigner", + "leadingComments": null + }, + "superClass": { + "type": "Identifier", + "start": 236, + "end": 250, + "loc": { + "start": { + "line": 9, + "column": 33 + }, + "end": { + "line": 9, + "column": 47 + }, + "identifierName": "AbstractSigner" + }, + "name": "AbstractSigner" + }, + "body": { + "type": "ClassBody", + "start": 251, + "end": 801, + "loc": { + "start": { + "line": 9, + "column": 48 + }, + "end": { + "line": 25, + "column": 1 + } + }, + "body": [ + { + "type": "ClassMethod", + "start": 575, + "end": 799, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 24, + "column": 5 + } + }, + "static": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 588, + "end": 592, + "loc": { + "start": { + "line": 17, + "column": 17 + }, + "end": { + "line": 17, + "column": 21 + }, + "identifierName": "sign" + }, + "name": "sign" + }, + "kind": "method", + "id": null, + "generator": false, + "expression": false, + "async": true, + "params": [ + { + "type": "Identifier", + "start": 593, + "end": 599, + "loc": { + "start": { + "line": 17, + "column": 22 + }, + "end": { + "line": 17, + "column": 28 + }, + "identifierName": "deploy" + }, + "name": "deploy" + }, + { + "type": "AssignmentPattern", + "start": 601, + "end": 613, + "loc": { + "start": { + "line": 17, + "column": 30 + }, + "end": { + "line": 17, + "column": 42 + } + }, + "left": { + "type": "Identifier", + "start": 601, + "end": 608, + "loc": { + "start": { + "line": 17, + "column": 30 + }, + "end": { + "line": 17, + "column": 37 + }, + "identifierName": "options" + }, + "name": "options" + }, + "right": { + "type": "ObjectExpression", + "start": 611, + "end": 613, + "loc": { + "start": { + "line": 17, + "column": 40 + }, + "end": { + "line": 17, + "column": 42 + } + }, + "properties": [] + } + } + ], + "body": { + "type": "BlockStatement", + "start": 615, + "end": 799, + "loc": { + "start": { + "line": 17, + "column": 44 + }, + "end": { + "line": 24, + "column": 5 + } + }, + "body": [ + { + "type": "TryStatement", + "start": 625, + "end": 793, + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 23, + "column": 9 + } + }, + "block": { + "type": "BlockStatement", + "start": 629, + "end": 708, + "loc": { + "start": { + "line": 18, + "column": 12 + }, + "end": { + "line": 20, + "column": 9 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 643, + "end": 698, + "loc": { + "start": { + "line": 19, + "column": 12 + }, + "end": { + "line": 19, + "column": 67 + } + }, + "argument": { + "type": "AwaitExpression", + "start": 650, + "end": 698, + "loc": { + "start": { + "line": 19, + "column": 19 + }, + "end": { + "line": 19, + "column": 67 + } + }, + "argument": { + "type": "CallExpression", + "start": 656, + "end": 698, + "loc": { + "start": { + "line": 19, + "column": 25 + }, + "end": { + "line": 19, + "column": 67 + } + }, + "callee": { + "type": "MemberExpression", + "start": 656, + "end": 677, + "loc": { + "start": { + "line": 19, + "column": 25 + }, + "end": { + "line": 19, + "column": 46 + } + }, + "object": { + "type": "Identifier", + "start": 656, + "end": 666, + "loc": { + "start": { + "line": 19, + "column": 25 + }, + "end": { + "line": 19, + "column": 35 + }, + "identifierName": "DeployUtil" + }, + "name": "DeployUtil" + }, + "property": { + "type": "Identifier", + "start": 667, + "end": 677, + "loc": { + "start": { + "line": 19, + "column": 36 + }, + "end": { + "line": 19, + "column": 46 + }, + "identifierName": "signDeploy" + }, + "name": "signDeploy" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 678, + "end": 684, + "loc": { + "start": { + "line": 19, + "column": 47 + }, + "end": { + "line": 19, + "column": 53 + }, + "identifierName": "deploy" + }, + "name": "deploy" + }, + { + "type": "MemberExpression", + "start": 686, + "end": 697, + "loc": { + "start": { + "line": 19, + "column": 55 + }, + "end": { + "line": 19, + "column": 66 + } + }, + "object": { + "type": "Identifier", + "start": 686, + "end": 693, + "loc": { + "start": { + "line": 19, + "column": 55 + }, + "end": { + "line": 19, + "column": 62 + }, + "identifierName": "options" + }, + "name": "options" + }, + "property": { + "type": "Identifier", + "start": 694, + "end": 697, + "loc": { + "start": { + "line": 19, + "column": 63 + }, + "end": { + "line": 19, + "column": 66 + }, + "identifierName": "key" + }, + "name": "key" + }, + "computed": false + } + ] + } + } + } + ], + "directives": [] + }, + "handler": { + "type": "CatchClause", + "start": 709, + "end": 793, + "loc": { + "start": { + "line": 20, + "column": 10 + }, + "end": { + "line": 23, + "column": 9 + } + }, + "param": { + "type": "Identifier", + "start": 716, + "end": 717, + "loc": { + "start": { + "line": 20, + "column": 17 + }, + "end": { + "line": 20, + "column": 18 + }, + "identifierName": "e" + }, + "name": "e" + }, + "body": { + "type": "BlockStatement", + "start": 719, + "end": 793, + "loc": { + "start": { + "line": 20, + "column": 20 + }, + "end": { + "line": 23, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 733, + "end": 748, + "loc": { + "start": { + "line": 21, + "column": 12 + }, + "end": { + "line": 21, + "column": 27 + } + }, + "expression": { + "type": "CallExpression", + "start": 733, + "end": 747, + "loc": { + "start": { + "line": 21, + "column": 12 + }, + "end": { + "line": 21, + "column": 26 + } + }, + "callee": { + "type": "MemberExpression", + "start": 733, + "end": 744, + "loc": { + "start": { + "line": 21, + "column": 12 + }, + "end": { + "line": 21, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 733, + "end": 740, + "loc": { + "start": { + "line": 21, + "column": 12 + }, + "end": { + "line": 21, + "column": 19 + }, + "identifierName": "console" + }, + "name": "console" + }, + "property": { + "type": "Identifier", + "start": 741, + "end": 744, + "loc": { + "start": { + "line": 21, + "column": 20 + }, + "end": { + "line": 21, + "column": 23 + }, + "identifierName": "log" + }, + "name": "log" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 745, + "end": 746, + "loc": { + "start": { + "line": 21, + "column": 24 + }, + "end": { + "line": 21, + "column": 25 + }, + "identifierName": "e" + }, + "name": "e" + } + ] + } + }, + { + "type": "ThrowStatement", + "start": 761, + "end": 783, + "loc": { + "start": { + "line": 22, + "column": 12 + }, + "end": { + "line": 22, + "column": 34 + } + }, + "argument": { + "type": "NewExpression", + "start": 767, + "end": 782, + "loc": { + "start": { + "line": 22, + "column": 18 + }, + "end": { + "line": 22, + "column": 33 + } + }, + "callee": { + "type": "Identifier", + "start": 771, + "end": 780, + "loc": { + "start": { + "line": 22, + "column": 22 + }, + "end": { + "line": 22, + "column": 31 + }, + "identifierName": "SignError" + }, + "name": "SignError" + }, + "arguments": [] + } + } + ], + "directives": [] + } + }, + "guardedHandlers": [], + "finalizer": null + } + ], + "directives": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Sign a given Deploy Object with the corresponding key.\n *\n * @param {DeployUtil.Deploy} deploy - Deploy object\n * @param {Object} options - Options object. Must contains the AsymmetricKey object in the key property\n * @returns {Promise} - Signed deploy object\n ", + "start": 257, + "end": 570, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 16, + "column": 7 + } + } + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * LocalSigner class\n * Used to sign a deployment with local keys\n ", + "start": 129, + "end": 202, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * LocalSigner class\n * Used to sign a deployment with local keys\n ", + "start": 129, + "end": 202, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + } + } + ] + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\n * LocalSigner class\n * Used to sign a deployment with local keys\n ", + "start": 129, + "end": 202, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Sign a given Deploy Object with the corresponding key.\n *\n * @param {DeployUtil.Deploy} deploy - Deploy object\n * @param {Object} options - Options object. Must contains the AsymmetricKey object in the key property\n * @returns {Promise} - Signed deploy object\n ", + "start": 257, + "end": 570, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 16, + "column": 7 + } + } + } + ], + "tokens": [ + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 0, + "end": 6, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7, + "end": 8, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "DeployUtil", + "start": 8, + "end": 18, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 18 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 18, + "end": 19, + "loc": { + "start": { + "line": 1, + "column": 18 + }, + "end": { + "line": 1, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 20, + "end": 24, + "loc": { + "start": { + "line": 1, + "column": 20 + }, + "end": { + "line": 1, + "column": 24 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "casper-js-sdk", + "start": 25, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 25 + }, + "end": { + "line": 1, + "column": 40 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 40, + "end": 41, + "loc": { + "start": { + "line": 1, + "column": 40 + }, + "end": { + "line": 1, + "column": 41 + } + } + }, + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 42, + "end": 48, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 49, + "end": 50, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "SignError", + "start": 50, + "end": 59, + "loc": { + "start": { + "line": 2, + "column": 8 + }, + "end": { + "line": 2, + "column": 17 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 59, + "end": 60, + "loc": { + "start": { + "line": 2, + "column": 17 + }, + "end": { + "line": 2, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 61, + "end": 65, + "loc": { + "start": { + "line": 2, + "column": 19 + }, + "end": { + "line": 2, + "column": 23 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "../errors", + "start": 66, + "end": 77, + "loc": { + "start": { + "line": 2, + "column": 24 + }, + "end": { + "line": 2, + "column": 35 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 77, + "end": 78, + "loc": { + "start": { + "line": 2, + "column": 35 + }, + "end": { + "line": 2, + "column": 36 + } + } + }, + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 79, + "end": 85, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 86, + "end": 87, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "AbstractSigner", + "start": 87, + "end": 101, + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 3, + "column": 22 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 101, + "end": 102, + "loc": { + "start": { + "line": 3, + "column": 22 + }, + "end": { + "line": 3, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 103, + "end": 107, + "loc": { + "start": { + "line": 3, + "column": 24 + }, + "end": { + "line": 3, + "column": 28 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./abstractSigner", + "start": 108, + "end": 126, + "loc": { + "start": { + "line": 3, + "column": 29 + }, + "end": { + "line": 3, + "column": 47 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 126, + "end": 127, + "loc": { + "start": { + "line": 3, + "column": 47 + }, + "end": { + "line": 3, + "column": 48 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * LocalSigner class\n * Used to sign a deployment with local keys\n ", + "start": 129, + "end": 202, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 203, + "end": 209, + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 6 + } + } + }, + { + "type": { + "label": "class", + "keyword": "class", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "class", + "start": 210, + "end": 215, + "loc": { + "start": { + "line": 9, + "column": 7 + }, + "end": { + "line": 9, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "LocalSigner", + "start": 216, + "end": 227, + "loc": { + "start": { + "line": 9, + "column": 13 + }, + "end": { + "line": 9, + "column": 24 + } + } + }, + { + "type": { + "label": "extends", + "keyword": "extends", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "extends", + "start": 228, + "end": 235, + "loc": { + "start": { + "line": 9, + "column": 25 + }, + "end": { + "line": 9, + "column": 32 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "AbstractSigner", + "start": 236, + "end": 250, + "loc": { + "start": { + "line": 9, + "column": 33 + }, + "end": { + "line": 9, + "column": 47 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 251, + "end": 252, + "loc": { + "start": { + "line": 9, + "column": 48 + }, + "end": { + "line": 9, + "column": 49 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Sign a given Deploy Object with the corresponding key.\n *\n * @param {DeployUtil.Deploy} deploy - Deploy object\n * @param {Object} options - Options object. Must contains the AsymmetricKey object in the key property\n * @returns {Promise} - Signed deploy object\n ", + "start": 257, + "end": 570, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 16, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "static", + "start": 575, + "end": 581, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 10 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "async", + "start": 582, + "end": 587, + "loc": { + "start": { + "line": 17, + "column": 11 + }, + "end": { + "line": 17, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "sign", + "start": 588, + "end": 592, + "loc": { + "start": { + "line": 17, + "column": 17 + }, + "end": { + "line": 17, + "column": 21 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 592, + "end": 593, + "loc": { + "start": { + "line": 17, + "column": 21 + }, + "end": { + "line": 17, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "deploy", + "start": 593, + "end": 599, + "loc": { + "start": { + "line": 17, + "column": 22 + }, + "end": { + "line": 17, + "column": 28 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 599, + "end": 600, + "loc": { + "start": { + "line": 17, + "column": 28 + }, + "end": { + "line": 17, + "column": 29 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 601, + "end": 608, + "loc": { + "start": { + "line": 17, + "column": 30 + }, + "end": { + "line": 17, + "column": 37 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 609, + "end": 610, + "loc": { + "start": { + "line": 17, + "column": 38 + }, + "end": { + "line": 17, + "column": 39 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 611, + "end": 612, + "loc": { + "start": { + "line": 17, + "column": 40 + }, + "end": { + "line": 17, + "column": 41 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 612, + "end": 613, + "loc": { + "start": { + "line": 17, + "column": 41 + }, + "end": { + "line": 17, + "column": 42 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 613, + "end": 614, + "loc": { + "start": { + "line": 17, + "column": 42 + }, + "end": { + "line": 17, + "column": 43 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 615, + "end": 616, + "loc": { + "start": { + "line": 17, + "column": 44 + }, + "end": { + "line": 17, + "column": 45 + } + } + }, + { + "type": { + "label": "try", + "keyword": "try", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "try", + "start": 625, + "end": 628, + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 11 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 629, + "end": 630, + "loc": { + "start": { + "line": 18, + "column": 12 + }, + "end": { + "line": 18, + "column": 13 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 643, + "end": 649, + "loc": { + "start": { + "line": 19, + "column": 12 + }, + "end": { + "line": 19, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "await", + "start": 650, + "end": 655, + "loc": { + "start": { + "line": 19, + "column": 19 + }, + "end": { + "line": 19, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "DeployUtil", + "start": 656, + "end": 666, + "loc": { + "start": { + "line": 19, + "column": 25 + }, + "end": { + "line": 19, + "column": 35 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 666, + "end": 667, + "loc": { + "start": { + "line": 19, + "column": 35 + }, + "end": { + "line": 19, + "column": 36 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "signDeploy", + "start": 667, + "end": 677, + "loc": { + "start": { + "line": 19, + "column": 36 + }, + "end": { + "line": 19, + "column": 46 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 677, + "end": 678, + "loc": { + "start": { + "line": 19, + "column": 46 + }, + "end": { + "line": 19, + "column": 47 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "deploy", + "start": 678, + "end": 684, + "loc": { + "start": { + "line": 19, + "column": 47 + }, + "end": { + "line": 19, + "column": 53 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 684, + "end": 685, + "loc": { + "start": { + "line": 19, + "column": 53 + }, + "end": { + "line": 19, + "column": 54 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 686, + "end": 693, + "loc": { + "start": { + "line": 19, + "column": 55 + }, + "end": { + "line": 19, + "column": 62 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 693, + "end": 694, + "loc": { + "start": { + "line": 19, + "column": 62 + }, + "end": { + "line": 19, + "column": 63 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "key", + "start": 694, + "end": 697, + "loc": { + "start": { + "line": 19, + "column": 63 + }, + "end": { + "line": 19, + "column": 66 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 697, + "end": 698, + "loc": { + "start": { + "line": 19, + "column": 66 + }, + "end": { + "line": 19, + "column": 67 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 707, + "end": 708, + "loc": { + "start": { + "line": 20, + "column": 8 + }, + "end": { + "line": 20, + "column": 9 + } + } + }, + { + "type": { + "label": "catch", + "keyword": "catch", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "catch", + "start": 709, + "end": 714, + "loc": { + "start": { + "line": 20, + "column": 10 + }, + "end": { + "line": 20, + "column": 15 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 715, + "end": 716, + "loc": { + "start": { + "line": 20, + "column": 16 + }, + "end": { + "line": 20, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "e", + "start": 716, + "end": 717, + "loc": { + "start": { + "line": 20, + "column": 17 + }, + "end": { + "line": 20, + "column": 18 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 717, + "end": 718, + "loc": { + "start": { + "line": 20, + "column": 18 + }, + "end": { + "line": 20, + "column": 19 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 719, + "end": 720, + "loc": { + "start": { + "line": 20, + "column": 20 + }, + "end": { + "line": 20, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "console", + "start": 733, + "end": 740, + "loc": { + "start": { + "line": 21, + "column": 12 + }, + "end": { + "line": 21, + "column": 19 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 740, + "end": 741, + "loc": { + "start": { + "line": 21, + "column": 19 + }, + "end": { + "line": 21, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "log", + "start": 741, + "end": 744, + "loc": { + "start": { + "line": 21, + "column": 20 + }, + "end": { + "line": 21, + "column": 23 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 744, + "end": 745, + "loc": { + "start": { + "line": 21, + "column": 23 + }, + "end": { + "line": 21, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "e", + "start": 745, + "end": 746, + "loc": { + "start": { + "line": 21, + "column": 24 + }, + "end": { + "line": 21, + "column": 25 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 746, + "end": 747, + "loc": { + "start": { + "line": 21, + "column": 25 + }, + "end": { + "line": 21, + "column": 26 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 747, + "end": 748, + "loc": { + "start": { + "line": 21, + "column": 26 + }, + "end": { + "line": 21, + "column": 27 + } + } + }, + { + "type": { + "label": "throw", + "keyword": "throw", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "throw", + "start": 761, + "end": 766, + "loc": { + "start": { + "line": 22, + "column": 12 + }, + "end": { + "line": 22, + "column": 17 + } + } + }, + { + "type": { + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "new", + "start": 767, + "end": 770, + "loc": { + "start": { + "line": 22, + "column": 18 + }, + "end": { + "line": 22, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "SignError", + "start": 771, + "end": 780, + "loc": { + "start": { + "line": 22, + "column": 22 + }, + "end": { + "line": 22, + "column": 31 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 780, + "end": 781, + "loc": { + "start": { + "line": 22, + "column": 31 + }, + "end": { + "line": 22, + "column": 32 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 781, + "end": 782, + "loc": { + "start": { + "line": 22, + "column": 32 + }, + "end": { + "line": 22, + "column": 33 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 782, + "end": 783, + "loc": { + "start": { + "line": 22, + "column": 33 + }, + "end": { + "line": 22, + "column": 34 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 792, + "end": 793, + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 9 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 798, + "end": 799, + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 5 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 800, + "end": 801, + "loc": { + "start": { + "line": 25, + "column": 0 + }, + "end": { + "line": 25, + "column": 1 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 801, + "end": 801, + "loc": { + "start": { + "line": 25, + "column": 1 + }, + "end": { + "line": 25, + "column": 1 + } + } + } + ] +} \ No newline at end of file diff --git a/badge.svg b/badge.svg new file mode 100644 index 0000000..1117afa --- /dev/null +++ b/badge.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + document + document + 100% + 100% + + diff --git a/class/src/services/balance/balance.js~Balance.html b/class/src/services/balance/balance.js~Balance.html new file mode 100644 index 0000000..e8348ee --- /dev/null +++ b/class/src/services/balance/balance.js~Balance.html @@ -0,0 +1,736 @@ + + + + + + Balance | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

Balance

+ + + + + + + + + + + + + + + +

Balance class +Service used to retrieve different balances from the Casper network

+
+ + + + + + + + + +
+ + + +

Constructor Summary

+ + + + + + + + + +
Public Constructor
+ public + + + + + +
+

+ + + + constructor(keyManager: AbstractKeyManager, client: ClientCasper, validator: string) +

+
+
+ + +

Constructor

+
+
+
+ + +
+
+

Member Summary

+ + + + + + + + + + + + + + + + + + + +
Public Members
+ public + + + + + +
+

+ + + + client: ClientCasper +

+
+
+ + + +
+
+ + +
+ public + + + + + + +
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + validator: string +

+
+
+ + + +
+
+ + +
+
+

Method Summary

+ + + + + + + + + + + + + + + + + + + +
Public Methods
+ public + + + + + +
+

+ + async + + fetchBalance(): Promise<number> +

+
+
+ + +

Retrieve current user balance from the network.

+
+
+
+ + +
+ public + + + + + +
+

+ + async + + fetchStakeBalance(): Promise<number> +

+
+
+ + +

Retrieve current user stake balance from the network.

+
+
+
+ + +
+ public + + + + + +
+

+ + async + + fetchValidatorBalance(): Promise<number> +

+
+
+ + +

Retrieve current validator balance from the network.

+
+
+
+ + +
+
+ + + + + +

Public Constructors

+ +
+

+ public + + + + + + constructor(keyManager: AbstractKeyManager, client: ClientCasper, validator: string) + + + + source + +

+ + + + +

Constructor

+
+ + + +
+

Params:

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributeDescription
keyManagerAbstractKeyManager

Instance of a KeyManager

+
clientClientCasper

Instance of CasperClient

+
validatorstring

Hash of the main validator

+
+
+
+ + + + + + + + + + + + + + + + + +
+
+

Public Members

+ +
+

+ public + + + + + + client: ClientCasper + + + + source + +

+ + + + + + + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + keyManager: AbstractKeyManager + + + + source + +

+ + + + + + + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + validator: string + + + + source + +

+ + + + + + + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

Public Methods

+ +
+

+ public + + + + async + + fetchBalance(): Promise<number> + + + + source + +

+ + + + +

Retrieve current user balance from the network.

+
+ + + +
+
+ +
+

Return:

+ + + + + + + +
Promise<number>

Current balance of the user

+
+
+
+
+ + + + + + + + + + + + + + + +
+
+

+ public + + + + async + + fetchStakeBalance(): Promise<number> + + + + source + +

+ + + + +

Retrieve current user stake balance from the network.

+
+ + + +
+
+ +
+

Return:

+ + + + + + + +
Promise<number>

Current stake balance of the user

+
+
+
+
+ + + + + + + + + + + + + + + +
+
+

+ public + + + + async + + fetchValidatorBalance(): Promise<number> + + + + source + +

+ + + + +

Retrieve current validator balance from the network.

+
+ + + +
+
+ +
+

Return:

+ + + + + + + +
Promise<number>

Current balance of the validator

+
+
+
+
+ + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + + + diff --git a/class/src/services/clients/clientCasper.js~ClientCasper.html b/class/src/services/clients/clientCasper.js~ClientCasper.html new file mode 100644 index 0000000..b48f92f --- /dev/null +++ b/class/src/services/clients/clientCasper.js~ClientCasper.html @@ -0,0 +1,385 @@ + + + + + + ClientCasper | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

ClientCasper

+ + + + + + + + + + + + + + + +

ClientCasper class +Contains the casper client and the casper rpc client

+
+ + + + + + + + + +
+ + + +

Constructor Summary

+ + + + + + + + + +
Public Constructor
+ public + + + + + +
+

+ + + + constructor(rpc: string) +

+
+
+ + +

Constructor

+
+
+
+ + +
+
+

Member Summary

+ + + + + + + + + + + + + + +
Public Members
+ public + + + + + +
+

+ + + + casperClient: CasperClient +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + casperRPC: CasperServiceByJsonRPC +

+
+
+ + + +
+
+ + +
+
+ + + + + + +

Public Constructors

+ +
+

+ public + + + + + + constructor(rpc: string) + + + + source + +

+ + + + +

Constructor

+
+ + + +
+

Params:

+ + + + + + + + + + + + + +
NameTypeAttributeDescription
rpcstring

Url of the node rpc endpoint

+
+
+
+ + + + + + + + + + + + + + + + + +
+
+

Public Members

+ +
+

+ public + + + + + + casperClient: CasperClient + + + + source + +

+ + + + + + + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + casperRPC: CasperServiceByJsonRPC + + + + source + +

+ + + + + + + + +
+
+ + + + + + + + + + + + + + + + + +
+
+ +
+ + + + + + + + + + + + diff --git a/class/src/services/deploys/abstractSmartContractDeployParameters.js~AbstractSmartContractDeployParameters.html b/class/src/services/deploys/abstractSmartContractDeployParameters.js~AbstractSmartContractDeployParameters.html new file mode 100644 index 0000000..198a403 --- /dev/null +++ b/class/src/services/deploys/abstractSmartContractDeployParameters.js~AbstractSmartContractDeployParameters.html @@ -0,0 +1,575 @@ + + + + + + AbstractSmartContractDeployParameters | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +
+
import {AbstractSmartContractDeployParameters} from 'casperholderslib/src/services/deploys/abstractSmartContractDeployParameters.js'
+ public + class + + + + | source +
+ +
+

AbstractSmartContractDeployParameters

+ + + + + + + +

Indirect Subclass:

+ + + + + + + +

AbstractSmartContractDeployParameters class +Abstract class used to define specifics DeployParameters

+
+ + + + + + + + + +
+ + + + +

Member Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Members
+ public + + get + + + +
+

+ + + + deployParams: DeployUtil.DeployParams +

+
+
+ + +

Get the deployParams deploy argument

+
+
+
+ + +
+ public + + get + + + +
+

+ + + + deployResult: constructor +

+
+
+ + +

Get a DeployResult constructor

+
+
+
+ + +
+ public + + get + + + +
+

+ + + + makeDeploy: Deploy: * +

+
+
+ + +

Create a unsigned Deploy object

+
+
+
+ + +
+ public + + get + + + +
+

+ + + + payment: DeployUtil.ExecutableDeployItem +

+
+
+ + +

Get the payment deploy argument

+
+
+
+ + +
+ public + + get + + + +
+

+ + + + session: DeployUtil.ExecutableDeployItem +

+
+
+ + +

Get the session deploy argument

+
+
+
+ + +
+
+ + + + + + + +

Public Members

+ +
+

+ public + + get + + + + deployParams: DeployUtil.DeployParams + + + + source + +

+ + + + +

Get the deployParams deploy argument

+
+ + + +
+
+ +
+

Return:

+ + + + + + + +
DeployUtil.DeployParams

Return a DeployParams

+
+
+
+
+ + + + + + + + + + + + + + + +
+
+

+ public + + get + + + + deployResult: constructor + + + + source + +

+ + + + +

Get a DeployResult constructor

+
+ + + +
+
+ +
+

Return:

+ + + + + + + +
constructor

Return the constructor of a given DeployResult

+
+
+
+
+ + + + + + + + + + + + + + + +
+
+

+ public + + get + + + + makeDeploy: Deploy: * + + + + source + +

+ + + + +

Create a unsigned Deploy object

+
+ + + +
+
+ +
+

Return:

+ + + + + + + +
Deploy

Return a deploy object

+
+
+
+
+ + + + + + + + + + + + + + + +
+
+

+ public + + get + + + + payment: DeployUtil.ExecutableDeployItem + + + + source + +

+ + + + +

Get the payment deploy argument

+
+ + + +
+
+ +
+

Return:

+ + + + + + + +
DeployUtil.ExecutableDeployItem

Return a standard payment

+
+
+
+
+ + + + + + + + + + + + + + + +
+
+

+ public + + get + + + + session: DeployUtil.ExecutableDeployItem + + + + source + +

+ + + + +

Get the session deploy argument

+
+ + + +
+
+ +
+

Return:

+ + + + + + + +
DeployUtil.ExecutableDeployItem

Return a session with a SmartContract stored by hash on the network

+
+
+
+
+ + + + + + + + + + + + + + + +
+
+ +
+ + + + + + + + + + + + diff --git a/class/src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters.html b/class/src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters.html new file mode 100644 index 0000000..5cc0d8a --- /dev/null +++ b/class/src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters.html @@ -0,0 +1,1113 @@ + + + + + + AbstractSmartContractStoredByHashDeployParameters | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +
+
import {AbstractSmartContractStoredByHashDeployParameters} from 'casperholderslib/src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js'
+ public + class + + + + | source +
+ +
+

AbstractSmartContractStoredByHashDeployParameters

+ + + + + +

Extends:

AbstractSmartContractDeployParameters → AbstractSmartContractStoredByHashDeployParameters
+ + + + + + + + + +

AbstractSmartContractStoredByHashDeployParameters class +Abstract class used to defined specific DeployParameters for SmartContracts stored by hash on the network

+
+ + + + + + + + + +
+ + + +

Constructor Summary

+ + + + + + + + + +
Public Constructor
+ public + + + + + +
+

+ + + + constructor(activeKey: string, network: string, hash: string, entrypoint: string, args: DeployUtil.RuntimeArgs, fee: number) +

+
+
+ + +

Constructor

+
+
+
+ + +
+
+

Member Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Members
+ public + + + + + +
+

+ + + + activeKey: string +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + args: DeployUtil.RuntimeArgs +

+
+
+ + + +
+
+ + +
+ public + + get + + + +
+

+ + + + deployParams: DeployUtil.DeployParams: * +

+
+
+ + +

Get the deployParams deploy argument

+
+
+
+ + +
+ public + + + + + +
+

+ + + + entrypoint: string +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + fee: number +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + hash: string +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + network: string +

+
+
+ + + +
+
+ + +
+ public + + get + + + +
+

+ + + + payment: DeployUtil.ExecutableDeployItem: * +

+
+
+ + +

Get the payment deploy argument

+
+
+
+ + +
+ public + + get + + + +
+

+ + + + session: DeployUtil.ExecutableDeployItem: * +

+
+
+ + +

Get the session deploy argument

+
+
+
+ + +
+
+ + +

Inherited Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
From class AbstractSmartContractDeployParameters
+ public + + get + + + +
+

+ + + + deployParams: DeployUtil.DeployParams +

+
+
+ + +

Get the deployParams deploy argument

+
+
+
+ + +
+ public + + get + + + +
+

+ + + + deployResult: constructor +

+
+
+ + +

Get a DeployResult constructor

+
+
+
+ + +
+ public + + get + + + +
+

+ + + + makeDeploy: Deploy: * +

+
+
+ + +

Create a unsigned Deploy object

+
+
+
+ + +
+ public + + get + + + +
+

+ + + + payment: DeployUtil.ExecutableDeployItem +

+
+
+ + +

Get the payment deploy argument

+
+
+
+ + +
+ public + + get + + + +
+

+ + + + session: DeployUtil.ExecutableDeployItem +

+
+
+ + +

Get the session deploy argument

+
+
+
+ + +
+
+ + + +

Public Constructors

+ +
+

+ public + + + + + + constructor(activeKey: string, network: string, hash: string, entrypoint: string, args: DeployUtil.RuntimeArgs, fee: number) + + + + source + +

+ + + + +

Constructor

+
+ + + +
+

Params:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributeDescription
activeKeystring

Current active key in the public hex format

+
networkstring

Current network to execute the deployment

+
hashstring

Current hash of the stored SmartContract

+
entrypointstring

Entrypoint of the SmartContract

+
argsDeployUtil.RuntimeArgs

Arguments of the SmartContract

+
feenumber

Runtime fee for the given SmartContract operation

+
+
+
+ + + + + + + + + + + + + + + + + +
+
+

Public Members

+ +
+

+ public + + + + + + activeKey: string + + + + source + +

+ + + + + + + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + args: DeployUtil.RuntimeArgs + + + + source + +

+ + + + + + + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + get + + + + deployParams: DeployUtil.DeployParams: * + + + + source + +

+ + + + +

Get the deployParams deploy argument

+
+ + + +
+
+ +
+

Return:

+ + + + + + + +
DeployUtil.DeployParams

Return a DeployParams

+
+
+
+
+ + + + + + + + + + + + + + + +
+
+

+ public + + + + + + entrypoint: string + + + + source + +

+ + + + + + + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + fee: number + + + + source + +

+ + + + + + + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + hash: string + + + + source + +

+ + + + + + + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + network: string + + + + source + +

+ + + + + + + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + get + + + + payment: DeployUtil.ExecutableDeployItem: * + + + + source + +

+ + + + +

Get the payment deploy argument

+
+ + + +
+
+ +
+

Return:

+ + + + + + + +
DeployUtil.ExecutableDeployItem

Return a standard payment

+
+
+
+
+ + + + + + + + + + + + + + + +
+
+

+ public + + get + + + + session: DeployUtil.ExecutableDeployItem: * + + + + source + +

+ + + + +

Get the session deploy argument

+
+ + + +
+
+ +
+

Return:

+ + + + + + + +
DeployUtil.ExecutableDeployItem

Return a session with a SmartContract stored by hash on the network

+
+
+
+
+ + + + + + + + + + + + + + + +
+
+ +
+ + + + + + + + + + + + diff --git a/class/src/services/deploys/auction/actions/addBid.js~AddBid.html b/class/src/services/deploys/auction/actions/addBid.js~AddBid.html new file mode 100644 index 0000000..9ceb5b6 --- /dev/null +++ b/class/src/services/deploys/auction/actions/addBid.js~AddBid.html @@ -0,0 +1,770 @@ + + + + + + AddBid | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

AddBid

+ + + + + + + + + + + + + + + +

AddBid class +Class used to create DeployParameters for a AddBid operation

+
+ + + + + + + + + +
+ + + +

Constructor Summary

+ + + + + + + + + +
Public Constructor
+ public + + + + + +
+

+ + + + constructor(amount: number, activeKey: string, commission: number, network: string, hash: string) +

+
+
+ + +

Constructor

+
+
+
+ + +
+
+

Member Summary

+ + + + + + + + + +
Public Members
+ public + + get + + + +
+

+ + + + deployResult: constructor: * +

+
+
+ + +

Get a DeployResult constructor

+
+
+
+ + +
+
+ + +

Inherited Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
From class AbstractSmartContractDeployParameters
+ public + + get + + + +
+

+ + + + deployParams: DeployUtil.DeployParams +

+
+
+ + +

Get the deployParams deploy argument

+
+
+
+ + +
+ public + + get + + + +
+

+ + + + deployResult: constructor +

+
+
+ + +

Get a DeployResult constructor

+
+
+
+ + +
+ public + + get + + + +
+

+ + + + makeDeploy: Deploy: * +

+
+
+ + +

Create a unsigned Deploy object

+
+
+
+ + +
+ public + + get + + + +
+

+ + + + payment: DeployUtil.ExecutableDeployItem +

+
+
+ + +

Get the payment deploy argument

+
+
+
+ + +
+ public + + get + + + +
+

+ + + + session: DeployUtil.ExecutableDeployItem +

+
+
+ + +

Get the session deploy argument

+
+
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
From class AbstractSmartContractStoredByHashDeployParameters
+ public + + get + + + +
+

+ + + + deployParams: DeployUtil.DeployParams: * +

+
+
+ + +

Get the deployParams deploy argument

+
+
+
+ + +
+ public + + get + + + +
+

+ + + + payment: DeployUtil.ExecutableDeployItem: * +

+
+
+ + +

Get the payment deploy argument

+
+
+
+ + +
+ public + + get + + + +
+

+ + + + session: DeployUtil.ExecutableDeployItem: * +

+
+
+ + +

Get the session deploy argument

+
+
+
+ + +
+ public + + + + + +
+

+ + + + activeKey: string +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + args: DeployUtil.RuntimeArgs +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + entrypoint: string +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + fee: number +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + hash: string +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + network: string +

+
+
+ + + +
+
+ + +
+
+ + + +

Public Constructors

+ +
+

+ public + + + + + + constructor(amount: number, activeKey: string, commission: number, network: string, hash: string) + + + + source + +

+ + + + +

Constructor

+
+ + + +
+

Params:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributeDescription
amountnumber

Amount of casper to add to the bid

+
activeKeystring

Current active key in the public hex format

+
commissionnumber

Set the commission of the validator to the given percentage

+
networkstring

Current network to execute the deployment

+
hashstring

Current hash of the stored SmartContract

+
+
+
+ + + + + + + + + + + + + + + + + +
+
+

Public Members

+ +
+

+ public + + get + + + + deployResult: constructor: * + + + + source + +

+ + + + +

Get a DeployResult constructor

+
+ + + +
+
+ +
+

Return:

+ + + + + + + +
constructor

Return the constructor of a given DeployResult

+
+
+
+
+ + + + + + + + + + + + + + + +
+
+ +
+ + + + + + + + + + + + diff --git a/class/src/services/deploys/auction/actions/delegate.js~Delegate.html b/class/src/services/deploys/auction/actions/delegate.js~Delegate.html new file mode 100644 index 0000000..c73c540 --- /dev/null +++ b/class/src/services/deploys/auction/actions/delegate.js~Delegate.html @@ -0,0 +1,770 @@ + + + + + + Delegate | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

Delegate

+ + + + + + + + + + + + + + + +

Delegate class +Class used to create DeployParameters for a Delegate operation

+
+ + + + + + + + + +
+ + + +

Constructor Summary

+ + + + + + + + + +
Public Constructor
+ public + + + + + +
+

+ + + + constructor(amount: number, activeKey: string, validator: string, network: string, hash: string) +

+
+
+ + +

Constructor

+
+
+
+ + +
+
+

Member Summary

+ + + + + + + + + +
Public Members
+ public + + get + + + +
+

+ + + + deployResult: constructor: * +

+
+
+ + +

Get a DeployResult constructor

+
+
+
+ + +
+
+ + +

Inherited Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
From class AbstractSmartContractDeployParameters
+ public + + get + + + +
+

+ + + + deployParams: DeployUtil.DeployParams +

+
+
+ + +

Get the deployParams deploy argument

+
+
+
+ + +
+ public + + get + + + +
+

+ + + + deployResult: constructor +

+
+
+ + +

Get a DeployResult constructor

+
+
+
+ + +
+ public + + get + + + +
+

+ + + + makeDeploy: Deploy: * +

+
+
+ + +

Create a unsigned Deploy object

+
+
+
+ + +
+ public + + get + + + +
+

+ + + + payment: DeployUtil.ExecutableDeployItem +

+
+
+ + +

Get the payment deploy argument

+
+
+
+ + +
+ public + + get + + + +
+

+ + + + session: DeployUtil.ExecutableDeployItem +

+
+
+ + +

Get the session deploy argument

+
+
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
From class AbstractSmartContractStoredByHashDeployParameters
+ public + + get + + + +
+

+ + + + deployParams: DeployUtil.DeployParams: * +

+
+
+ + +

Get the deployParams deploy argument

+
+
+
+ + +
+ public + + get + + + +
+

+ + + + payment: DeployUtil.ExecutableDeployItem: * +

+
+
+ + +

Get the payment deploy argument

+
+
+
+ + +
+ public + + get + + + +
+

+ + + + session: DeployUtil.ExecutableDeployItem: * +

+
+
+ + +

Get the session deploy argument

+
+
+
+ + +
+ public + + + + + +
+

+ + + + activeKey: string +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + args: DeployUtil.RuntimeArgs +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + entrypoint: string +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + fee: number +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + hash: string +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + network: string +

+
+
+ + + +
+
+ + +
+
+ + + +

Public Constructors

+ +
+

+ public + + + + + + constructor(amount: number, activeKey: string, validator: string, network: string, hash: string) + + + + source + +

+ + + + +

Constructor

+
+ + + +
+

Params:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributeDescription
amountnumber

Amount of casper to add to delegate

+
activeKeystring

Current active key in the public hex format

+
validatorstring

Public key in the hex format of the validator

+
networkstring

Current network to execute the deployment

+
hashstring

Current hash of the stored SmartContract

+
+
+
+ + + + + + + + + + + + + + + + + +
+
+

Public Members

+ +
+

+ public + + get + + + + deployResult: constructor: * + + + + source + +

+ + + + +

Get a DeployResult constructor

+
+ + + +
+
+ +
+

Return:

+ + + + + + + +
constructor

Return the constructor of a given DeployResult

+
+
+
+
+ + + + + + + + + + + + + + + +
+
+ +
+ + + + + + + + + + + + diff --git a/class/src/services/deploys/auction/actions/undelegate.js~Undelegate.html b/class/src/services/deploys/auction/actions/undelegate.js~Undelegate.html new file mode 100644 index 0000000..21f365c --- /dev/null +++ b/class/src/services/deploys/auction/actions/undelegate.js~Undelegate.html @@ -0,0 +1,770 @@ + + + + + + Undelegate | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

Undelegate

+ + + + + + + + + + + + + + + +

Undelegate class +Class used to create DeployParameters for a Undelegate operation

+
+ + + + + + + + + +
+ + + +

Constructor Summary

+ + + + + + + + + +
Public Constructor
+ public + + + + + +
+

+ + + + constructor(amount: number, activeKey: string, validator: string, network: string, hash: string) +

+
+
+ + +

Constructor

+
+
+
+ + +
+
+

Member Summary

+ + + + + + + + + +
Public Members
+ public + + get + + + +
+

+ + + + deployResult: constructor: * +

+
+
+ + +

Get a DeployResult constructor

+
+
+
+ + +
+
+ + +

Inherited Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
From class AbstractSmartContractDeployParameters
+ public + + get + + + +
+

+ + + + deployParams: DeployUtil.DeployParams +

+
+
+ + +

Get the deployParams deploy argument

+
+
+
+ + +
+ public + + get + + + +
+

+ + + + deployResult: constructor +

+
+
+ + +

Get a DeployResult constructor

+
+
+
+ + +
+ public + + get + + + +
+

+ + + + makeDeploy: Deploy: * +

+
+
+ + +

Create a unsigned Deploy object

+
+
+
+ + +
+ public + + get + + + +
+

+ + + + payment: DeployUtil.ExecutableDeployItem +

+
+
+ + +

Get the payment deploy argument

+
+
+
+ + +
+ public + + get + + + +
+

+ + + + session: DeployUtil.ExecutableDeployItem +

+
+
+ + +

Get the session deploy argument

+
+
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
From class AbstractSmartContractStoredByHashDeployParameters
+ public + + get + + + +
+

+ + + + deployParams: DeployUtil.DeployParams: * +

+
+
+ + +

Get the deployParams deploy argument

+
+
+
+ + +
+ public + + get + + + +
+

+ + + + payment: DeployUtil.ExecutableDeployItem: * +

+
+
+ + +

Get the payment deploy argument

+
+
+
+ + +
+ public + + get + + + +
+

+ + + + session: DeployUtil.ExecutableDeployItem: * +

+
+
+ + +

Get the session deploy argument

+
+
+
+ + +
+ public + + + + + +
+

+ + + + activeKey: string +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + args: DeployUtil.RuntimeArgs +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + entrypoint: string +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + fee: number +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + hash: string +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + network: string +

+
+
+ + + +
+
+ + +
+
+ + + +

Public Constructors

+ +
+

+ public + + + + + + constructor(amount: number, activeKey: string, validator: string, network: string, hash: string) + + + + source + +

+ + + + +

Constructor

+
+ + + +
+

Params:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributeDescription
amountnumber

Amount of casper to add to undelegate

+
activeKeystring

Current active key in the public hex format

+
validatorstring

Public key in the hex format of the validator

+
networkstring

Current network to execute the deployment

+
hashstring

Current hash of the stored SmartContract

+
+
+
+ + + + + + + + + + + + + + + + + +
+
+

Public Members

+ +
+

+ public + + get + + + + deployResult: constructor: * + + + + source + +

+ + + + +

Get a DeployResult constructor

+
+ + + +
+
+ +
+

Return:

+ + + + + + + +
constructor

Return the constructor of a given DeployResult

+
+
+
+
+ + + + + + + + + + + + + + + +
+
+ +
+ + + + + + + + + + + + diff --git a/class/src/services/deploys/auction/actions/withdrawBid.js~WithdrawBid.html b/class/src/services/deploys/auction/actions/withdrawBid.js~WithdrawBid.html new file mode 100644 index 0000000..a6240c6 --- /dev/null +++ b/class/src/services/deploys/auction/actions/withdrawBid.js~WithdrawBid.html @@ -0,0 +1,763 @@ + + + + + + WithdrawBid | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

WithdrawBid

+ + + + + + + + + + + + + + + +

WithdrawBid +Class used to create DeployParameters for a WithdrawBid operation

+
+ + + + + + + + + +
+ + + +

Constructor Summary

+ + + + + + + + + +
Public Constructor
+ public + + + + + +
+

+ + + + constructor(amount: number, activeKey: string, network: string, hash: string) +

+
+
+ + +

Constructor

+
+
+
+ + +
+
+

Member Summary

+ + + + + + + + + +
Public Members
+ public + + get + + + +
+

+ + + + deployResult: constructor: * +

+
+
+ + +

Get a DeployResult constructor

+
+
+
+ + +
+
+ + +

Inherited Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
From class AbstractSmartContractDeployParameters
+ public + + get + + + +
+

+ + + + deployParams: DeployUtil.DeployParams +

+
+
+ + +

Get the deployParams deploy argument

+
+
+
+ + +
+ public + + get + + + +
+

+ + + + deployResult: constructor +

+
+
+ + +

Get a DeployResult constructor

+
+
+
+ + +
+ public + + get + + + +
+

+ + + + makeDeploy: Deploy: * +

+
+
+ + +

Create a unsigned Deploy object

+
+
+
+ + +
+ public + + get + + + +
+

+ + + + payment: DeployUtil.ExecutableDeployItem +

+
+
+ + +

Get the payment deploy argument

+
+
+
+ + +
+ public + + get + + + +
+

+ + + + session: DeployUtil.ExecutableDeployItem +

+
+
+ + +

Get the session deploy argument

+
+
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
From class AbstractSmartContractStoredByHashDeployParameters
+ public + + get + + + +
+

+ + + + deployParams: DeployUtil.DeployParams: * +

+
+
+ + +

Get the deployParams deploy argument

+
+
+
+ + +
+ public + + get + + + +
+

+ + + + payment: DeployUtil.ExecutableDeployItem: * +

+
+
+ + +

Get the payment deploy argument

+
+
+
+ + +
+ public + + get + + + +
+

+ + + + session: DeployUtil.ExecutableDeployItem: * +

+
+
+ + +

Get the session deploy argument

+
+
+
+ + +
+ public + + + + + +
+

+ + + + activeKey: string +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + args: DeployUtil.RuntimeArgs +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + entrypoint: string +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + fee: number +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + hash: string +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + network: string +

+
+
+ + + +
+
+ + +
+
+ + + +

Public Constructors

+ +
+

+ public + + + + + + constructor(amount: number, activeKey: string, network: string, hash: string) + + + + source + +

+ + + + +

Constructor

+
+ + + +
+

Params:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributeDescription
amountnumber

Amount of casper to withdraw to the bid

+
activeKeystring

Current active key in the public hex format

+
networkstring

Current network to execute the deployment

+
hashstring

Current hash of the stored SmartContract

+
+
+
+ + + + + + + + + + + + + + + + + +
+
+

Public Members

+ +
+

+ public + + get + + + + deployResult: constructor: * + + + + source + +

+ + + + +

Get a DeployResult constructor

+
+ + + +
+
+ +
+

Return:

+ + + + + + + +
constructor

Return the constructor of a given DeployResult

+
+
+
+
+ + + + + + + + + + + + + + + +
+
+ +
+ + + + + + + + + + + + diff --git a/class/src/services/deploys/deployManager.js~DeployManager.html b/class/src/services/deploys/deployManager.js~DeployManager.html new file mode 100644 index 0000000..99122ba --- /dev/null +++ b/class/src/services/deploys/deployManager.js~DeployManager.html @@ -0,0 +1,652 @@ + + + + + + DeployManager | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

DeployManager

+ + + + + + + + + + + + + + + +

DeployManager class +Used to handle the deploy process

+
+ + + + + + + + + +
+ + + +

Constructor Summary

+ + + + + + + + + +
Public Constructor
+ public + + + + + +
+

+ + + + constructor(client: ClientCasper) +

+
+
+ + +

Constructor

+
+
+
+ + +
+
+

Member Summary

+ + + + + + + + + +
Public Members
+ public + + + + + +
+

+ + + + client: ClientCasper +

+
+
+ + + +
+
+ + +
+
+

Method Summary

+ + + + + + + + + + + + + + + + + + + +
Public Methods
+ public + + + + + +
+

+ + async + + getDeployResult(deployResult: DeployResult): Promise<DeployResult> +

+
+
+ + +

Update a DeployResult object

+
+
+
+ + +
+ public + + + + + + +
+ + +

Prepare, sign and send a deployment

+
+
+
+ + +
+ public + + + + + +
+

+ + async + + sendDeploy(deploy: Deploy, deployResult: *): Promise<DeployResult> +

+
+
+ + +

Send a deployment to the network

+
+
+
+ + +
+
+ + + + + +

Public Constructors

+ +
+

+ public + + + + + + constructor(client: ClientCasper) + + + + source + +

+ + + + +

Constructor

+
+ + + +
+

Params:

+ + + + + + + + + + + + + +
NameTypeAttributeDescription
clientClientCasper

ClientCasper object

+
+
+
+ + + + + + + + + + + + + + + + + +
+
+

Public Members

+ +
+

+ public + + + + + + client: ClientCasper + + + + source + +

+ + + + + + + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

Public Methods

+ +
+

+ public + + + + async + + getDeployResult(deployResult: DeployResult): Promise<DeployResult> + + + + source + +

+ + + + +

Update a DeployResult object

+
+ + + +
+

Params:

+ + + + + + + + + + + + + +
NameTypeAttributeDescription
deployResultDeployResult

DeployResult object

+
+
+
+ +
+

Return:

+ + + + + + + +
Promise<DeployResult>

Return an updated DeployResult object

+
+
+
+
+ + + + + + + + + + + + + + + +
+
+

+ public + + + + async + + prepareSignAndSendDeploy(deployParameter: AbstractSmartContractDeployParameters, signer: AbstractSigner, options: Object): Promise<DeployResult> + + + + source + +

+ + + + +

Prepare, sign and send a deployment

+
+ + + +
+

Params:

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributeDescription
deployParameterAbstractSmartContractDeployParameters

Instance of a DeployParameters object

+
signerAbstractSigner

Instance of a Signer object

+
optionsObject

Generic object for additional parameters

+
+
+
+ +
+

Return:

+ + + + + + + +
Promise<DeployResult>

Return a DeployResult object

+
+
+
+
+ + + + + + + + + + + + + + + +
+
+

+ public + + + + async + + sendDeploy(deploy: Deploy, deployResult: *): Promise<DeployResult> + + + + source + +

+ + + + +

Send a deployment to the network

+
+ + + +
+

Params:

+ + + + + + + + + + + + + + + + + + + +
NameTypeAttributeDescription
deployDeploy

Signed Deploy object

+
deployResult*

A DeployResult class

+
+
+
+ +
+

Return:

+ + + + + + + +
Promise<DeployResult>

Return a DeployResult object

+
+
+
+
+ + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + + + diff --git a/class/src/services/deploys/smartContract/smartContractDeployParameters.js~SmartContractDeployParameters.html b/class/src/services/deploys/smartContract/smartContractDeployParameters.js~SmartContractDeployParameters.html new file mode 100644 index 0000000..d032a4c --- /dev/null +++ b/class/src/services/deploys/smartContract/smartContractDeployParameters.js~SmartContractDeployParameters.html @@ -0,0 +1,1043 @@ + + + + + + SmartContractDeployParameters | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

SmartContractDeployParameters

+ + + + + +

Extends:

AbstractSmartContractDeployParameters → SmartContractDeployParameters
+ + + + + + + + + +

SmartContractDeployParameters class +Class used to define the parameters of a deployment to send a smart contract on the network

+
+ + + + + + + + + +
+ + + +

Constructor Summary

+ + + + + + + + + +
Public Constructor
+ public + + + + + +
+

+ + + + constructor(activeKey: string, network: string, smartContractBuffer: Buffer, fee: number) +

+
+
+ + +

Constructor

+
+
+
+ + +
+
+

Member Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Members
+ public + + + + + +
+

+ + + + activeKey: string +

+
+
+ + + +
+
+ + +
+ public + + get + + + +
+

+ + + + deployParams: DeployUtil.DeployParams: * +

+
+
+ + +

Get the deployParams deploy argument

+
+
+
+ + +
+ public + + get + + + +
+

+ + + + deployResult: constructor: * +

+
+
+ + +

Get a DeployResult constructor

+
+
+
+ + +
+ public + + + + + +
+

+ + + + fee: number +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + network: string +

+
+
+ + + +
+
+ + +
+ public + + get + + + +
+

+ + + + payment: DeployUtil.ExecutableDeployItem: * +

+
+
+ + +

Get the payment deploy argument

+
+
+
+ + +
+ public + + get + + + +
+

+ + + + session: DeployUtil.ExecutableDeployItem: * +

+
+
+ + +

Get the session deploy argument

+
+
+
+ + +
+ public + + + + + +
+

+ + + + smartContractBuffer: Buffer +

+
+
+ + + +
+
+ + +
+
+ + +

Inherited Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
From class AbstractSmartContractDeployParameters
+ public + + get + + + +
+

+ + + + deployParams: DeployUtil.DeployParams +

+
+
+ + +

Get the deployParams deploy argument

+
+
+
+ + +
+ public + + get + + + +
+

+ + + + deployResult: constructor +

+
+
+ + +

Get a DeployResult constructor

+
+
+
+ + +
+ public + + get + + + +
+

+ + + + makeDeploy: Deploy: * +

+
+
+ + +

Create a unsigned Deploy object

+
+
+
+ + +
+ public + + get + + + +
+

+ + + + payment: DeployUtil.ExecutableDeployItem +

+
+
+ + +

Get the payment deploy argument

+
+
+
+ + +
+ public + + get + + + +
+

+ + + + session: DeployUtil.ExecutableDeployItem +

+
+
+ + +

Get the session deploy argument

+
+
+
+ + +
+
+ + + +

Public Constructors

+ +
+

+ public + + + + + + constructor(activeKey: string, network: string, smartContractBuffer: Buffer, fee: number) + + + + source + +

+ + + + +

Constructor

+
+ + + +
+

Params:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributeDescription
activeKeystring

Current active key in the public hex format

+
networkstring

Current network to execute the deployment

+
smartContractBufferBuffer

Buffer of the SmartContract previously read

+
feenumber

Runtime fee for the given SmartContract operation

+
+
+
+ + + + + + + + + + + + + + + + + +
+
+

Public Members

+ +
+

+ public + + + + + + activeKey: string + + + + source + +

+ + + + + + + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + get + + + + deployParams: DeployUtil.DeployParams: * + + + + source + +

+ + + + +

Get the deployParams deploy argument

+
+ + + +
+
+ +
+

Return:

+ + + + + + + +
DeployUtil.DeployParams

Return a DeployParams

+
+
+
+
+ + + + + + + + + + + + + + + +
+
+

+ public + + get + + + + deployResult: constructor: * + + + + source + +

+ + + + +

Get a DeployResult constructor

+
+ + + +
+
+ +
+

Return:

+ + + + + + + +
constructor

Return the constructor of a given DeployResult

+
+
+
+
+ + + + + + + + + + + + + + + +
+
+

+ public + + + + + + fee: number + + + + source + +

+ + + + + + + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + network: string + + + + source + +

+ + + + + + + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + get + + + + payment: DeployUtil.ExecutableDeployItem: * + + + + source + +

+ + + + +

Get the payment deploy argument

+
+ + + +
+
+ +
+

Return:

+ + + + + + + +
DeployUtil.ExecutableDeployItem

Return a standard payment

+
+
+
+
+ + + + + + + + + + + + + + + +
+
+

+ public + + get + + + + session: DeployUtil.ExecutableDeployItem: * + + + + source + +

+ + + + +

Get the session deploy argument

+
+ + + +
+
+ +
+

Return:

+ + + + + + + +
DeployUtil.ExecutableDeployItem

Return a session with a SmartContract stored by hash on the network

+
+
+
+
+ + + + + + + + + + + + + + + +
+
+

+ public + + + + + + smartContractBuffer: Buffer + + + + source + +

+ + + + + + + + +
+
+ + + + + + + + + + + + + + + + + +
+
+ +
+ + + + + + + + + + + + diff --git a/class/src/services/deploys/transfer/TransferDeployParameters.js~TransferDeployParameters.html b/class/src/services/deploys/transfer/TransferDeployParameters.js~TransferDeployParameters.html new file mode 100644 index 0000000..9af513b --- /dev/null +++ b/class/src/services/deploys/transfer/TransferDeployParameters.js~TransferDeployParameters.html @@ -0,0 +1,1121 @@ + + + + + + TransferDeployParameters | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

TransferDeployParameters

+ + + + + +

Extends:

AbstractSmartContractDeployParameters → TransferDeployParameters
+ + + + + + + + + +

TransferDeployParameters class +Class used to create DeployParameters for a Transfer operation

+
+ + + + + + + + + +
+ + + +

Constructor Summary

+ + + + + + + + + +
Public Constructor
+ public + + + + + +
+

+ + + + constructor(activeKey: string, network: string, amount: number, target: string, transferID: string) +

+
+
+ + +

Constructor

+
+
+
+ + +
+
+

Member Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Members
+ public + + + + + +
+

+ + + + activeKey: string +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + amount: number +

+
+
+ + + +
+
+ + +
+ public + + get + + + +
+

+ + + + deployParams: DeployUtil.DeployParams: * +

+
+
+ + +

Get the deployParams deploy argument

+
+
+
+ + +
+ public + + get + + + +
+

+ + + + deployResult: constructor: * +

+
+
+ + +

Get a DeployResult constructor

+
+
+
+ + +
+ public + + + + + +
+

+ + + + network: string +

+
+
+ + + +
+
+ + +
+ public + + get + + + +
+

+ + + + payment: DeployUtil.ExecutableDeployItem: * +

+
+
+ + +

Get the payment deploy argument

+
+
+
+ + +
+ public + + get + + + +
+

+ + + + session: DeployUtil.ExecutableDeployItem: * +

+
+
+ + +

Get the session deploy argument

+
+
+
+ + +
+ public + + + + + +
+

+ + + + target: string +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + transferID: string +

+
+
+ + + +
+
+ + +
+
+ + +

Inherited Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
From class AbstractSmartContractDeployParameters
+ public + + get + + + +
+

+ + + + deployParams: DeployUtil.DeployParams +

+
+
+ + +

Get the deployParams deploy argument

+
+
+
+ + +
+ public + + get + + + +
+

+ + + + deployResult: constructor +

+
+
+ + +

Get a DeployResult constructor

+
+
+
+ + +
+ public + + get + + + +
+

+ + + + makeDeploy: Deploy: * +

+
+
+ + +

Create a unsigned Deploy object

+
+
+
+ + +
+ public + + get + + + +
+

+ + + + payment: DeployUtil.ExecutableDeployItem +

+
+
+ + +

Get the payment deploy argument

+
+
+
+ + +
+ public + + get + + + +
+

+ + + + session: DeployUtil.ExecutableDeployItem +

+
+
+ + +

Get the session deploy argument

+
+
+
+ + +
+
+ + + +

Public Constructors

+ +
+

+ public + + + + + + constructor(activeKey: string, network: string, amount: number, target: string, transferID: string) + + + + source + +

+ + + + +

Constructor

+
+ + + +
+

Params:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributeDescription
activeKeystring

Current active key in the public hex format

+
networkstring

Current network to execute the deployment

+
amountnumber

Amount to transfer in casper

+
targetstring

Public key in the hex format of the receiver

+
transferIDstring

TransferID of the transfer operation

+
+
+
+ + + + + + + + + + + + + + + + + +
+
+

Public Members

+ +
+

+ public + + + + + + activeKey: string + + + + source + +

+ + + + + + + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + amount: number + + + + source + +

+ + + + + + + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + get + + + + deployParams: DeployUtil.DeployParams: * + + + + source + +

+ + + + +

Get the deployParams deploy argument

+
+ + + +
+
+ +
+

Return:

+ + + + + + + +
DeployUtil.DeployParams

Return a DeployParams

+
+
+
+
+ + + + + + + + + + + + + + + +
+
+

+ public + + get + + + + deployResult: constructor: * + + + + source + +

+ + + + +

Get a DeployResult constructor

+
+ + + +
+
+ +
+

Return:

+ + + + + + + +
constructor

Return the constructor of a given DeployResult

+
+
+
+
+ + + + + + + + + + + + + + + +
+
+

+ public + + + + + + network: string + + + + source + +

+ + + + + + + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + get + + + + payment: DeployUtil.ExecutableDeployItem: * + + + + source + +

+ + + + +

Get the payment deploy argument

+
+ + + +
+
+ +
+

Return:

+ + + + + + + +
DeployUtil.ExecutableDeployItem

Return a standard payment

+
+
+
+
+ + + + + + + + + + + + + + + +
+
+

+ public + + get + + + + session: DeployUtil.ExecutableDeployItem: * + + + + source + +

+ + + + +

Get the session deploy argument

+
+ + + +
+
+ +
+

Return:

+ + + + + + + +
DeployUtil.ExecutableDeployItem

Return a session with a SmartContract stored by hash on the network

+
+
+
+
+ + + + + + + + + + + + + + + +
+
+

+ public + + + + + + target: string + + + + source + +

+ + + + + + + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + transferID: string + + + + source + +

+ + + + + + + + +
+
+ + + + + + + + + + + + + + + + + +
+
+ +
+ + + + + + + + + + + + diff --git a/class/src/services/errors/extendableError.js~ExtendableError.html b/class/src/services/errors/extendableError.js~ExtendableError.html new file mode 100644 index 0000000..fa51709 --- /dev/null +++ b/class/src/services/errors/extendableError.js~ExtendableError.html @@ -0,0 +1,385 @@ + + + + + + ExtendableError | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

ExtendableError

+ + + + + +

Extends:

Error → ExtendableError
+ + + + + + + + + +

ExtendableError class +Generic error class used as a wrapper to define specific errors

+
+ + + + + + + + + +
+ + + +

Constructor Summary

+ + + + + + + + + +
Public Constructor
+ public + + + + + +
+

+ + + + constructor(message: string) +

+
+
+ + +

Constructor

+
+
+
+ + +
+
+

Member Summary

+ + + + + + + + + + + + + + +
Public Members
+ public + + + + + +
+

+ + + + name: string +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + stack: string +

+
+
+ + + +
+
+ + +
+
+ + + + + + +

Public Constructors

+ +
+

+ public + + + + + + constructor(message: string) + + + + source + +

+ + + + +

Constructor

+
+ + + +
+

Params:

+ + + + + + + + + + + + + +
NameTypeAttributeDescription
messagestring

Error message

+
+
+
+ + + + + + + + + + + + + + + + + +
+
+

Public Members

+ +
+

+ public + + + + + + name: string + + + + source + +

+ + + + + + + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + stack: string + + + + source + +

+ + + + + + + + +
+
+ + + + + + + + + + + + + + + + + +
+
+ +
+ + + + + + + + + + + + diff --git a/class/src/services/errors/insufficientFunds.js~InsufficientFunds.html b/class/src/services/errors/insufficientFunds.js~InsufficientFunds.html new file mode 100644 index 0000000..3b980f0 --- /dev/null +++ b/class/src/services/errors/insufficientFunds.js~InsufficientFunds.html @@ -0,0 +1,297 @@ + + + + + + InsufficientFunds | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

InsufficientFunds

+ + + + + +

Extends:

ErrorExtendableError → InsufficientFunds
+ + + + + + + + + +

InsufficientFunds class +Error thrown when the user as insufficient funds in his balance

+
+ + + + + + + + + +
+ + + +

Constructor Summary

+ + + + + + + + + +
Public Constructor
+ public + + + + + +
+

+ + + + constructor(min: *) +

+
+
+ + +

Constructor

+
+
+
+ + +
+
+ + + +

Inherited Summary

+ + + + + + + + + + + + + + +
From class ExtendableError
+ public + + + + + +
+

+ + + + name: string +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + stack: string +

+
+
+ + + +
+
+ + +
+
+ + + +

Public Constructors

+ +
+

+ public + + + + + + constructor(min: *) + + + + source + +

+ + + + +

Constructor

+
+ + + +
+

Params:

+ + + + + + + + + + + + + +
NameTypeAttributeDescription
min*

Minimum casper needed

+
+
+
+ + + + + + + + + + + + + + + + + +
+
+ + +
+ + + + + + + + + + + + diff --git a/class/src/services/errors/noActiveKeyError.js~NoActiveKeyError.html b/class/src/services/errors/noActiveKeyError.js~NoActiveKeyError.html new file mode 100644 index 0000000..7c94e52 --- /dev/null +++ b/class/src/services/errors/noActiveKeyError.js~NoActiveKeyError.html @@ -0,0 +1,280 @@ + + + + + + NoActiveKeyError | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

NoActiveKeyError

+ + + + + +

Extends:

ErrorExtendableError → NoActiveKeyError
+ + + + + + + + + +

NoActiveKeyError class +Error thrown when the user is not connected to the Casper signer extension

+
+ + + + + + + + + +
+ + + +

Constructor Summary

+ + + + + + + + + +
Public Constructor
+ public + + + + + +
+

+ + + + constructor() +

+
+
+ + +

Constructor

+
+
+
+ + +
+
+ + + +

Inherited Summary

+ + + + + + + + + + + + + + +
From class ExtendableError
+ public + + + + + +
+

+ + + + name: string +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + stack: string +

+
+
+ + + +
+
+ + +
+
+ + + +

Public Constructors

+ +
+

+ public + + + + + + constructor() + + + + source + +

+ + + + +

Constructor

+
+ + + +
+
+ + + + + + + + + + + + + + + + + +
+
+ + +
+ + + + + + + + + + + + diff --git a/class/src/services/errors/noStakeBalanceError.js~NoStakeBalanceError.html b/class/src/services/errors/noStakeBalanceError.js~NoStakeBalanceError.html new file mode 100644 index 0000000..3e832e2 --- /dev/null +++ b/class/src/services/errors/noStakeBalanceError.js~NoStakeBalanceError.html @@ -0,0 +1,280 @@ + + + + + + NoStakeBalanceError | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

NoStakeBalanceError

+ + + + + +

Extends:

ErrorExtendableError → NoStakeBalanceError
+ + + + + + + + + +

NoStakeBalanceError class +Error thrown when the user doesn't have a staking balance

+
+ + + + + + + + + +
+ + + +

Constructor Summary

+ + + + + + + + + +
Public Constructor
+ public + + + + + +
+

+ + + + constructor() +

+
+
+ + +

Constructor

+
+
+
+ + +
+
+ + + +

Inherited Summary

+ + + + + + + + + + + + + + +
From class ExtendableError
+ public + + + + + +
+

+ + + + name: string +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + stack: string +

+
+
+ + + +
+
+ + +
+
+ + + +

Public Constructors

+ +
+

+ public + + + + + + constructor() + + + + source + +

+ + + + +

Constructor

+
+ + + +
+
+ + + + + + + + + + + + + + + + + +
+
+ + +
+ + + + + + + + + + + + diff --git a/class/src/services/errors/noValidatorBalanceError.js~NoValidatorBalanceError.html b/class/src/services/errors/noValidatorBalanceError.js~NoValidatorBalanceError.html new file mode 100644 index 0000000..5276fa9 --- /dev/null +++ b/class/src/services/errors/noValidatorBalanceError.js~NoValidatorBalanceError.html @@ -0,0 +1,280 @@ + + + + + + NoValidatorBalanceError | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

NoValidatorBalanceError

+ + + + + +

Extends:

ErrorExtendableError → NoValidatorBalanceError
+ + + + + + + + + +

NoValidatorBalanceError class +Error thrown when the current user doesn't have a validator balance

+
+ + + + + + + + + +
+ + + +

Constructor Summary

+ + + + + + + + + +
Public Constructor
+ public + + + + + +
+

+ + + + constructor() +

+
+
+ + +

Constructor

+
+
+
+ + +
+
+ + + +

Inherited Summary

+ + + + + + + + + + + + + + +
From class ExtendableError
+ public + + + + + +
+

+ + + + name: string +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + stack: string +

+
+
+ + + +
+
+ + +
+
+ + + +

Public Constructors

+ +
+

+ public + + + + + + constructor() + + + + source + +

+ + + + +

Constructor

+
+ + + +
+
+ + + + + + + + + + + + + + + + + +
+
+ + +
+ + + + + + + + + + + + diff --git a/class/src/services/errors/signError.js~SignError.html b/class/src/services/errors/signError.js~SignError.html new file mode 100644 index 0000000..12a071c --- /dev/null +++ b/class/src/services/errors/signError.js~SignError.html @@ -0,0 +1,280 @@ + + + + + + SignError | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

SignError

+ + + + + +

Extends:

ErrorExtendableError → SignError
+ + + + + + + + + +

SignError class +Error thrown when there's a error with the deploy signature process

+
+ + + + + + + + + +
+ + + +

Constructor Summary

+ + + + + + + + + +
Public Constructor
+ public + + + + + +
+

+ + + + constructor() +

+
+
+ + +

Constructor

+
+
+
+ + +
+
+ + + +

Inherited Summary

+ + + + + + + + + + + + + + +
From class ExtendableError
+ public + + + + + +
+

+ + + + name: string +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + stack: string +

+
+
+ + + +
+
+ + +
+
+ + + +

Public Constructors

+ +
+

+ public + + + + + + constructor() + + + + source + +

+ + + + +

Constructor

+
+ + + +
+
+ + + + + + + + + + + + + + + + + +
+
+ + +
+ + + + + + + + + + + + diff --git a/class/src/services/helpers/currencyUtils.js~CurrencyUtils.html b/class/src/services/helpers/currencyUtils.js~CurrencyUtils.html new file mode 100644 index 0000000..a4df8b3 --- /dev/null +++ b/class/src/services/helpers/currencyUtils.js~CurrencyUtils.html @@ -0,0 +1,349 @@ + + + + + + CurrencyUtils | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

CurrencyUtils

+ + + + + + + + + + + + + + + +

CurrencyUtils class +Used to convert from/to casper/motes

+
+ + + + + + + + + +
+ + +

Static Method Summary

+ + + + + + + + + + + + + + +
Static Public Methods
+ public + static + + + + +
+

+ + + + convertCasperToMotes(casperAmount: number): number +

+
+
+ + +

Convert casper to motes

+
+
+
+ + +
+ public + static + + + + +
+

+ + + + convertMotesToCasper(motesAmount: number): number +

+
+
+ + +

Convert motes to casper

+
+
+
+ + +
+
+ + + + + + + +

Static Public Methods

+ +
+

+ public + static + + + + + convertCasperToMotes(casperAmount: number): number + + + + source + +

+ + + + +

Convert casper to motes

+
+ + + +
+

Params:

+ + + + + + + + + + + + + +
NameTypeAttributeDescription
casperAmountnumber

Amount in casper

+
+
+
+ +
+

Return:

+ + + + + + + +
number
+
+
+
+ + + + + + + + + + + + + + + +
+
+

+ public + static + + + + + convertMotesToCasper(motesAmount: number): number + + + + source + +

+ + + + +

Convert motes to casper

+
+ + + +
+

Params:

+ + + + + + + + + + + + + +
NameTypeAttributeDescription
motesAmountnumber

Amount in motes

+
+
+
+ +
+

Return:

+ + + + + + + +
number
+
+
+
+ + + + + + + + + + + + + + + +
+
+ + + +
+ + + + + + + + + + + + diff --git a/class/src/services/keys/abstractKeyManager.js~AbstractKeyManager.html b/class/src/services/keys/abstractKeyManager.js~AbstractKeyManager.html new file mode 100644 index 0000000..2a2a28c --- /dev/null +++ b/class/src/services/keys/abstractKeyManager.js~AbstractKeyManager.html @@ -0,0 +1,231 @@ + + + + + + AbstractKeyManager | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

AbstractKeyManager

+ + + + + + + + + + + + + + + +

AbstractKeyManager class +Used to define multiple key managers

+
+ + + + + + + + + +
+ + + + +

Member Summary

+ + + + + + + + + +
Public Members
+ public + + get + + + +
+

+ + + + activeKey: * +

+
+
+ + +

Retrieve the current active key

+
+
+
+ + +
+
+ + + + + + + +

Public Members

+ +
+

+ public + + get + + + + activeKey: * + + + + source + +

+ + + + +

Retrieve the current active key

+
+ + + +
+
+ +
+

Return:

+ + + + + + + +
*

string - Must return a public key hex

+
+
+
+
+ + + + + + + + + + + + + + + +
+
+ +
+ + + + + + + + + + + + diff --git a/class/src/services/results/addBidResult.js~AddBidResult.html b/class/src/services/results/addBidResult.js~AddBidResult.html new file mode 100644 index 0000000..e171530 --- /dev/null +++ b/class/src/services/results/addBidResult.js~AddBidResult.html @@ -0,0 +1,532 @@ + + + + + + AddBidResult | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

AddBidResult

+ + + + + +

Extends:

DeployResult → AddBidResult
+ + + + + + + + + +

AddBidResult class

+
+ + + + + + + + + +
+ + +

Static Method Summary

+ + + + + + + + + +
Static Public Methods
+ public + static + + + + +
+

+ + + + getName(): string +

+
+
+ + +

Retrieve the name of the operation behind the deployment

+
+
+
+ + +
+
+

Constructor Summary

+ + + + + + + + + +
Public Constructor
+ public + + + + + +
+

+ + + + constructor(hash: string) +

+
+
+ + +

Constructor

+
+
+
+ + +
+
+ + + +

Inherited Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
From class DeployResult
+ public + static + + + + +
+

+ + + + getName() +

+
+
+ + +

Retrieve the name of the operation behind the deployment +Must return the name of the operation behind the deployment

+
+
+
+ + +
+ public + + + + + +
+

+ + + + amount: number +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + cost: number +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + hash: string +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + message: string +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + name: string +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + status: string +

+
+
+ + + +
+
+ + +
+
+ + +

Static Public Methods

+ +
+

+ public + static + + + + + getName(): string + + + + source + +

+ + + + +

Retrieve the name of the operation behind the deployment

+
+ + + +
+
+ +
+

Return:

+ + + + + + + +
string

the name of the operation behind the deployment

+
+
+
+
+ + + + + + + + + + + + + + + +
+
+

Public Constructors

+ +
+

+ public + + + + + + constructor(hash: string) + + + + source + +

+ + + + +

Constructor

+
+ + + +
+

Params:

+ + + + + + + + + + + + + +
NameTypeAttributeDescription
hashstring

DeployHash of the deployment

+
+
+
+ + + + + + + + + + + + + + + + + +
+
+ + +
+ + + + + + + + + + + + diff --git a/class/src/services/results/delegateResult.js~DelegateResult.html b/class/src/services/results/delegateResult.js~DelegateResult.html new file mode 100644 index 0000000..a7587e7 --- /dev/null +++ b/class/src/services/results/delegateResult.js~DelegateResult.html @@ -0,0 +1,532 @@ + + + + + + DelegateResult | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

DelegateResult

+ + + + + +

Extends:

DeployResult → DelegateResult
+ + + + + + + + + +

DelegateResult class

+
+ + + + + + + + + +
+ + +

Static Method Summary

+ + + + + + + + + +
Static Public Methods
+ public + static + + + + +
+

+ + + + getName(): string +

+
+
+ + +

Retrieve the name of the operation behind the deployment

+
+
+
+ + +
+
+

Constructor Summary

+ + + + + + + + + +
Public Constructor
+ public + + + + + +
+

+ + + + constructor(hash: string) +

+
+
+ + +

Constructor

+
+
+
+ + +
+
+ + + +

Inherited Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
From class DeployResult
+ public + static + + + + +
+

+ + + + getName() +

+
+
+ + +

Retrieve the name of the operation behind the deployment +Must return the name of the operation behind the deployment

+
+
+
+ + +
+ public + + + + + +
+

+ + + + amount: number +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + cost: number +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + hash: string +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + message: string +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + name: string +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + status: string +

+
+
+ + + +
+
+ + +
+
+ + +

Static Public Methods

+ +
+

+ public + static + + + + + getName(): string + + + + source + +

+ + + + +

Retrieve the name of the operation behind the deployment

+
+ + + +
+
+ +
+

Return:

+ + + + + + + +
string

the name of the operation behind the deployment

+
+
+
+
+ + + + + + + + + + + + + + + +
+
+

Public Constructors

+ +
+

+ public + + + + + + constructor(hash: string) + + + + source + +

+ + + + +

Constructor

+
+ + + +
+

Params:

+ + + + + + + + + + + + + +
NameTypeAttributeDescription
hashstring

DeployHash of the deployment

+
+
+
+ + + + + + + + + + + + + + + + + +
+
+ + +
+ + + + + + + + + + + + diff --git a/class/src/services/results/deployResult.js~DeployResult.html b/class/src/services/results/deployResult.js~DeployResult.html new file mode 100644 index 0000000..8dbc545 --- /dev/null +++ b/class/src/services/results/deployResult.js~DeployResult.html @@ -0,0 +1,759 @@ + + + + + + DeployResult | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

DeployResult

+ + + + + + + + + + + + + + + +

DeployResult class +Object used to keep the track of a deploy result.

+
+ + + + + + + + + +
+ + +

Static Method Summary

+ + + + + + + + + +
Static Public Methods
+ public + static + + + + +
+

+ + + + getName() +

+
+
+ + +

Retrieve the name of the operation behind the deployment +Must return the name of the operation behind the deployment

+
+
+
+ + +
+
+

Constructor Summary

+ + + + + + + + + +
Public Constructor
+ public + + + + + +
+

+ + + + constructor(hash: string, name: string) +

+
+
+ + +

Constructor

+
+
+
+ + +
+
+

Member Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Members
+ public + + + + + +
+

+ + + + amount: number +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + cost: number +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + hash: string +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + message: string +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + name: string +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + status: string +

+
+
+ + + +
+
+ + +
+
+ + + + + +

Static Public Methods

+ +
+

+ public + static + + + + + getName() + + + + source + +

+ + + + +

Retrieve the name of the operation behind the deployment +Must return the name of the operation behind the deployment

+
+ + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

Public Constructors

+ +
+

+ public + + + + + + constructor(hash: string, name: string) + + + + source + +

+ + + + +

Constructor

+
+ + + +
+

Params:

+ + + + + + + + + + + + + + + + + + + +
NameTypeAttributeDescription
hashstring

DeployHash of the deployment

+
namestring

Name of the operation

+
+
+
+ + + + + + + + + + + + + + + + + +
+
+

Public Members

+ +
+

+ public + + + + + + amount: number + + + + source + +

+ + + + + + + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + cost: number + + + + source + +

+ + + + + + + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + hash: string + + + + source + +

+ + + + + + + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + message: string + + + + source + +

+ + + + + + + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + name: string + + + + source + +

+ + + + + + + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + status: string + + + + source + +

+ + + + + + + + +
+
+ + + + + + + + + + + + + + + + + +
+
+ +
+ + + + + + + + + + + + diff --git a/class/src/services/results/smartContractResult.js~SmartContractResult.html b/class/src/services/results/smartContractResult.js~SmartContractResult.html new file mode 100644 index 0000000..c33bca0 --- /dev/null +++ b/class/src/services/results/smartContractResult.js~SmartContractResult.html @@ -0,0 +1,532 @@ + + + + + + SmartContractResult | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

SmartContractResult

+ + + + + +

Extends:

DeployResult → SmartContractResult
+ + + + + + + + + +

SmartContractResult class

+
+ + + + + + + + + +
+ + +

Static Method Summary

+ + + + + + + + + +
Static Public Methods
+ public + static + + + + +
+

+ + + + getName(): string +

+
+
+ + +

Retrieve the name of the operation behind the deployment

+
+
+
+ + +
+
+

Constructor Summary

+ + + + + + + + + +
Public Constructor
+ public + + + + + +
+

+ + + + constructor(hash: string) +

+
+
+ + +

Constructor

+
+
+
+ + +
+
+ + + +

Inherited Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
From class DeployResult
+ public + static + + + + +
+

+ + + + getName() +

+
+
+ + +

Retrieve the name of the operation behind the deployment +Must return the name of the operation behind the deployment

+
+
+
+ + +
+ public + + + + + +
+

+ + + + amount: number +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + cost: number +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + hash: string +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + message: string +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + name: string +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + status: string +

+
+
+ + + +
+
+ + +
+
+ + +

Static Public Methods

+ +
+

+ public + static + + + + + getName(): string + + + + source + +

+ + + + +

Retrieve the name of the operation behind the deployment

+
+ + + +
+
+ +
+

Return:

+ + + + + + + +
string

the name of the operation behind the deployment

+
+
+
+
+ + + + + + + + + + + + + + + +
+
+

Public Constructors

+ +
+

+ public + + + + + + constructor(hash: string) + + + + source + +

+ + + + +

Constructor

+
+ + + +
+

Params:

+ + + + + + + + + + + + + +
NameTypeAttributeDescription
hashstring

DeployHash of the deployment

+
+
+
+ + + + + + + + + + + + + + + + + +
+
+ + +
+ + + + + + + + + + + + diff --git a/class/src/services/results/transferResult.js~TransferResult.html b/class/src/services/results/transferResult.js~TransferResult.html new file mode 100644 index 0000000..b62539c --- /dev/null +++ b/class/src/services/results/transferResult.js~TransferResult.html @@ -0,0 +1,532 @@ + + + + + + TransferResult | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

TransferResult

+ + + + + +

Extends:

DeployResult → TransferResult
+ + + + + + + + + +

TransferResult class

+
+ + + + + + + + + +
+ + +

Static Method Summary

+ + + + + + + + + +
Static Public Methods
+ public + static + + + + +
+

+ + + + getName(): string +

+
+
+ + +

Retrieve the name of the operation behind the deployment

+
+
+
+ + +
+
+

Constructor Summary

+ + + + + + + + + +
Public Constructor
+ public + + + + + +
+

+ + + + constructor(hash: string) +

+
+
+ + +

Constructor

+
+
+
+ + +
+
+ + + +

Inherited Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
From class DeployResult
+ public + static + + + + +
+

+ + + + getName() +

+
+
+ + +

Retrieve the name of the operation behind the deployment +Must return the name of the operation behind the deployment

+
+
+
+ + +
+ public + + + + + +
+

+ + + + amount: number +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + cost: number +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + hash: string +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + message: string +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + name: string +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + status: string +

+
+
+ + + +
+
+ + +
+
+ + +

Static Public Methods

+ +
+

+ public + static + + + + + getName(): string + + + + source + +

+ + + + +

Retrieve the name of the operation behind the deployment

+
+ + + +
+
+ +
+

Return:

+ + + + + + + +
string

the name of the operation behind the deployment

+
+
+
+
+ + + + + + + + + + + + + + + +
+
+

Public Constructors

+ +
+

+ public + + + + + + constructor(hash: string) + + + + source + +

+ + + + +

Constructor

+
+ + + +
+

Params:

+ + + + + + + + + + + + + +
NameTypeAttributeDescription
hashstring

DeployHash of the deployment

+
+
+
+ + + + + + + + + + + + + + + + + +
+
+ + +
+ + + + + + + + + + + + diff --git a/class/src/services/results/undelegateResult.js~UndelegateResult.html b/class/src/services/results/undelegateResult.js~UndelegateResult.html new file mode 100644 index 0000000..36ed521 --- /dev/null +++ b/class/src/services/results/undelegateResult.js~UndelegateResult.html @@ -0,0 +1,532 @@ + + + + + + UndelegateResult | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

UndelegateResult

+ + + + + +

Extends:

DeployResult → UndelegateResult
+ + + + + + + + + +

UndelegateResult class

+
+ + + + + + + + + +
+ + +

Static Method Summary

+ + + + + + + + + +
Static Public Methods
+ public + static + + + + +
+

+ + + + getName(): string +

+
+
+ + +

Retrieve the name of the operation behind the deployment

+
+
+
+ + +
+
+

Constructor Summary

+ + + + + + + + + +
Public Constructor
+ public + + + + + +
+

+ + + + constructor(hash: string) +

+
+
+ + +

Constructor

+
+
+
+ + +
+
+ + + +

Inherited Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
From class DeployResult
+ public + static + + + + +
+

+ + + + getName() +

+
+
+ + +

Retrieve the name of the operation behind the deployment +Must return the name of the operation behind the deployment

+
+
+
+ + +
+ public + + + + + +
+

+ + + + amount: number +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + cost: number +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + hash: string +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + message: string +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + name: string +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + status: string +

+
+
+ + + +
+
+ + +
+
+ + +

Static Public Methods

+ +
+

+ public + static + + + + + getName(): string + + + + source + +

+ + + + +

Retrieve the name of the operation behind the deployment

+
+ + + +
+
+ +
+

Return:

+ + + + + + + +
string

the name of the operation behind the deployment

+
+
+
+
+ + + + + + + + + + + + + + + +
+
+

Public Constructors

+ +
+

+ public + + + + + + constructor(hash: string) + + + + source + +

+ + + + +

Constructor

+
+ + + +
+

Params:

+ + + + + + + + + + + + + +
NameTypeAttributeDescription
hashstring

DeployHash of the deployment

+
+
+
+ + + + + + + + + + + + + + + + + +
+
+ + +
+ + + + + + + + + + + + diff --git a/class/src/services/results/withdrawBidResult.js~WithdrawBidResult.html b/class/src/services/results/withdrawBidResult.js~WithdrawBidResult.html new file mode 100644 index 0000000..ef6083e --- /dev/null +++ b/class/src/services/results/withdrawBidResult.js~WithdrawBidResult.html @@ -0,0 +1,532 @@ + + + + + + WithdrawBidResult | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

WithdrawBidResult

+ + + + + +

Extends:

DeployResult → WithdrawBidResult
+ + + + + + + + + +

WithdrawBidResult class

+
+ + + + + + + + + +
+ + +

Static Method Summary

+ + + + + + + + + +
Static Public Methods
+ public + static + + + + +
+

+ + + + getName(): string +

+
+
+ + +

Retrieve the name of the operation behind the deployment

+
+
+
+ + +
+
+

Constructor Summary

+ + + + + + + + + +
Public Constructor
+ public + + + + + +
+

+ + + + constructor(hash: string) +

+
+
+ + +

Constructor

+
+
+
+ + +
+
+ + + +

Inherited Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
From class DeployResult
+ public + static + + + + +
+

+ + + + getName() +

+
+
+ + +

Retrieve the name of the operation behind the deployment +Must return the name of the operation behind the deployment

+
+
+
+ + +
+ public + + + + + +
+

+ + + + amount: number +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + cost: number +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + hash: string +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + message: string +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + name: string +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + status: string +

+
+
+ + + +
+
+ + +
+
+ + +

Static Public Methods

+ +
+

+ public + static + + + + + getName(): string + + + + source + +

+ + + + +

Retrieve the name of the operation behind the deployment

+
+ + + +
+
+ +
+

Return:

+ + + + + + + +
string

the name of the operation behind the deployment

+
+
+
+
+ + + + + + + + + + + + + + + +
+
+

Public Constructors

+ +
+

+ public + + + + + + constructor(hash: string) + + + + source + +

+ + + + +

Constructor

+
+ + + +
+

Params:

+ + + + + + + + + + + + + +
NameTypeAttributeDescription
hashstring

DeployHash of the deployment

+
+
+
+ + + + + + + + + + + + + + + + + +
+
+ + +
+ + + + + + + + + + + + diff --git a/class/src/services/signers/abstractSigner.js~AbstractSigner.html b/class/src/services/signers/abstractSigner.js~AbstractSigner.html new file mode 100644 index 0000000..9cf528c --- /dev/null +++ b/class/src/services/signers/abstractSigner.js~AbstractSigner.html @@ -0,0 +1,255 @@ + + + + + + AbstractSigner | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

AbstractSigner

+ + + + + + +

Direct Subclass:

+ + + + + + + + +

AbstractSigner class +Abstract class used as a skeleton to implement deployment signing.

+
+ + + + + + + + + +
+ + +

Static Method Summary

+ + + + + + + + + +
Static Public Methods
+ public + static + + + + +
+

+ + async + + sign(deploy: Deploy, options: Object): Promise<Deploy> +

+
+
+ + +

Abstract method to sign a deployment.

+
+
+
+ + +
+
+ + + + + + + +

Static Public Methods

+ +
+

+ public + static + + + async + + sign(deploy: Deploy, options: Object): Promise<Deploy> + + + + source + +

+ + + + +

Abstract method to sign a deployment.

+
+ + + +
+

Params:

+ + + + + + + + + + + + + + + + + + + +
NameTypeAttributeDescription
deployDeploy

Deploy object

+
optionsObject

Generic options object used to pass additional arguments needed for the different signing methods

+
+
+
+ +
+

Return:

+ + + + + + + +
Promise<Deploy>

Signed deploy object

+
+
+
+
+ + + + + + + + + + + + + + + +
+
+ + + +
+ + + + + + + + + + + + diff --git a/class/src/services/signers/casperSigner.js~CasperSigner.html b/class/src/services/signers/casperSigner.js~CasperSigner.html new file mode 100644 index 0000000..b515b70 --- /dev/null +++ b/class/src/services/signers/casperSigner.js~CasperSigner.html @@ -0,0 +1,293 @@ + + + + + + CasperSigner | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

CasperSigner

+ + + + + +

Extends:

AbstractSigner → CasperSigner
+ + + + + + + + + +

CasperSigner class +Used to sign a deployment with the Casper Signer extension

+
+ + + + + + + + + +
+ + +

Static Method Summary

+ + + + + + + + + +
Static Public Methods
+ public + static + + + + +
+

+ + async + + sign(deploy: DeployUtil.Deploy, options: Object): Promise<DeployUtil.Deploy> +

+
+
+ + +

Sign a given Deploy Object with the corresponding public key.

+
+
+
+ + +
+
+ + + + +

Inherited Summary

+ + + + + + + + + +
From class AbstractSigner
+ public + static + + + + +
+

+ + async + + sign(deploy: Deploy, options: Object): Promise<Deploy> +

+
+
+ + +

Abstract method to sign a deployment.

+
+
+
+ + +
+
+ + +

Static Public Methods

+ +
+

+ public + static + + + async + + sign(deploy: DeployUtil.Deploy, options: Object): Promise<DeployUtil.Deploy> + + + + source + +

+ + + + +

Sign a given Deploy Object with the corresponding public key. +You must pass the active public key from the user and the public key where the deploy is going to be used.

+
+ + + +
+

Params:

+ + + + + + + + + + + + + + + + + + + +
NameTypeAttributeDescription
deployDeployUtil.Deploy

Deploy object

+
optionsObject

Options object + Must contains the public key of the user in the activeKey property + Must contains the public key of the targeted wallet

+
+
+
+ +
+

Return:

+ + + + + + + +
Promise<DeployUtil.Deploy>

Signed deploy object

+
+
+
+
+ + + + + + + + + + + + + + + +
+
+ + + +
+ + + + + + + + + + + + diff --git a/class/src/services/signers/localSigner.js~LocalSigner.html b/class/src/services/signers/localSigner.js~LocalSigner.html new file mode 100644 index 0000000..4924114 --- /dev/null +++ b/class/src/services/signers/localSigner.js~LocalSigner.html @@ -0,0 +1,290 @@ + + + + + + LocalSigner | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

LocalSigner

+ + + + + +

Extends:

AbstractSigner → LocalSigner
+ + + + + + + + + +

LocalSigner class +Used to sign a deployment with local keys

+
+ + + + + + + + + +
+ + +

Static Method Summary

+ + + + + + + + + +
Static Public Methods
+ public + static + + + + +
+

+ + async + + sign(deploy: DeployUtil.Deploy, options: Object): Promise<DeployUtil.Deploy> +

+
+
+ + +

Sign a given Deploy Object with the corresponding key.

+
+
+
+ + +
+
+ + + + +

Inherited Summary

+ + + + + + + + + +
From class AbstractSigner
+ public + static + + + + +
+

+ + async + + sign(deploy: Deploy, options: Object): Promise<Deploy> +

+
+
+ + +

Abstract method to sign a deployment.

+
+
+
+ + +
+
+ + +

Static Public Methods

+ +
+

+ public + static + + + async + + sign(deploy: DeployUtil.Deploy, options: Object): Promise<DeployUtil.Deploy> + + + + source + +

+ + + + +

Sign a given Deploy Object with the corresponding key.

+
+ + + +
+

Params:

+ + + + + + + + + + + + + + + + + + + +
NameTypeAttributeDescription
deployDeployUtil.Deploy

Deploy object

+
optionsObject

Options object. Must contains the AsymmetricKey object in the key property

+
+
+
+ +
+

Return:

+ + + + + + + +
Promise<DeployUtil.Deploy>

Signed deploy object

+
+
+
+
+ + + + + + + + + + + + + + + +
+
+ + + +
+ + + + + + + + + + + + diff --git a/coverage.json b/coverage.json new file mode 100644 index 0000000..5a4771d --- /dev/null +++ b/coverage.json @@ -0,0 +1,152 @@ +{ + "coverage": "100%", + "expectCount": 132, + "actualCount": 132, + "files": { + "src/services/balance/balance.js": { + "expectCount": 8, + "actualCount": 8, + "undocumentLines": [] + }, + "src/services/clients/clientCasper.js": { + "expectCount": 4, + "actualCount": 4, + "undocumentLines": [] + }, + "src/services/deploys/abstractSmartContractDeployParameters.js": { + "expectCount": 6, + "actualCount": 6, + "undocumentLines": [] + }, + "src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js": { + "expectCount": 11, + "actualCount": 11, + "undocumentLines": [] + }, + "src/services/deploys/auction/actions/addBid.js": { + "expectCount": 5, + "actualCount": 5, + "undocumentLines": [] + }, + "src/services/deploys/auction/actions/delegate.js": { + "expectCount": 5, + "actualCount": 5, + "undocumentLines": [] + }, + "src/services/deploys/auction/actions/undelegate.js": { + "expectCount": 5, + "actualCount": 5, + "undocumentLines": [] + }, + "src/services/deploys/auction/actions/withdrawBid.js": { + "expectCount": 5, + "actualCount": 5, + "undocumentLines": [] + }, + "src/services/deploys/deployManager.js": { + "expectCount": 6, + "actualCount": 6, + "undocumentLines": [] + }, + "src/services/deploys/smartContract/smartContractDeployParameters.js": { + "expectCount": 10, + "actualCount": 10, + "undocumentLines": [] + }, + "src/services/deploys/transfer/TransferDeployParameters.js": { + "expectCount": 12, + "actualCount": 12, + "undocumentLines": [] + }, + "src/services/errors/extendableError.js": { + "expectCount": 4, + "actualCount": 4, + "undocumentLines": [] + }, + "src/services/errors/insufficientFunds.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "src/services/errors/noActiveKeyError.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "src/services/errors/noStakeBalanceError.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "src/services/errors/noValidatorBalanceError.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "src/services/errors/signError.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "src/services/helpers/currencyUtils.js": { + "expectCount": 3, + "actualCount": 3, + "undocumentLines": [] + }, + "src/services/keys/abstractKeyManager.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "src/services/results/addBidResult.js": { + "expectCount": 3, + "actualCount": 3, + "undocumentLines": [] + }, + "src/services/results/delegateResult.js": { + "expectCount": 3, + "actualCount": 3, + "undocumentLines": [] + }, + "src/services/results/deployResult.js": { + "expectCount": 12, + "actualCount": 12, + "undocumentLines": [] + }, + "src/services/results/smartContractResult.js": { + "expectCount": 3, + "actualCount": 3, + "undocumentLines": [] + }, + "src/services/results/transferResult.js": { + "expectCount": 3, + "actualCount": 3, + "undocumentLines": [] + }, + "src/services/results/undelegateResult.js": { + "expectCount": 3, + "actualCount": 3, + "undocumentLines": [] + }, + "src/services/results/withdrawBidResult.js": { + "expectCount": 3, + "actualCount": 3, + "undocumentLines": [] + }, + "src/services/signers/abstractSigner.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "src/services/signers/casperSigner.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "src/services/signers/localSigner.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + } + } +} \ No newline at end of file diff --git a/css/github.css b/css/github.css new file mode 100644 index 0000000..db9ca23 --- /dev/null +++ b/css/github.css @@ -0,0 +1,83 @@ +/* github markdown */ +.github-markdown { + font-size: 16px; +} + +.github-markdown h1, +.github-markdown h2, +.github-markdown h3, +.github-markdown h4, +.github-markdown h5 { + margin-top: 1em; + margin-bottom: 16px; + font-weight: bold; + padding: 0; +} + +.github-markdown h1:nth-of-type(1) { + margin-top: 0; +} + +.github-markdown h1 { + font-size: 2em; + padding-bottom: 0.3em; +} + +.github-markdown h2 { + font-size: 1.75em; + padding-bottom: 0.3em; +} + +.github-markdown h3 { + font-size: 1.5em; +} + +.github-markdown h4 { + font-size: 1.25em; +} + +.github-markdown h5 { + font-size: 1em; +} + +.github-markdown ul, .github-markdown ol { + padding-left: 2em; +} + +.github-markdown pre > code { + font-size: 0.85em; +} + +.github-markdown table { + margin-bottom: 1em; + border-collapse: collapse; + border-spacing: 0; +} + +.github-markdown table tr { + background-color: #fff; + border-top: 1px solid #ccc; +} + +.github-markdown table th, +.github-markdown table td { + padding: 6px 13px; + border: 1px solid #ddd; +} + +.github-markdown table tr:nth-child(2n) { + background-color: #f8f8f8; +} + +.github-markdown hr { + border-right: 0; + border-bottom: 1px solid #e5e5e5; + border-left: 0; + border-top: 0; +} + +/** badge(.svg) does not have border */ +.github-markdown img:not([src*=".svg"]) { + max-width: 100%; + box-shadow: 1px 1px 1px rgba(0,0,0,0.5); +} diff --git a/css/identifiers.css b/css/identifiers.css new file mode 100644 index 0000000..52c8461 --- /dev/null +++ b/css/identifiers.css @@ -0,0 +1,37 @@ +.identifiers-wrap { + display: flex; + align-items: flex-start; +} + +.identifier-dir-tree { + background: #fff; + border: solid 1px #ddd; + border-radius: 0.25em; + top: 52px; + position: -webkit-sticky; + position: sticky; + max-height: calc(100vh - 155px); + overflow-y: scroll; + min-width: 200px; + margin-left: 1em; +} + +.identifier-dir-tree-header { + padding: 0.5em; + background-color: #fafafa; + border-bottom: solid 1px #ddd; +} + +.identifier-dir-tree-content { + padding: 0 0.5em 0; +} + +.identifier-dir-tree-content > div { + padding-top: 0.25em; + padding-bottom: 0.25em; +} + +.identifier-dir-tree-content a { + color: inherit; +} + diff --git a/css/manual.css b/css/manual.css new file mode 100644 index 0000000..138a07f --- /dev/null +++ b/css/manual.css @@ -0,0 +1,134 @@ +.github-markdown .manual-toc { + padding-left: 0; +} + +.manual-index .manual-cards { + display: flex; + flex-wrap: wrap; +} + +.manual-index .manual-card-wrap { + width: 280px; + padding: 10px 20px 10px 0; + box-sizing: border-box; +} + +.manual-index .manual-card-wrap > h1 { + margin: 0; + font-size: 1em; + font-weight: 600; + padding: 0.2em 0 0.2em 0.5em; + border-radius: 0.1em 0.1em 0 0; + border: none; +} + +.manual-index .manual-card-wrap > h1 span { + color: #555; +} + +.manual-index .manual-card { + height: 200px; + overflow: hidden; + border: solid 1px rgba(230, 230, 230, 0.84); + border-radius: 0 0 0.1em 0.1em; + padding: 8px; + position: relative; +} + +.manual-index .manual-card > div { + transform: scale(0.4); + transform-origin: 0 0; + width: 250%; +} + +.manual-index .manual-card > a { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + background: rgba(210, 210, 210, 0.1); +} + +.manual-index .manual-card > a:hover { + background: none; +} + +.manual-index .manual-badge { + margin: 0; +} + +.manual-index .manual-user-index { + margin-bottom: 1em; + border-bottom: solid 1px #ddd; +} + +.manual-root .navigation { + padding-left: 4px; + margin-top: 4px; +} + +.navigation .manual-toc-root > div { + padding-left: 0.25em; + padding-right: 0.75em; +} + +.github-markdown .manual-toc-title a { + color: inherit; +} + +.manual-breadcrumb-list { + font-size: 0.8em; + margin-bottom: 1em; +} + +.manual-toc-title a:hover { + color: #039BE5; +} + +.manual-toc li { + margin: 0.75em 0; + list-style-type: none; +} + +.navigation .manual-toc [class^="indent-h"] a { + color: #666; +} + +.navigation .manual-toc .indent-h1 a { + color: #555; + font-weight: 600; + display: block; +} + +.manual-toc .indent-h1 { + display: block; + margin: 0.4em 0 0 0.25em; + padding: 0.2em 0 0.2em 0.5em; + border-radius: 0.1em; +} + +.manual-root .navigation .manual-toc li:not(.indent-h1) { + margin-top: 0.5em; +} + +.manual-toc .indent-h2 { + display: none; + margin-left: 1.5em; +} +.manual-toc .indent-h3 { + display: none; + margin-left: 2.5em; +} +.manual-toc .indent-h4 { + display: none; + margin-left: 3.5em; +} +.manual-toc .indent-h5 { + display: none; + margin-left: 4.5em; +} + +.manual-nav li { + margin: 0.75em 0; +} diff --git a/css/prettify-tomorrow.css b/css/prettify-tomorrow.css new file mode 100644 index 0000000..b6f92a7 --- /dev/null +++ b/css/prettify-tomorrow.css @@ -0,0 +1,132 @@ +/* Tomorrow Theme */ +/* Original theme - https://github.com/chriskempson/tomorrow-theme */ +/* Pretty printing styles. Used with prettify.js. */ +/* SPAN elements with the classes below are added by prettyprint. */ +/* plain text */ +.pln { + color: #4d4d4c; } + +@media screen { + /* string content */ + .str { + color: #718c00; } + + /* a keyword */ + .kwd { + color: #8959a8; } + + /* a comment */ + .com { + color: #8e908c; } + + /* a type name */ + .typ { + color: #4271ae; } + + /* a literal value */ + .lit { + color: #f5871f; } + + /* punctuation */ + .pun { + color: #4d4d4c; } + + /* lisp open bracket */ + .opn { + color: #4d4d4c; } + + /* lisp close bracket */ + .clo { + color: #4d4d4c; } + + /* a markup tag name */ + .tag { + color: #c82829; } + + /* a markup attribute name */ + .atn { + color: #f5871f; } + + /* a markup attribute value */ + .atv { + color: #3e999f; } + + /* a declaration */ + .dec { + color: #f5871f; } + + /* a variable name */ + .var { + color: #c82829; } + + /* a function name */ + .fun { + color: #4271ae; } } +/* Use higher contrast and text-weight for printable form. */ +@media print, projection { + .str { + color: #060; } + + .kwd { + color: #006; + font-weight: bold; } + + .com { + color: #600; + font-style: italic; } + + .typ { + color: #404; + font-weight: bold; } + + .lit { + color: #044; } + + .pun, .opn, .clo { + color: #440; } + + .tag { + color: #006; + font-weight: bold; } + + .atn { + color: #404; } + + .atv { + color: #060; } } +/* Style */ +/* +pre.prettyprint { + background: white; + font-family: Consolas, Monaco, 'Andale Mono', monospace; + font-size: 12px; + line-height: 1.5; + border: 1px solid #ccc; + padding: 10px; } +*/ + +/* Specify class=linenums on a pre to get line numbering */ +ol.linenums { + margin-top: 0; + margin-bottom: 0; } + +/* IE indents via margin-left */ +li.L0, +li.L1, +li.L2, +li.L3, +li.L4, +li.L5, +li.L6, +li.L7, +li.L8, +li.L9 { + /* */ } + +/* Alternate shading for lines */ +li.L1, +li.L3, +li.L5, +li.L7, +li.L9 { + /* */ } diff --git a/css/search.css b/css/search.css new file mode 100644 index 0000000..9940a54 --- /dev/null +++ b/css/search.css @@ -0,0 +1,84 @@ +/* search box */ +.search-box { + position: absolute; + top: 10px; + right: 50px; + padding-right: 8px; + padding-bottom: 10px; + line-height: normal; + font-size: 12px; +} + +.search-box img { + width: 20px; + vertical-align: top; +} + +.search-input { + display: inline; + visibility: hidden; + width: 0; + padding: 2px; + height: 1.5em; + outline: none; + background: transparent; + border: 1px #0af; + border-style: none none solid none; + vertical-align: bottom; +} + +.search-input-edge { + display: none; + width: 1px; + height: 5px; + background-color: #0af; + vertical-align: bottom; +} + +.search-result { + position: absolute; + display: none; + height: 600px; + width: 100%; + padding: 0; + margin-top: 5px; + margin-left: 24px; + background: white; + box-shadow: 1px 1px 4px rgb(0,0,0); + white-space: nowrap; + overflow-y: scroll; +} + +.search-result-import-path { + color: #aaa; + font-size: 12px; +} + +.search-result li { + list-style: none; + padding: 2px 4px; +} + +.search-result li a { + display: block; +} + +.search-result li.selected { + background: #ddd; +} + +.search-result li.search-separator { + background: rgb(37, 138, 175); + color: white; +} + +.search-box.active .search-input { + visibility: visible; + transition: width 0.2s ease-out; + width: 300px; +} + +.search-box.active .search-input-edge { + display: inline-block; +} + diff --git a/css/source.css b/css/source.css new file mode 100644 index 0000000..3b9c92d --- /dev/null +++ b/css/source.css @@ -0,0 +1,55 @@ +table.files-summary { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; + text-align: right; +} + +table.files-summary tbody tr:hover { + background: #eee; +} + +table.files-summary td:first-child, +table.files-summary td:nth-of-type(2) { + text-align: left; +} + +table.files-summary[data-use-coverage="false"] td.coverage { + display: none; +} + +table.files-summary thead { + background: #fafafa; +} + +table.files-summary td { + border: solid 1px #ddd; + padding: 4px 10px; + vertical-align: top; +} + +table.files-summary td.identifiers > span { + display: block; + margin-top: 4px; +} +table.files-summary td.identifiers > span:first-child { + margin-top: 0; +} + +table.files-summary .coverage-count { + font-size: 12px; + color: #aaa; + display: inline-block; + min-width: 40px; +} + +.total-coverage-count { + position: relative; + bottom: 2px; + font-size: 12px; + color: #666; + font-weight: 500; + padding-left: 5px; +} diff --git a/css/style.css b/css/style.css new file mode 100644 index 0000000..fe3b2d9 --- /dev/null +++ b/css/style.css @@ -0,0 +1,608 @@ +@import url(https://fonts.googleapis.com/css?family=Roboto:400,300,700); +@import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400italic,600,700); +@import url(./manual.css); +@import url(./source.css); +@import url(./test.css); +@import url(./identifiers.css); +@import url(./github.css); +@import url(./search.css); + +* { + margin: 0; + padding: 0; + text-decoration: none; +} + +html +{ + font-family: 'Source Sans Pro', 'Roboto', sans-serif; + overflow: auto; + /*font-size: 14px;*/ + /*color: #4d4e53;*/ + /*color: rgba(0, 0, 0, .68);*/ + color: #555; + background-color: #fff; +} + +a { + /*color: #0095dd;*/ + /*color:rgb(37, 138, 175);*/ + color: #039BE5; +} + +code a:hover { + text-decoration: underline; +} + +ul, ol { + padding-left: 20px; +} + +ul li { + list-style: disc; + margin: 4px 0; +} + +ol li { + margin: 4px 0; +} + +h1 { + margin-bottom: 10px; + font-size: 34px; + font-weight: 300; + border-bottom: solid 1px #ddd; +} + +h2 { + margin-top: 24px; + margin-bottom: 10px; + font-size: 20px; + border-bottom: solid 1px #ddd; + font-weight: 300; +} + +h3 { + position: relative; + font-size: 16px; + margin-bottom: 12px; + padding: 4px; + font-weight: 300; +} + +details { + cursor: pointer; +} + +del { + text-decoration: line-through; +} + +p { + margin-bottom: 15px; + line-height: 1.5; +} + +code { + font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace; +} + +pre > code { + display: block; +} + +pre.prettyprint, pre > code { + padding: 4px; + margin: 1em 0; + background-color: #f5f5f5; + border-radius: 3px; +} + +pre.prettyprint > code { + margin: 0; +} + +p > code, +li > code { + padding: 0.2em 0.5em; + margin: 0; + font-size: 85%; + background-color: rgba(0,0,0,0.04); + border-radius: 3px; +} + +.code { + font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace; + font-size: 13px; +} + +.import-path pre.prettyprint, +.import-path pre.prettyprint code { + margin: 0; + padding: 0; + border: none; + background: white; +} + +.layout-container { + /*display: flex;*/ + /*flex-direction: row;*/ + /*justify-content: flex-start;*/ + /*align-items: stretch;*/ +} + +.layout-container > header { + display: flex; + height: 40px; + line-height: 40px; + font-size: 16px; + padding: 0 10px; + margin: 0; + position: fixed; + width: 100%; + z-index: 1; + background-color: #fafafa; + top: 0; + border-bottom: solid 1px #ddd; +} +.layout-container > header > a{ + margin: 0 5px; + color: #444; +} + +.layout-container > header > a.repo-url-github { + font-size: 0; + display: inline-block; + width: 20px; + height: 38px; + background: url("../image/github.png") no-repeat center; + background-size: 20px; + vertical-align: top; +} + +.navigation { + position: fixed; + top: 0; + left: 0; + box-sizing: border-box; + width: 250px; + height: 100%; + padding-top: 40px; + padding-left: 15px; + padding-bottom: 2em; + margin-top:1em; + overflow-x: scroll; + box-shadow: rgba(255, 255, 255, 1) -1px 0 0 inset; + border-right: 1px solid #ddd; +} + +.navigation ul { + padding: 0; +} + +.navigation li { + list-style: none; + margin: 4px 0; + white-space: nowrap; +} + +.navigation li a { + color: #666; +} + +.navigation .nav-dir-path { + display: block; + margin-top: 0.7em; + margin-bottom: 0.25em; + font-weight: 600; +} + +.kind-class, +.kind-interface, +.kind-function, +.kind-typedef, +.kind-variable, +.kind-external { + margin-left: 0.75em; + width: 1.2em; + height: 1.2em; + display: inline-block; + text-align: center; + border-radius: 0.2em; + margin-right: 0.2em; + font-weight: bold; + line-height: 1.2em; +} + +.kind-class { + color: #009800; + background-color: #bfe5bf; +} + +.kind-interface { + color: #fbca04; + background-color: #fef2c0; +} + +.kind-function { + color: #6b0090; + background-color: #d6bdde; +} + +.kind-variable { + color: #eb6420; + background-color: #fad8c7; +} + +.kind-typedef { + color: #db001e; + background-color: #edbec3; +} + +.kind-external { + color: #0738c3; + background-color: #bbcbea; +} + +.summary span[class^="kind-"] { + margin-left: 0; +} + +h1 .version, +h1 .url a { + font-size: 14px; + color: #aaa; +} + +.content { + margin-top: 40px; + margin-left: 250px; + padding: 10px 50px 10px 20px; +} + +.header-notice { + font-size: 14px; + color: #aaa; + margin: 0; +} + +.expression-extends .prettyprint { + margin-left: 10px; + background: white; +} + +.extends-chain { + border-bottom: 1px solid#ddd; + padding-bottom: 10px; + margin-bottom: 10px; +} + +.extends-chain span:nth-of-type(1) { + padding-left: 10px; +} + +.extends-chain > div { + margin: 5px 0; +} + +.description table { + font-size: 14px; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +.description thead { + background: #999; + color: white; +} + +.description table td, +.description table th { + border: solid 1px #ddd; + padding: 4px; + font-weight: normal; +} + +.flat-list ul { + padding-left: 0; +} + +.flat-list li { + display: inline; + list-style: none; +} + +table.summary { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +table.summary thead { + background: #fafafa; +} + +table.summary td { + border: solid 1px #ddd; + padding: 4px 10px; +} + +table.summary tbody td:nth-child(1) { + text-align: right; + white-space: nowrap; + min-width: 64px; + vertical-align: top; +} + +table.summary tbody td:nth-child(2) { + width: 100%; + border-right: none; +} + +table.summary tbody td:nth-child(3) { + white-space: nowrap; + border-left: none; + vertical-align: top; +} + +table.summary td > div:nth-of-type(2) { + padding-top: 4px; + padding-left: 15px; +} + +table.summary td p { + margin-bottom: 0; +} + +.inherited-summary thead td { + padding-left: 2px; +} + +.inherited-summary thead a { + color: white; +} + +.inherited-summary .summary tbody { + display: none; +} + +.inherited-summary .summary .toggle { + padding: 0 4px; + font-size: 12px; + cursor: pointer; +} +.inherited-summary .summary .toggle.closed:before { + content: "â–¶"; +} +.inherited-summary .summary .toggle.opened:before { + content: "â–¼"; +} + +.member, .method { + margin-bottom: 24px; +} + +table.params { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +table.params thead { + background: #eee; + color: #aaa; +} + +table.params td { + padding: 4px; + border: solid 1px #ddd; +} + +table.params td p { + margin: 0; +} + +.content .detail > * { + margin: 15px 0; +} + +.content .detail > h3 { + color: black; + background-color: #f0f0f0; +} + +.content .detail > div { + margin-left: 10px; +} + +.content .detail > .import-path { + margin-top: -8px; +} + +.content .detail + .detail { + margin-top: 30px; +} + +.content .detail .throw td:first-child { + padding-right: 10px; +} + +.content .detail h4 + :not(pre) { + padding-left: 0; + margin-left: 10px; +} + +.content .detail h4 + ul li { + list-style: none; +} + +.return-param * { + display: inline; +} + +.argument-params { + margin-bottom: 20px; +} + +.return-type { + padding-right: 10px; + font-weight: normal; +} + +.return-desc { + margin-left: 10px; + margin-top: 4px; +} + +.return-desc p { + margin: 0; +} + +.deprecated, .experimental, .instance-docs { + border-left: solid 5px orange; + padding-left: 4px; + margin: 4px 0; +} + +tr.listen p, +tr.throw p, +tr.emit p{ + margin-bottom: 10px; +} + +.version, .since { + color: #aaa; +} + +h3 .right-info { + position: absolute; + right: 4px; + font-size: 14px; +} + +.version + .since:before { + content: '| '; +} + +.see { + margin-top: 10px; +} + +.see h4 { + margin: 4px 0; +} + +.content .detail h4 + .example-doc { + margin: 6px 0; +} + +.example-caption { + position: relative; + bottom: -1px; + display: inline-block; + padding: 4px; + font-style: italic; + background-color: #f5f5f5; + font-weight: bold; + border-radius: 3px; + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; +} + +.example-caption + pre.source-code { + margin-top: 0; + border-top-left-radius: 0; +} + +footer, .file-footer { + text-align: right; + font-style: italic; + font-weight: 100; + font-size: 13px; + margin-right: 50px; + margin-left: 270px; + border-top: 1px solid #ddd; + padding-top: 30px; + margin-top: 20px; + padding-bottom: 10px; +} + +footer img { + width: 24px; + vertical-align: middle; + padding-left: 4px; + position: relative; + top: -3px; + opacity: 0.6; +} + +pre.source-code { + padding: 4px; +} + +pre.raw-source-code > code { + padding: 0; + margin: 0; + font-size: 12px; + background: #fff; + border: solid 1px #ddd; + line-height: 1.5; +} + +pre.raw-source-code > code > ol { + counter-reset:number; + list-style:none; + margin:0; + padding:0; + overflow: hidden; +} + +pre.raw-source-code > code > ol li:before { + counter-increment: number; + content: counter(number); + display: inline-block; + min-width: 3em; + color: #aaa; + text-align: right; + padding-right: 1em; +} + +pre.source-code.line-number { + padding: 0; +} + +pre.source-code ol { + background: #eee; + padding-left: 40px; +} + +pre.source-code li { + background: white; + padding-left: 4px; + list-style: decimal; + margin: 0; +} + +pre.source-code.line-number li.active { + background: rgb(255, 255, 150) !important; +} + +pre.source-code.line-number li.error-line { + background: #ffb8bf; +} + +.inner-link-active { + /*background: rgb(255, 255, 150) !important;*/ + background: #039BE5 !important; + color: #fff !important; + padding-left: 0.1em !important; +} + +.inner-link-active a { + color: inherit; +} diff --git a/css/test.css b/css/test.css new file mode 100644 index 0000000..8ce1266 --- /dev/null +++ b/css/test.css @@ -0,0 +1,58 @@ +table.test-summary thead { + background: #fafafa; +} + +table.test-summary thead .test-description { + width: 50%; +} + +table.test-summary { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +table.test-summary thead .test-count { + width: 3em; +} + +table.test-summary tbody tr:hover { + background-color: #eee; +} + +table.test-summary td { + border: solid 1px #ddd; + padding: 4px 10px; + vertical-align: top; +} + +table.test-summary td p { + margin: 0; +} + +table.test-summary tr.test-interface .toggle { + display: inline-block; + float: left; + margin-right: 4px; + cursor: pointer; + font-size: 0.8em; + padding-top: 0.25em; +} + +table.test-summary tr.test-interface .toggle.opened:before { + content: 'â–¼'; +} + +table.test-summary tr.test-interface .toggle.closed:before { + content: 'â–¶'; +} + +table.test-summary .test-target > span { + display: block; + margin-top: 4px; +} +table.test-summary .test-target > span:first-child { + margin-top: 0; +} diff --git a/file/src/index.js.html b/file/src/index.js.html new file mode 100644 index 0000000..5cee2f3 --- /dev/null +++ b/file/src/index.js.html @@ -0,0 +1,86 @@ + + + + + + src/index.js | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +

src/index.js

+
export * from './services';
+ +
+ + + + + + + + + + + + diff --git a/file/src/services/balance/balance.js.html b/file/src/services/balance/balance.js.html new file mode 100644 index 0000000..88f0206 --- /dev/null +++ b/file/src/services/balance/balance.js.html @@ -0,0 +1,165 @@ + + + + + + src/services/balance/balance.js | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +

src/services/balance/balance.js

+
import {NoStakeBalanceError, NoValidatorBalanceError} from "../errors";
+import {CLPublicKey} from "casper-js-sdk";
+import {CurrencyUtils} from "../helpers";
+
+/**
+ * Balance class
+ * Service used to retrieve different balances from the Casper network
+ */
+export class Balance {
+
+    /** @type {AbstractKeyManager} */
+    keyManager
+    /** @type {ClientCasper} */
+    client
+    /** @type {string} */
+    validator
+
+    /**
+     * Constructor
+     *
+     * @param {AbstractKeyManager} keyManager - Instance of a KeyManager
+     * @param {ClientCasper} client - Instance of CasperClient
+     * @param {string} validator - Hash of the main validator
+     */
+    constructor(keyManager, client, validator) {
+        this.keyManager = keyManager;
+        this.client = client;
+        this.validator = validator
+    }
+
+    /**
+     * Retrieve current user balance from the network.
+     *
+     * @return {Promise<number>} - Current balance of the user
+     */
+    async fetchBalance() {
+        return CurrencyUtils.convertMotesToCasper(
+            (await this.client.casperClient.balanceOfByPublicKey(CLPublicKey.fromHex(this.keyManager.activeKey))).toNumber()
+        );
+    }
+
+    /**
+     * Retrieve current user stake balance from the network.
+     *
+     * @return {Promise<number>} - Current stake balance of the user
+     */
+    async fetchStakeBalance() {
+        const validatorsInfo = await this.client.casperRPC.getValidatorsInfo()
+        let validator = validatorsInfo.auction_state.bids.filter(validator => {
+            return validator.public_key === this.validator
+        })[0]
+
+        let stakingBalance = validator.bid.delegators.filter(delegator => {
+            return delegator.public_key === this.keyManager.activeKey
+        })
+        if (stakingBalance.length > 0) {
+            return CurrencyUtils.convertMotesToCasper(parseInt(stakingBalance[0].staked_amount))
+        }
+        throw new NoStakeBalanceError();
+    }
+
+    /**
+     * Retrieve current validator balance from the network.
+     *
+     * @return {Promise<number>} - Current balance of the validator
+     */
+    async fetchValidatorBalance() {
+        const validatorsInfo = await this.client.casperRPC.getValidatorsInfo()
+        let validator = validatorsInfo.auction_state.bids.filter(validator => {
+            return validator.public_key === this.keyManager.activeKey
+        })[0]
+        if (validator) {
+            return {
+                balance: CurrencyUtils.convertMotesToCasper(parseInt(validator.bid.staked_amount)),
+                commission: validator.bid.delegation_rate,
+            }
+        }
+        throw new NoValidatorBalanceError()
+    }
+}
+ +
+ + + + + + + + + + + + diff --git a/file/src/services/clients/clientCasper.js.html b/file/src/services/clients/clientCasper.js.html new file mode 100644 index 0000000..87d7cad --- /dev/null +++ b/file/src/services/clients/clientCasper.js.html @@ -0,0 +1,107 @@ + + + + + + src/services/clients/clientCasper.js | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +

src/services/clients/clientCasper.js

+
import {CasperClient, CasperServiceByJsonRPC} from "casper-js-sdk";
+
+/**
+ * ClientCasper class
+ * Contains the casper client and the casper rpc client
+ */
+export class ClientCasper {
+
+    /** @type {CasperClient} */
+    casperClient
+    /** @type {CasperServiceByJsonRPC} */
+    casperRPC
+
+    /**
+     * Constructor
+     * @param {string} rpc - Url of the node rpc endpoint
+     */
+    constructor(rpc) {
+        this.casperClient = new CasperClient(rpc)
+        this.casperRPC = new CasperServiceByJsonRPC(rpc)
+    }
+}
+ +
+ + + + + + + + + + + + diff --git a/file/src/services/clients/index.js.html b/file/src/services/clients/index.js.html new file mode 100644 index 0000000..0e092cb --- /dev/null +++ b/file/src/services/clients/index.js.html @@ -0,0 +1,86 @@ + + + + + + src/services/clients/index.js | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +

src/services/clients/index.js

+
export * from './clientCasper';
+ +
+ + + + + + + + + + + + diff --git a/file/src/services/deploys/abstractSmartContractDeployParameters.js.html b/file/src/services/deploys/abstractSmartContractDeployParameters.js.html new file mode 100644 index 0000000..cdb08d8 --- /dev/null +++ b/file/src/services/deploys/abstractSmartContractDeployParameters.js.html @@ -0,0 +1,137 @@ + + + + + + src/services/deploys/abstractSmartContractDeployParameters.js | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +

src/services/deploys/abstractSmartContractDeployParameters.js

+
import {DeployUtil} from "casper-js-sdk";
+
+/**
+ * AbstractSmartContractDeployParameters class
+ * Abstract class used to define specifics DeployParameters
+ */
+export class AbstractSmartContractDeployParameters {
+    /**
+     * Get the deployParams deploy argument
+     *
+     * @return {DeployUtil.DeployParams} - Return a DeployParams
+     */
+    get deployParams() {
+        throw "You must implement this method"
+    }
+
+    /**
+     * Get the session deploy argument
+     *
+     * @return {DeployUtil.ExecutableDeployItem} - Return a session with a SmartContract stored by hash on the network
+     */
+    get session() {
+        throw "You must implement this method"
+    }
+
+    /**
+     * Get the payment deploy argument
+     *
+     * @return {DeployUtil.ExecutableDeployItem} - Return a standard payment
+     */
+    get payment() {
+        throw "You must implement this method"
+    }
+
+    /**
+     * Get a DeployResult constructor
+     *
+     * @return {DeployResult.constructor} - Return the constructor of a given DeployResult
+     */
+    get deployResult() {
+        throw "You must implement this method"
+    }
+
+    /**
+     * Create a unsigned Deploy object
+     *
+     * @return {Deploy} - Return a deploy object
+     */
+    get makeDeploy() {
+        return DeployUtil.makeDeploy(this.deployParams, this.session, this.payment)
+    }
+}
+ +
+ + + + + + + + + + + + diff --git a/file/src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js.html b/file/src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js.html new file mode 100644 index 0000000..f68e7e1 --- /dev/null +++ b/file/src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js.html @@ -0,0 +1,160 @@ + + + + + + src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +

src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js

+
import {AbstractSmartContractDeployParameters} from "./abstractSmartContractDeployParameters";
+import {CLPublicKey, DeployUtil} from "casper-js-sdk";
+
+/**
+ * AbstractSmartContractStoredByHashDeployParameters class
+ * Abstract class used to defined specific DeployParameters for SmartContracts stored by hash on the network
+ */
+export class AbstractSmartContractStoredByHashDeployParameters extends AbstractSmartContractDeployParameters {
+    /** @type {string} */
+    activeKey;
+    /** @type {string} */
+    network;
+    /** @type {string} */
+    hash;
+    /** @type {string} */
+    entrypoint;
+    /** @type {DeployUtil.RuntimeArgs} */
+    args;
+    /** @type {number} */
+    fee;
+
+    /**
+     * Constructor
+     *
+     * @param {string} activeKey - Current active key in the public hex format
+     * @param {string} network - Current network to execute the deployment
+     * @param {string} hash - Current hash of the stored SmartContract
+     * @param {string} entrypoint - Entrypoint of the SmartContract
+     * @param {DeployUtil.RuntimeArgs} args - Arguments of the SmartContract
+     * @param {number} fee - Runtime fee for the given SmartContract operation
+     */
+    constructor(activeKey, network, hash, entrypoint, args, fee) {
+        super()
+        this.activeKey = activeKey;
+        this.network = network;
+        this.hash = hash;
+        this.entrypoint = entrypoint;
+        this.args = args;
+        this.fee = fee;
+    }
+
+    /**
+     * Get the deployParams deploy argument
+     *
+     * @return {DeployUtil.DeployParams} - Return a DeployParams
+     */
+    get deployParams() {
+        return new DeployUtil.DeployParams(
+            CLPublicKey.fromHex(this.activeKey),
+            this.network
+        );
+    }
+
+    /**
+     * Get the session deploy argument
+     *
+     * @return {DeployUtil.ExecutableDeployItem} - Return a session with a SmartContract stored by hash on the network
+     */
+    get session() {
+        return DeployUtil.ExecutableDeployItem.newStoredContractByHash(
+            Uint8Array.from(Buffer.from(this.hash, "hex")),
+            this.entrypoint,
+            this.args
+        );
+    }
+
+    /**
+     * Get the payment deploy argument
+     *
+     * @return {DeployUtil.ExecutableDeployItem} - Return a standard payment
+     */
+    get payment() {
+        return DeployUtil.standardPayment(this.fee);
+    }
+}
+ +
+ + + + + + + + + + + + diff --git a/file/src/services/deploys/auction/actions/addBid.js.html b/file/src/services/deploys/auction/actions/addBid.js.html new file mode 100644 index 0000000..970813b --- /dev/null +++ b/file/src/services/deploys/auction/actions/addBid.js.html @@ -0,0 +1,134 @@ + + + + + + src/services/deploys/auction/actions/addBid.js | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +

src/services/deploys/auction/actions/addBid.js

+
import {CLPublicKey, CLU512, CLU8, RuntimeArgs} from "casper-js-sdk";
+import {CurrencyUtils} from "../../../helpers/currencyUtils";
+import {AddBidResult} from "../../../results/addBidResult";
+import {AbstractSmartContractStoredByHashDeployParameters} from "../../abstractSmartContractStoredByHashDeployParameters";
+
+/**
+ * @constant
+ * @type {string}
+ */
+const entrypoint = 'add_bid'
+/**
+ * @constant
+ * @type {number}
+ */
+const fee = 2800000000
+
+/**
+ * AddBid class
+ * Class used to create DeployParameters for a AddBid operation
+ */
+export class AddBid extends AbstractSmartContractStoredByHashDeployParameters {
+
+    /**
+     * Constructor
+     *
+     * @param {number} amount - Amount of casper to add to the bid
+     * @param {string} activeKey - Current active key in the public hex format
+     * @param {number} commission - Set the commission of the validator to the given percentage
+     * @param {string} network - Current network to execute the deployment
+     * @param {string} hash - Current hash of the stored SmartContract
+     */
+    constructor(amount, activeKey, commission, network, hash) {
+        const args = RuntimeArgs.fromMap({
+            public_key: CLPublicKey.fromHex(activeKey),
+            amount: new CLU512(CurrencyUtils.convertCasperToMotes(amount)),
+            delegation_rate: new CLU8(commission)
+        })
+        super(activeKey, network, hash, entrypoint, args, fee);
+    }
+
+    /**
+     * Get a DeployResult constructor
+     *
+     * @return {DeployResult.constructor} - Return the constructor of a given DeployResult
+     */
+    get deployResult() {
+        return AddBidResult
+    }
+}
+ +
+ + + + + + + + + + + + diff --git a/file/src/services/deploys/auction/actions/delegate.js.html b/file/src/services/deploys/auction/actions/delegate.js.html new file mode 100644 index 0000000..a831748 --- /dev/null +++ b/file/src/services/deploys/auction/actions/delegate.js.html @@ -0,0 +1,134 @@ + + + + + + src/services/deploys/auction/actions/delegate.js | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +

src/services/deploys/auction/actions/delegate.js

+
import {CLPublicKey, CLU512, RuntimeArgs} from "casper-js-sdk";
+import {CurrencyUtils} from "../../../helpers";
+import {DelegateResult} from "../../../results";
+import {AbstractSmartContractStoredByHashDeployParameters} from "../../abstractSmartContractStoredByHashDeployParameters";
+
+/**
+ * @constant
+ * @type {string}
+ */
+const entrypoint = 'delegate'
+/**
+ * @constant
+ * @type {number}
+ */
+const fee = 2910000000
+
+/**
+ * Delegate class
+ * Class used to create DeployParameters for a Delegate operation
+ */
+export class Delegate extends AbstractSmartContractStoredByHashDeployParameters {
+
+    /**
+     * Constructor
+     *
+     * @param {number} amount - Amount of casper to add to delegate
+     * @param {string} activeKey - Current active key in the public hex format
+     * @param {string} validator - Public key in the hex format of the validator
+     * @param {string} network - Current network to execute the deployment
+     * @param {string} hash - Current hash of the stored SmartContract
+     */
+    constructor(amount, activeKey, validator, network, hash) {
+        const args = RuntimeArgs.fromMap({
+            delegator: CLPublicKey.fromHex(activeKey),
+            validator: CLPublicKey.fromHex(validator),
+            amount: new CLU512(CurrencyUtils.convertCasperToMotes(amount))
+        })
+        super(activeKey, network, hash, entrypoint, args, fee);
+    }
+
+    /**
+     * Get a DeployResult constructor
+     *
+     * @return {DeployResult.constructor} - Return the constructor of a given DeployResult
+     */
+    get deployResult() {
+        return DelegateResult
+    }
+}
+ +
+ + + + + + + + + + + + diff --git a/file/src/services/deploys/auction/actions/index.js.html b/file/src/services/deploys/auction/actions/index.js.html new file mode 100644 index 0000000..e9677b3 --- /dev/null +++ b/file/src/services/deploys/auction/actions/index.js.html @@ -0,0 +1,89 @@ + + + + + + src/services/deploys/auction/actions/index.js | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +

src/services/deploys/auction/actions/index.js

+
export * from './addBid';
+export * from './delegate';
+export * from './undelegate';
+export * from './withdrawBid';
+ +
+ + + + + + + + + + + + diff --git a/file/src/services/deploys/auction/actions/undelegate.js.html b/file/src/services/deploys/auction/actions/undelegate.js.html new file mode 100644 index 0000000..0965779 --- /dev/null +++ b/file/src/services/deploys/auction/actions/undelegate.js.html @@ -0,0 +1,134 @@ + + + + + + src/services/deploys/auction/actions/undelegate.js | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +

src/services/deploys/auction/actions/undelegate.js

+
import {CLPublicKey, CLU512, RuntimeArgs} from "casper-js-sdk";
+import {CurrencyUtils} from "../../../helpers/currencyUtils";
+import {UndelegateResult} from "../../../results/undelegateResult";
+import {AbstractSmartContractStoredByHashDeployParameters} from "../../abstractSmartContractStoredByHashDeployParameters";
+
+/**
+ * @constant
+ * @type {string}
+ */
+const entrypoint = 'undelegate'
+/**
+ * @constant
+ * @type {number}
+ */
+const fee = 410000000
+
+/**
+ * Undelegate class
+ * Class used to create DeployParameters for a Undelegate operation
+ */
+export class Undelegate extends AbstractSmartContractStoredByHashDeployParameters {
+
+    /**
+     * Constructor
+     *
+     * @param {number} amount - Amount of casper to add to undelegate
+     * @param {string} activeKey - Current active key in the public hex format
+     * @param {string} validator - Public key in the hex format of the validator
+     * @param {string} network - Current network to execute the deployment
+     * @param {string} hash - Current hash of the stored SmartContract
+     */
+    constructor(amount, activeKey, validator, network, hash) {
+        const args = RuntimeArgs.fromMap({
+            delegator: CLPublicKey.fromHex(activeKey),
+            validator: CLPublicKey.fromHex(validator),
+            amount: new CLU512(CurrencyUtils.convertCasperToMotes(amount))
+        })
+        super(activeKey, network, hash, entrypoint, args, fee);
+    }
+
+    /**
+     * Get a DeployResult constructor
+     *
+     * @return {DeployResult.constructor} - Return the constructor of a given DeployResult
+     */
+    get deployResult() {
+        return UndelegateResult
+    }
+}
+ +
+ + + + + + + + + + + + diff --git a/file/src/services/deploys/auction/actions/withdrawBid.js.html b/file/src/services/deploys/auction/actions/withdrawBid.js.html new file mode 100644 index 0000000..9f6d27f --- /dev/null +++ b/file/src/services/deploys/auction/actions/withdrawBid.js.html @@ -0,0 +1,132 @@ + + + + + + src/services/deploys/auction/actions/withdrawBid.js | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +

src/services/deploys/auction/actions/withdrawBid.js

+
import {CLPublicKey, CLU512, RuntimeArgs} from "casper-js-sdk";
+import {CurrencyUtils} from "../../../helpers/currencyUtils";
+import {WithdrawBidResult} from "../../../results/withdrawBidResult";
+import {AbstractSmartContractStoredByHashDeployParameters} from "../../abstractSmartContractStoredByHashDeployParameters";
+
+/**
+ * @constant
+ * @type {string}
+ */
+const entrypoint = 'withdraw_bid'
+/**
+ * @constant
+ * @type {number}
+ */
+const fee = 220000000
+
+/**
+ * WithdrawBid
+ * Class used to create DeployParameters for a WithdrawBid operation
+ */
+export class WithdrawBid extends AbstractSmartContractStoredByHashDeployParameters {
+
+    /**
+     * Constructor
+     *
+     * @param {number} amount - Amount of casper to withdraw to the bid
+     * @param {string} activeKey - Current active key in the public hex format
+     * @param {string} network - Current network to execute the deployment
+     * @param {string} hash - Current hash of the stored SmartContract
+     */
+    constructor(amount, activeKey, network, hash) {
+        const args = RuntimeArgs.fromMap({
+            public_key: CLPublicKey.fromHex(activeKey),
+            amount: new CLU512(CurrencyUtils.convertCasperToMotes(amount)),
+        })
+        super(activeKey, network, hash, entrypoint, args, fee);
+    }
+
+    /**
+     * Get a DeployResult constructor
+     *
+     * @return {DeployResult.constructor} - Return the constructor of a given DeployResult
+     */
+    get deployResult() {
+        return WithdrawBidResult
+    }
+}
+ +
+ + + + + + + + + + + + diff --git a/file/src/services/deploys/auction/index.js.html b/file/src/services/deploys/auction/index.js.html new file mode 100644 index 0000000..8eb4772 --- /dev/null +++ b/file/src/services/deploys/auction/index.js.html @@ -0,0 +1,86 @@ + + + + + + src/services/deploys/auction/index.js | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +

src/services/deploys/auction/index.js

+
export * from './actions';
+ +
+ + + + + + + + + + + + diff --git a/file/src/services/deploys/deployManager.js.html b/file/src/services/deploys/deployManager.js.html new file mode 100644 index 0000000..1affdbf --- /dev/null +++ b/file/src/services/deploys/deployManager.js.html @@ -0,0 +1,160 @@ + + + + + + src/services/deploys/deployManager.js | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +

src/services/deploys/deployManager.js

+
import {CurrencyUtils} from "../helpers/currencyUtils";
+import {STATUS_KO, STATUS_OK} from "../results/deployResult";
+
+/**
+ * DeployManager class
+ * Used to handle the deploy process
+ */
+export class DeployManager {
+    /** @type {ClientCasper} */
+    client;
+
+    /**
+     * Constructor
+     *
+     * @param {ClientCasper} client - ClientCasper object
+     */
+    constructor(client) {
+        this.client = client;
+    }
+
+    /***
+     * Send a deployment to the network
+     *
+     * @param {Deploy} deploy - Signed Deploy object
+     * @param deployResult - A DeployResult class
+     * @returns {Promise<DeployResult>} - Return a DeployResult object
+     */
+    async sendDeploy(deploy, deployResult) {
+        const hash = await this.client.casperClient.putDeploy(deploy)
+        return new deployResult(hash)
+    }
+
+    /**
+     * Prepare, sign and send a deployment
+     *
+     * @param {AbstractSmartContractDeployParameters} deployParameter - Instance of a DeployParameters object
+     * @param {AbstractSigner} signer - Instance of a Signer object
+     * @param {Object} options - Generic object for additional parameters
+     * @return {Promise<DeployResult>} - Return a DeployResult object
+     */
+    async prepareSignAndSendDeploy(deployParameter, signer, options) {
+        const signedDeploy = await signer.sign(deployParameter.makeDeploy, options);
+        return await this.sendDeploy(signedDeploy, deployParameter.deployResult);
+    }
+
+    /**
+     * Update a DeployResult object
+     *
+     * @param {DeployResult} deployResult - DeployResult object
+     * @returns {Promise<DeployResult>} - Return an updated DeployResult object
+     */
+    async getDeployResult(deployResult) {
+        const result = await this.client.casperClient.getDeploy(deployResult.hash)
+        let deploy = result[0]
+        let execResult = result[1].execution_results
+        if (execResult.length > 0) {
+            execResult = execResult[0].result;
+        }
+        if (deploy.session.getArgByName("amount")) {
+            deployResult.amount = CurrencyUtils.convertMotesToCasper(deploy.session.getArgByName("amount").value().toString())
+        }
+        if (STATUS_OK in execResult) {
+            deployResult.cost = CurrencyUtils.convertMotesToCasper(execResult[STATUS_OK].cost)
+            deployResult.status = STATUS_OK
+            return deployResult
+        }
+        if (STATUS_KO in execResult) {
+            deployResult.cost = CurrencyUtils.convertMotesToCasper(execResult[STATUS_KO].cost)
+            deployResult.status = STATUS_KO
+            deployResult.message = execResult[STATUS_KO].error_message
+        }
+        return deployResult;
+    }
+
+}
+ +
+ + + + + + + + + + + + diff --git a/file/src/services/deploys/index.js.html b/file/src/services/deploys/index.js.html new file mode 100644 index 0000000..1466a36 --- /dev/null +++ b/file/src/services/deploys/index.js.html @@ -0,0 +1,89 @@ + + + + + + src/services/deploys/index.js | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +

src/services/deploys/index.js

+
export * from './auction';
+export * from './smartContract/smartContractDeployParameters';
+export * from './transfer/TransferDeployParameters';
+export * from './deployManager';
+ +
+ + + + + + + + + + + + diff --git a/file/src/services/deploys/smartContract/smartContractDeployParameters.js.html b/file/src/services/deploys/smartContract/smartContractDeployParameters.js.html new file mode 100644 index 0000000..4f23f74 --- /dev/null +++ b/file/src/services/deploys/smartContract/smartContractDeployParameters.js.html @@ -0,0 +1,159 @@ + + + + + + src/services/deploys/smartContract/smartContractDeployParameters.js | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +

src/services/deploys/smartContract/smartContractDeployParameters.js

+
import {AbstractSmartContractDeployParameters} from "../abstractSmartContractDeployParameters";
+import {CLPublicKey, DeployUtil, RuntimeArgs} from "casper-js-sdk";
+import {SmartContractResult} from "../../results/smartContractResult";
+import {CurrencyUtils} from "../../helpers/currencyUtils";
+
+/**
+ * SmartContractDeployParameters class
+ * Class used to define the parameters of a deployment to send a smart contract on the network
+ */
+export class SmartContractDeployParameters extends AbstractSmartContractDeployParameters {
+    /** @type {string} */
+    activeKey;
+    /** @type {string} */
+    network;
+    /** @type {Buffer} */
+    smartContractBuffer;
+    /** @type {number} */
+    fee;
+
+    /**
+     * Constructor
+     *
+     * @param {string} activeKey - Current active key in the public hex format
+     * @param {string} network - Current network to execute the deployment
+     * @param {Buffer} smartContractBuffer - Buffer of the SmartContract previously read
+     * @param {number} fee - Runtime fee for the given SmartContract operation
+     */
+    constructor(activeKey, network, smartContractBuffer, fee) {
+        super()
+        this.activeKey = activeKey;
+        this.network = network;
+        this.smartContractBuffer = smartContractBuffer;
+        this.fee = fee;
+    }
+
+    /**
+     * Get the deployParams deploy argument
+     *
+     * @return {DeployUtil.DeployParams} - Return a DeployParams
+     */
+    get deployParams() {
+        return new DeployUtil.DeployParams(
+            CLPublicKey.fromHex(this.activeKey),
+            this.network
+        );
+    }
+
+    /**
+     * Get the session deploy argument
+     *
+     * @return {DeployUtil.ExecutableDeployItem} - Return a session with a SmartContract stored by hash on the network
+     */
+    get session() {
+        return DeployUtil.ExecutableDeployItem.newModuleBytes(new Uint8Array(this.smartContractBuffer), RuntimeArgs.fromMap({}));
+    }
+
+    /**
+     * Get the payment deploy argument
+     *
+     * @return {DeployUtil.ExecutableDeployItem} - Return a standard payment
+     */
+    get payment() {
+        return DeployUtil.standardPayment(CurrencyUtils.convertCasperToMotes(this.fee));
+    }
+
+    /**
+     * Get a DeployResult constructor
+     *
+     * @return {DeployResult.constructor} - Return the constructor of a given DeployResult
+     */
+    get deployResult() {
+        return SmartContractResult
+    }
+}
+ +
+ + + + + + + + + + + + diff --git a/file/src/services/deploys/transfer/TransferDeployParameters.js.html b/file/src/services/deploys/transfer/TransferDeployParameters.js.html new file mode 100644 index 0000000..5e4f327 --- /dev/null +++ b/file/src/services/deploys/transfer/TransferDeployParameters.js.html @@ -0,0 +1,174 @@ + + + + + + src/services/deploys/transfer/TransferDeployParameters.js | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +

src/services/deploys/transfer/TransferDeployParameters.js

+
import {AbstractSmartContractDeployParameters} from "../abstractSmartContractDeployParameters";
+import {CLPublicKey, DeployUtil} from "casper-js-sdk";
+import {CurrencyUtils} from "../../helpers";
+import {TransferResult} from "../../results";
+
+/**
+ * @constant
+ * @type {number}
+ */
+const fee = 10000
+
+/**
+ * TransferDeployParameters class
+ * Class used to create DeployParameters for a Transfer operation
+ */
+export class TransferDeployParameters extends AbstractSmartContractDeployParameters {
+    /** @type {string} */
+    activeKey;
+    /** @type {string} */
+    network;
+    /** @type {number} */
+    amount;
+    /** @type {string} */
+    target;
+    /** @type {string} */
+    transferID;
+
+    /**
+     * Constructor
+     *
+     * @param {string} activeKey - Current active key in the public hex format
+     * @param {string} network - Current network to execute the deployment
+     * @param {number} amount - Amount to transfer in casper
+     * @param {string} target - Public key in the hex format of the receiver
+     * @param {string} transferID - TransferID of the transfer operation
+     */
+    constructor(activeKey, network, amount, target, transferID) {
+        super()
+        this.activeKey = activeKey;
+        this.network = network;
+        this.amount = amount;
+        this.target = target;
+        this.transferID = transferID;
+    }
+
+    /**
+     * Get the deployParams deploy argument
+     *
+     * @return {DeployUtil.DeployParams} - Return a DeployParams
+     */
+    get deployParams() {
+        return new DeployUtil.DeployParams(
+            CLPublicKey.fromHex(this.activeKey),
+            this.network
+        );
+    }
+
+    /**
+     * Get the session deploy argument
+     *
+     * @return {DeployUtil.ExecutableDeployItem} - Return a session with a SmartContract stored by hash on the network
+     */
+    get session() {
+        return DeployUtil.ExecutableDeployItem.newTransfer(
+            CurrencyUtils.convertCasperToMotes(this.amount),
+            CLPublicKey.fromHex(this.target),
+            undefined,
+            this.transferID
+        );
+    }
+
+    /**
+     * Get the payment deploy argument
+     *
+     * @return {DeployUtil.ExecutableDeployItem} - Return a standard payment
+     */
+    get payment() {
+        return DeployUtil.standardPayment(fee);
+    }
+
+    /**
+     * Get a DeployResult constructor
+     *
+     * @return {TransferResult.constructor} - Return the constructor of a given DeployResult
+     */
+    get deployResult() {
+        return TransferResult
+    }
+}
+ +
+ + + + + + + + + + + + diff --git a/file/src/services/errors/extendableError.js.html b/file/src/services/errors/extendableError.js.html new file mode 100644 index 0000000..4e32641 --- /dev/null +++ b/file/src/services/errors/extendableError.js.html @@ -0,0 +1,110 @@ + + + + + + src/services/errors/extendableError.js | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +

src/services/errors/extendableError.js

+
/**
+ * ExtendableError class
+ * Generic error class used as a wrapper to define specific errors
+ */
+export class ExtendableError extends Error {
+    /** @type {string} */
+    name
+    /** @type {string} */
+    stack
+
+    /**
+     * Constructor
+     *
+     * @param {string} message - Error message
+     */
+    constructor(message) {
+        super(message);
+        this.name = this.constructor.name;
+        if (typeof Error.captureStackTrace === "function") {
+            Error.captureStackTrace(this, this.constructor);
+        } else {
+            this.stack = (new Error(message)).stack;
+        }
+    }
+}
+ +
+ + + + + + + + + + + + diff --git a/file/src/services/errors/index.js.html b/file/src/services/errors/index.js.html new file mode 100644 index 0000000..a28697a --- /dev/null +++ b/file/src/services/errors/index.js.html @@ -0,0 +1,90 @@ + + + + + + src/services/errors/index.js | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +

src/services/errors/index.js

+
export * from './insufficientFunds';
+export * from './noActiveKeyError';
+export * from './noStakeBalanceError';
+export * from './noValidatorBalanceError';
+export * from './signError';
+ +
+ + + + + + + + + + + + diff --git a/file/src/services/errors/insufficientFunds.js.html b/file/src/services/errors/insufficientFunds.js.html new file mode 100644 index 0000000..12f155a --- /dev/null +++ b/file/src/services/errors/insufficientFunds.js.html @@ -0,0 +1,101 @@ + + + + + + src/services/errors/insufficientFunds.js | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +

src/services/errors/insufficientFunds.js

+
import {ExtendableError} from "./extendableError";
+
+/**
+ * InsufficientFunds class
+ * Error thrown when the user as insufficient funds in his balance
+ */
+export class InsufficientFunds extends ExtendableError {
+    /**
+     * Constructor
+     *
+     * @param min - Minimum casper needed
+     */
+    constructor(min) {
+        super("Insufficient funds. You must have more than " + min + " CSPR on your wallet.");
+    }
+}
+ +
+ + + + + + + + + + + + diff --git a/file/src/services/errors/noActiveKeyError.js.html b/file/src/services/errors/noActiveKeyError.js.html new file mode 100644 index 0000000..68f2fb8 --- /dev/null +++ b/file/src/services/errors/noActiveKeyError.js.html @@ -0,0 +1,99 @@ + + + + + + src/services/errors/noActiveKeyError.js | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +

src/services/errors/noActiveKeyError.js

+
import {ExtendableError} from "./extendableError";
+
+/**
+ * NoActiveKeyError class
+ * Error thrown when the user is not connected to the Casper signer extension
+ */
+export class NoActiveKeyError extends ExtendableError {
+    /**
+     * Constructor
+     */
+    constructor() {
+        super("Not connected on Signer.");
+    }
+}
+ +
+ + + + + + + + + + + + diff --git a/file/src/services/errors/noStakeBalanceError.js.html b/file/src/services/errors/noStakeBalanceError.js.html new file mode 100644 index 0000000..71916d4 --- /dev/null +++ b/file/src/services/errors/noStakeBalanceError.js.html @@ -0,0 +1,99 @@ + + + + + + src/services/errors/noStakeBalanceError.js | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +

src/services/errors/noStakeBalanceError.js

+
import {ExtendableError} from "./extendableError";
+
+/**
+ * NoStakeBalanceError class
+ * Error thrown when the user doesn't have a staking balance
+ */
+export class NoStakeBalanceError extends ExtendableError {
+    /**
+     * Constructor
+     */
+    constructor() {
+        super("No staking funds.");
+    }
+}
+ +
+ + + + + + + + + + + + diff --git a/file/src/services/errors/noValidatorBalanceError.js.html b/file/src/services/errors/noValidatorBalanceError.js.html new file mode 100644 index 0000000..a55bae6 --- /dev/null +++ b/file/src/services/errors/noValidatorBalanceError.js.html @@ -0,0 +1,99 @@ + + + + + + src/services/errors/noValidatorBalanceError.js | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +

src/services/errors/noValidatorBalanceError.js

+
import {ExtendableError} from "./extendableError";
+
+/**
+ * NoValidatorBalanceError class
+ * Error thrown when the current user doesn't have a validator balance
+ */
+export class NoValidatorBalanceError extends ExtendableError {
+    /**
+     * Constructor
+     */
+    constructor() {
+        super("Unable to retrieve your Validator balance. Make sure that you are correctly bonded to the network.");
+    }
+}
+ +
+ + + + + + + + + + + + diff --git a/file/src/services/errors/signError.js.html b/file/src/services/errors/signError.js.html new file mode 100644 index 0000000..a46b610 --- /dev/null +++ b/file/src/services/errors/signError.js.html @@ -0,0 +1,99 @@ + + + + + + src/services/errors/signError.js | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +

src/services/errors/signError.js

+
import {ExtendableError} from "./extendableError";
+
+/**
+ * SignError class
+ * Error thrown when there's a error with the deploy signature process
+ */
+export class SignError extends ExtendableError {
+    /**
+     * Constructor
+     */
+    constructor() {
+        super("Failed to sign the contract. Please retry if you canceled the operation.");
+    }
+}
+ +
+ + + + + + + + + + + + diff --git a/file/src/services/helpers/currencyUtils.js.html b/file/src/services/helpers/currencyUtils.js.html new file mode 100644 index 0000000..83b80a6 --- /dev/null +++ b/file/src/services/helpers/currencyUtils.js.html @@ -0,0 +1,111 @@ + + + + + + src/services/helpers/currencyUtils.js | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +

src/services/helpers/currencyUtils.js

+
/**
+ * CurrencyUtils class
+ * Used to convert from/to casper/motes
+ */
+export class CurrencyUtils {
+
+    /**
+     * Convert motes to casper
+     *
+     * @param {number} motesAmount - Amount in motes
+     * @return {number}
+     */
+    static convertMotesToCasper(motesAmount) {
+        return motesAmount / 1000000000;
+    }
+
+    /**
+     * Convert casper to motes
+     *
+     * @param {number} casperAmount - Amount in casper
+     * @return {number}
+     */
+    static convertCasperToMotes(casperAmount) {
+        return casperAmount * 1000000000;
+    }
+}
+ +
+ + + + + + + + + + + + diff --git a/file/src/services/helpers/index.js.html b/file/src/services/helpers/index.js.html new file mode 100644 index 0000000..25ce981 --- /dev/null +++ b/file/src/services/helpers/index.js.html @@ -0,0 +1,86 @@ + + + + + + src/services/helpers/index.js | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +

src/services/helpers/index.js

+
export * from './currencyUtils';
+ +
+ + + + + + + + + + + + diff --git a/file/src/services/index.js.html b/file/src/services/index.js.html new file mode 100644 index 0000000..ecedff5 --- /dev/null +++ b/file/src/services/index.js.html @@ -0,0 +1,93 @@ + + + + + + src/services/index.js | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +

src/services/index.js

+
export * from './clients';
+export * from './deploys';
+export * from './errors';
+export * from './helpers';
+export * from './keys';
+export * from './results';
+export * from './signers';
+export * from './balance/balance';
+ +
+ + + + + + + + + + + + diff --git a/file/src/services/keys/abstractKeyManager.js.html b/file/src/services/keys/abstractKeyManager.js.html new file mode 100644 index 0000000..333233a --- /dev/null +++ b/file/src/services/keys/abstractKeyManager.js.html @@ -0,0 +1,99 @@ + + + + + + src/services/keys/abstractKeyManager.js | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +

src/services/keys/abstractKeyManager.js

+
/**
+ * AbstractKeyManager class
+ * Used to define multiple key managers
+ */
+export class AbstractKeyManager {
+    /**
+     * Retrieve the current active key
+     *
+     * @return string - Must return a public key hex
+     */
+    get activeKey() {
+        throw new Error('You must implement this function');
+    }
+}
+ +
+ + + + + + + + + + + + diff --git a/file/src/services/keys/index.js.html b/file/src/services/keys/index.js.html new file mode 100644 index 0000000..9c4d668 --- /dev/null +++ b/file/src/services/keys/index.js.html @@ -0,0 +1,87 @@ + + + + + + src/services/keys/index.js | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +

src/services/keys/index.js

+
export * from './abstractKeyManager';
+export * from './vuexKeyManager';
+ +
+ + + + + + + + + + + + diff --git a/file/src/services/results/addBidResult.js.html b/file/src/services/results/addBidResult.js.html new file mode 100644 index 0000000..493ca56 --- /dev/null +++ b/file/src/services/results/addBidResult.js.html @@ -0,0 +1,109 @@ + + + + + + src/services/results/addBidResult.js | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +

src/services/results/addBidResult.js

+
import {DeployResult} from "./deployResult";
+
+/**
+ * AddBidResult class
+ */
+export class AddBidResult extends DeployResult {
+    /**
+     * Constructor
+     *
+     * @param {string} hash - DeployHash of the deployment
+     */
+    constructor(hash) {
+        super(hash, AddBidResult.getName())
+    }
+
+    /**
+     * Retrieve the name of the operation behind the deployment
+     *
+     * @return {string} - the name of the operation behind the deployment
+     */
+    static getName() {
+        return 'Add bid Operation'
+    }
+}
+ +
+ + + + + + + + + + + + diff --git a/file/src/services/results/delegateResult.js.html b/file/src/services/results/delegateResult.js.html new file mode 100644 index 0000000..d9a670f --- /dev/null +++ b/file/src/services/results/delegateResult.js.html @@ -0,0 +1,109 @@ + + + + + + src/services/results/delegateResult.js | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +

src/services/results/delegateResult.js

+
import {DeployResult} from "./deployResult";
+
+/**
+ * DelegateResult class
+ */
+export class DelegateResult extends DeployResult {
+    /**
+     * Constructor
+     *
+     * @param {string} hash - DeployHash of the deployment
+     */
+    constructor(hash) {
+        super(hash, DelegateResult.getName())
+    }
+
+    /**
+     * Retrieve the name of the operation behind the deployment
+     *
+     * @return {string} - the name of the operation behind the deployment
+     */
+    static getName() {
+        return 'Staking Operation'
+    }
+}
+ +
+ + + + + + + + + + + + diff --git a/file/src/services/results/deployResult.js.html b/file/src/services/results/deployResult.js.html new file mode 100644 index 0000000..93433c1 --- /dev/null +++ b/file/src/services/results/deployResult.js.html @@ -0,0 +1,142 @@ + + + + + + src/services/results/deployResult.js | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +

src/services/results/deployResult.js

+
/**
+ * @constant
+ * @type {string}
+ */
+export const STATUS_UNKNOWN = "Unknown";
+/**
+ * @constant
+ * @type {string}
+ */
+export const STATUS_OK = "Success";
+/**
+ * @constant
+ * @type {string}
+ */
+export const STATUS_KO = "Failure";
+
+/**
+ * DeployResult class
+ * Object used to keep the track of a deploy result.
+ */
+export class DeployResult {
+    /** @type {string} */
+    hash;
+    /** @type {number} */
+    cost;
+    /** @type {string} */
+    status;
+    /** @type {string} */
+    message;
+    /** @type {number} */
+    amount;
+    /** @type {string} */
+    name;
+
+    /**
+     * Constructor
+     *
+     * @param {string} hash - DeployHash of the deployment
+     * @param {string} name - Name of the operation
+     */
+    constructor(hash, name) {
+        this.hash = hash;
+        this.cost = 0;
+        this.status = STATUS_UNKNOWN;
+        this.message = "";
+        this.amount = 0;
+        this.name = name;
+    }
+
+    /**
+     * Retrieve the name of the operation behind the deployment
+     * Must return the name of the operation behind the deployment
+     */
+    static getName() {
+        throw "You must implement this method"
+    }
+}
+ +
+ + + + + + + + + + + + diff --git a/file/src/services/results/index.js.html b/file/src/services/results/index.js.html new file mode 100644 index 0000000..cb73539 --- /dev/null +++ b/file/src/services/results/index.js.html @@ -0,0 +1,92 @@ + + + + + + src/services/results/index.js | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +

src/services/results/index.js

+
export * from './addBidResult';
+export * from './delegateResult';
+export * from './deployResult';
+export * from './smartContractResult';
+export * from './transferResult';
+export * from './undelegateResult';
+export * from './withdrawBidResult';
+ +
+ + + + + + + + + + + + diff --git a/file/src/services/results/smartContractResult.js.html b/file/src/services/results/smartContractResult.js.html new file mode 100644 index 0000000..af7ac1c --- /dev/null +++ b/file/src/services/results/smartContractResult.js.html @@ -0,0 +1,108 @@ + + + + + + src/services/results/smartContractResult.js | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +

src/services/results/smartContractResult.js

+
import {DeployResult} from "./deployResult";
+
+/**
+ * SmartContractResult class
+ */
+export class SmartContractResult extends DeployResult {
+    /**
+     * Constructor
+     * @param {string} hash - DeployHash of the deployment
+     */
+    constructor(hash) {
+        super(hash, SmartContractResult.getName())
+    }
+
+    /**
+     * Retrieve the name of the operation behind the deployment
+     *
+     * @return {string} - the name of the operation behind the deployment
+     */
+    static getName() {
+        return 'Smart Contract Operation'
+    }
+}
+ +
+ + + + + + + + + + + + diff --git a/file/src/services/results/transferResult.js.html b/file/src/services/results/transferResult.js.html new file mode 100644 index 0000000..3fef491 --- /dev/null +++ b/file/src/services/results/transferResult.js.html @@ -0,0 +1,109 @@ + + + + + + src/services/results/transferResult.js | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +

src/services/results/transferResult.js

+
import {DeployResult} from "./deployResult";
+
+/**
+ * TransferResult class
+ */
+export class TransferResult extends DeployResult {
+    /**
+     * Constructor
+     *
+     * @param {string} hash - DeployHash of the deployment
+     */
+    constructor(hash) {
+        super(hash, TransferResult.getName())
+    }
+
+    /**
+     * Retrieve the name of the operation behind the deployment
+     *
+     * @return {string} - the name of the operation behind the deployment
+     */
+    static getName() {
+        return 'Transfer Operation'
+    }
+}
+ +
+ + + + + + + + + + + + diff --git a/file/src/services/results/undelegateResult.js.html b/file/src/services/results/undelegateResult.js.html new file mode 100644 index 0000000..635843e --- /dev/null +++ b/file/src/services/results/undelegateResult.js.html @@ -0,0 +1,109 @@ + + + + + + src/services/results/undelegateResult.js | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +

src/services/results/undelegateResult.js

+
import {DeployResult} from "./deployResult";
+
+/**
+ * UndelegateResult class
+ */
+export class UndelegateResult extends DeployResult {
+    /**
+     * Constructor
+     *
+     * @param {string} hash - DeployHash of the deployment
+     */
+    constructor(hash) {
+        super(hash, UndelegateResult.getName())
+    }
+
+    /**
+     * Retrieve the name of the operation behind the deployment
+     *
+     * @return {string} - the name of the operation behind the deployment
+     */
+    static getName() {
+        return 'Unstake Operation'
+    }
+}
+ +
+ + + + + + + + + + + + diff --git a/file/src/services/results/withdrawBidResult.js.html b/file/src/services/results/withdrawBidResult.js.html new file mode 100644 index 0000000..116a11a --- /dev/null +++ b/file/src/services/results/withdrawBidResult.js.html @@ -0,0 +1,109 @@ + + + + + + src/services/results/withdrawBidResult.js | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +

src/services/results/withdrawBidResult.js

+
import {DeployResult} from "./deployResult";
+
+/**
+ * WithdrawBidResult class
+ */
+export class WithdrawBidResult extends DeployResult {
+    /**
+     * Constructor
+     *
+     * @param {string} hash - DeployHash of the deployment
+     */
+    constructor(hash) {
+        super(hash, WithdrawBidResult.getName())
+    }
+
+    /**
+     * Retrieve the name of the operation behind the deployment
+     *
+     * @return {string} - the name of the operation behind the deployment
+     */
+    static getName() {
+        return 'Withdraw bid Operation'
+    }
+}
+ +
+ + + + + + + + + + + + diff --git a/file/src/services/signers/abstractSigner.js.html b/file/src/services/signers/abstractSigner.js.html new file mode 100644 index 0000000..e8026a2 --- /dev/null +++ b/file/src/services/signers/abstractSigner.js.html @@ -0,0 +1,105 @@ + + + + + + src/services/signers/abstractSigner.js | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +

src/services/signers/abstractSigner.js

+
/**
+ * @typedef {import("casper-js-sdk").DeployUtil.Deploy} Deploy
+ */
+
+/**
+ * AbstractSigner class
+ * Abstract class used as a skeleton to implement deployment signing.
+ */
+export class AbstractSigner {
+    /**
+     * Abstract method to sign a deployment.
+     *
+     * @param {Deploy} deploy - Deploy object
+     * @param {Object} options - Generic options object used to pass additional arguments needed for the different signing methods
+     * @return {Promise<Deploy>} - Signed deploy object
+     */
+    static async sign(deploy, options = {}) {
+        throw new Error('You must implement this function');
+    }
+}
+ +
+ + + + + + + + + + + + diff --git a/file/src/services/signers/casperSigner.js.html b/file/src/services/signers/casperSigner.js.html new file mode 100644 index 0000000..069d1e7 --- /dev/null +++ b/file/src/services/signers/casperSigner.js.html @@ -0,0 +1,119 @@ + + + + + + src/services/signers/casperSigner.js | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +

src/services/signers/casperSigner.js

+
import {DeployUtil, Signer} from "casper-js-sdk";
+import {AbstractSigner} from "./abstractSigner";
+import {SignError} from "../errors";
+
+/**
+ * CasperSigner class
+ * Used to sign a deployment with the Casper Signer extension
+ */
+export class CasperSigner extends AbstractSigner {
+    /**
+     * Sign a given Deploy Object with the corresponding public key.
+     * You must pass the active public key from the user and the public key where the deploy is going to be used.
+     *
+     * @param {DeployUtil.Deploy} deploy - Deploy object
+     * @param {Object} options - Options object
+     *      Must contains the public key of the user in the activeKey property
+     *      Must contains the public key of the targeted wallet
+     * @returns {Promise<DeployUtil.Deploy>} - Signed deploy object
+     */
+    static async sign(deploy, options = {}) {
+        try {
+            const signedJsonDeploy = await Signer.sign(DeployUtil.deployToJson(deploy), options.activeKey, options.to);
+            const signedDeploy = await DeployUtil.deployFromJson(signedJsonDeploy);
+            if (signedDeploy.ok) {
+                return signedDeploy.val;
+            } else {
+                throw signedDeploy.val;
+            }
+        } catch (e) {
+            console.log(e);
+            throw new SignError();
+        }
+    }
+}
+ +
+ + + + + + + + + + + + diff --git a/file/src/services/signers/index.js.html b/file/src/services/signers/index.js.html new file mode 100644 index 0000000..fcdf00e --- /dev/null +++ b/file/src/services/signers/index.js.html @@ -0,0 +1,87 @@ + + + + + + src/services/signers/index.js | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +

src/services/signers/index.js

+
export * from './casperSigner';
+export * from './localSigner';
+ +
+ + + + + + + + + + + + diff --git a/file/src/services/signers/localSigner.js.html b/file/src/services/signers/localSigner.js.html new file mode 100644 index 0000000..259e952 --- /dev/null +++ b/file/src/services/signers/localSigner.js.html @@ -0,0 +1,110 @@ + + + + + + src/services/signers/localSigner.js | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +

src/services/signers/localSigner.js

+
import {DeployUtil} from "casper-js-sdk";
+import {SignError} from "../errors";
+import {AbstractSigner} from "./abstractSigner";
+
+/**
+ * LocalSigner class
+ * Used to sign a deployment with local keys
+ */
+export class LocalSigner extends AbstractSigner {
+    /**
+     * Sign a given Deploy Object with the corresponding key.
+     *
+     * @param {DeployUtil.Deploy} deploy - Deploy object
+     * @param {Object} options - Options object. Must contains the AsymmetricKey object in the key property
+     * @returns {Promise<DeployUtil.Deploy>} - Signed deploy object
+     */
+    static async sign(deploy, options = {}) {
+        try {
+            return await DeployUtil.signDeploy(deploy, options.key)
+        } catch (e) {
+            console.log(e);
+            throw new SignError();
+        }
+    }
+}
+ +
+ + + + + + + + + + + + diff --git a/identifiers.html b/identifiers.html new file mode 100644 index 0000000..6b61f5d --- /dev/null +++ b/identifiers.html @@ -0,0 +1,1191 @@ + + + + + + Reference | casperholderslib + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +

References

+ +
+
+ +
+

services/balance

+
+ + + + + + + + + +
summary
+ public + + + + + +
+

+ C + + + Balance +

+
+
+ + +

Balance class +Service used to retrieve different balances from the Casper network

+
+
+
+ + +
+
+
+
+

services/clients

+
+ + + + + + + + + +
summary
+ public + + + + + +
+

+ C + + + ClientCasper +

+
+
+ + +

ClientCasper class +Contains the casper client and the casper rpc client

+
+
+
+ + +
+
+
+
+

services/deploys

+
+ + + + + + + + + + + + + + + + + + + +
summary
+ public + + + + + + +
+ + +

AbstractSmartContractDeployParameters class +Abstract class used to define specifics DeployParameters

+
+
+
+ + +
+ public + + + + + + +
+ + +

AbstractSmartContractStoredByHashDeployParameters class +Abstract class used to defined specific DeployParameters for SmartContracts stored by hash on the network

+
+
+
+ + +
+ public + + + + + +
+

+ C + + + DeployManager +

+
+
+ + +

DeployManager class +Used to handle the deploy process

+
+
+
+ + +
+
+
+
+

services/deploys/auction/actions

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
summary
+ public + + + + + +
+

+ C + + + AddBid +

+
+
+ + +

AddBid class +Class used to create DeployParameters for a AddBid operation

+
+
+
+ + +
+ public + + + + + +
+

+ C + + + Delegate +

+
+
+ + +

Delegate class +Class used to create DeployParameters for a Delegate operation

+
+
+
+ + +
+ public + + + + + +
+

+ C + + + Undelegate +

+
+
+ + +

Undelegate class +Class used to create DeployParameters for a Undelegate operation

+
+
+
+ + +
+ public + + + + + +
+

+ C + + + WithdrawBid +

+
+
+ + +

WithdrawBid +Class used to create DeployParameters for a WithdrawBid operation

+
+
+
+ + +
+
+
+
+

services/deploys/smartContract

+
+ + + + + + + + + +
summary
+ public + + + + + + +
+ + +

SmartContractDeployParameters class +Class used to define the parameters of a deployment to send a smart contract on the network

+
+
+
+ + +
+
+
+
+

services/deploys/transfer

+
+ + + + + + + + + +
summary
+ public + + + + + +
+

+ C + + + TransferDeployParameters +

+
+
+ + +

TransferDeployParameters class +Class used to create DeployParameters for a Transfer operation

+
+
+
+ + +
+
+
+
+

services/errors

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
summary
+ public + + + + + +
+

+ C + + + ExtendableError +

+
+
+ + +

ExtendableError class +Generic error class used as a wrapper to define specific errors

+
+
+
+ + +
+ public + + + + + +
+

+ C + + + InsufficientFunds +

+
+
+ + +

InsufficientFunds class +Error thrown when the user as insufficient funds in his balance

+
+
+
+ + +
+ public + + + + + +
+

+ C + + + NoActiveKeyError +

+
+
+ + +

NoActiveKeyError class +Error thrown when the user is not connected to the Casper signer extension

+
+
+
+ + +
+ public + + + + + +
+

+ C + + + NoStakeBalanceError +

+
+
+ + +

NoStakeBalanceError class +Error thrown when the user doesn't have a staking balance

+
+
+
+ + +
+ public + + + + + +
+

+ C + + + NoValidatorBalanceError +

+
+
+ + +

NoValidatorBalanceError class +Error thrown when the current user doesn't have a validator balance

+
+
+
+ + +
+ public + + + + + +
+

+ C + + + SignError +

+
+
+ + +

SignError class +Error thrown when there's a error with the deploy signature process

+
+
+
+ + +
+
+
+
+

services/helpers

+
+ + + + + + + + + +
summary
+ public + + + + + +
+

+ C + + + CurrencyUtils +

+
+
+ + +

CurrencyUtils class +Used to convert from/to casper/motes

+
+
+
+ + +
+
+
+
+

services/keys

+
+ + + + + + + + + +
summary
+ public + + + + + +
+

+ C + + + AbstractKeyManager +

+
+
+ + +

AbstractKeyManager class +Used to define multiple key managers

+
+
+
+ + +
+
+
+
+

services/results

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
summary
+ public + + + + + +
+

+ C + + + AddBidResult +

+
+
+ + +

AddBidResult class

+
+
+
+ + +
+ public + + + + + +
+

+ C + + + DelegateResult +

+
+
+ + +

DelegateResult class

+
+
+
+ + +
+ public + + + + + +
+

+ C + + + DeployResult +

+
+
+ + +

DeployResult class +Object used to keep the track of a deploy result.

+
+
+
+ + +
+ public + + + + + +
+

+ C + + + SmartContractResult +

+
+
+ + +

SmartContractResult class

+
+
+
+ + +
+ public + + + + + +
+

+ C + + + TransferResult +

+
+
+ + +

TransferResult class

+
+
+
+ + +
+ public + + + + + +
+

+ C + + + UndelegateResult +

+
+
+ + +

UndelegateResult class

+
+
+
+ + +
+ public + + + + + +
+

+ C + + + WithdrawBidResult +

+
+
+ + +

WithdrawBidResult class

+
+
+
+ + +
+ public + + + + + +
+

+ V + + + STATUS_KO: string +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ V + + + STATUS_OK: string +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ V + + + STATUS_UNKNOWN: string +

+
+
+ + + +
+
+ + +
+
+
+
+

services/signers

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
summary
+ public + + + + + +
+

+ C + + + AbstractSigner +

+
+
+ + +

AbstractSigner class +Abstract class used as a skeleton to implement deployment signing.

+
+
+
+ + +
+ public + + + + + +
+

+ C + + + CasperSigner +

+
+
+ + +

CasperSigner class +Used to sign a deployment with the Casper Signer extension

+
+
+
+ + +
+ public + + + + + +
+

+ C + + + LocalSigner +

+
+
+ + +

LocalSigner class +Used to sign a deployment with local keys

+
+
+
+ + +
+ public + + + + + +
+

+ T + + + Deploy: import("casper-js-sdk").DeployUtil.Deploy +

+
+
+ + + +
+
+ + +
+
+
+
+ + +
+
+ + + + + + + + + + + + diff --git a/image/badge.svg b/image/badge.svg new file mode 100644 index 0000000..b18426b --- /dev/null +++ b/image/badge.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + document + document + @ratio@ + @ratio@ + + diff --git a/image/esdoc-logo-mini-black.png b/image/esdoc-logo-mini-black.png new file mode 100644 index 0000000000000000000000000000000000000000..5d5f9a254a27bdd14a2156eb3c66fbe2daa89459 GIT binary patch literal 5651 zcmY*d2UJtdwmt!Zp;zf86hWkgE*%2W3`L{`P)aC4S|C(G2u*qurArqD=>pPAKoF#Z zNC!nJA`qoW6E6PuzWd%gYt5ONz4v_Ie0$BDwbzL?GSH?XXCnsyfJ#?K)A+Ji``aL- zm+x{Hucgb5#93Wm9RO;RDbDP`mvbme$5eE)oDvE={-%0PuwYz;{~!P{;%T zW=w9&9i>YL8Ab<*1po?$zYPRr=du6*2&33+*WahRmIq@?I&geW%9!^bW_ z)C0@+Z;=1N(R9S3yj?IpE}kCHzqoexp1wZHyu5#j{`>rUpFS>5|I6fo{g13mf#QEX z;u2yo@&969E>-$#RWS5+alB;yi?1S~^iSmfv;BuhN&GMQ|JlsHmHuPBl&V6mB>vyD zsgNV^f=B>hLOGG@svstB_ zrWm`Ox%8gLS?SW%>$}c9A;OeCH!6OG>Q7Rvu;~n0c9Wggr+RKOC--3LRl}0iMzbEc zG{p2+*D-6*{$TVO&dL4Fuq;;PWTV(-Y7Gaq5cH(lU3mI19s=y8b5}EiU<`hXzMss7 zvt_n~1q{tLc^*qX@F=qU*r$#PA7rx&DVOlnV;Pn4SU5@?RXL?p2Z=$Z7evr3w_apm z_N4FbPLT;kp+G=ZfP=>R5^rso|W&8+^QMsnqa z(NMGZ?iQ_6!3EEv^qJJAS|pOPJ|tJuc4wHHnAATTI4v58V9Raxc2(e;Iv=u5ya%Q4 zQ&L`TUG$q*W24Sq{o9R)!{$ug)E%jE7%ThK>KR*y2lJfxq-rGL5Ul>+sm5QL0JQ z8e?A**woDI@!D`s^ls;cO7Ou)bEvbT|Bm%*`5XuvS!ly_o6Bc>l>cNbEn_@FqD_t@ zBn=1-Tl8OUZx;xKQyyqe#!YXjoFAv7VMGC` zR!JzQEg_LG8_l5Of3C$og;Oo9BwYdLTLc9#i{4bH@Jlb9-jWw)a8#7qKHOPU+~1y; zlcL;>st#lLqwL9WU^xlY~xX<>SjMBl> z-D%O+ua3TD*pzE(Bu-bGJj(mdDU~$@MRw`EY`|36?^4kNPSvrlynEv4?nBFzlBks_ zmdPuyd-aVU#9AYzMsD)$Z;bOHGGRPz2h&!dZd)q%`Nntlh{+w&qed2TVe=}=cxG|x z-Hua_qm!-bL@$z9N8D;v_rnC!djoYv;LrK58e@xonvA!U7s6*=0SoIAL86gsWuIK^ zm`1TY&JdoJ)1V)<+D&WOu6QuBwXKtWPI!7&9byI(Lt#M#cbP2JpK+~j9}0(+Z@*n$ z!kAUxci$oLpev{~z?YeZijN;Qp}BDQDe6#16dVcC6te7^)HIAa9)%`PLd?P`EmB zyjVMW_Kowp*`!St8a-YVl^E;fhN{WF%#Ii$_vSb`u~^GS5oRsR`Ed`m;*cLP23M+| zV|kBoMQfN-diOt6W4s^z18A$T{n8g5~{TZ?HniWU_v+M z{CNG!HsteTb`Kb+X0R}t>p?)KWGir zGFi~vTmi6x%pngt*oLEp#LPFZ@eKLN8GPnXCX>>oDE8L9CCZw2zuyHfYd`%*MLh}w z>8tQ;-EPDTT+6Tkwl1X|eTf$*k_ky}(xRwIfpJVzt{b!U;cUr4IHc`S`e+>!~v+{?()31rtO%sUnTJ4M4S!|8ooP248 z=pN<@IkKC#J6sOEz(L~yGox$Y^zV54Cj6olX?jIFfuf5c18)o4+JR+mOzEbQzKNUg zvu(aSDRsP1Mf+Yz5c3|g+2HUUv(3=pS)JrTMP@Dj&EZK!IO=dEf@VZ7Ms_V1J2DVL z=)QvdMnootV%)D=4&Kv0tnKHLQUc4qc0?kb#Y?3z( z0;M5mk10Wp?EUIK-CwW-U(~v5H5?0f#L1GOGgZpAyTXWvf5c8XxW)0U^}9u(Cn->~ zWQ>`J_&+BHQt@5O-F9uObv?9FEk2v}-^R7MqeyNSC8?et74#Sd9L_q6GT8=#J#f6P z4q*NV`Y#efzjK1vlFO;+`zChh4o@D`B^@3rrOgW&{usRO32rbpYrIG`>&gVU~Oh0*xotspb#YDZOcT=6yf;>5|h z44V*_N9d%5d;Y|S1_iv>h+`t`ese`Bjr{=AILGKW0&DMFt^_TcnwlnEt{gz}tY~)b z3wMTI{!!8)eI7mNz2G)7dsDz(l1{$byXa>qwW6jgVmxd+VG#tE?MtC3m0iNoAslIzvln<#1W(j31=zsI?8F0lZk8{!*$?XXdo z^0xAy{mFE6Ed}POz;n`@=-OLPB#9yABu#*2Ur4B2C!~GaS-kw} z^rY};h%jN^t4ldVJ+%k!Mvzj~J&$0w(GyyMGk)MXZvGM{j3<2V5f!w3G)EVCrl3ab zlTIH#xAoJBDCMwHLp^G%>g@Ep&Q*ruTScO3)LrmiAUK~-VjjxOV*%=>z(Y)$!0E&) zt4+L$zZbBg8SBzydv34MwA~Wv@??HWQc1-JI1n-Zqqz;I-@Lor{Na(4+PEA!1FqGS zzuBUpv1VMfi=+VjDTb_Lf(bm7_J;{iaEGAo7$YHl(q1nH(gdv>oJL8LZDVZsG&41e zhp-d6g0l)u#2#TaN|^BIi()%oC792K5f+?$)S*%ZQL`bdc~vHF-gnO5bP8cmJDX0w z>lLz(Sc@WKviHgZEsb+HKlH$XPI6i6lMN$!q|74JB(oA6y;mmI0#<$vwV^XDFqhSH zmJwM8_2xl)r4ChUUk&;`+o}8t>rWTZ(cYJsr#eC%?00q8?;0|M!(gTmC&RU)^4$}s ztLP`^J|G%WI@(b**KNJk8iDDE7XU|FjpVc=<;vFi{@oEY@->NtB>!2|{s$R`rCb-b z?HS>c<~w!!-%Kj5Fhv;cdx2@F@q2`1f4yu5=qttu_>z+JxKO|U)jo`2G@xpL)1%|q>2_Tc;7A2*uZCQf@NMm=^IoF-9yV+!Es#-kkzT{p zf7p8#DDLC4BxEf_GaX5z1qx6^B?R~ps~8=v!(#ALzESQW@8y&seVWZuCGCY>X64*g zGn`Q83q#dE(rt%xuIXqV%?eEkVUEiZ*RNDZ_*w(0xs3(p`AN`iph;#o@ON$$kx?kM zZcw1G3o4Fj-U?0-$M5HqlIfvStJTrr71SAB%D}H+72A{pP)Qq!$b&}Fki&2nVt&P7 zUEUY(a;35okQ7uq{1A$CN zZpE@`g7$+6$FeXja9i(Hiv-&Zt1k_o?z?IpeY-B$C72&PK`z&PR&k3PP87|b*(V9{ zrp^=t(G(ij2t+;{6ne=*-tX2Slf+6a)V)J$%XOPai&5f_<@kH^Lf`T~Pr)>PTkdJS zst3JH^TQ@jIZOxN3b=$VAxb;iiY1xU^ggt=Eq_d{?}COUclCB(VO|M9C=T(c>9I{X zA-K8Kt6IL_P&8OwhU5Z2wo=@^B}H?!vGn~%&w=0B#SIaZiCa^XD%Z z^_{Wf1D3Cv1%|L-e#5aZDk+&bwHRVR)!%Elh8P&(_Z7l`QV)q>+uYhS^vL+YKUVP6 zz$3QE!(-*oIwwKTjt?y87byhk_b|ph-1!3Go^ekECC zz;6}beQD63rnj(?l|N&50s((MIlKQd){K2f&Q5IHFN0_;W`^d`E&X@>f|LOowR4ZI zrwzCXf)G>T?Y#vQg(bA(l5m{MN{R+`t*dB=T(9AMTFP{Fj^^`|tsV^;Wrw%AZZCVO zDxLAV$omq%M8v}Qvio9=Kkyp2D|gPUc#Ea1tZG2iof?dX@^AFzeGC^-o2|*e#^+6g zj^7w|N&54sn@BNXwwY_vPYptH6Ne>1I{5lFB#QPZWjp4qMn9JTG2D~EA#w|Y;eq!m97s&hZ)3Od{U>EyMP)M+|ukM0?I+`yZU zrn;2ljY&PuXkg z)g7muqqmSo|4x>7zIw1x-t@0y)$;3Ql<^?Ldk1&#v3*cihJWCBdGe$}5593DTsx*9 zB=!0jhQe)O{ViJ`EfFFf?du8DDMxDBG8_%1v(v@{L*;5IQic7t7g7KNN1$>`gdv_UxV7U3OV0%d0Es?^ z;D5*cEJLs`$RbqQsqayR57Xg9S6KPP^$cHs-4%>Y#vVLOu3O z1ylHre28dj|20AXEb!y%m$H$Q$sIIR4#D{inD*0tN*)P*gRQ@;Gg(jWnV6UUhF7XjZ{(!~X@J%1mzn literal 0 HcmV?d00001 diff --git a/image/esdoc-logo-mini.png b/image/esdoc-logo-mini.png new file mode 100644 index 0000000000000000000000000000000000000000..76ba5b7d8e547bb469f0479736e96707453718b4 GIT binary patch literal 6504 zcmY*;bzD?W-}a%U86yUr-GCsor|Oo z-uM09@AI6`XU@!AbIoV__G5*$QuB-et<%D0Kkh60CueaKq4Igs9$BZXiGf| z;J#8ZMgRal`QL&De8>U;0GhFbo{^`KhPs4}n+vbCts4}^>+ACBfeipsz7h{j7nr9t zldp@jD?-8-!u&6W#6$Zp3}$Bf7sb;F!fd3W#iZco0b>&872@S%md0aZVv_Q(g-hrt zD*tEtLl44i@9FtU0u1)?@!|Cm}FOMsN<=-Oz zPe&1ku<>ws<>}z&%Jf&)8tUfd31MdbYxLje-|O^rfd79dSHyq9dI%8wcLdDO%Lo3i z_QO=Ezo>+!hXd@v`LDh-ztq2&{|Ebzj}-W?`TttXza#w@`Vgu#o)q}MpG_K1z2~X% z!w&eVD$42kqHSmTC7A1H4+LL!RL-a>$cM;=)Npi%^iF@I!c(H-NP*xA(bj^v)p}`W zyJ<`6YWlHDYu|h-N%}Bdz)d6ac#O5%8bMJgr)-8q;?;3T;$kkzPmcr~txB#<9Ic*R zw~z0=R7d{tEwfnL&I%Ymx`cEd+>Sfccb<{mRbDaD)5j18?|ibC#UO4!Pl{jbT(HP^ z?5+q856`f$4R-qAz2v*WI*g6|;u374H*|e75)MCU!XClYvY%*QKAKkbpOK7o7_$`; z5~2vUvM*VRT_4btsuc<7kI7kw*Q?(R?$~c$U=V@C9k+-3dr{%&2cPfnKX-P@e4`{g zEkgSqLrl=yFhMBltes7r_Na8CmtX!a&TNeWI85?&Y9c2E1X254T@2eokS8N` zy5}4A{D{d0ol>(n1mR?W+fM8p19NYirQd>zE}cdaY5Qxl_)A3x|B=+%+E(KBO`?!G zK(WD*(&kWai4$NdFrT#qfyBgAlY%F?!PWgIw>dgP8KIww(hXEE5DL`k#Ip*>)omk{ zeYEmCOXIG#srT%#rRqA47G9o|`@InTa*K6I=e|6zy${#+P@hjLE*3tZ5a_)5zyjE^ z!%jrRI~0C>`>lLV{DQUC`cCgwQxf4XI+q?wTD8tFV*J4(^&cQcc{7nCu6or6weQ5T zM8IyHGP_an`2E{bWN2s=)>gbp^El!BTiD3Bdi{P~#@ue0_Smcug>c~>d<>pdD1bAF z8mBlf)Z0iiN$M5c5W}XSnQUc!nYQ2QeGurmCjBIM>{YO^d#E2x^J;}zhdlGO=CoVy zY~hoYnorJiWlA^u;fv^sL0FL}Mm=n2kBh+-cg7&VxHLUB&IGkzPsM35czyjLv29?~ zgvYU}3(2w&HAXsDlYybs3zucCsWPq%o&6f%u?OZPfV;T+q(s zf`zfxb5mI@=$s`QwJNEB<*P|=SWBLnyd@L)TzPyz1)FvNC;NK*?s!(?bb0dRt>Czr zeE6T{^x#Z5Q{t-K^pK;32s{H>`Z%!Rf*uhQ+jf?1(0K(PVF;XczV;lk@E^*Ehfg%w zPe8`b!yQUhrN2}UR^4rbQ(cyO)idWDS35kXRYhEW>6FuZrxRA2I}xIhO=QzOk5z8W zDT=KXszjzDur^mUd5t~1JmpAiKi&pxI%!!19z{GgjHWoSg9t28O2div=FP zdq1a=K-B4ofi7dCPv^?UH*Y~zGa{-rN-h>y;-FF9yBbK@T(U*g!a~Pu)Kc+t(Qge7 z0dkA%08e(>qTm_dAOC!9>J3WvHEp7nif1Ckq-lmV!=X4P+ihox>rU*PwR$aCyV8jq zb}TG-!CUjB!DHS+HgEfq;!dAL8XYX!m`gz4NgwFkG5dugn@ly!6PnLc{M$K6t}P!k zbgbW>jZ2afyBjj(symPuVTKUJO^>#Ak9gg?j7p6TX-bz?y}jp8~qvB#5Se5^V=}aW80I%R>_i8 zBEv;?G;412xzG%IwF07IC2+fEEW^Z8iUAGf@bKySLzoT_MT{8Xb&Br}Fz1MN>iA{L zfSrD2Xi1r!(RYd-YnM}78*o^AUD<3RA@pWlAlXq7hu$g?zLeowj7yrPSU~otmhrZ0 zHwpW^(|hBcK{A)pOwl&>`Os4yiQ8io_zQ%IHE)U{B+&n^4n{m`UJs8TmC)2C$*n51 z?D6}it6BK_N{7N+JSxbkV|H=MHIO1b__uX=&<44I3F&hq z%rkUs$#n+c5)_1~fj-_xuSz1D*ei2)cU0+qbCCMz>kDfc+Pwu+)K`SX(He{2W(4Td zlL;-IbHDRGe5$Xj&HfkBB`3p#bS*FB41usi-!}`+7S$ZiVB?jRez|kW==5O*|G~1{ zKW$^b7YCg8MLTQP!LPe3#W(iVSq^ukdN+1C^;F^$cYS8^U{ zNgj%oxBZ07|6ZElUTIs(TeTSbr^^XLu04gqd%;e>Jdj1TZbCm^>NGI@Pei01^jfld;$<3;r#y?$SmVa7OW{(=8!6JQ+ z{bYP|aj{5_2~0G(O*=h*36$ZmH{ixQt{AIW)eN6TXw>`V=Cz5-lbKFBfJp++4g6&` z>DFqJV&;k_UiU))UfyI)uv+l5D4Y!l>e%?j_8uLy?CJ}nSBwvWj{)HCO6W4onPI@g+O;RPdB8wY5UTIq<5 z{&wwQwkaR-yH{8NM|V`($wk6OznJJpNqA)j7|!^((m{ml?8nj%x4;nrnvR|C z;aK`h{@~Wp%@8B$PPV-3s-mTeJ<-!KHxu?W^y`ZZNC;CY4a-{c6*?Bslsz)8yymxZgOG+*F=gf(< zISZrQb~LRiNIp#H(;j!z#`_?rK>^W@ONby^cMQtHGx0*j(wyx0E&}|Ns0)HZCjN4? zncg%K6uU#@)^iD#PC*PfmIJidIDbLzJom2l?Xrzyc1zkYyR|Q31kGH4w!)Wa=vb_I z?cEYe+w}KLOW}SWVxNN_0|cD0eWpn?6+exq{R`5X$Ns!s3f{mix2Jl6=P+RV{xvo$ zsxdzJt0P%}87;y0!$)B~@jkQq+cf^R+ySZJ=DHAd{`a)thRqjfQX#*L+ZG4%HO`7< z8jA`l%Q*NyNG>Qit9K9+f(=2$CF_A!U&6DmLnD6shSvDGW zQm%tTr3|v@f%WVrh;ovoxU;AV_|-}e4dR&IHGOLU_)h(}GE;f8D~aQkZ=(g` zfS71bZjt`tijQv>Avb5afv61yVqs#-3{}vF3a#P}Da`&m{&~HFU(XNJ5I>A!VznLa z*NIadvQ8ye6RSZ_!+uttKaJ9{pL!JS7eR}RrgG;2<{>AFM6wh-tdR@YvO8Rzd2V&L zhntk0EK!G>O2A3m4I*TjN@4cPZxr9eAeL3pw(w>FIwU24$J*zks+A|r3=NO-QjgtB zNsa3~9d(gr9)RlN;+5B2zR!0wAJdaH&<3Y<)u>hbP6 z34+Q$X(wZ;q2iR`D@j0LbPhS)cedTj)y(otGfw9CPhKes7oU%qHA1QDM!0ZJ?WUeY zZnf>MqFGhP;dwjvUO2Of`)z5SK;m84c6c!H2=XMr0#O%x)y@1oflrphX}Nad-99(1 z{j~Jz$TzotmbVGLlJs9NpEqh8X5I!_3F+>y*T)ri1E(5kd8F%dr3!(`FhtwCu=b5W zB3Wd@VwDb-q=+sx2o5I+tP{r5zcUs@WBOuf;gD~F*BXHFXbdEmXc-;wR03dT>Gx=! ztFn)FXUPz#=(5uz{rJ>m&Jrp1PEM*+z9K~QQ|Doypr|}lw9Lyz`27|AS|P0ZWlEo? zj^HOIWxlxeM7&<;=gY4M7rkpu)*YunXAH&QUup(2SGMK$JeoxV`snER-v@8s)T9Z^ z>#CViTerOn0<|fst@Td?yAEjvK}qK=Y~U}dzTX5i{4RU!S1@O6mT0R)#*WiPlL%7r zk%-2aymF+^#yvu4+wlFvoE~O1k5;G|IQ&+a&Z~0%H4nIyiF6pR>MHxl7kw6jg~?nd z@V*foG*tvP{gL{5q`A{&>?mkKo%G3tt0K%kR*_2$x{aQIZIA?0%5A5uR$n&nlbgi^ z^@}YQRz3n-c-D>*g&a+k6Sg+ALm)OEepcf5=069~@$dX{g%tZ@5)ud+ZTB}Wm=sVx zRvyBQwC-7xe-0t9IO;d3s7Wg5vopS|%^UW<`JS^t}IC?7M0An)*EzIG~ zkpdY7eQfql!=`S%p#%nY?kqczMn2hNl^zVVOp2X?aX>bIlmL-`IGX1G%a z>nXgm6-Dt+oJFIm>Q)gn5W@SWV?@Xg`Vb!v^lvMs>DQh>?;_nrbP*;8wC|>ayKBuvxhEn;m(%F->~1( z?jBK3U;TXfDcFLWd>cKNR|4h!`=dTcQQdEu4zAb6(<@t3MajmkY62fV@iBrUo&QYb z(EKz%sq_IYAIn1A-*!RQm0Y{^NvsfWrCz==tPn{K?HXKGtQ8x{DOl;aIx}sf)GatZ zPBoS76U)--9iOE%+9B!zQA|-I7*MC90c95$Z<1ncVhEX*v}gUoU4yOYwOSiDAy#U! z$Gpg(0Qa8rY;Y?Le&c#(rJ8|`%mp_cW#w{_P6i0~l(zzl^%=2;*r!L4k^yh5fP`AL zrTz_?4GePse(7Fk7k$RkIKU9u%4UA{GF z(-r`QvhEOyhv)ayQjp$>WyZZH!nC5OodrK3`=W9}p8yU4FoTI@B~8$4_+kT`h&`j+ z(*eu4O*AB^7M$HT1oky<4sfr5epI=cYA8fsh74g}m}L$9Q;f`(Ys0``RNOl)>M^I1 zH(EE4vxU*=#4st!Q?LQ=Wn6B+2Wasf#@BTz%Katj6i2dNwjVNI#CYz@Hecq%)7?x< zj~o^ZCwI6=H3Ai<8 z?Tnh${RjUIKNc@9O^NDnG?Jq${(6DBQr4Kjh+V@DXkePfuAJ@&*0geywfaADseQ>v znd!_V3QGHChs=Ek6=&+;97!f!1)0qO_{P~t>Ya^c={e&v1sbp%+l+-tIuWO(vGi>< zG}O#Y*v7O0nt#s45%#^sJ8IX2o6X2#+U`2_z}-$-g{b8jX(VSIL@@~li(6uYt5tl$ zbT+@in0f!0ofz#&zCVM3*a1E(_M4)nJP};7EL-EU%0}W*)A}DdH9x23D-iVxj4peq4Q z3UOO|$(HmCFPUt;XCtF4yKG%ZN0!rA$Jrvf-V7Q2UKe(9-tVX5nHeIf)0$y3_c{=X zwHJIV{B8yJIztQdd7WvY&UDk&7~jzx{QwU;hY-$a+%zxNUK+P}b+e9fZQ&B8MbIV} z#zx&J@|mPm!I#X=yGmg%rZ98*UWQ9OleR^FaNDFKUYwXx7^#wg)JINutje@c6q2YG zMYfX2_-9dB=*vD@osX>4$K)plGavGKFJ4UEg%b^bJ5c;a-B5Q6qmhY-o!YpYuej>0 zS>t4o7#36Lb1GnR<~(Y>TwU;>b%GblbAQ7{@F6R16~FEnb~KToIL1(Glk#qA@5^WQjCjA;>Ytl6Gov!q$Nz6(KZyNiBF z(|mtb+rn*%c2+ZQ`T2_I@S=ti5MuJ$AAmN9B%poXYE-sK$52IoUer_xpkF`Ru>R^L z`8x=1N}y!Y?PvC}39s%HMG{Bxis#VO39Y5L5`;ovV(KBq)?P@wreAu;D=kAZzf-O^ zyi6acxN@C#Ca`(F$QsGog5LE!t7|I(^XIWxlrkS0ZrL)|@~d3JhtxyJ`hZ|}Qb(ch zmWpJ~RfKn+Aoldiq>_V+k^GI=y~k~Q-j}!D4P_qdrL()am&UE$`Eet!I!bl@ z2V{QnqRmF%#*n9fMG(d3+b<)2CWhJVaFfhi_`*Y(fknthP9K4jFZkd9?FCbB2{r@z z4;V1SEUrR+;}Xn!s8ka6wxUOI=-N`s=VJE{44t~tOq}!Vbr~r;*qIGyvs+w>uuinN zRxCm9wQwosmGcx*J<;2JiJwbV;}}2&=%czj?uKjux+|68dc;+Xh=kZ zx{ejY=f+HzWzzf0yZNeiE+PGIZ!&O&ue?qzR+j%EQjM`Nue1H3LQy&Q>0J;JE2YLV zbiFCQhlilfnpv4SVzLxP>Xc>%otco9TnHW$xc@`QrbBLg|8NyKYnLuiB3lR4``UVQ zGSWr_m&z!0mdx8!eyab~hR9kT8u-Kj}4bJNgB^55|;N-T6gwg!yF=mA&?& zZHS({Iv`FK3?XGUq{hp832YTB4x&i*oiqL5O;srtg@$W_XQ6%tR0<5&xw|dqz@!{t z-9+@nb(2LdyOL7n|jXx%fF6*^yFNl2`^~&;H+_0|+zFIXChjxtJo2 zO>EDkj0K|-D`uw&hbg_MM)yk4U{X))lcEUDTy7AN9%P4?=VXVn; zf2H;7he_13>fwrZkQ@%N;#?uU3iPD6mcnb91T^ToBV%@<+#J#+4e$fgp|*q4VrSVl z%s(jZ37@8T`Ix8S;Tnyo8WqY>JOeNwOR-4H@7+U0#l8qgLCKgnLRU0{J-6bz9UGlRJ>h`G$ z0TWW&`srbzFmk(F^5{`rGbrn-b8fuI{iOyPljj2A zqg}C#?sd$u%hwQwlA+xEP@l7Q2?)}U2)Dh+hfc*D|KoGI7gleBy1h3)G`i~N7n9I|KRMVuNYQI*{uBipP{PsQn5 + + + + + +
+ Home + + Reference + Source + + +
+ + + +

CasperHoldersLib

Documentation

+

The CasperHolders website use this library to handle any interaction with the CasperNetwork.

+

It contains a huge portion of the website logic.

+
+
+ + + + + + + + + + + + diff --git a/index.json b/index.json new file mode 100644 index 0000000..00e8b79 --- /dev/null +++ b/index.json @@ -0,0 +1,4347 @@ +[ + { + "__docId__": 1, + "kind": "external", + "name": "Infinity", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Infinity", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Infinity", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 2, + "kind": "external", + "name": "NaN", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~NaN", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 3, + "kind": "external", + "name": "undefined", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~undefined", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 4, + "kind": "external", + "name": "null", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~null", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 5, + "kind": "external", + "name": "Object", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Object", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 6, + "kind": "external", + "name": "object", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~object", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 7, + "kind": "external", + "name": "Function", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Function", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 8, + "kind": "external", + "name": "function", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~function", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 9, + "kind": "external", + "name": "Boolean", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Boolean", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 10, + "kind": "external", + "name": "boolean", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~boolean", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 11, + "kind": "external", + "name": "Symbol", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Symbol", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 12, + "kind": "external", + "name": "Error", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Error", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 13, + "kind": "external", + "name": "EvalError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~EvalError", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 14, + "kind": "external", + "name": "InternalError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/InternalError", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~InternalError", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 15, + "kind": "external", + "name": "RangeError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~RangeError", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 16, + "kind": "external", + "name": "ReferenceError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~ReferenceError", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 17, + "kind": "external", + "name": "SyntaxError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~SyntaxError", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 18, + "kind": "external", + "name": "TypeError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~TypeError", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 19, + "kind": "external", + "name": "URIError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~URIError", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 20, + "kind": "external", + "name": "Number", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Number", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 21, + "kind": "external", + "name": "number", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~number", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 22, + "kind": "external", + "name": "Date", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Date", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 23, + "kind": "external", + "name": "String", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~String", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 24, + "kind": "external", + "name": "string", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~string", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 25, + "kind": "external", + "name": "RegExp", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~RegExp", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 26, + "kind": "external", + "name": "Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Array", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 27, + "kind": "external", + "name": "Int8Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Int8Array", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 28, + "kind": "external", + "name": "Uint8Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Uint8Array", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 29, + "kind": "external", + "name": "Uint8ClampedArray", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Uint8ClampedArray", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 30, + "kind": "external", + "name": "Int16Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Int16Array", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 31, + "kind": "external", + "name": "Uint16Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Uint16Array", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 32, + "kind": "external", + "name": "Int32Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Int32Array", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 33, + "kind": "external", + "name": "Uint32Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Uint32Array", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 34, + "kind": "external", + "name": "Float32Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Float32Array", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 35, + "kind": "external", + "name": "Float64Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Float64Array", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 36, + "kind": "external", + "name": "Map", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Map", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 37, + "kind": "external", + "name": "Set", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Set", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 38, + "kind": "external", + "name": "WeakMap", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~WeakMap", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 39, + "kind": "external", + "name": "WeakSet", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~WeakSet", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 40, + "kind": "external", + "name": "ArrayBuffer", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~ArrayBuffer", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 41, + "kind": "external", + "name": "DataView", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~DataView", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 42, + "kind": "external", + "name": "JSON", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~JSON", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 43, + "kind": "external", + "name": "Promise", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Promise", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 44, + "kind": "external", + "name": "Generator", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Generator", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 45, + "kind": "external", + "name": "GeneratorFunction", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~GeneratorFunction", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 46, + "kind": "external", + "name": "Reflect", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Reflect", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 47, + "kind": "external", + "name": "Proxy", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Proxy", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 48, + "kind": "file", + "name": "src/index.js", + "content": "export * from './services';", + "static": true, + "longname": "/home/runner/work/CasperHoldersLib/CasperHoldersLib/src/index.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 49, + "kind": "file", + "name": "src/services/balance/balance.js", + "content": "import {NoStakeBalanceError, NoValidatorBalanceError} from \"../errors\";\nimport {CLPublicKey} from \"casper-js-sdk\";\nimport {CurrencyUtils} from \"../helpers\";\n\n/**\n * Balance class\n * Service used to retrieve different balances from the Casper network\n */\nexport class Balance {\n\n /** @type {AbstractKeyManager} */\n keyManager\n /** @type {ClientCasper} */\n client\n /** @type {string} */\n validator\n\n /**\n * Constructor\n *\n * @param {AbstractKeyManager} keyManager - Instance of a KeyManager\n * @param {ClientCasper} client - Instance of CasperClient\n * @param {string} validator - Hash of the main validator\n */\n constructor(keyManager, client, validator) {\n this.keyManager = keyManager;\n this.client = client;\n this.validator = validator\n }\n\n /**\n * Retrieve current user balance from the network.\n *\n * @return {Promise} - Current balance of the user\n */\n async fetchBalance() {\n return CurrencyUtils.convertMotesToCasper(\n (await this.client.casperClient.balanceOfByPublicKey(CLPublicKey.fromHex(this.keyManager.activeKey))).toNumber()\n );\n }\n\n /**\n * Retrieve current user stake balance from the network.\n *\n * @return {Promise} - Current stake balance of the user\n */\n async fetchStakeBalance() {\n const validatorsInfo = await this.client.casperRPC.getValidatorsInfo()\n let validator = validatorsInfo.auction_state.bids.filter(validator => {\n return validator.public_key === this.validator\n })[0]\n\n let stakingBalance = validator.bid.delegators.filter(delegator => {\n return delegator.public_key === this.keyManager.activeKey\n })\n if (stakingBalance.length > 0) {\n return CurrencyUtils.convertMotesToCasper(parseInt(stakingBalance[0].staked_amount))\n }\n throw new NoStakeBalanceError();\n }\n\n /**\n * Retrieve current validator balance from the network.\n *\n * @return {Promise} - Current balance of the validator\n */\n async fetchValidatorBalance() {\n const validatorsInfo = await this.client.casperRPC.getValidatorsInfo()\n let validator = validatorsInfo.auction_state.bids.filter(validator => {\n return validator.public_key === this.keyManager.activeKey\n })[0]\n if (validator) {\n return {\n balance: CurrencyUtils.convertMotesToCasper(parseInt(validator.bid.staked_amount)),\n commission: validator.bid.delegation_rate,\n }\n }\n throw new NoValidatorBalanceError()\n }\n}", + "static": true, + "longname": "/home/runner/work/CasperHoldersLib/CasperHoldersLib/src/services/balance/balance.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 50, + "kind": "class", + "name": "Balance", + "memberof": "src/services/balance/balance.js", + "static": true, + "longname": "src/services/balance/balance.js~Balance", + "access": "public", + "export": true, + "importPath": "casperholderslib/src/services/balance/balance.js", + "importStyle": "{Balance}", + "description": "Balance class\nService used to retrieve different balances from the Casper network", + "lineNumber": 9, + "interface": false + }, + { + "__docId__": 51, + "kind": "member", + "name": "keyManager", + "memberof": "src/services/balance/balance.js~Balance", + "static": false, + "longname": "src/services/balance/balance.js~Balance#keyManager", + "access": "public", + "description": null, + "lineNumber": 12, + "type": { + "nullable": null, + "types": [ + "AbstractKeyManager" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 52, + "kind": "member", + "name": "client", + "memberof": "src/services/balance/balance.js~Balance", + "static": false, + "longname": "src/services/balance/balance.js~Balance#client", + "access": "public", + "description": null, + "lineNumber": 14, + "type": { + "nullable": null, + "types": [ + "ClientCasper" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 53, + "kind": "member", + "name": "validator", + "memberof": "src/services/balance/balance.js~Balance", + "static": false, + "longname": "src/services/balance/balance.js~Balance#validator", + "access": "public", + "description": null, + "lineNumber": 16, + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 54, + "kind": "constructor", + "name": "constructor", + "memberof": "src/services/balance/balance.js~Balance", + "generator": false, + "async": false, + "static": false, + "longname": "src/services/balance/balance.js~Balance#constructor", + "access": "public", + "description": "Constructor", + "lineNumber": 25, + "params": [ + { + "nullable": null, + "types": [ + "AbstractKeyManager" + ], + "spread": false, + "optional": false, + "name": "keyManager", + "description": "Instance of a KeyManager" + }, + { + "nullable": null, + "types": [ + "ClientCasper" + ], + "spread": false, + "optional": false, + "name": "client", + "description": "Instance of CasperClient" + }, + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "validator", + "description": "Hash of the main validator" + } + ] + }, + { + "__docId__": 58, + "kind": "method", + "name": "fetchBalance", + "memberof": "src/services/balance/balance.js~Balance", + "generator": false, + "async": true, + "static": false, + "longname": "src/services/balance/balance.js~Balance#fetchBalance", + "access": "public", + "description": "Retrieve current user balance from the network.", + "lineNumber": 36, + "return": { + "nullable": null, + "types": [ + "Promise" + ], + "spread": false, + "description": "Current balance of the user" + }, + "params": [] + }, + { + "__docId__": 59, + "kind": "method", + "name": "fetchStakeBalance", + "memberof": "src/services/balance/balance.js~Balance", + "generator": false, + "async": true, + "static": false, + "longname": "src/services/balance/balance.js~Balance#fetchStakeBalance", + "access": "public", + "description": "Retrieve current user stake balance from the network.", + "lineNumber": 47, + "return": { + "nullable": null, + "types": [ + "Promise" + ], + "spread": false, + "description": "Current stake balance of the user" + }, + "params": [] + }, + { + "__docId__": 60, + "kind": "method", + "name": "fetchValidatorBalance", + "memberof": "src/services/balance/balance.js~Balance", + "generator": false, + "async": true, + "static": false, + "longname": "src/services/balance/balance.js~Balance#fetchValidatorBalance", + "access": "public", + "description": "Retrieve current validator balance from the network.", + "lineNumber": 67, + "return": { + "nullable": null, + "types": [ + "Promise" + ], + "spread": false, + "description": "Current balance of the validator" + }, + "params": [] + }, + { + "__docId__": 61, + "kind": "file", + "name": "src/services/clients/clientCasper.js", + "content": "import {CasperClient, CasperServiceByJsonRPC} from \"casper-js-sdk\";\n\n/**\n * ClientCasper class\n * Contains the casper client and the casper rpc client\n */\nexport class ClientCasper {\n\n /** @type {CasperClient} */\n casperClient\n /** @type {CasperServiceByJsonRPC} */\n casperRPC\n\n /**\n * Constructor\n * @param {string} rpc - Url of the node rpc endpoint\n */\n constructor(rpc) {\n this.casperClient = new CasperClient(rpc)\n this.casperRPC = new CasperServiceByJsonRPC(rpc)\n }\n}", + "static": true, + "longname": "/home/runner/work/CasperHoldersLib/CasperHoldersLib/src/services/clients/clientCasper.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 62, + "kind": "class", + "name": "ClientCasper", + "memberof": "src/services/clients/clientCasper.js", + "static": true, + "longname": "src/services/clients/clientCasper.js~ClientCasper", + "access": "public", + "export": true, + "importPath": "casperholderslib/src/services/clients/clientCasper.js", + "importStyle": "{ClientCasper}", + "description": "ClientCasper class\nContains the casper client and the casper rpc client", + "lineNumber": 7, + "interface": false + }, + { + "__docId__": 63, + "kind": "member", + "name": "casperClient", + "memberof": "src/services/clients/clientCasper.js~ClientCasper", + "static": false, + "longname": "src/services/clients/clientCasper.js~ClientCasper#casperClient", + "access": "public", + "description": null, + "lineNumber": 10, + "type": { + "nullable": null, + "types": [ + "CasperClient" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 64, + "kind": "member", + "name": "casperRPC", + "memberof": "src/services/clients/clientCasper.js~ClientCasper", + "static": false, + "longname": "src/services/clients/clientCasper.js~ClientCasper#casperRPC", + "access": "public", + "description": null, + "lineNumber": 12, + "type": { + "nullable": null, + "types": [ + "CasperServiceByJsonRPC" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 65, + "kind": "constructor", + "name": "constructor", + "memberof": "src/services/clients/clientCasper.js~ClientCasper", + "generator": false, + "async": false, + "static": false, + "longname": "src/services/clients/clientCasper.js~ClientCasper#constructor", + "access": "public", + "description": "Constructor", + "lineNumber": 18, + "params": [ + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "rpc", + "description": "Url of the node rpc endpoint" + } + ] + }, + { + "__docId__": 68, + "kind": "file", + "name": "src/services/clients/index.js", + "content": "export * from './clientCasper';", + "static": true, + "longname": "/home/runner/work/CasperHoldersLib/CasperHoldersLib/src/services/clients/index.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 69, + "kind": "file", + "name": "src/services/deploys/abstractSmartContractDeployParameters.js", + "content": "import {DeployUtil} from \"casper-js-sdk\";\n\n/**\n * AbstractSmartContractDeployParameters class\n * Abstract class used to define specifics DeployParameters\n */\nexport class AbstractSmartContractDeployParameters {\n /**\n * Get the deployParams deploy argument\n *\n * @return {DeployUtil.DeployParams} - Return a DeployParams\n */\n get deployParams() {\n throw \"You must implement this method\"\n }\n\n /**\n * Get the session deploy argument\n *\n * @return {DeployUtil.ExecutableDeployItem} - Return a session with a SmartContract stored by hash on the network\n */\n get session() {\n throw \"You must implement this method\"\n }\n\n /**\n * Get the payment deploy argument\n *\n * @return {DeployUtil.ExecutableDeployItem} - Return a standard payment\n */\n get payment() {\n throw \"You must implement this method\"\n }\n\n /**\n * Get a DeployResult constructor\n *\n * @return {DeployResult.constructor} - Return the constructor of a given DeployResult\n */\n get deployResult() {\n throw \"You must implement this method\"\n }\n\n /**\n * Create a unsigned Deploy object\n *\n * @return {Deploy} - Return a deploy object\n */\n get makeDeploy() {\n return DeployUtil.makeDeploy(this.deployParams, this.session, this.payment)\n }\n}", + "static": true, + "longname": "/home/runner/work/CasperHoldersLib/CasperHoldersLib/src/services/deploys/abstractSmartContractDeployParameters.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 70, + "kind": "class", + "name": "AbstractSmartContractDeployParameters", + "memberof": "src/services/deploys/abstractSmartContractDeployParameters.js", + "static": true, + "longname": "src/services/deploys/abstractSmartContractDeployParameters.js~AbstractSmartContractDeployParameters", + "access": "public", + "export": true, + "importPath": "casperholderslib/src/services/deploys/abstractSmartContractDeployParameters.js", + "importStyle": "{AbstractSmartContractDeployParameters}", + "description": "AbstractSmartContractDeployParameters class\nAbstract class used to define specifics DeployParameters", + "lineNumber": 7, + "interface": false + }, + { + "__docId__": 71, + "kind": "get", + "name": "deployParams", + "memberof": "src/services/deploys/abstractSmartContractDeployParameters.js~AbstractSmartContractDeployParameters", + "generator": false, + "async": false, + "static": false, + "longname": "src/services/deploys/abstractSmartContractDeployParameters.js~AbstractSmartContractDeployParameters#deployParams", + "access": "public", + "description": "Get the deployParams deploy argument", + "lineNumber": 13, + "return": { + "nullable": null, + "types": [ + "DeployUtil.DeployParams" + ], + "spread": false, + "description": "Return a DeployParams" + }, + "type": null + }, + { + "__docId__": 72, + "kind": "get", + "name": "session", + "memberof": "src/services/deploys/abstractSmartContractDeployParameters.js~AbstractSmartContractDeployParameters", + "generator": false, + "async": false, + "static": false, + "longname": "src/services/deploys/abstractSmartContractDeployParameters.js~AbstractSmartContractDeployParameters#session", + "access": "public", + "description": "Get the session deploy argument", + "lineNumber": 22, + "return": { + "nullable": null, + "types": [ + "DeployUtil.ExecutableDeployItem" + ], + "spread": false, + "description": "Return a session with a SmartContract stored by hash on the network" + }, + "type": null + }, + { + "__docId__": 73, + "kind": "get", + "name": "payment", + "memberof": "src/services/deploys/abstractSmartContractDeployParameters.js~AbstractSmartContractDeployParameters", + "generator": false, + "async": false, + "static": false, + "longname": "src/services/deploys/abstractSmartContractDeployParameters.js~AbstractSmartContractDeployParameters#payment", + "access": "public", + "description": "Get the payment deploy argument", + "lineNumber": 31, + "return": { + "nullable": null, + "types": [ + "DeployUtil.ExecutableDeployItem" + ], + "spread": false, + "description": "Return a standard payment" + }, + "type": null + }, + { + "__docId__": 74, + "kind": "get", + "name": "deployResult", + "memberof": "src/services/deploys/abstractSmartContractDeployParameters.js~AbstractSmartContractDeployParameters", + "generator": false, + "async": false, + "static": false, + "longname": "src/services/deploys/abstractSmartContractDeployParameters.js~AbstractSmartContractDeployParameters#deployResult", + "access": "public", + "description": "Get a DeployResult constructor", + "lineNumber": 40, + "return": { + "nullable": null, + "types": [ + "DeployResult.constructor" + ], + "spread": false, + "description": "Return the constructor of a given DeployResult" + }, + "type": null + }, + { + "__docId__": 75, + "kind": "get", + "name": "makeDeploy", + "memberof": "src/services/deploys/abstractSmartContractDeployParameters.js~AbstractSmartContractDeployParameters", + "generator": false, + "async": false, + "static": false, + "longname": "src/services/deploys/abstractSmartContractDeployParameters.js~AbstractSmartContractDeployParameters#makeDeploy", + "access": "public", + "description": "Create a unsigned Deploy object", + "lineNumber": 49, + "return": { + "nullable": null, + "types": [ + "Deploy" + ], + "spread": false, + "description": "Return a deploy object" + }, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 76, + "kind": "file", + "name": "src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js", + "content": "import {AbstractSmartContractDeployParameters} from \"./abstractSmartContractDeployParameters\";\nimport {CLPublicKey, DeployUtil} from \"casper-js-sdk\";\n\n/**\n * AbstractSmartContractStoredByHashDeployParameters class\n * Abstract class used to defined specific DeployParameters for SmartContracts stored by hash on the network\n */\nexport class AbstractSmartContractStoredByHashDeployParameters extends AbstractSmartContractDeployParameters {\n /** @type {string} */\n activeKey;\n /** @type {string} */\n network;\n /** @type {string} */\n hash;\n /** @type {string} */\n entrypoint;\n /** @type {DeployUtil.RuntimeArgs} */\n args;\n /** @type {number} */\n fee;\n\n /**\n * Constructor\n *\n * @param {string} activeKey - Current active key in the public hex format\n * @param {string} network - Current network to execute the deployment\n * @param {string} hash - Current hash of the stored SmartContract\n * @param {string} entrypoint - Entrypoint of the SmartContract\n * @param {DeployUtil.RuntimeArgs} args - Arguments of the SmartContract\n * @param {number} fee - Runtime fee for the given SmartContract operation\n */\n constructor(activeKey, network, hash, entrypoint, args, fee) {\n super()\n this.activeKey = activeKey;\n this.network = network;\n this.hash = hash;\n this.entrypoint = entrypoint;\n this.args = args;\n this.fee = fee;\n }\n\n /**\n * Get the deployParams deploy argument\n *\n * @return {DeployUtil.DeployParams} - Return a DeployParams\n */\n get deployParams() {\n return new DeployUtil.DeployParams(\n CLPublicKey.fromHex(this.activeKey),\n this.network\n );\n }\n\n /**\n * Get the session deploy argument\n *\n * @return {DeployUtil.ExecutableDeployItem} - Return a session with a SmartContract stored by hash on the network\n */\n get session() {\n return DeployUtil.ExecutableDeployItem.newStoredContractByHash(\n Uint8Array.from(Buffer.from(this.hash, \"hex\")),\n this.entrypoint,\n this.args\n );\n }\n\n /**\n * Get the payment deploy argument\n *\n * @return {DeployUtil.ExecutableDeployItem} - Return a standard payment\n */\n get payment() {\n return DeployUtil.standardPayment(this.fee);\n }\n}", + "static": true, + "longname": "/home/runner/work/CasperHoldersLib/CasperHoldersLib/src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 77, + "kind": "class", + "name": "AbstractSmartContractStoredByHashDeployParameters", + "memberof": "src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js", + "static": true, + "longname": "src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters", + "access": "public", + "export": true, + "importPath": "casperholderslib/src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js", + "importStyle": "{AbstractSmartContractStoredByHashDeployParameters}", + "description": "AbstractSmartContractStoredByHashDeployParameters class\nAbstract class used to defined specific DeployParameters for SmartContracts stored by hash on the network", + "lineNumber": 8, + "interface": false, + "extends": [ + "src/services/deploys/abstractSmartContractDeployParameters.js~AbstractSmartContractDeployParameters" + ] + }, + { + "__docId__": 78, + "kind": "member", + "name": "activeKey", + "memberof": "src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters", + "static": false, + "longname": "src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters#activeKey", + "access": "public", + "description": null, + "lineNumber": 10, + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 79, + "kind": "member", + "name": "network", + "memberof": "src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters", + "static": false, + "longname": "src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters#network", + "access": "public", + "description": null, + "lineNumber": 12, + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 80, + "kind": "member", + "name": "hash", + "memberof": "src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters", + "static": false, + "longname": "src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters#hash", + "access": "public", + "description": null, + "lineNumber": 14, + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 81, + "kind": "member", + "name": "entrypoint", + "memberof": "src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters", + "static": false, + "longname": "src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters#entrypoint", + "access": "public", + "description": null, + "lineNumber": 16, + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 82, + "kind": "member", + "name": "args", + "memberof": "src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters", + "static": false, + "longname": "src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters#args", + "access": "public", + "description": null, + "lineNumber": 18, + "type": { + "nullable": null, + "types": [ + "DeployUtil.RuntimeArgs" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 83, + "kind": "member", + "name": "fee", + "memberof": "src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters", + "static": false, + "longname": "src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters#fee", + "access": "public", + "description": null, + "lineNumber": 20, + "type": { + "nullable": null, + "types": [ + "number" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 84, + "kind": "constructor", + "name": "constructor", + "memberof": "src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters", + "generator": false, + "async": false, + "static": false, + "longname": "src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters#constructor", + "access": "public", + "description": "Constructor", + "lineNumber": 32, + "params": [ + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "activeKey", + "description": "Current active key in the public hex format" + }, + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "network", + "description": "Current network to execute the deployment" + }, + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "hash", + "description": "Current hash of the stored SmartContract" + }, + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "entrypoint", + "description": "Entrypoint of the SmartContract" + }, + { + "nullable": null, + "types": [ + "DeployUtil.RuntimeArgs" + ], + "spread": false, + "optional": false, + "name": "args", + "description": "Arguments of the SmartContract" + }, + { + "nullable": null, + "types": [ + "number" + ], + "spread": false, + "optional": false, + "name": "fee", + "description": "Runtime fee for the given SmartContract operation" + } + ] + }, + { + "__docId__": 91, + "kind": "get", + "name": "deployParams", + "memberof": "src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters", + "generator": false, + "async": false, + "static": false, + "longname": "src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters#deployParams", + "access": "public", + "description": "Get the deployParams deploy argument", + "lineNumber": 47, + "return": { + "nullable": null, + "types": [ + "DeployUtil.DeployParams" + ], + "spread": false, + "description": "Return a DeployParams" + }, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 92, + "kind": "get", + "name": "session", + "memberof": "src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters", + "generator": false, + "async": false, + "static": false, + "longname": "src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters#session", + "access": "public", + "description": "Get the session deploy argument", + "lineNumber": 59, + "return": { + "nullable": null, + "types": [ + "DeployUtil.ExecutableDeployItem" + ], + "spread": false, + "description": "Return a session with a SmartContract stored by hash on the network" + }, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 93, + "kind": "get", + "name": "payment", + "memberof": "src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters", + "generator": false, + "async": false, + "static": false, + "longname": "src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters#payment", + "access": "public", + "description": "Get the payment deploy argument", + "lineNumber": 72, + "return": { + "nullable": null, + "types": [ + "DeployUtil.ExecutableDeployItem" + ], + "spread": false, + "description": "Return a standard payment" + }, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 94, + "kind": "file", + "name": "src/services/deploys/auction/actions/addBid.js", + "content": "import {CLPublicKey, CLU512, CLU8, RuntimeArgs} from \"casper-js-sdk\";\nimport {CurrencyUtils} from \"../../../helpers/currencyUtils\";\nimport {AddBidResult} from \"../../../results/addBidResult\";\nimport {AbstractSmartContractStoredByHashDeployParameters} from \"../../abstractSmartContractStoredByHashDeployParameters\";\n\n/**\n * @constant\n * @type {string}\n */\nconst entrypoint = 'add_bid'\n/**\n * @constant\n * @type {number}\n */\nconst fee = 2800000000\n\n/**\n * AddBid class\n * Class used to create DeployParameters for a AddBid operation\n */\nexport class AddBid extends AbstractSmartContractStoredByHashDeployParameters {\n\n /**\n * Constructor\n *\n * @param {number} amount - Amount of casper to add to the bid\n * @param {string} activeKey - Current active key in the public hex format\n * @param {number} commission - Set the commission of the validator to the given percentage\n * @param {string} network - Current network to execute the deployment\n * @param {string} hash - Current hash of the stored SmartContract\n */\n constructor(amount, activeKey, commission, network, hash) {\n const args = RuntimeArgs.fromMap({\n public_key: CLPublicKey.fromHex(activeKey),\n amount: new CLU512(CurrencyUtils.convertCasperToMotes(amount)),\n delegation_rate: new CLU8(commission)\n })\n super(activeKey, network, hash, entrypoint, args, fee);\n }\n\n /**\n * Get a DeployResult constructor\n *\n * @return {DeployResult.constructor} - Return the constructor of a given DeployResult\n */\n get deployResult() {\n return AddBidResult\n }\n}", + "static": true, + "longname": "/home/runner/work/CasperHoldersLib/CasperHoldersLib/src/services/deploys/auction/actions/addBid.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 95, + "kind": "variable", + "name": "entrypoint", + "memberof": "src/services/deploys/auction/actions/addBid.js", + "static": true, + "longname": "src/services/deploys/auction/actions/addBid.js~entrypoint", + "access": "public", + "export": false, + "importPath": "casperholderslib/src/services/deploys/auction/actions/addBid.js", + "importStyle": null, + "description": "", + "lineNumber": 10, + "unknown": [ + { + "tagName": "@constant", + "tagValue": "" + } + ], + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + }, + "ignore": true + }, + { + "__docId__": 96, + "kind": "variable", + "name": "fee", + "memberof": "src/services/deploys/auction/actions/addBid.js", + "static": true, + "longname": "src/services/deploys/auction/actions/addBid.js~fee", + "access": "public", + "export": false, + "importPath": "casperholderslib/src/services/deploys/auction/actions/addBid.js", + "importStyle": null, + "description": "", + "lineNumber": 15, + "unknown": [ + { + "tagName": "@constant", + "tagValue": "" + } + ], + "type": { + "nullable": null, + "types": [ + "number" + ], + "spread": false, + "description": null + }, + "ignore": true + }, + { + "__docId__": 97, + "kind": "class", + "name": "AddBid", + "memberof": "src/services/deploys/auction/actions/addBid.js", + "static": true, + "longname": "src/services/deploys/auction/actions/addBid.js~AddBid", + "access": "public", + "export": true, + "importPath": "casperholderslib/src/services/deploys/auction/actions/addBid.js", + "importStyle": "{AddBid}", + "description": "AddBid class\nClass used to create DeployParameters for a AddBid operation", + "lineNumber": 21, + "interface": false, + "extends": [ + "src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters" + ] + }, + { + "__docId__": 98, + "kind": "constructor", + "name": "constructor", + "memberof": "src/services/deploys/auction/actions/addBid.js~AddBid", + "generator": false, + "async": false, + "static": false, + "longname": "src/services/deploys/auction/actions/addBid.js~AddBid#constructor", + "access": "public", + "description": "Constructor", + "lineNumber": 32, + "params": [ + { + "nullable": null, + "types": [ + "number" + ], + "spread": false, + "optional": false, + "name": "amount", + "description": "Amount of casper to add to the bid" + }, + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "activeKey", + "description": "Current active key in the public hex format" + }, + { + "nullable": null, + "types": [ + "number" + ], + "spread": false, + "optional": false, + "name": "commission", + "description": "Set the commission of the validator to the given percentage" + }, + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "network", + "description": "Current network to execute the deployment" + }, + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "hash", + "description": "Current hash of the stored SmartContract" + } + ] + }, + { + "__docId__": 99, + "kind": "get", + "name": "deployResult", + "memberof": "src/services/deploys/auction/actions/addBid.js~AddBid", + "generator": false, + "async": false, + "static": false, + "longname": "src/services/deploys/auction/actions/addBid.js~AddBid#deployResult", + "access": "public", + "description": "Get a DeployResult constructor", + "lineNumber": 46, + "return": { + "nullable": null, + "types": [ + "DeployResult.constructor" + ], + "spread": false, + "description": "Return the constructor of a given DeployResult" + }, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 100, + "kind": "file", + "name": "src/services/deploys/auction/actions/delegate.js", + "content": "import {CLPublicKey, CLU512, RuntimeArgs} from \"casper-js-sdk\";\nimport {CurrencyUtils} from \"../../../helpers\";\nimport {DelegateResult} from \"../../../results\";\nimport {AbstractSmartContractStoredByHashDeployParameters} from \"../../abstractSmartContractStoredByHashDeployParameters\";\n\n/**\n * @constant\n * @type {string}\n */\nconst entrypoint = 'delegate'\n/**\n * @constant\n * @type {number}\n */\nconst fee = 2910000000\n\n/**\n * Delegate class\n * Class used to create DeployParameters for a Delegate operation\n */\nexport class Delegate extends AbstractSmartContractStoredByHashDeployParameters {\n\n /**\n * Constructor\n *\n * @param {number} amount - Amount of casper to add to delegate\n * @param {string} activeKey - Current active key in the public hex format\n * @param {string} validator - Public key in the hex format of the validator\n * @param {string} network - Current network to execute the deployment\n * @param {string} hash - Current hash of the stored SmartContract\n */\n constructor(amount, activeKey, validator, network, hash) {\n const args = RuntimeArgs.fromMap({\n delegator: CLPublicKey.fromHex(activeKey),\n validator: CLPublicKey.fromHex(validator),\n amount: new CLU512(CurrencyUtils.convertCasperToMotes(amount))\n })\n super(activeKey, network, hash, entrypoint, args, fee);\n }\n\n /**\n * Get a DeployResult constructor\n *\n * @return {DeployResult.constructor} - Return the constructor of a given DeployResult\n */\n get deployResult() {\n return DelegateResult\n }\n}", + "static": true, + "longname": "/home/runner/work/CasperHoldersLib/CasperHoldersLib/src/services/deploys/auction/actions/delegate.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 101, + "kind": "variable", + "name": "entrypoint", + "memberof": "src/services/deploys/auction/actions/delegate.js", + "static": true, + "longname": "src/services/deploys/auction/actions/delegate.js~entrypoint", + "access": "public", + "export": false, + "importPath": "casperholderslib/src/services/deploys/auction/actions/delegate.js", + "importStyle": null, + "description": "", + "lineNumber": 10, + "unknown": [ + { + "tagName": "@constant", + "tagValue": "" + } + ], + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + }, + "ignore": true + }, + { + "__docId__": 102, + "kind": "variable", + "name": "fee", + "memberof": "src/services/deploys/auction/actions/delegate.js", + "static": true, + "longname": "src/services/deploys/auction/actions/delegate.js~fee", + "access": "public", + "export": false, + "importPath": "casperholderslib/src/services/deploys/auction/actions/delegate.js", + "importStyle": null, + "description": "", + "lineNumber": 15, + "unknown": [ + { + "tagName": "@constant", + "tagValue": "" + } + ], + "type": { + "nullable": null, + "types": [ + "number" + ], + "spread": false, + "description": null + }, + "ignore": true + }, + { + "__docId__": 103, + "kind": "class", + "name": "Delegate", + "memberof": "src/services/deploys/auction/actions/delegate.js", + "static": true, + "longname": "src/services/deploys/auction/actions/delegate.js~Delegate", + "access": "public", + "export": true, + "importPath": "casperholderslib/src/services/deploys/auction/actions/delegate.js", + "importStyle": "{Delegate}", + "description": "Delegate class\nClass used to create DeployParameters for a Delegate operation", + "lineNumber": 21, + "interface": false, + "extends": [ + "src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters" + ] + }, + { + "__docId__": 104, + "kind": "constructor", + "name": "constructor", + "memberof": "src/services/deploys/auction/actions/delegate.js~Delegate", + "generator": false, + "async": false, + "static": false, + "longname": "src/services/deploys/auction/actions/delegate.js~Delegate#constructor", + "access": "public", + "description": "Constructor", + "lineNumber": 32, + "params": [ + { + "nullable": null, + "types": [ + "number" + ], + "spread": false, + "optional": false, + "name": "amount", + "description": "Amount of casper to add to delegate" + }, + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "activeKey", + "description": "Current active key in the public hex format" + }, + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "validator", + "description": "Public key in the hex format of the validator" + }, + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "network", + "description": "Current network to execute the deployment" + }, + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "hash", + "description": "Current hash of the stored SmartContract" + } + ] + }, + { + "__docId__": 105, + "kind": "get", + "name": "deployResult", + "memberof": "src/services/deploys/auction/actions/delegate.js~Delegate", + "generator": false, + "async": false, + "static": false, + "longname": "src/services/deploys/auction/actions/delegate.js~Delegate#deployResult", + "access": "public", + "description": "Get a DeployResult constructor", + "lineNumber": 46, + "return": { + "nullable": null, + "types": [ + "DeployResult.constructor" + ], + "spread": false, + "description": "Return the constructor of a given DeployResult" + }, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 106, + "kind": "file", + "name": "src/services/deploys/auction/actions/index.js", + "content": "export * from './addBid';\nexport * from './delegate';\nexport * from './undelegate';\nexport * from './withdrawBid';", + "static": true, + "longname": "/home/runner/work/CasperHoldersLib/CasperHoldersLib/src/services/deploys/auction/actions/index.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 107, + "kind": "file", + "name": "src/services/deploys/auction/actions/undelegate.js", + "content": "import {CLPublicKey, CLU512, RuntimeArgs} from \"casper-js-sdk\";\nimport {CurrencyUtils} from \"../../../helpers/currencyUtils\";\nimport {UndelegateResult} from \"../../../results/undelegateResult\";\nimport {AbstractSmartContractStoredByHashDeployParameters} from \"../../abstractSmartContractStoredByHashDeployParameters\";\n\n/**\n * @constant\n * @type {string}\n */\nconst entrypoint = 'undelegate'\n/**\n * @constant\n * @type {number}\n */\nconst fee = 410000000\n\n/**\n * Undelegate class\n * Class used to create DeployParameters for a Undelegate operation\n */\nexport class Undelegate extends AbstractSmartContractStoredByHashDeployParameters {\n\n /**\n * Constructor\n *\n * @param {number} amount - Amount of casper to add to undelegate\n * @param {string} activeKey - Current active key in the public hex format\n * @param {string} validator - Public key in the hex format of the validator\n * @param {string} network - Current network to execute the deployment\n * @param {string} hash - Current hash of the stored SmartContract\n */\n constructor(amount, activeKey, validator, network, hash) {\n const args = RuntimeArgs.fromMap({\n delegator: CLPublicKey.fromHex(activeKey),\n validator: CLPublicKey.fromHex(validator),\n amount: new CLU512(CurrencyUtils.convertCasperToMotes(amount))\n })\n super(activeKey, network, hash, entrypoint, args, fee);\n }\n\n /**\n * Get a DeployResult constructor\n *\n * @return {DeployResult.constructor} - Return the constructor of a given DeployResult\n */\n get deployResult() {\n return UndelegateResult\n }\n}", + "static": true, + "longname": "/home/runner/work/CasperHoldersLib/CasperHoldersLib/src/services/deploys/auction/actions/undelegate.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 108, + "kind": "variable", + "name": "entrypoint", + "memberof": "src/services/deploys/auction/actions/undelegate.js", + "static": true, + "longname": "src/services/deploys/auction/actions/undelegate.js~entrypoint", + "access": "public", + "export": false, + "importPath": "casperholderslib/src/services/deploys/auction/actions/undelegate.js", + "importStyle": null, + "description": "", + "lineNumber": 10, + "unknown": [ + { + "tagName": "@constant", + "tagValue": "" + } + ], + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + }, + "ignore": true + }, + { + "__docId__": 109, + "kind": "variable", + "name": "fee", + "memberof": "src/services/deploys/auction/actions/undelegate.js", + "static": true, + "longname": "src/services/deploys/auction/actions/undelegate.js~fee", + "access": "public", + "export": false, + "importPath": "casperholderslib/src/services/deploys/auction/actions/undelegate.js", + "importStyle": null, + "description": "", + "lineNumber": 15, + "unknown": [ + { + "tagName": "@constant", + "tagValue": "" + } + ], + "type": { + "nullable": null, + "types": [ + "number" + ], + "spread": false, + "description": null + }, + "ignore": true + }, + { + "__docId__": 110, + "kind": "class", + "name": "Undelegate", + "memberof": "src/services/deploys/auction/actions/undelegate.js", + "static": true, + "longname": "src/services/deploys/auction/actions/undelegate.js~Undelegate", + "access": "public", + "export": true, + "importPath": "casperholderslib/src/services/deploys/auction/actions/undelegate.js", + "importStyle": "{Undelegate}", + "description": "Undelegate class\nClass used to create DeployParameters for a Undelegate operation", + "lineNumber": 21, + "interface": false, + "extends": [ + "src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters" + ] + }, + { + "__docId__": 111, + "kind": "constructor", + "name": "constructor", + "memberof": "src/services/deploys/auction/actions/undelegate.js~Undelegate", + "generator": false, + "async": false, + "static": false, + "longname": "src/services/deploys/auction/actions/undelegate.js~Undelegate#constructor", + "access": "public", + "description": "Constructor", + "lineNumber": 32, + "params": [ + { + "nullable": null, + "types": [ + "number" + ], + "spread": false, + "optional": false, + "name": "amount", + "description": "Amount of casper to add to undelegate" + }, + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "activeKey", + "description": "Current active key in the public hex format" + }, + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "validator", + "description": "Public key in the hex format of the validator" + }, + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "network", + "description": "Current network to execute the deployment" + }, + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "hash", + "description": "Current hash of the stored SmartContract" + } + ] + }, + { + "__docId__": 112, + "kind": "get", + "name": "deployResult", + "memberof": "src/services/deploys/auction/actions/undelegate.js~Undelegate", + "generator": false, + "async": false, + "static": false, + "longname": "src/services/deploys/auction/actions/undelegate.js~Undelegate#deployResult", + "access": "public", + "description": "Get a DeployResult constructor", + "lineNumber": 46, + "return": { + "nullable": null, + "types": [ + "DeployResult.constructor" + ], + "spread": false, + "description": "Return the constructor of a given DeployResult" + }, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 113, + "kind": "file", + "name": "src/services/deploys/auction/actions/withdrawBid.js", + "content": "import {CLPublicKey, CLU512, RuntimeArgs} from \"casper-js-sdk\";\nimport {CurrencyUtils} from \"../../../helpers/currencyUtils\";\nimport {WithdrawBidResult} from \"../../../results/withdrawBidResult\";\nimport {AbstractSmartContractStoredByHashDeployParameters} from \"../../abstractSmartContractStoredByHashDeployParameters\";\n\n/**\n * @constant\n * @type {string}\n */\nconst entrypoint = 'withdraw_bid'\n/**\n * @constant\n * @type {number}\n */\nconst fee = 220000000\n\n/**\n * WithdrawBid\n * Class used to create DeployParameters for a WithdrawBid operation\n */\nexport class WithdrawBid extends AbstractSmartContractStoredByHashDeployParameters {\n\n /**\n * Constructor\n *\n * @param {number} amount - Amount of casper to withdraw to the bid\n * @param {string} activeKey - Current active key in the public hex format\n * @param {string} network - Current network to execute the deployment\n * @param {string} hash - Current hash of the stored SmartContract\n */\n constructor(amount, activeKey, network, hash) {\n const args = RuntimeArgs.fromMap({\n public_key: CLPublicKey.fromHex(activeKey),\n amount: new CLU512(CurrencyUtils.convertCasperToMotes(amount)),\n })\n super(activeKey, network, hash, entrypoint, args, fee);\n }\n\n /**\n * Get a DeployResult constructor\n *\n * @return {DeployResult.constructor} - Return the constructor of a given DeployResult\n */\n get deployResult() {\n return WithdrawBidResult\n }\n}", + "static": true, + "longname": "/home/runner/work/CasperHoldersLib/CasperHoldersLib/src/services/deploys/auction/actions/withdrawBid.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 114, + "kind": "variable", + "name": "entrypoint", + "memberof": "src/services/deploys/auction/actions/withdrawBid.js", + "static": true, + "longname": "src/services/deploys/auction/actions/withdrawBid.js~entrypoint", + "access": "public", + "export": false, + "importPath": "casperholderslib/src/services/deploys/auction/actions/withdrawBid.js", + "importStyle": null, + "description": "", + "lineNumber": 10, + "unknown": [ + { + "tagName": "@constant", + "tagValue": "" + } + ], + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + }, + "ignore": true + }, + { + "__docId__": 115, + "kind": "variable", + "name": "fee", + "memberof": "src/services/deploys/auction/actions/withdrawBid.js", + "static": true, + "longname": "src/services/deploys/auction/actions/withdrawBid.js~fee", + "access": "public", + "export": false, + "importPath": "casperholderslib/src/services/deploys/auction/actions/withdrawBid.js", + "importStyle": null, + "description": "", + "lineNumber": 15, + "unknown": [ + { + "tagName": "@constant", + "tagValue": "" + } + ], + "type": { + "nullable": null, + "types": [ + "number" + ], + "spread": false, + "description": null + }, + "ignore": true + }, + { + "__docId__": 116, + "kind": "class", + "name": "WithdrawBid", + "memberof": "src/services/deploys/auction/actions/withdrawBid.js", + "static": true, + "longname": "src/services/deploys/auction/actions/withdrawBid.js~WithdrawBid", + "access": "public", + "export": true, + "importPath": "casperholderslib/src/services/deploys/auction/actions/withdrawBid.js", + "importStyle": "{WithdrawBid}", + "description": "WithdrawBid\nClass used to create DeployParameters for a WithdrawBid operation", + "lineNumber": 21, + "interface": false, + "extends": [ + "src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters" + ] + }, + { + "__docId__": 117, + "kind": "constructor", + "name": "constructor", + "memberof": "src/services/deploys/auction/actions/withdrawBid.js~WithdrawBid", + "generator": false, + "async": false, + "static": false, + "longname": "src/services/deploys/auction/actions/withdrawBid.js~WithdrawBid#constructor", + "access": "public", + "description": "Constructor", + "lineNumber": 31, + "params": [ + { + "nullable": null, + "types": [ + "number" + ], + "spread": false, + "optional": false, + "name": "amount", + "description": "Amount of casper to withdraw to the bid" + }, + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "activeKey", + "description": "Current active key in the public hex format" + }, + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "network", + "description": "Current network to execute the deployment" + }, + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "hash", + "description": "Current hash of the stored SmartContract" + } + ] + }, + { + "__docId__": 118, + "kind": "get", + "name": "deployResult", + "memberof": "src/services/deploys/auction/actions/withdrawBid.js~WithdrawBid", + "generator": false, + "async": false, + "static": false, + "longname": "src/services/deploys/auction/actions/withdrawBid.js~WithdrawBid#deployResult", + "access": "public", + "description": "Get a DeployResult constructor", + "lineNumber": 44, + "return": { + "nullable": null, + "types": [ + "DeployResult.constructor" + ], + "spread": false, + "description": "Return the constructor of a given DeployResult" + }, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 119, + "kind": "file", + "name": "src/services/deploys/auction/index.js", + "content": "export * from './actions';", + "static": true, + "longname": "/home/runner/work/CasperHoldersLib/CasperHoldersLib/src/services/deploys/auction/index.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 120, + "kind": "file", + "name": "src/services/deploys/deployManager.js", + "content": "import {CurrencyUtils} from \"../helpers/currencyUtils\";\nimport {STATUS_KO, STATUS_OK} from \"../results/deployResult\";\n\n/**\n * DeployManager class\n * Used to handle the deploy process\n */\nexport class DeployManager {\n /** @type {ClientCasper} */\n client;\n\n /**\n * Constructor\n *\n * @param {ClientCasper} client - ClientCasper object\n */\n constructor(client) {\n this.client = client;\n }\n\n /***\n * Send a deployment to the network\n *\n * @param {Deploy} deploy - Signed Deploy object\n * @param deployResult - A DeployResult class\n * @returns {Promise} - Return a DeployResult object\n */\n async sendDeploy(deploy, deployResult) {\n const hash = await this.client.casperClient.putDeploy(deploy)\n return new deployResult(hash)\n }\n\n /**\n * Prepare, sign and send a deployment\n *\n * @param {AbstractSmartContractDeployParameters} deployParameter - Instance of a DeployParameters object\n * @param {AbstractSigner} signer - Instance of a Signer object\n * @param {Object} options - Generic object for additional parameters\n * @return {Promise} - Return a DeployResult object\n */\n async prepareSignAndSendDeploy(deployParameter, signer, options) {\n const signedDeploy = await signer.sign(deployParameter.makeDeploy, options);\n return await this.sendDeploy(signedDeploy, deployParameter.deployResult);\n }\n\n /**\n * Update a DeployResult object\n *\n * @param {DeployResult} deployResult - DeployResult object\n * @returns {Promise} - Return an updated DeployResult object\n */\n async getDeployResult(deployResult) {\n const result = await this.client.casperClient.getDeploy(deployResult.hash)\n let deploy = result[0]\n let execResult = result[1].execution_results\n if (execResult.length > 0) {\n execResult = execResult[0].result;\n }\n if (deploy.session.getArgByName(\"amount\")) {\n deployResult.amount = CurrencyUtils.convertMotesToCasper(deploy.session.getArgByName(\"amount\").value().toString())\n }\n if (STATUS_OK in execResult) {\n deployResult.cost = CurrencyUtils.convertMotesToCasper(execResult[STATUS_OK].cost)\n deployResult.status = STATUS_OK\n return deployResult\n }\n if (STATUS_KO in execResult) {\n deployResult.cost = CurrencyUtils.convertMotesToCasper(execResult[STATUS_KO].cost)\n deployResult.status = STATUS_KO\n deployResult.message = execResult[STATUS_KO].error_message\n }\n return deployResult;\n }\n\n}", + "static": true, + "longname": "/home/runner/work/CasperHoldersLib/CasperHoldersLib/src/services/deploys/deployManager.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 121, + "kind": "class", + "name": "DeployManager", + "memberof": "src/services/deploys/deployManager.js", + "static": true, + "longname": "src/services/deploys/deployManager.js~DeployManager", + "access": "public", + "export": true, + "importPath": "casperholderslib/src/services/deploys/deployManager.js", + "importStyle": "{DeployManager}", + "description": "DeployManager class\nUsed to handle the deploy process", + "lineNumber": 8, + "interface": false + }, + { + "__docId__": 122, + "kind": "member", + "name": "client", + "memberof": "src/services/deploys/deployManager.js~DeployManager", + "static": false, + "longname": "src/services/deploys/deployManager.js~DeployManager#client", + "access": "public", + "description": null, + "lineNumber": 10, + "type": { + "nullable": null, + "types": [ + "ClientCasper" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 123, + "kind": "constructor", + "name": "constructor", + "memberof": "src/services/deploys/deployManager.js~DeployManager", + "generator": false, + "async": false, + "static": false, + "longname": "src/services/deploys/deployManager.js~DeployManager#constructor", + "access": "public", + "description": "Constructor", + "lineNumber": 17, + "params": [ + { + "nullable": null, + "types": [ + "ClientCasper" + ], + "spread": false, + "optional": false, + "name": "client", + "description": "ClientCasper object" + } + ] + }, + { + "__docId__": 125, + "kind": "method", + "name": "sendDeploy", + "memberof": "src/services/deploys/deployManager.js~DeployManager", + "generator": false, + "async": true, + "static": false, + "longname": "src/services/deploys/deployManager.js~DeployManager#sendDeploy", + "access": "public", + "description": "Send a deployment to the network", + "lineNumber": 28, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Promise} - Return a DeployResult object" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "Deploy" + ], + "spread": false, + "optional": false, + "name": "deploy", + "description": "Signed Deploy object" + }, + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "deployResult", + "description": "A DeployResult class" + } + ], + "return": { + "nullable": null, + "types": [ + "Promise" + ], + "spread": false, + "description": "Return a DeployResult object" + } + }, + { + "__docId__": 126, + "kind": "method", + "name": "prepareSignAndSendDeploy", + "memberof": "src/services/deploys/deployManager.js~DeployManager", + "generator": false, + "async": true, + "static": false, + "longname": "src/services/deploys/deployManager.js~DeployManager#prepareSignAndSendDeploy", + "access": "public", + "description": "Prepare, sign and send a deployment", + "lineNumber": 41, + "params": [ + { + "nullable": null, + "types": [ + "AbstractSmartContractDeployParameters" + ], + "spread": false, + "optional": false, + "name": "deployParameter", + "description": "Instance of a DeployParameters object" + }, + { + "nullable": null, + "types": [ + "AbstractSigner" + ], + "spread": false, + "optional": false, + "name": "signer", + "description": "Instance of a Signer object" + }, + { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "optional": false, + "name": "options", + "description": "Generic object for additional parameters" + } + ], + "return": { + "nullable": null, + "types": [ + "Promise" + ], + "spread": false, + "description": "Return a DeployResult object" + } + }, + { + "__docId__": 127, + "kind": "method", + "name": "getDeployResult", + "memberof": "src/services/deploys/deployManager.js~DeployManager", + "generator": false, + "async": true, + "static": false, + "longname": "src/services/deploys/deployManager.js~DeployManager#getDeployResult", + "access": "public", + "description": "Update a DeployResult object", + "lineNumber": 52, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Promise} - Return an updated DeployResult object" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "DeployResult" + ], + "spread": false, + "optional": false, + "name": "deployResult", + "description": "DeployResult object" + } + ], + "return": { + "nullable": null, + "types": [ + "Promise" + ], + "spread": false, + "description": "Return an updated DeployResult object" + } + }, + { + "__docId__": 128, + "kind": "file", + "name": "src/services/deploys/index.js", + "content": "export * from './auction';\nexport * from './smartContract/smartContractDeployParameters';\nexport * from './transfer/TransferDeployParameters';\nexport * from './deployManager';", + "static": true, + "longname": "/home/runner/work/CasperHoldersLib/CasperHoldersLib/src/services/deploys/index.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 129, + "kind": "file", + "name": "src/services/deploys/smartContract/smartContractDeployParameters.js", + "content": "import {AbstractSmartContractDeployParameters} from \"../abstractSmartContractDeployParameters\";\nimport {CLPublicKey, DeployUtil, RuntimeArgs} from \"casper-js-sdk\";\nimport {SmartContractResult} from \"../../results/smartContractResult\";\nimport {CurrencyUtils} from \"../../helpers/currencyUtils\";\n\n/**\n * SmartContractDeployParameters class\n * Class used to define the parameters of a deployment to send a smart contract on the network\n */\nexport class SmartContractDeployParameters extends AbstractSmartContractDeployParameters {\n /** @type {string} */\n activeKey;\n /** @type {string} */\n network;\n /** @type {Buffer} */\n smartContractBuffer;\n /** @type {number} */\n fee;\n\n /**\n * Constructor\n *\n * @param {string} activeKey - Current active key in the public hex format\n * @param {string} network - Current network to execute the deployment\n * @param {Buffer} smartContractBuffer - Buffer of the SmartContract previously read\n * @param {number} fee - Runtime fee for the given SmartContract operation\n */\n constructor(activeKey, network, smartContractBuffer, fee) {\n super()\n this.activeKey = activeKey;\n this.network = network;\n this.smartContractBuffer = smartContractBuffer;\n this.fee = fee;\n }\n\n /**\n * Get the deployParams deploy argument\n *\n * @return {DeployUtil.DeployParams} - Return a DeployParams\n */\n get deployParams() {\n return new DeployUtil.DeployParams(\n CLPublicKey.fromHex(this.activeKey),\n this.network\n );\n }\n\n /**\n * Get the session deploy argument\n *\n * @return {DeployUtil.ExecutableDeployItem} - Return a session with a SmartContract stored by hash on the network\n */\n get session() {\n return DeployUtil.ExecutableDeployItem.newModuleBytes(new Uint8Array(this.smartContractBuffer), RuntimeArgs.fromMap({}));\n }\n\n /**\n * Get the payment deploy argument\n *\n * @return {DeployUtil.ExecutableDeployItem} - Return a standard payment\n */\n get payment() {\n return DeployUtil.standardPayment(CurrencyUtils.convertCasperToMotes(this.fee));\n }\n\n /**\n * Get a DeployResult constructor\n *\n * @return {DeployResult.constructor} - Return the constructor of a given DeployResult\n */\n get deployResult() {\n return SmartContractResult\n }\n}", + "static": true, + "longname": "/home/runner/work/CasperHoldersLib/CasperHoldersLib/src/services/deploys/smartContract/smartContractDeployParameters.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 130, + "kind": "class", + "name": "SmartContractDeployParameters", + "memberof": "src/services/deploys/smartContract/smartContractDeployParameters.js", + "static": true, + "longname": "src/services/deploys/smartContract/smartContractDeployParameters.js~SmartContractDeployParameters", + "access": "public", + "export": true, + "importPath": "casperholderslib/src/services/deploys/smartContract/smartContractDeployParameters.js", + "importStyle": "{SmartContractDeployParameters}", + "description": "SmartContractDeployParameters class\nClass used to define the parameters of a deployment to send a smart contract on the network", + "lineNumber": 10, + "interface": false, + "extends": [ + "src/services/deploys/abstractSmartContractDeployParameters.js~AbstractSmartContractDeployParameters" + ] + }, + { + "__docId__": 131, + "kind": "member", + "name": "activeKey", + "memberof": "src/services/deploys/smartContract/smartContractDeployParameters.js~SmartContractDeployParameters", + "static": false, + "longname": "src/services/deploys/smartContract/smartContractDeployParameters.js~SmartContractDeployParameters#activeKey", + "access": "public", + "description": null, + "lineNumber": 12, + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 132, + "kind": "member", + "name": "network", + "memberof": "src/services/deploys/smartContract/smartContractDeployParameters.js~SmartContractDeployParameters", + "static": false, + "longname": "src/services/deploys/smartContract/smartContractDeployParameters.js~SmartContractDeployParameters#network", + "access": "public", + "description": null, + "lineNumber": 14, + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 133, + "kind": "member", + "name": "smartContractBuffer", + "memberof": "src/services/deploys/smartContract/smartContractDeployParameters.js~SmartContractDeployParameters", + "static": false, + "longname": "src/services/deploys/smartContract/smartContractDeployParameters.js~SmartContractDeployParameters#smartContractBuffer", + "access": "public", + "description": null, + "lineNumber": 16, + "type": { + "nullable": null, + "types": [ + "Buffer" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 134, + "kind": "member", + "name": "fee", + "memberof": "src/services/deploys/smartContract/smartContractDeployParameters.js~SmartContractDeployParameters", + "static": false, + "longname": "src/services/deploys/smartContract/smartContractDeployParameters.js~SmartContractDeployParameters#fee", + "access": "public", + "description": null, + "lineNumber": 18, + "type": { + "nullable": null, + "types": [ + "number" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 135, + "kind": "constructor", + "name": "constructor", + "memberof": "src/services/deploys/smartContract/smartContractDeployParameters.js~SmartContractDeployParameters", + "generator": false, + "async": false, + "static": false, + "longname": "src/services/deploys/smartContract/smartContractDeployParameters.js~SmartContractDeployParameters#constructor", + "access": "public", + "description": "Constructor", + "lineNumber": 28, + "params": [ + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "activeKey", + "description": "Current active key in the public hex format" + }, + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "network", + "description": "Current network to execute the deployment" + }, + { + "nullable": null, + "types": [ + "Buffer" + ], + "spread": false, + "optional": false, + "name": "smartContractBuffer", + "description": "Buffer of the SmartContract previously read" + }, + { + "nullable": null, + "types": [ + "number" + ], + "spread": false, + "optional": false, + "name": "fee", + "description": "Runtime fee for the given SmartContract operation" + } + ] + }, + { + "__docId__": 140, + "kind": "get", + "name": "deployParams", + "memberof": "src/services/deploys/smartContract/smartContractDeployParameters.js~SmartContractDeployParameters", + "generator": false, + "async": false, + "static": false, + "longname": "src/services/deploys/smartContract/smartContractDeployParameters.js~SmartContractDeployParameters#deployParams", + "access": "public", + "description": "Get the deployParams deploy argument", + "lineNumber": 41, + "return": { + "nullable": null, + "types": [ + "DeployUtil.DeployParams" + ], + "spread": false, + "description": "Return a DeployParams" + }, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 141, + "kind": "get", + "name": "session", + "memberof": "src/services/deploys/smartContract/smartContractDeployParameters.js~SmartContractDeployParameters", + "generator": false, + "async": false, + "static": false, + "longname": "src/services/deploys/smartContract/smartContractDeployParameters.js~SmartContractDeployParameters#session", + "access": "public", + "description": "Get the session deploy argument", + "lineNumber": 53, + "return": { + "nullable": null, + "types": [ + "DeployUtil.ExecutableDeployItem" + ], + "spread": false, + "description": "Return a session with a SmartContract stored by hash on the network" + }, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 142, + "kind": "get", + "name": "payment", + "memberof": "src/services/deploys/smartContract/smartContractDeployParameters.js~SmartContractDeployParameters", + "generator": false, + "async": false, + "static": false, + "longname": "src/services/deploys/smartContract/smartContractDeployParameters.js~SmartContractDeployParameters#payment", + "access": "public", + "description": "Get the payment deploy argument", + "lineNumber": 62, + "return": { + "nullable": null, + "types": [ + "DeployUtil.ExecutableDeployItem" + ], + "spread": false, + "description": "Return a standard payment" + }, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 143, + "kind": "get", + "name": "deployResult", + "memberof": "src/services/deploys/smartContract/smartContractDeployParameters.js~SmartContractDeployParameters", + "generator": false, + "async": false, + "static": false, + "longname": "src/services/deploys/smartContract/smartContractDeployParameters.js~SmartContractDeployParameters#deployResult", + "access": "public", + "description": "Get a DeployResult constructor", + "lineNumber": 71, + "return": { + "nullable": null, + "types": [ + "DeployResult.constructor" + ], + "spread": false, + "description": "Return the constructor of a given DeployResult" + }, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 144, + "kind": "file", + "name": "src/services/deploys/transfer/TransferDeployParameters.js", + "content": "import {AbstractSmartContractDeployParameters} from \"../abstractSmartContractDeployParameters\";\nimport {CLPublicKey, DeployUtil} from \"casper-js-sdk\";\nimport {CurrencyUtils} from \"../../helpers\";\nimport {TransferResult} from \"../../results\";\n\n/**\n * @constant\n * @type {number}\n */\nconst fee = 10000\n\n/**\n * TransferDeployParameters class\n * Class used to create DeployParameters for a Transfer operation\n */\nexport class TransferDeployParameters extends AbstractSmartContractDeployParameters {\n /** @type {string} */\n activeKey;\n /** @type {string} */\n network;\n /** @type {number} */\n amount;\n /** @type {string} */\n target;\n /** @type {string} */\n transferID;\n\n /**\n * Constructor\n *\n * @param {string} activeKey - Current active key in the public hex format\n * @param {string} network - Current network to execute the deployment\n * @param {number} amount - Amount to transfer in casper\n * @param {string} target - Public key in the hex format of the receiver\n * @param {string} transferID - TransferID of the transfer operation\n */\n constructor(activeKey, network, amount, target, transferID) {\n super()\n this.activeKey = activeKey;\n this.network = network;\n this.amount = amount;\n this.target = target;\n this.transferID = transferID;\n }\n\n /**\n * Get the deployParams deploy argument\n *\n * @return {DeployUtil.DeployParams} - Return a DeployParams\n */\n get deployParams() {\n return new DeployUtil.DeployParams(\n CLPublicKey.fromHex(this.activeKey),\n this.network\n );\n }\n\n /**\n * Get the session deploy argument\n *\n * @return {DeployUtil.ExecutableDeployItem} - Return a session with a SmartContract stored by hash on the network\n */\n get session() {\n return DeployUtil.ExecutableDeployItem.newTransfer(\n CurrencyUtils.convertCasperToMotes(this.amount),\n CLPublicKey.fromHex(this.target),\n undefined,\n this.transferID\n );\n }\n\n /**\n * Get the payment deploy argument\n *\n * @return {DeployUtil.ExecutableDeployItem} - Return a standard payment\n */\n get payment() {\n return DeployUtil.standardPayment(fee);\n }\n\n /**\n * Get a DeployResult constructor\n *\n * @return {TransferResult.constructor} - Return the constructor of a given DeployResult\n */\n get deployResult() {\n return TransferResult\n }\n}", + "static": true, + "longname": "/home/runner/work/CasperHoldersLib/CasperHoldersLib/src/services/deploys/transfer/TransferDeployParameters.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 145, + "kind": "variable", + "name": "fee", + "memberof": "src/services/deploys/transfer/TransferDeployParameters.js", + "static": true, + "longname": "src/services/deploys/transfer/TransferDeployParameters.js~fee", + "access": "public", + "export": false, + "importPath": "casperholderslib/src/services/deploys/transfer/TransferDeployParameters.js", + "importStyle": null, + "description": "", + "lineNumber": 10, + "unknown": [ + { + "tagName": "@constant", + "tagValue": "" + } + ], + "type": { + "nullable": null, + "types": [ + "number" + ], + "spread": false, + "description": null + }, + "ignore": true + }, + { + "__docId__": 146, + "kind": "class", + "name": "TransferDeployParameters", + "memberof": "src/services/deploys/transfer/TransferDeployParameters.js", + "static": true, + "longname": "src/services/deploys/transfer/TransferDeployParameters.js~TransferDeployParameters", + "access": "public", + "export": true, + "importPath": "casperholderslib/src/services/deploys/transfer/TransferDeployParameters.js", + "importStyle": "{TransferDeployParameters}", + "description": "TransferDeployParameters class\nClass used to create DeployParameters for a Transfer operation", + "lineNumber": 16, + "interface": false, + "extends": [ + "src/services/deploys/abstractSmartContractDeployParameters.js~AbstractSmartContractDeployParameters" + ] + }, + { + "__docId__": 147, + "kind": "member", + "name": "activeKey", + "memberof": "src/services/deploys/transfer/TransferDeployParameters.js~TransferDeployParameters", + "static": false, + "longname": "src/services/deploys/transfer/TransferDeployParameters.js~TransferDeployParameters#activeKey", + "access": "public", + "description": null, + "lineNumber": 18, + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 148, + "kind": "member", + "name": "network", + "memberof": "src/services/deploys/transfer/TransferDeployParameters.js~TransferDeployParameters", + "static": false, + "longname": "src/services/deploys/transfer/TransferDeployParameters.js~TransferDeployParameters#network", + "access": "public", + "description": null, + "lineNumber": 20, + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 149, + "kind": "member", + "name": "amount", + "memberof": "src/services/deploys/transfer/TransferDeployParameters.js~TransferDeployParameters", + "static": false, + "longname": "src/services/deploys/transfer/TransferDeployParameters.js~TransferDeployParameters#amount", + "access": "public", + "description": null, + "lineNumber": 22, + "type": { + "nullable": null, + "types": [ + "number" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 150, + "kind": "member", + "name": "target", + "memberof": "src/services/deploys/transfer/TransferDeployParameters.js~TransferDeployParameters", + "static": false, + "longname": "src/services/deploys/transfer/TransferDeployParameters.js~TransferDeployParameters#target", + "access": "public", + "description": null, + "lineNumber": 24, + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 151, + "kind": "member", + "name": "transferID", + "memberof": "src/services/deploys/transfer/TransferDeployParameters.js~TransferDeployParameters", + "static": false, + "longname": "src/services/deploys/transfer/TransferDeployParameters.js~TransferDeployParameters#transferID", + "access": "public", + "description": null, + "lineNumber": 26, + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 152, + "kind": "constructor", + "name": "constructor", + "memberof": "src/services/deploys/transfer/TransferDeployParameters.js~TransferDeployParameters", + "generator": false, + "async": false, + "static": false, + "longname": "src/services/deploys/transfer/TransferDeployParameters.js~TransferDeployParameters#constructor", + "access": "public", + "description": "Constructor", + "lineNumber": 37, + "params": [ + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "activeKey", + "description": "Current active key in the public hex format" + }, + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "network", + "description": "Current network to execute the deployment" + }, + { + "nullable": null, + "types": [ + "number" + ], + "spread": false, + "optional": false, + "name": "amount", + "description": "Amount to transfer in casper" + }, + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "target", + "description": "Public key in the hex format of the receiver" + }, + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "transferID", + "description": "TransferID of the transfer operation" + } + ] + }, + { + "__docId__": 158, + "kind": "get", + "name": "deployParams", + "memberof": "src/services/deploys/transfer/TransferDeployParameters.js~TransferDeployParameters", + "generator": false, + "async": false, + "static": false, + "longname": "src/services/deploys/transfer/TransferDeployParameters.js~TransferDeployParameters#deployParams", + "access": "public", + "description": "Get the deployParams deploy argument", + "lineNumber": 51, + "return": { + "nullable": null, + "types": [ + "DeployUtil.DeployParams" + ], + "spread": false, + "description": "Return a DeployParams" + }, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 159, + "kind": "get", + "name": "session", + "memberof": "src/services/deploys/transfer/TransferDeployParameters.js~TransferDeployParameters", + "generator": false, + "async": false, + "static": false, + "longname": "src/services/deploys/transfer/TransferDeployParameters.js~TransferDeployParameters#session", + "access": "public", + "description": "Get the session deploy argument", + "lineNumber": 63, + "return": { + "nullable": null, + "types": [ + "DeployUtil.ExecutableDeployItem" + ], + "spread": false, + "description": "Return a session with a SmartContract stored by hash on the network" + }, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 160, + "kind": "get", + "name": "payment", + "memberof": "src/services/deploys/transfer/TransferDeployParameters.js~TransferDeployParameters", + "generator": false, + "async": false, + "static": false, + "longname": "src/services/deploys/transfer/TransferDeployParameters.js~TransferDeployParameters#payment", + "access": "public", + "description": "Get the payment deploy argument", + "lineNumber": 77, + "return": { + "nullable": null, + "types": [ + "DeployUtil.ExecutableDeployItem" + ], + "spread": false, + "description": "Return a standard payment" + }, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 161, + "kind": "get", + "name": "deployResult", + "memberof": "src/services/deploys/transfer/TransferDeployParameters.js~TransferDeployParameters", + "generator": false, + "async": false, + "static": false, + "longname": "src/services/deploys/transfer/TransferDeployParameters.js~TransferDeployParameters#deployResult", + "access": "public", + "description": "Get a DeployResult constructor", + "lineNumber": 86, + "return": { + "nullable": null, + "types": [ + "TransferResult.constructor" + ], + "spread": false, + "description": "Return the constructor of a given DeployResult" + }, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 162, + "kind": "file", + "name": "src/services/errors/extendableError.js", + "content": "/**\n * ExtendableError class\n * Generic error class used as a wrapper to define specific errors\n */\nexport class ExtendableError extends Error {\n /** @type {string} */\n name\n /** @type {string} */\n stack\n\n /**\n * Constructor\n *\n * @param {string} message - Error message\n */\n constructor(message) {\n super(message);\n this.name = this.constructor.name;\n if (typeof Error.captureStackTrace === \"function\") {\n Error.captureStackTrace(this, this.constructor);\n } else {\n this.stack = (new Error(message)).stack;\n }\n }\n}", + "static": true, + "longname": "/home/runner/work/CasperHoldersLib/CasperHoldersLib/src/services/errors/extendableError.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 163, + "kind": "class", + "name": "ExtendableError", + "memberof": "src/services/errors/extendableError.js", + "static": true, + "longname": "src/services/errors/extendableError.js~ExtendableError", + "access": "public", + "export": true, + "importPath": "casperholderslib/src/services/errors/extendableError.js", + "importStyle": "{ExtendableError}", + "description": "ExtendableError class\nGeneric error class used as a wrapper to define specific errors", + "lineNumber": 5, + "interface": false, + "extends": [ + "Error" + ] + }, + { + "__docId__": 164, + "kind": "member", + "name": "name", + "memberof": "src/services/errors/extendableError.js~ExtendableError", + "static": false, + "longname": "src/services/errors/extendableError.js~ExtendableError#name", + "access": "public", + "description": null, + "lineNumber": 7, + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 165, + "kind": "member", + "name": "stack", + "memberof": "src/services/errors/extendableError.js~ExtendableError", + "static": false, + "longname": "src/services/errors/extendableError.js~ExtendableError#stack", + "access": "public", + "description": null, + "lineNumber": 9, + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 166, + "kind": "constructor", + "name": "constructor", + "memberof": "src/services/errors/extendableError.js~ExtendableError", + "generator": false, + "async": false, + "static": false, + "longname": "src/services/errors/extendableError.js~ExtendableError#constructor", + "access": "public", + "description": "Constructor", + "lineNumber": 16, + "params": [ + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "message", + "description": "Error message" + } + ] + }, + { + "__docId__": 169, + "kind": "file", + "name": "src/services/errors/index.js", + "content": "export * from './insufficientFunds';\nexport * from './noActiveKeyError';\nexport * from './noStakeBalanceError';\nexport * from './noValidatorBalanceError';\nexport * from './signError';", + "static": true, + "longname": "/home/runner/work/CasperHoldersLib/CasperHoldersLib/src/services/errors/index.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 170, + "kind": "file", + "name": "src/services/errors/insufficientFunds.js", + "content": "import {ExtendableError} from \"./extendableError\";\n\n/**\n * InsufficientFunds class\n * Error thrown when the user as insufficient funds in his balance\n */\nexport class InsufficientFunds extends ExtendableError {\n /**\n * Constructor\n *\n * @param min - Minimum casper needed\n */\n constructor(min) {\n super(\"Insufficient funds. You must have more than \" + min + \" CSPR on your wallet.\");\n }\n}", + "static": true, + "longname": "/home/runner/work/CasperHoldersLib/CasperHoldersLib/src/services/errors/insufficientFunds.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 171, + "kind": "class", + "name": "InsufficientFunds", + "memberof": "src/services/errors/insufficientFunds.js", + "static": true, + "longname": "src/services/errors/insufficientFunds.js~InsufficientFunds", + "access": "public", + "export": true, + "importPath": "casperholderslib/src/services/errors/insufficientFunds.js", + "importStyle": "{InsufficientFunds}", + "description": "InsufficientFunds class\nError thrown when the user as insufficient funds in his balance", + "lineNumber": 7, + "interface": false, + "extends": [ + "src/services/errors/extendableError.js~ExtendableError" + ] + }, + { + "__docId__": 172, + "kind": "constructor", + "name": "constructor", + "memberof": "src/services/errors/insufficientFunds.js~InsufficientFunds", + "generator": false, + "async": false, + "static": false, + "longname": "src/services/errors/insufficientFunds.js~InsufficientFunds#constructor", + "access": "public", + "description": "Constructor", + "lineNumber": 13, + "params": [ + { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "optional": false, + "name": "min", + "description": "Minimum casper needed" + } + ] + }, + { + "__docId__": 173, + "kind": "file", + "name": "src/services/errors/noActiveKeyError.js", + "content": "import {ExtendableError} from \"./extendableError\";\n\n/**\n * NoActiveKeyError class\n * Error thrown when the user is not connected to the Casper signer extension\n */\nexport class NoActiveKeyError extends ExtendableError {\n /**\n * Constructor\n */\n constructor() {\n super(\"Not connected on Signer.\");\n }\n}", + "static": true, + "longname": "/home/runner/work/CasperHoldersLib/CasperHoldersLib/src/services/errors/noActiveKeyError.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 174, + "kind": "class", + "name": "NoActiveKeyError", + "memberof": "src/services/errors/noActiveKeyError.js", + "static": true, + "longname": "src/services/errors/noActiveKeyError.js~NoActiveKeyError", + "access": "public", + "export": true, + "importPath": "casperholderslib/src/services/errors/noActiveKeyError.js", + "importStyle": "{NoActiveKeyError}", + "description": "NoActiveKeyError class\nError thrown when the user is not connected to the Casper signer extension", + "lineNumber": 7, + "interface": false, + "extends": [ + "src/services/errors/extendableError.js~ExtendableError" + ] + }, + { + "__docId__": 175, + "kind": "constructor", + "name": "constructor", + "memberof": "src/services/errors/noActiveKeyError.js~NoActiveKeyError", + "generator": false, + "async": false, + "static": false, + "longname": "src/services/errors/noActiveKeyError.js~NoActiveKeyError#constructor", + "access": "public", + "description": "Constructor", + "lineNumber": 11 + }, + { + "__docId__": 176, + "kind": "file", + "name": "src/services/errors/noStakeBalanceError.js", + "content": "import {ExtendableError} from \"./extendableError\";\n\n/**\n * NoStakeBalanceError class\n * Error thrown when the user doesn't have a staking balance\n */\nexport class NoStakeBalanceError extends ExtendableError {\n /**\n * Constructor\n */\n constructor() {\n super(\"No staking funds.\");\n }\n}", + "static": true, + "longname": "/home/runner/work/CasperHoldersLib/CasperHoldersLib/src/services/errors/noStakeBalanceError.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 177, + "kind": "class", + "name": "NoStakeBalanceError", + "memberof": "src/services/errors/noStakeBalanceError.js", + "static": true, + "longname": "src/services/errors/noStakeBalanceError.js~NoStakeBalanceError", + "access": "public", + "export": true, + "importPath": "casperholderslib/src/services/errors/noStakeBalanceError.js", + "importStyle": "{NoStakeBalanceError}", + "description": "NoStakeBalanceError class\nError thrown when the user doesn't have a staking balance", + "lineNumber": 7, + "interface": false, + "extends": [ + "src/services/errors/extendableError.js~ExtendableError" + ] + }, + { + "__docId__": 178, + "kind": "constructor", + "name": "constructor", + "memberof": "src/services/errors/noStakeBalanceError.js~NoStakeBalanceError", + "generator": false, + "async": false, + "static": false, + "longname": "src/services/errors/noStakeBalanceError.js~NoStakeBalanceError#constructor", + "access": "public", + "description": "Constructor", + "lineNumber": 11 + }, + { + "__docId__": 179, + "kind": "file", + "name": "src/services/errors/noValidatorBalanceError.js", + "content": "import {ExtendableError} from \"./extendableError\";\n\n/**\n * NoValidatorBalanceError class\n * Error thrown when the current user doesn't have a validator balance\n */\nexport class NoValidatorBalanceError extends ExtendableError {\n /**\n * Constructor\n */\n constructor() {\n super(\"Unable to retrieve your Validator balance. Make sure that you are correctly bonded to the network.\");\n }\n}", + "static": true, + "longname": "/home/runner/work/CasperHoldersLib/CasperHoldersLib/src/services/errors/noValidatorBalanceError.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 180, + "kind": "class", + "name": "NoValidatorBalanceError", + "memberof": "src/services/errors/noValidatorBalanceError.js", + "static": true, + "longname": "src/services/errors/noValidatorBalanceError.js~NoValidatorBalanceError", + "access": "public", + "export": true, + "importPath": "casperholderslib/src/services/errors/noValidatorBalanceError.js", + "importStyle": "{NoValidatorBalanceError}", + "description": "NoValidatorBalanceError class\nError thrown when the current user doesn't have a validator balance", + "lineNumber": 7, + "interface": false, + "extends": [ + "src/services/errors/extendableError.js~ExtendableError" + ] + }, + { + "__docId__": 181, + "kind": "constructor", + "name": "constructor", + "memberof": "src/services/errors/noValidatorBalanceError.js~NoValidatorBalanceError", + "generator": false, + "async": false, + "static": false, + "longname": "src/services/errors/noValidatorBalanceError.js~NoValidatorBalanceError#constructor", + "access": "public", + "description": "Constructor", + "lineNumber": 11 + }, + { + "__docId__": 182, + "kind": "file", + "name": "src/services/errors/signError.js", + "content": "import {ExtendableError} from \"./extendableError\";\n\n/**\n * SignError class\n * Error thrown when there's a error with the deploy signature process\n */\nexport class SignError extends ExtendableError {\n /**\n * Constructor\n */\n constructor() {\n super(\"Failed to sign the contract. Please retry if you canceled the operation.\");\n }\n}", + "static": true, + "longname": "/home/runner/work/CasperHoldersLib/CasperHoldersLib/src/services/errors/signError.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 183, + "kind": "class", + "name": "SignError", + "memberof": "src/services/errors/signError.js", + "static": true, + "longname": "src/services/errors/signError.js~SignError", + "access": "public", + "export": true, + "importPath": "casperholderslib/src/services/errors/signError.js", + "importStyle": "{SignError}", + "description": "SignError class\nError thrown when there's a error with the deploy signature process", + "lineNumber": 7, + "interface": false, + "extends": [ + "src/services/errors/extendableError.js~ExtendableError" + ] + }, + { + "__docId__": 184, + "kind": "constructor", + "name": "constructor", + "memberof": "src/services/errors/signError.js~SignError", + "generator": false, + "async": false, + "static": false, + "longname": "src/services/errors/signError.js~SignError#constructor", + "access": "public", + "description": "Constructor", + "lineNumber": 11 + }, + { + "__docId__": 185, + "kind": "file", + "name": "src/services/helpers/currencyUtils.js", + "content": "/**\n * CurrencyUtils class\n * Used to convert from/to casper/motes\n */\nexport class CurrencyUtils {\n\n /**\n * Convert motes to casper\n *\n * @param {number} motesAmount - Amount in motes\n * @return {number}\n */\n static convertMotesToCasper(motesAmount) {\n return motesAmount / 1000000000;\n }\n\n /**\n * Convert casper to motes\n *\n * @param {number} casperAmount - Amount in casper\n * @return {number}\n */\n static convertCasperToMotes(casperAmount) {\n return casperAmount * 1000000000;\n }\n}", + "static": true, + "longname": "/home/runner/work/CasperHoldersLib/CasperHoldersLib/src/services/helpers/currencyUtils.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 186, + "kind": "class", + "name": "CurrencyUtils", + "memberof": "src/services/helpers/currencyUtils.js", + "static": true, + "longname": "src/services/helpers/currencyUtils.js~CurrencyUtils", + "access": "public", + "export": true, + "importPath": "casperholderslib/src/services/helpers/currencyUtils.js", + "importStyle": "{CurrencyUtils}", + "description": "CurrencyUtils class\nUsed to convert from/to casper/motes", + "lineNumber": 5, + "interface": false + }, + { + "__docId__": 187, + "kind": "method", + "name": "convertMotesToCasper", + "memberof": "src/services/helpers/currencyUtils.js~CurrencyUtils", + "generator": false, + "async": false, + "static": true, + "longname": "src/services/helpers/currencyUtils.js~CurrencyUtils.convertMotesToCasper", + "access": "public", + "description": "Convert motes to casper", + "lineNumber": 13, + "params": [ + { + "nullable": null, + "types": [ + "number" + ], + "spread": false, + "optional": false, + "name": "motesAmount", + "description": "Amount in motes" + } + ], + "return": { + "nullable": null, + "types": [ + "number" + ], + "spread": false, + "description": "" + } + }, + { + "__docId__": 188, + "kind": "method", + "name": "convertCasperToMotes", + "memberof": "src/services/helpers/currencyUtils.js~CurrencyUtils", + "generator": false, + "async": false, + "static": true, + "longname": "src/services/helpers/currencyUtils.js~CurrencyUtils.convertCasperToMotes", + "access": "public", + "description": "Convert casper to motes", + "lineNumber": 23, + "params": [ + { + "nullable": null, + "types": [ + "number" + ], + "spread": false, + "optional": false, + "name": "casperAmount", + "description": "Amount in casper" + } + ], + "return": { + "nullable": null, + "types": [ + "number" + ], + "spread": false, + "description": "" + } + }, + { + "__docId__": 189, + "kind": "file", + "name": "src/services/helpers/index.js", + "content": "export * from './currencyUtils';", + "static": true, + "longname": "/home/runner/work/CasperHoldersLib/CasperHoldersLib/src/services/helpers/index.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 190, + "kind": "file", + "name": "src/services/index.js", + "content": "export * from './clients';\nexport * from './deploys';\nexport * from './errors';\nexport * from './helpers';\nexport * from './keys';\nexport * from './results';\nexport * from './signers';\nexport * from './balance/balance';", + "static": true, + "longname": "/home/runner/work/CasperHoldersLib/CasperHoldersLib/src/services/index.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 191, + "kind": "file", + "name": "src/services/keys/abstractKeyManager.js", + "content": "/**\n * AbstractKeyManager class\n * Used to define multiple key managers\n */\nexport class AbstractKeyManager {\n /**\n * Retrieve the current active key\n *\n * @return string - Must return a public key hex\n */\n get activeKey() {\n throw new Error('You must implement this function');\n }\n}", + "static": true, + "longname": "/home/runner/work/CasperHoldersLib/CasperHoldersLib/src/services/keys/abstractKeyManager.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 192, + "kind": "class", + "name": "AbstractKeyManager", + "memberof": "src/services/keys/abstractKeyManager.js", + "static": true, + "longname": "src/services/keys/abstractKeyManager.js~AbstractKeyManager", + "access": "public", + "export": true, + "importPath": "casperholderslib/src/services/keys/abstractKeyManager.js", + "importStyle": "{AbstractKeyManager}", + "description": "AbstractKeyManager class\nUsed to define multiple key managers", + "lineNumber": 5, + "interface": false + }, + { + "__docId__": 193, + "kind": "get", + "name": "activeKey", + "memberof": "src/services/keys/abstractKeyManager.js~AbstractKeyManager", + "generator": false, + "async": false, + "static": false, + "longname": "src/services/keys/abstractKeyManager.js~AbstractKeyManager#activeKey", + "access": "public", + "description": "Retrieve the current active key", + "lineNumber": 11, + "return": { + "nullable": null, + "types": [ + "*" + ], + "spread": false, + "description": "string - Must return a public key hex" + }, + "type": null + }, + { + "__docId__": 194, + "kind": "file", + "name": "src/services/keys/index.js", + "content": "export * from './abstractKeyManager';\nexport * from './vuexKeyManager';", + "static": true, + "longname": "/home/runner/work/CasperHoldersLib/CasperHoldersLib/src/services/keys/index.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 195, + "kind": "file", + "name": "src/services/results/addBidResult.js", + "content": "import {DeployResult} from \"./deployResult\";\n\n/**\n * AddBidResult class\n */\nexport class AddBidResult extends DeployResult {\n /**\n * Constructor\n *\n * @param {string} hash - DeployHash of the deployment\n */\n constructor(hash) {\n super(hash, AddBidResult.getName())\n }\n\n /**\n * Retrieve the name of the operation behind the deployment\n *\n * @return {string} - the name of the operation behind the deployment\n */\n static getName() {\n return 'Add bid Operation'\n }\n}", + "static": true, + "longname": "/home/runner/work/CasperHoldersLib/CasperHoldersLib/src/services/results/addBidResult.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 196, + "kind": "class", + "name": "AddBidResult", + "memberof": "src/services/results/addBidResult.js", + "static": true, + "longname": "src/services/results/addBidResult.js~AddBidResult", + "access": "public", + "export": true, + "importPath": "casperholderslib/src/services/results/addBidResult.js", + "importStyle": "{AddBidResult}", + "description": "AddBidResult class", + "lineNumber": 6, + "interface": false, + "extends": [ + "src/services/results/deployResult.js~DeployResult" + ] + }, + { + "__docId__": 197, + "kind": "constructor", + "name": "constructor", + "memberof": "src/services/results/addBidResult.js~AddBidResult", + "generator": false, + "async": false, + "static": false, + "longname": "src/services/results/addBidResult.js~AddBidResult#constructor", + "access": "public", + "description": "Constructor", + "lineNumber": 12, + "params": [ + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "hash", + "description": "DeployHash of the deployment" + } + ] + }, + { + "__docId__": 198, + "kind": "method", + "name": "getName", + "memberof": "src/services/results/addBidResult.js~AddBidResult", + "generator": false, + "async": false, + "static": true, + "longname": "src/services/results/addBidResult.js~AddBidResult.getName", + "access": "public", + "description": "Retrieve the name of the operation behind the deployment", + "lineNumber": 21, + "return": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": "the name of the operation behind the deployment" + }, + "params": [] + }, + { + "__docId__": 199, + "kind": "file", + "name": "src/services/results/delegateResult.js", + "content": "import {DeployResult} from \"./deployResult\";\n\n/**\n * DelegateResult class\n */\nexport class DelegateResult extends DeployResult {\n /**\n * Constructor\n *\n * @param {string} hash - DeployHash of the deployment\n */\n constructor(hash) {\n super(hash, DelegateResult.getName())\n }\n\n /**\n * Retrieve the name of the operation behind the deployment\n *\n * @return {string} - the name of the operation behind the deployment\n */\n static getName() {\n return 'Staking Operation'\n }\n}", + "static": true, + "longname": "/home/runner/work/CasperHoldersLib/CasperHoldersLib/src/services/results/delegateResult.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 200, + "kind": "class", + "name": "DelegateResult", + "memberof": "src/services/results/delegateResult.js", + "static": true, + "longname": "src/services/results/delegateResult.js~DelegateResult", + "access": "public", + "export": true, + "importPath": "casperholderslib/src/services/results/delegateResult.js", + "importStyle": "{DelegateResult}", + "description": "DelegateResult class", + "lineNumber": 6, + "interface": false, + "extends": [ + "src/services/results/deployResult.js~DeployResult" + ] + }, + { + "__docId__": 201, + "kind": "constructor", + "name": "constructor", + "memberof": "src/services/results/delegateResult.js~DelegateResult", + "generator": false, + "async": false, + "static": false, + "longname": "src/services/results/delegateResult.js~DelegateResult#constructor", + "access": "public", + "description": "Constructor", + "lineNumber": 12, + "params": [ + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "hash", + "description": "DeployHash of the deployment" + } + ] + }, + { + "__docId__": 202, + "kind": "method", + "name": "getName", + "memberof": "src/services/results/delegateResult.js~DelegateResult", + "generator": false, + "async": false, + "static": true, + "longname": "src/services/results/delegateResult.js~DelegateResult.getName", + "access": "public", + "description": "Retrieve the name of the operation behind the deployment", + "lineNumber": 21, + "return": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": "the name of the operation behind the deployment" + }, + "params": [] + }, + { + "__docId__": 203, + "kind": "file", + "name": "src/services/results/deployResult.js", + "content": "/**\n * @constant\n * @type {string}\n */\nexport const STATUS_UNKNOWN = \"Unknown\";\n/**\n * @constant\n * @type {string}\n */\nexport const STATUS_OK = \"Success\";\n/**\n * @constant\n * @type {string}\n */\nexport const STATUS_KO = \"Failure\";\n\n/**\n * DeployResult class\n * Object used to keep the track of a deploy result.\n */\nexport class DeployResult {\n /** @type {string} */\n hash;\n /** @type {number} */\n cost;\n /** @type {string} */\n status;\n /** @type {string} */\n message;\n /** @type {number} */\n amount;\n /** @type {string} */\n name;\n\n /**\n * Constructor\n *\n * @param {string} hash - DeployHash of the deployment\n * @param {string} name - Name of the operation\n */\n constructor(hash, name) {\n this.hash = hash;\n this.cost = 0;\n this.status = STATUS_UNKNOWN;\n this.message = \"\";\n this.amount = 0;\n this.name = name;\n }\n\n /**\n * Retrieve the name of the operation behind the deployment\n * Must return the name of the operation behind the deployment\n */\n static getName() {\n throw \"You must implement this method\"\n }\n}", + "static": true, + "longname": "/home/runner/work/CasperHoldersLib/CasperHoldersLib/src/services/results/deployResult.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 204, + "kind": "variable", + "name": "STATUS_UNKNOWN", + "memberof": "src/services/results/deployResult.js", + "static": true, + "longname": "src/services/results/deployResult.js~STATUS_UNKNOWN", + "access": "public", + "export": true, + "importPath": "casperholderslib/src/services/results/deployResult.js", + "importStyle": "{STATUS_UNKNOWN}", + "description": "", + "lineNumber": 5, + "unknown": [ + { + "tagName": "@constant", + "tagValue": "" + } + ], + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 205, + "kind": "variable", + "name": "STATUS_OK", + "memberof": "src/services/results/deployResult.js", + "static": true, + "longname": "src/services/results/deployResult.js~STATUS_OK", + "access": "public", + "export": true, + "importPath": "casperholderslib/src/services/results/deployResult.js", + "importStyle": "{STATUS_OK}", + "description": "", + "lineNumber": 10, + "unknown": [ + { + "tagName": "@constant", + "tagValue": "" + } + ], + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 206, + "kind": "variable", + "name": "STATUS_KO", + "memberof": "src/services/results/deployResult.js", + "static": true, + "longname": "src/services/results/deployResult.js~STATUS_KO", + "access": "public", + "export": true, + "importPath": "casperholderslib/src/services/results/deployResult.js", + "importStyle": "{STATUS_KO}", + "description": "", + "lineNumber": 15, + "unknown": [ + { + "tagName": "@constant", + "tagValue": "" + } + ], + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 207, + "kind": "class", + "name": "DeployResult", + "memberof": "src/services/results/deployResult.js", + "static": true, + "longname": "src/services/results/deployResult.js~DeployResult", + "access": "public", + "export": true, + "importPath": "casperholderslib/src/services/results/deployResult.js", + "importStyle": "{DeployResult}", + "description": "DeployResult class\nObject used to keep the track of a deploy result.", + "lineNumber": 21, + "interface": false + }, + { + "__docId__": 208, + "kind": "member", + "name": "hash", + "memberof": "src/services/results/deployResult.js~DeployResult", + "static": false, + "longname": "src/services/results/deployResult.js~DeployResult#hash", + "access": "public", + "description": null, + "lineNumber": 23, + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 209, + "kind": "member", + "name": "cost", + "memberof": "src/services/results/deployResult.js~DeployResult", + "static": false, + "longname": "src/services/results/deployResult.js~DeployResult#cost", + "access": "public", + "description": null, + "lineNumber": 25, + "type": { + "nullable": null, + "types": [ + "number" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 210, + "kind": "member", + "name": "status", + "memberof": "src/services/results/deployResult.js~DeployResult", + "static": false, + "longname": "src/services/results/deployResult.js~DeployResult#status", + "access": "public", + "description": null, + "lineNumber": 27, + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 211, + "kind": "member", + "name": "message", + "memberof": "src/services/results/deployResult.js~DeployResult", + "static": false, + "longname": "src/services/results/deployResult.js~DeployResult#message", + "access": "public", + "description": null, + "lineNumber": 29, + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 212, + "kind": "member", + "name": "amount", + "memberof": "src/services/results/deployResult.js~DeployResult", + "static": false, + "longname": "src/services/results/deployResult.js~DeployResult#amount", + "access": "public", + "description": null, + "lineNumber": 31, + "type": { + "nullable": null, + "types": [ + "number" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 213, + "kind": "member", + "name": "name", + "memberof": "src/services/results/deployResult.js~DeployResult", + "static": false, + "longname": "src/services/results/deployResult.js~DeployResult#name", + "access": "public", + "description": null, + "lineNumber": 33, + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 214, + "kind": "constructor", + "name": "constructor", + "memberof": "src/services/results/deployResult.js~DeployResult", + "generator": false, + "async": false, + "static": false, + "longname": "src/services/results/deployResult.js~DeployResult#constructor", + "access": "public", + "description": "Constructor", + "lineNumber": 41, + "params": [ + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "hash", + "description": "DeployHash of the deployment" + }, + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "name", + "description": "Name of the operation" + } + ] + }, + { + "__docId__": 221, + "kind": "method", + "name": "getName", + "memberof": "src/services/results/deployResult.js~DeployResult", + "generator": false, + "async": false, + "static": true, + "longname": "src/services/results/deployResult.js~DeployResult.getName", + "access": "public", + "description": "Retrieve the name of the operation behind the deployment\nMust return the name of the operation behind the deployment", + "lineNumber": 54, + "params": [], + "return": null + }, + { + "__docId__": 222, + "kind": "file", + "name": "src/services/results/index.js", + "content": "export * from './addBidResult';\nexport * from './delegateResult';\nexport * from './deployResult';\nexport * from './smartContractResult';\nexport * from './transferResult';\nexport * from './undelegateResult';\nexport * from './withdrawBidResult';", + "static": true, + "longname": "/home/runner/work/CasperHoldersLib/CasperHoldersLib/src/services/results/index.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 223, + "kind": "file", + "name": "src/services/results/smartContractResult.js", + "content": "import {DeployResult} from \"./deployResult\";\n\n/**\n * SmartContractResult class\n */\nexport class SmartContractResult extends DeployResult {\n /**\n * Constructor\n * @param {string} hash - DeployHash of the deployment\n */\n constructor(hash) {\n super(hash, SmartContractResult.getName())\n }\n\n /**\n * Retrieve the name of the operation behind the deployment\n *\n * @return {string} - the name of the operation behind the deployment\n */\n static getName() {\n return 'Smart Contract Operation'\n }\n}", + "static": true, + "longname": "/home/runner/work/CasperHoldersLib/CasperHoldersLib/src/services/results/smartContractResult.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 224, + "kind": "class", + "name": "SmartContractResult", + "memberof": "src/services/results/smartContractResult.js", + "static": true, + "longname": "src/services/results/smartContractResult.js~SmartContractResult", + "access": "public", + "export": true, + "importPath": "casperholderslib/src/services/results/smartContractResult.js", + "importStyle": "{SmartContractResult}", + "description": "SmartContractResult class", + "lineNumber": 6, + "interface": false, + "extends": [ + "src/services/results/deployResult.js~DeployResult" + ] + }, + { + "__docId__": 225, + "kind": "constructor", + "name": "constructor", + "memberof": "src/services/results/smartContractResult.js~SmartContractResult", + "generator": false, + "async": false, + "static": false, + "longname": "src/services/results/smartContractResult.js~SmartContractResult#constructor", + "access": "public", + "description": "Constructor", + "lineNumber": 11, + "params": [ + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "hash", + "description": "DeployHash of the deployment" + } + ] + }, + { + "__docId__": 226, + "kind": "method", + "name": "getName", + "memberof": "src/services/results/smartContractResult.js~SmartContractResult", + "generator": false, + "async": false, + "static": true, + "longname": "src/services/results/smartContractResult.js~SmartContractResult.getName", + "access": "public", + "description": "Retrieve the name of the operation behind the deployment", + "lineNumber": 20, + "return": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": "the name of the operation behind the deployment" + }, + "params": [] + }, + { + "__docId__": 227, + "kind": "file", + "name": "src/services/results/transferResult.js", + "content": "import {DeployResult} from \"./deployResult\";\n\n/**\n * TransferResult class\n */\nexport class TransferResult extends DeployResult {\n /**\n * Constructor\n *\n * @param {string} hash - DeployHash of the deployment\n */\n constructor(hash) {\n super(hash, TransferResult.getName())\n }\n\n /**\n * Retrieve the name of the operation behind the deployment\n *\n * @return {string} - the name of the operation behind the deployment\n */\n static getName() {\n return 'Transfer Operation'\n }\n}", + "static": true, + "longname": "/home/runner/work/CasperHoldersLib/CasperHoldersLib/src/services/results/transferResult.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 228, + "kind": "class", + "name": "TransferResult", + "memberof": "src/services/results/transferResult.js", + "static": true, + "longname": "src/services/results/transferResult.js~TransferResult", + "access": "public", + "export": true, + "importPath": "casperholderslib/src/services/results/transferResult.js", + "importStyle": "{TransferResult}", + "description": "TransferResult class", + "lineNumber": 6, + "interface": false, + "extends": [ + "src/services/results/deployResult.js~DeployResult" + ] + }, + { + "__docId__": 229, + "kind": "constructor", + "name": "constructor", + "memberof": "src/services/results/transferResult.js~TransferResult", + "generator": false, + "async": false, + "static": false, + "longname": "src/services/results/transferResult.js~TransferResult#constructor", + "access": "public", + "description": "Constructor", + "lineNumber": 12, + "params": [ + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "hash", + "description": "DeployHash of the deployment" + } + ] + }, + { + "__docId__": 230, + "kind": "method", + "name": "getName", + "memberof": "src/services/results/transferResult.js~TransferResult", + "generator": false, + "async": false, + "static": true, + "longname": "src/services/results/transferResult.js~TransferResult.getName", + "access": "public", + "description": "Retrieve the name of the operation behind the deployment", + "lineNumber": 21, + "return": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": "the name of the operation behind the deployment" + }, + "params": [] + }, + { + "__docId__": 231, + "kind": "file", + "name": "src/services/results/undelegateResult.js", + "content": "import {DeployResult} from \"./deployResult\";\n\n/**\n * UndelegateResult class\n */\nexport class UndelegateResult extends DeployResult {\n /**\n * Constructor\n *\n * @param {string} hash - DeployHash of the deployment\n */\n constructor(hash) {\n super(hash, UndelegateResult.getName())\n }\n\n /**\n * Retrieve the name of the operation behind the deployment\n *\n * @return {string} - the name of the operation behind the deployment\n */\n static getName() {\n return 'Unstake Operation'\n }\n}", + "static": true, + "longname": "/home/runner/work/CasperHoldersLib/CasperHoldersLib/src/services/results/undelegateResult.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 232, + "kind": "class", + "name": "UndelegateResult", + "memberof": "src/services/results/undelegateResult.js", + "static": true, + "longname": "src/services/results/undelegateResult.js~UndelegateResult", + "access": "public", + "export": true, + "importPath": "casperholderslib/src/services/results/undelegateResult.js", + "importStyle": "{UndelegateResult}", + "description": "UndelegateResult class", + "lineNumber": 6, + "interface": false, + "extends": [ + "src/services/results/deployResult.js~DeployResult" + ] + }, + { + "__docId__": 233, + "kind": "constructor", + "name": "constructor", + "memberof": "src/services/results/undelegateResult.js~UndelegateResult", + "generator": false, + "async": false, + "static": false, + "longname": "src/services/results/undelegateResult.js~UndelegateResult#constructor", + "access": "public", + "description": "Constructor", + "lineNumber": 12, + "params": [ + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "hash", + "description": "DeployHash of the deployment" + } + ] + }, + { + "__docId__": 234, + "kind": "method", + "name": "getName", + "memberof": "src/services/results/undelegateResult.js~UndelegateResult", + "generator": false, + "async": false, + "static": true, + "longname": "src/services/results/undelegateResult.js~UndelegateResult.getName", + "access": "public", + "description": "Retrieve the name of the operation behind the deployment", + "lineNumber": 21, + "return": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": "the name of the operation behind the deployment" + }, + "params": [] + }, + { + "__docId__": 235, + "kind": "file", + "name": "src/services/results/withdrawBidResult.js", + "content": "import {DeployResult} from \"./deployResult\";\n\n/**\n * WithdrawBidResult class\n */\nexport class WithdrawBidResult extends DeployResult {\n /**\n * Constructor\n *\n * @param {string} hash - DeployHash of the deployment\n */\n constructor(hash) {\n super(hash, WithdrawBidResult.getName())\n }\n\n /**\n * Retrieve the name of the operation behind the deployment\n *\n * @return {string} - the name of the operation behind the deployment\n */\n static getName() {\n return 'Withdraw bid Operation'\n }\n}", + "static": true, + "longname": "/home/runner/work/CasperHoldersLib/CasperHoldersLib/src/services/results/withdrawBidResult.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 236, + "kind": "class", + "name": "WithdrawBidResult", + "memberof": "src/services/results/withdrawBidResult.js", + "static": true, + "longname": "src/services/results/withdrawBidResult.js~WithdrawBidResult", + "access": "public", + "export": true, + "importPath": "casperholderslib/src/services/results/withdrawBidResult.js", + "importStyle": "{WithdrawBidResult}", + "description": "WithdrawBidResult class", + "lineNumber": 6, + "interface": false, + "extends": [ + "src/services/results/deployResult.js~DeployResult" + ] + }, + { + "__docId__": 237, + "kind": "constructor", + "name": "constructor", + "memberof": "src/services/results/withdrawBidResult.js~WithdrawBidResult", + "generator": false, + "async": false, + "static": false, + "longname": "src/services/results/withdrawBidResult.js~WithdrawBidResult#constructor", + "access": "public", + "description": "Constructor", + "lineNumber": 12, + "params": [ + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "hash", + "description": "DeployHash of the deployment" + } + ] + }, + { + "__docId__": 238, + "kind": "method", + "name": "getName", + "memberof": "src/services/results/withdrawBidResult.js~WithdrawBidResult", + "generator": false, + "async": false, + "static": true, + "longname": "src/services/results/withdrawBidResult.js~WithdrawBidResult.getName", + "access": "public", + "description": "Retrieve the name of the operation behind the deployment", + "lineNumber": 21, + "return": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": "the name of the operation behind the deployment" + }, + "params": [] + }, + { + "__docId__": 239, + "kind": "file", + "name": "src/services/signers/abstractSigner.js", + "content": "/**\n * @typedef {import(\"casper-js-sdk\").DeployUtil.Deploy} Deploy\n */\n\n/**\n * AbstractSigner class\n * Abstract class used as a skeleton to implement deployment signing.\n */\nexport class AbstractSigner {\n /**\n * Abstract method to sign a deployment.\n *\n * @param {Deploy} deploy - Deploy object\n * @param {Object} options - Generic options object used to pass additional arguments needed for the different signing methods\n * @return {Promise} - Signed deploy object\n */\n static async sign(deploy, options = {}) {\n throw new Error('You must implement this function');\n }\n}", + "static": true, + "longname": "/home/runner/work/CasperHoldersLib/CasperHoldersLib/src/services/signers/abstractSigner.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 240, + "kind": "typedef", + "name": "Deploy", + "memberof": "src/services/signers/abstractSigner.js", + "static": true, + "longname": "src/services/signers/abstractSigner.js~Deploy", + "access": "public", + "description": "", + "type": { + "types": [ + "import(\"casper-js-sdk\").DeployUtil.Deploy" + ], + "optional": false, + "name": "Deploy" + } + }, + { + "__docId__": 241, + "kind": "class", + "name": "AbstractSigner", + "memberof": "src/services/signers/abstractSigner.js", + "static": true, + "longname": "src/services/signers/abstractSigner.js~AbstractSigner", + "access": "public", + "export": true, + "importPath": "casperholderslib/src/services/signers/abstractSigner.js", + "importStyle": "{AbstractSigner}", + "description": "AbstractSigner class\nAbstract class used as a skeleton to implement deployment signing.", + "lineNumber": 9, + "interface": false + }, + { + "__docId__": 242, + "kind": "method", + "name": "sign", + "memberof": "src/services/signers/abstractSigner.js~AbstractSigner", + "generator": false, + "async": true, + "static": true, + "longname": "src/services/signers/abstractSigner.js~AbstractSigner.sign", + "access": "public", + "description": "Abstract method to sign a deployment.", + "lineNumber": 17, + "params": [ + { + "nullable": null, + "types": [ + "Deploy" + ], + "spread": false, + "optional": false, + "name": "deploy", + "description": "Deploy object" + }, + { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "optional": false, + "name": "options", + "description": "Generic options object used to pass additional arguments needed for the different signing methods" + } + ], + "return": { + "nullable": null, + "types": [ + "Promise" + ], + "spread": false, + "description": "Signed deploy object" + } + }, + { + "__docId__": 243, + "kind": "file", + "name": "src/services/signers/casperSigner.js", + "content": "import {DeployUtil, Signer} from \"casper-js-sdk\";\nimport {AbstractSigner} from \"./abstractSigner\";\nimport {SignError} from \"../errors\";\n\n/**\n * CasperSigner class\n * Used to sign a deployment with the Casper Signer extension\n */\nexport class CasperSigner extends AbstractSigner {\n /**\n * Sign a given Deploy Object with the corresponding public key.\n * You must pass the active public key from the user and the public key where the deploy is going to be used.\n *\n * @param {DeployUtil.Deploy} deploy - Deploy object\n * @param {Object} options - Options object\n * Must contains the public key of the user in the activeKey property\n * Must contains the public key of the targeted wallet\n * @returns {Promise} - Signed deploy object\n */\n static async sign(deploy, options = {}) {\n try {\n const signedJsonDeploy = await Signer.sign(DeployUtil.deployToJson(deploy), options.activeKey, options.to);\n const signedDeploy = await DeployUtil.deployFromJson(signedJsonDeploy);\n if (signedDeploy.ok) {\n return signedDeploy.val;\n } else {\n throw signedDeploy.val;\n }\n } catch (e) {\n console.log(e);\n throw new SignError();\n }\n }\n}", + "static": true, + "longname": "/home/runner/work/CasperHoldersLib/CasperHoldersLib/src/services/signers/casperSigner.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 244, + "kind": "class", + "name": "CasperSigner", + "memberof": "src/services/signers/casperSigner.js", + "static": true, + "longname": "src/services/signers/casperSigner.js~CasperSigner", + "access": "public", + "export": true, + "importPath": "casperholderslib/src/services/signers/casperSigner.js", + "importStyle": "{CasperSigner}", + "description": "CasperSigner class\nUsed to sign a deployment with the Casper Signer extension", + "lineNumber": 9, + "interface": false, + "extends": [ + "src/services/signers/abstractSigner.js~AbstractSigner" + ] + }, + { + "__docId__": 245, + "kind": "method", + "name": "sign", + "memberof": "src/services/signers/casperSigner.js~CasperSigner", + "generator": false, + "async": true, + "static": true, + "longname": "src/services/signers/casperSigner.js~CasperSigner.sign", + "access": "public", + "description": "Sign a given Deploy Object with the corresponding public key.\nYou must pass the active public key from the user and the public key where the deploy is going to be used.", + "lineNumber": 20, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Promise} - Signed deploy object" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "DeployUtil.Deploy" + ], + "spread": false, + "optional": false, + "name": "deploy", + "description": "Deploy object" + }, + { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "optional": false, + "name": "options", + "description": "Options object\n Must contains the public key of the user in the activeKey property\n Must contains the public key of the targeted wallet" + } + ], + "return": { + "nullable": null, + "types": [ + "Promise" + ], + "spread": false, + "description": "Signed deploy object" + } + }, + { + "__docId__": 246, + "kind": "file", + "name": "src/services/signers/index.js", + "content": "export * from './casperSigner';\nexport * from './localSigner';", + "static": true, + "longname": "/home/runner/work/CasperHoldersLib/CasperHoldersLib/src/services/signers/index.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 247, + "kind": "file", + "name": "src/services/signers/localSigner.js", + "content": "import {DeployUtil} from \"casper-js-sdk\";\nimport {SignError} from \"../errors\";\nimport {AbstractSigner} from \"./abstractSigner\";\n\n/**\n * LocalSigner class\n * Used to sign a deployment with local keys\n */\nexport class LocalSigner extends AbstractSigner {\n /**\n * Sign a given Deploy Object with the corresponding key.\n *\n * @param {DeployUtil.Deploy} deploy - Deploy object\n * @param {Object} options - Options object. Must contains the AsymmetricKey object in the key property\n * @returns {Promise} - Signed deploy object\n */\n static async sign(deploy, options = {}) {\n try {\n return await DeployUtil.signDeploy(deploy, options.key)\n } catch (e) {\n console.log(e);\n throw new SignError();\n }\n }\n}", + "static": true, + "longname": "/home/runner/work/CasperHoldersLib/CasperHoldersLib/src/services/signers/localSigner.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 248, + "kind": "class", + "name": "LocalSigner", + "memberof": "src/services/signers/localSigner.js", + "static": true, + "longname": "src/services/signers/localSigner.js~LocalSigner", + "access": "public", + "export": true, + "importPath": "casperholderslib/src/services/signers/localSigner.js", + "importStyle": "{LocalSigner}", + "description": "LocalSigner class\nUsed to sign a deployment with local keys", + "lineNumber": 9, + "interface": false, + "extends": [ + "src/services/signers/abstractSigner.js~AbstractSigner" + ] + }, + { + "__docId__": 249, + "kind": "method", + "name": "sign", + "memberof": "src/services/signers/localSigner.js~LocalSigner", + "generator": false, + "async": true, + "static": true, + "longname": "src/services/signers/localSigner.js~LocalSigner.sign", + "access": "public", + "description": "Sign a given Deploy Object with the corresponding key.", + "lineNumber": 17, + "unknown": [ + { + "tagName": "@returns", + "tagValue": "{Promise} - Signed deploy object" + } + ], + "params": [ + { + "nullable": null, + "types": [ + "DeployUtil.Deploy" + ], + "spread": false, + "optional": false, + "name": "deploy", + "description": "Deploy object" + }, + { + "nullable": null, + "types": [ + "Object" + ], + "spread": false, + "optional": false, + "name": "options", + "description": "Options object. Must contains the AsymmetricKey object in the key property" + } + ], + "return": { + "nullable": null, + "types": [ + "Promise" + ], + "spread": false, + "description": "Signed deploy object" + } + }, + { + "kind": "index", + "content": "# CasperHoldersLib\n\n![Documentation](docs/badge.svg)\n\nThe CasperHolders website use this library to handle any interaction with the CasperNetwork.\n\nIt contains a huge portion of the website logic.\n\n", + "longname": "/home/runner/work/CasperHoldersLib/CasperHoldersLib/README.md", + "name": "./README.md", + "static": true, + "access": "public" + }, + { + "kind": "packageJSON", + "content": "{\n \"name\": \"casperholderslib\",\n \"version\": \"1.0.0\",\n \"description\": \"Library for the casperholders website\",\n \"main\": \"dist/index.js\",\n \"scripts\": {\n \"build\": \"babel -d dist/ src/\",\n \"docs\": \"esdoc\"\n },\n \"author\": \"Killian Hascoet\",\n \"license\": \"Apache-2.0\",\n \"dependencies\": {\n \"casper-js-sdk\": \"^2.2.3\"\n },\n \"babel\": {\n \"presets\": [\n \"@babel/preset-env\"\n ]\n },\n \"devDependencies\": {\n \"@babel/cli\": \"^7.14.8\",\n \"@babel/core\": \"^7.14.8\",\n \"@babel/polyfill\": \"^7.12.1\",\n \"@babel/preset-env\": \"^7.14.8\",\n \"babel-loader\": \"^8.2.2\",\n \"core-js\": \"3\",\n \"esdoc\": \"^1.1.0\",\n \"esdoc-standard-plugin\": \"^1.0.0\"\n }\n}\n", + "longname": "/home/runner/work/CasperHoldersLib/CasperHoldersLib/package.json", + "name": "package.json", + "static": true, + "access": "public" + } +] \ No newline at end of file diff --git a/lint.json b/lint.json new file mode 100644 index 0000000..0637a08 --- /dev/null +++ b/lint.json @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/script/inherited-summary.js b/script/inherited-summary.js new file mode 100644 index 0000000..0a35b6d --- /dev/null +++ b/script/inherited-summary.js @@ -0,0 +1,28 @@ +(function(){ + function toggle(ev) { + var button = ev.target; + var parent = ev.target.parentElement; + while(parent) { + if (parent.tagName === 'TABLE' && parent.classList.contains('summary')) break; + parent = parent.parentElement; + } + + if (!parent) return; + + var tbody = parent.querySelector('tbody'); + if (button.classList.contains('opened')) { + button.classList.remove('opened'); + button.classList.add('closed'); + tbody.style.display = 'none'; + } else { + button.classList.remove('closed'); + button.classList.add('opened'); + tbody.style.display = 'block'; + } + } + + var buttons = document.querySelectorAll('.inherited-summary thead .toggle'); + for (var i = 0; i < buttons.length; i++) { + buttons[i].addEventListener('click', toggle); + } +})(); diff --git a/script/inner-link.js b/script/inner-link.js new file mode 100644 index 0000000..ad1c942 --- /dev/null +++ b/script/inner-link.js @@ -0,0 +1,32 @@ +// inner link(#foo) can not correctly scroll, because page has fixed header, +// so, I manually scroll. +(function(){ + var matched = location.hash.match(/errorLines=([\d,]+)/); + if (matched) return; + + function adjust() { + window.scrollBy(0, -55); + var el = document.querySelector('.inner-link-active'); + if (el) el.classList.remove('inner-link-active'); + + // ``[ ] . ' " @`` are not valid in DOM id. so must escape these. + var id = location.hash.replace(/([\[\].'"@$])/g, '\\$1'); + var el = document.querySelector(id); + if (el) el.classList.add('inner-link-active'); + } + + window.addEventListener('hashchange', adjust); + + if (location.hash) { + setTimeout(adjust, 0); + } +})(); + +(function(){ + var els = document.querySelectorAll('[href^="#"]'); + var href = location.href.replace(/#.*$/, ''); // remove existed hash + for (var i = 0; i < els.length; i++) { + var el = els[i]; + el.href = href + el.getAttribute('href'); // because el.href is absolute path + } +})(); diff --git a/script/manual.js b/script/manual.js new file mode 100644 index 0000000..de0bfe2 --- /dev/null +++ b/script/manual.js @@ -0,0 +1,12 @@ +(function(){ + var matched = location.pathname.match(/\/(manual\/.*\.html)$/); + if (!matched) return; + + var currentName = matched[1]; + var cssClass = '.navigation .manual-toc li[data-link="' + currentName + '"]'; + var styleText = cssClass + '{ display: block; }\n'; + styleText += cssClass + '.indent-h1 a { color: #039BE5 }'; + var style = document.createElement('style'); + style.textContent = styleText; + document.querySelector('head').appendChild(style); +})(); diff --git a/script/patch-for-local.js b/script/patch-for-local.js new file mode 100644 index 0000000..5756d13 --- /dev/null +++ b/script/patch-for-local.js @@ -0,0 +1,8 @@ +(function(){ + if (location.protocol === 'file:') { + var elms = document.querySelectorAll('a[href="./"]'); + for (var i = 0; i < elms.length; i++) { + elms[i].href = './index.html'; + } + } +})(); diff --git a/script/prettify/Apache-License-2.0.txt b/script/prettify/Apache-License-2.0.txt new file mode 100644 index 0000000..d645695 --- /dev/null +++ b/script/prettify/Apache-License-2.0.txt @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/script/prettify/prettify.js b/script/prettify/prettify.js new file mode 100755 index 0000000..3b74b5b --- /dev/null +++ b/script/prettify/prettify.js @@ -0,0 +1,46 @@ +!function(){/* + + Copyright (C) 2006 Google Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ +window.PR_SHOULD_USE_CONTINUATION=!0; +(function(){function T(a){function d(e){var b=e.charCodeAt(0);if(92!==b)return b;var a=e.charAt(1);return(b=w[a])?b:"0"<=a&&"7">=a?parseInt(e.substring(1),8):"u"===a||"x"===a?parseInt(e.substring(2),16):e.charCodeAt(1)}function f(e){if(32>e)return(16>e?"\\x0":"\\x")+e.toString(16);e=String.fromCharCode(e);return"\\"===e||"-"===e||"]"===e||"^"===e?"\\"+e:e}function b(e){var b=e.substring(1,e.length-1).match(/\\u[0-9A-Fa-f]{4}|\\x[0-9A-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\s\S]|-|[^-\\]/g);e= +[];var a="^"===b[0],c=["["];a&&c.push("^");for(var a=a?1:0,g=b.length;ak||122k||90k||122h[0]&&(h[1]+1>h[0]&&c.push("-"),c.push(f(h[1])));c.push("]");return c.join("")}function v(e){for(var a=e.source.match(/(?:\[(?:[^\x5C\x5D]|\\[\s\S])*\]|\\u[A-Fa-f0-9]{4}|\\x[A-Fa-f0-9]{2}|\\[0-9]+|\\[^ux0-9]|\(\?[:!=]|[\(\)\^]|[^\x5B\x5C\(\)\^]+)/g),c=a.length,d=[],g=0,h=0;g/,null])):d.push(["com",/^#[^\r\n]*/,null,"#"]));a.cStyleComments&&(f.push(["com",/^\/\/[^\r\n]*/,null]),f.push(["com",/^\/\*[\s\S]*?(?:\*\/|$)/,null]));if(b=a.regexLiterals){var v=(b=1|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*("+ +("/(?=[^/*"+b+"])(?:[^/\\x5B\\x5C"+b+"]|\\x5C"+v+"|\\x5B(?:[^\\x5C\\x5D"+b+"]|\\x5C"+v+")*(?:\\x5D|$))+/")+")")])}(b=a.types)&&f.push(["typ",b]);b=(""+a.keywords).replace(/^ | $/g,"");b.length&&f.push(["kwd",new RegExp("^(?:"+b.replace(/[\s,]+/g,"|")+")\\b"),null]);d.push(["pln",/^\s+/,null," \r\n\t\u00a0"]);b="^.[^\\s\\w.$@'\"`/\\\\]*";a.regexLiterals&&(b+="(?!s*/)");f.push(["lit",/^@[a-z_$][a-z_$@0-9]*/i,null],["typ",/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],["pln",/^[a-z_$][a-z_$@0-9]*/i, +null],["lit",/^(?:0x[a-f0-9]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+\-]?\d+)?)[a-z]*/i,null,"0123456789"],["pln",/^\\[\s\S]?/,null],["pun",new RegExp(b),null]);return G(d,f)}function L(a,d,f){function b(a){var c=a.nodeType;if(1==c&&!A.test(a.className))if("br"===a.nodeName)v(a),a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)b(a);else if((3==c||4==c)&&f){var d=a.nodeValue,q=d.match(n);q&&(c=d.substring(0,q.index),a.nodeValue=c,(d=d.substring(q.index+q[0].length))&& +a.parentNode.insertBefore(l.createTextNode(d),a.nextSibling),v(a),c||a.parentNode.removeChild(a))}}function v(a){function b(a,c){var d=c?a.cloneNode(!1):a,k=a.parentNode;if(k){var k=b(k,1),e=a.nextSibling;k.appendChild(d);for(var f=e;f;f=e)e=f.nextSibling,k.appendChild(f)}return d}for(;!a.nextSibling;)if(a=a.parentNode,!a)return;a=b(a.nextSibling,0);for(var d;(d=a.parentNode)&&1===d.nodeType;)a=d;c.push(a)}for(var A=/(?:^|\s)nocode(?:\s|$)/,n=/\r\n?|\n/,l=a.ownerDocument,m=l.createElement("li");a.firstChild;)m.appendChild(a.firstChild); +for(var c=[m],p=0;p=+v[1],d=/\n/g,A=a.a,n=A.length,f=0,l=a.c,m=l.length,b=0,c=a.g,p=c.length,w=0;c[p]=n;var r,e;for(e=r=0;e=h&&(b+=2);f>=k&&(w+=2)}}finally{g&&(g.style.display=a)}}catch(x){E.console&&console.log(x&&x.stack||x)}}var E=window,C=["break,continue,do,else,for,if,return,while"], +F=[[C,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],H=[F,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"], +O=[F,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],P=[F,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"], +F=[F,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],Q=[C,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],R=[C,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],C=[C,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"], +S=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,W=/\S/,X=y({keywords:[H,P,O,F,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",Q,R,C],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),I={};t(X,["default-code"]);t(G([],[["pln",/^[^]*(?:>|$)/],["com",/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),"default-markup htm html mxml xhtml xml xsl".split(" "));t(G([["pln",/^[\s]+/,null," \t\r\n"],["atv",/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null, +"\"'"]],[["tag",/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],["pun",/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]);t(G([],[["atv",/^[\s\S]+/]]),["uq.val"]);t(y({keywords:H, +hashComments:!0,cStyleComments:!0,types:S}),"c cc cpp cxx cyc m".split(" "));t(y({keywords:"null,true,false"}),["json"]);t(y({keywords:P,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:S}),["cs"]);t(y({keywords:O,cStyleComments:!0}),["java"]);t(y({keywords:C,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]);t(y({keywords:Q,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]);t(y({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END", +hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]);t(y({keywords:R,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]);t(y({keywords:F,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]);t(y({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0, +regexLiterals:!0}),["coffee"]);t(G([],[["str",/^[\s\S]+/]]),["regex"]);var Y=E.PR={createSimpleLexer:G,registerLangHandler:t,sourceDecorator:y,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:"atv",PR_COMMENT:"com",PR_DECLARATION:"dec",PR_KEYWORD:"kwd",PR_LITERAL:"lit",PR_NOCODE:"nocode",PR_PLAIN:"pln",PR_PUNCTUATION:"pun",PR_SOURCE:"src",PR_STRING:"str",PR_TAG:"tag",PR_TYPE:"typ",prettyPrintOne:E.prettyPrintOne=function(a,d,f){f=f||!1;d=d||null;var b=document.createElement("div");b.innerHTML="
"+a+"
"; +b=b.firstChild;f&&L(b,f,!0);M({j:d,m:f,h:b,l:1,a:null,i:null,c:null,g:null});return b.innerHTML},prettyPrint:E.prettyPrint=function(a,d){function f(){for(var b=E.PR_SHOULD_USE_CONTINUATION?c.now()+250:Infinity;p' + pair[2] + ''); + } + } + + var innerHTML = ''; + for (kind in html) { + var list = html[kind]; + if (!list.length) continue; + innerHTML += '
  • ' + kind + '
  • \n' + list.join('\n'); + } + result.innerHTML = innerHTML; + if (innerHTML) result.style.display = 'block'; + selectedIndex = -1; + }); + + // down, up and enter key are pressed, select search result. + input.addEventListener('keydown', function(ev){ + if (ev.keyCode === 40) { + // arrow down + var current = result.children[selectedIndex]; + var selected = result.children[selectedIndex + 1]; + if (selected && selected.classList.contains('search-separator')) { + var selected = result.children[selectedIndex + 2]; + selectedIndex++; + } + + if (selected) { + if (current) current.classList.remove('selected'); + selectedIndex++; + selected.classList.add('selected'); + } + } else if (ev.keyCode === 38) { + // arrow up + var current = result.children[selectedIndex]; + var selected = result.children[selectedIndex - 1]; + if (selected && selected.classList.contains('search-separator')) { + var selected = result.children[selectedIndex - 2]; + selectedIndex--; + } + + if (selected) { + if (current) current.classList.remove('selected'); + selectedIndex--; + selected.classList.add('selected'); + } + } else if (ev.keyCode === 13) { + // enter + var current = result.children[selectedIndex]; + if (current) { + var link = current.querySelector('a'); + if (link) location.href = link.href; + } + } else { + return; + } + + ev.preventDefault(); + }); + + // select search result when search result is mouse over. + result.addEventListener('mousemove', function(ev){ + var current = result.children[selectedIndex]; + if (current) current.classList.remove('selected'); + + var li = ev.target; + while (li) { + if (li.nodeName === 'LI') break; + li = li.parentElement; + } + + if (li) { + selectedIndex = Array.prototype.indexOf.call(result.children, li); + li.classList.add('selected'); + } + }); + + // clear search result when body is clicked. + document.body.addEventListener('click', function(ev){ + selectedIndex = -1; + result.style.display = 'none'; + result.innerHTML = ''; + }); + +})(); diff --git a/script/search_index.js b/script/search_index.js new file mode 100644 index 0000000..2f407c4 --- /dev/null +++ b/script/search_index.js @@ -0,0 +1,1268 @@ +window.esdocSearchIndex = [ + [ + "casperholderslib/src/services/keys/abstractkeymanager.js~abstractkeymanager", + "class/src/services/keys/abstractKeyManager.js~AbstractKeyManager.html", + "AbstractKeyManager casperholderslib/src/services/keys/abstractKeyManager.js", + "class" + ], + [ + "casperholderslib/src/services/signers/abstractsigner.js~abstractsigner", + "class/src/services/signers/abstractSigner.js~AbstractSigner.html", + "AbstractSigner casperholderslib/src/services/signers/abstractSigner.js", + "class" + ], + [ + "casperholderslib/src/services/deploys/abstractsmartcontractdeployparameters.js~abstractsmartcontractdeployparameters", + "class/src/services/deploys/abstractSmartContractDeployParameters.js~AbstractSmartContractDeployParameters.html", + "AbstractSmartContractDeployParameters casperholderslib/src/services/deploys/abstractSmartContractDeployParameters.js", + "class" + ], + [ + "casperholderslib/src/services/deploys/abstractsmartcontractstoredbyhashdeployparameters.js~abstractsmartcontractstoredbyhashdeployparameters", + "class/src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters.html", + "AbstractSmartContractStoredByHashDeployParameters casperholderslib/src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js", + "class" + ], + [ + "casperholderslib/src/services/deploys/auction/actions/addbid.js~addbid", + "class/src/services/deploys/auction/actions/addBid.js~AddBid.html", + "AddBid casperholderslib/src/services/deploys/auction/actions/addBid.js", + "class" + ], + [ + "casperholderslib/src/services/results/addbidresult.js~addbidresult", + "class/src/services/results/addBidResult.js~AddBidResult.html", + "AddBidResult casperholderslib/src/services/results/addBidResult.js", + "class" + ], + [ + "casperholderslib/src/services/balance/balance.js~balance", + "class/src/services/balance/balance.js~Balance.html", + "Balance casperholderslib/src/services/balance/balance.js", + "class" + ], + [ + "casperholderslib/src/services/signers/caspersigner.js~caspersigner", + "class/src/services/signers/casperSigner.js~CasperSigner.html", + "CasperSigner casperholderslib/src/services/signers/casperSigner.js", + "class" + ], + [ + "casperholderslib/src/services/clients/clientcasper.js~clientcasper", + "class/src/services/clients/clientCasper.js~ClientCasper.html", + "ClientCasper casperholderslib/src/services/clients/clientCasper.js", + "class" + ], + [ + "casperholderslib/src/services/helpers/currencyutils.js~currencyutils", + "class/src/services/helpers/currencyUtils.js~CurrencyUtils.html", + "CurrencyUtils casperholderslib/src/services/helpers/currencyUtils.js", + "class" + ], + [ + "casperholderslib/src/services/deploys/auction/actions/delegate.js~delegate", + "class/src/services/deploys/auction/actions/delegate.js~Delegate.html", + "Delegate casperholderslib/src/services/deploys/auction/actions/delegate.js", + "class" + ], + [ + "casperholderslib/src/services/results/delegateresult.js~delegateresult", + "class/src/services/results/delegateResult.js~DelegateResult.html", + "DelegateResult casperholderslib/src/services/results/delegateResult.js", + "class" + ], + [ + "casperholderslib/src/services/deploys/deploymanager.js~deploymanager", + "class/src/services/deploys/deployManager.js~DeployManager.html", + "DeployManager casperholderslib/src/services/deploys/deployManager.js", + "class" + ], + [ + "casperholderslib/src/services/results/deployresult.js~deployresult", + "class/src/services/results/deployResult.js~DeployResult.html", + "DeployResult casperholderslib/src/services/results/deployResult.js", + "class" + ], + [ + "casperholderslib/src/services/errors/extendableerror.js~extendableerror", + "class/src/services/errors/extendableError.js~ExtendableError.html", + "ExtendableError casperholderslib/src/services/errors/extendableError.js", + "class" + ], + [ + "casperholderslib/src/services/errors/insufficientfunds.js~insufficientfunds", + "class/src/services/errors/insufficientFunds.js~InsufficientFunds.html", + "InsufficientFunds casperholderslib/src/services/errors/insufficientFunds.js", + "class" + ], + [ + "casperholderslib/src/services/signers/localsigner.js~localsigner", + "class/src/services/signers/localSigner.js~LocalSigner.html", + "LocalSigner casperholderslib/src/services/signers/localSigner.js", + "class" + ], + [ + "casperholderslib/src/services/errors/noactivekeyerror.js~noactivekeyerror", + "class/src/services/errors/noActiveKeyError.js~NoActiveKeyError.html", + "NoActiveKeyError casperholderslib/src/services/errors/noActiveKeyError.js", + "class" + ], + [ + "casperholderslib/src/services/errors/nostakebalanceerror.js~nostakebalanceerror", + "class/src/services/errors/noStakeBalanceError.js~NoStakeBalanceError.html", + "NoStakeBalanceError casperholderslib/src/services/errors/noStakeBalanceError.js", + "class" + ], + [ + "casperholderslib/src/services/errors/novalidatorbalanceerror.js~novalidatorbalanceerror", + "class/src/services/errors/noValidatorBalanceError.js~NoValidatorBalanceError.html", + "NoValidatorBalanceError casperholderslib/src/services/errors/noValidatorBalanceError.js", + "class" + ], + [ + "casperholderslib/src/services/results/deployresult.js~status_ko", + "variable/index.html#static-variable-STATUS_KO", + "STATUS_KO casperholderslib/src/services/results/deployResult.js", + "variable" + ], + [ + "casperholderslib/src/services/results/deployresult.js~status_ok", + "variable/index.html#static-variable-STATUS_OK", + "STATUS_OK casperholderslib/src/services/results/deployResult.js", + "variable" + ], + [ + "casperholderslib/src/services/results/deployresult.js~status_unknown", + "variable/index.html#static-variable-STATUS_UNKNOWN", + "STATUS_UNKNOWN casperholderslib/src/services/results/deployResult.js", + "variable" + ], + [ + "casperholderslib/src/services/errors/signerror.js~signerror", + "class/src/services/errors/signError.js~SignError.html", + "SignError casperholderslib/src/services/errors/signError.js", + "class" + ], + [ + "casperholderslib/src/services/deploys/smartcontract/smartcontractdeployparameters.js~smartcontractdeployparameters", + "class/src/services/deploys/smartContract/smartContractDeployParameters.js~SmartContractDeployParameters.html", + "SmartContractDeployParameters casperholderslib/src/services/deploys/smartContract/smartContractDeployParameters.js", + "class" + ], + [ + "casperholderslib/src/services/results/smartcontractresult.js~smartcontractresult", + "class/src/services/results/smartContractResult.js~SmartContractResult.html", + "SmartContractResult casperholderslib/src/services/results/smartContractResult.js", + "class" + ], + [ + "casperholderslib/src/services/deploys/transfer/transferdeployparameters.js~transferdeployparameters", + "class/src/services/deploys/transfer/TransferDeployParameters.js~TransferDeployParameters.html", + "TransferDeployParameters casperholderslib/src/services/deploys/transfer/TransferDeployParameters.js", + "class" + ], + [ + "casperholderslib/src/services/results/transferresult.js~transferresult", + "class/src/services/results/transferResult.js~TransferResult.html", + "TransferResult casperholderslib/src/services/results/transferResult.js", + "class" + ], + [ + "casperholderslib/src/services/deploys/auction/actions/undelegate.js~undelegate", + "class/src/services/deploys/auction/actions/undelegate.js~Undelegate.html", + "Undelegate casperholderslib/src/services/deploys/auction/actions/undelegate.js", + "class" + ], + [ + "casperholderslib/src/services/results/undelegateresult.js~undelegateresult", + "class/src/services/results/undelegateResult.js~UndelegateResult.html", + "UndelegateResult casperholderslib/src/services/results/undelegateResult.js", + "class" + ], + [ + "casperholderslib/src/services/deploys/auction/actions/withdrawbid.js~withdrawbid", + "class/src/services/deploys/auction/actions/withdrawBid.js~WithdrawBid.html", + "WithdrawBid casperholderslib/src/services/deploys/auction/actions/withdrawBid.js", + "class" + ], + [ + "casperholderslib/src/services/results/withdrawbidresult.js~withdrawbidresult", + "class/src/services/results/withdrawBidResult.js~WithdrawBidResult.html", + "WithdrawBidResult casperholderslib/src/services/results/withdrawBidResult.js", + "class" + ], + [ + "src/.external-ecmascript.js~array", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array", + "src/.external-ecmascript.js~Array", + "external" + ], + [ + "src/.external-ecmascript.js~arraybuffer", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer", + "src/.external-ecmascript.js~ArrayBuffer", + "external" + ], + [ + "src/.external-ecmascript.js~boolean", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean", + "src/.external-ecmascript.js~Boolean", + "external" + ], + [ + "src/.external-ecmascript.js~dataview", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView", + "src/.external-ecmascript.js~DataView", + "external" + ], + [ + "src/.external-ecmascript.js~date", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date", + "src/.external-ecmascript.js~Date", + "external" + ], + [ + "src/.external-ecmascript.js~error", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error", + "src/.external-ecmascript.js~Error", + "external" + ], + [ + "src/.external-ecmascript.js~evalerror", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError", + "src/.external-ecmascript.js~EvalError", + "external" + ], + [ + "src/.external-ecmascript.js~float32array", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array", + "src/.external-ecmascript.js~Float32Array", + "external" + ], + [ + "src/.external-ecmascript.js~float64array", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array", + "src/.external-ecmascript.js~Float64Array", + "external" + ], + [ + "src/.external-ecmascript.js~function", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function", + "src/.external-ecmascript.js~Function", + "external" + ], + [ + "src/.external-ecmascript.js~generator", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator", + "src/.external-ecmascript.js~Generator", + "external" + ], + [ + "src/.external-ecmascript.js~generatorfunction", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction", + "src/.external-ecmascript.js~GeneratorFunction", + "external" + ], + [ + "src/.external-ecmascript.js~infinity", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Infinity", + "src/.external-ecmascript.js~Infinity", + "external" + ], + [ + "src/.external-ecmascript.js~int16array", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array", + "src/.external-ecmascript.js~Int16Array", + "external" + ], + [ + "src/.external-ecmascript.js~int32array", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array", + "src/.external-ecmascript.js~Int32Array", + "external" + ], + [ + "src/.external-ecmascript.js~int8array", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array", + "src/.external-ecmascript.js~Int8Array", + "external" + ], + [ + "src/.external-ecmascript.js~internalerror", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/InternalError", + "src/.external-ecmascript.js~InternalError", + "external" + ], + [ + "src/.external-ecmascript.js~json", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON", + "src/.external-ecmascript.js~JSON", + "external" + ], + [ + "src/.external-ecmascript.js~map", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map", + "src/.external-ecmascript.js~Map", + "external" + ], + [ + "src/.external-ecmascript.js~nan", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN", + "src/.external-ecmascript.js~NaN", + "external" + ], + [ + "src/.external-ecmascript.js~number", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number", + "src/.external-ecmascript.js~Number", + "external" + ], + [ + "src/.external-ecmascript.js~object", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object", + "src/.external-ecmascript.js~Object", + "external" + ], + [ + "src/.external-ecmascript.js~promise", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise", + "src/.external-ecmascript.js~Promise", + "external" + ], + [ + "src/.external-ecmascript.js~proxy", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy", + "src/.external-ecmascript.js~Proxy", + "external" + ], + [ + "src/.external-ecmascript.js~rangeerror", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError", + "src/.external-ecmascript.js~RangeError", + "external" + ], + [ + "src/.external-ecmascript.js~referenceerror", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError", + "src/.external-ecmascript.js~ReferenceError", + "external" + ], + [ + "src/.external-ecmascript.js~reflect", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect", + "src/.external-ecmascript.js~Reflect", + "external" + ], + [ + "src/.external-ecmascript.js~regexp", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp", + "src/.external-ecmascript.js~RegExp", + "external" + ], + [ + "src/.external-ecmascript.js~set", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set", + "src/.external-ecmascript.js~Set", + "external" + ], + [ + "src/.external-ecmascript.js~string", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String", + "src/.external-ecmascript.js~String", + "external" + ], + [ + "src/.external-ecmascript.js~symbol", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol", + "src/.external-ecmascript.js~Symbol", + "external" + ], + [ + "src/.external-ecmascript.js~syntaxerror", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError", + "src/.external-ecmascript.js~SyntaxError", + "external" + ], + [ + "src/.external-ecmascript.js~typeerror", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError", + "src/.external-ecmascript.js~TypeError", + "external" + ], + [ + "src/.external-ecmascript.js~urierror", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError", + "src/.external-ecmascript.js~URIError", + "external" + ], + [ + "src/.external-ecmascript.js~uint16array", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array", + "src/.external-ecmascript.js~Uint16Array", + "external" + ], + [ + "src/.external-ecmascript.js~uint32array", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array", + "src/.external-ecmascript.js~Uint32Array", + "external" + ], + [ + "src/.external-ecmascript.js~uint8array", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array", + "src/.external-ecmascript.js~Uint8Array", + "external" + ], + [ + "src/.external-ecmascript.js~uint8clampedarray", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray", + "src/.external-ecmascript.js~Uint8ClampedArray", + "external" + ], + [ + "src/.external-ecmascript.js~weakmap", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap", + "src/.external-ecmascript.js~WeakMap", + "external" + ], + [ + "src/.external-ecmascript.js~weakset", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet", + "src/.external-ecmascript.js~WeakSet", + "external" + ], + [ + "src/.external-ecmascript.js~boolean", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean", + "src/.external-ecmascript.js~boolean", + "external" + ], + [ + "src/.external-ecmascript.js~function", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function", + "src/.external-ecmascript.js~function", + "external" + ], + [ + "src/.external-ecmascript.js~null", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null", + "src/.external-ecmascript.js~null", + "external" + ], + [ + "src/.external-ecmascript.js~number", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number", + "src/.external-ecmascript.js~number", + "external" + ], + [ + "src/.external-ecmascript.js~object", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object", + "src/.external-ecmascript.js~object", + "external" + ], + [ + "src/.external-ecmascript.js~string", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String", + "src/.external-ecmascript.js~string", + "external" + ], + [ + "src/.external-ecmascript.js~undefined", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined", + "src/.external-ecmascript.js~undefined", + "external" + ], + [ + "src/index.js", + "file/src/index.js.html", + "src/index.js", + "file" + ], + [ + "src/services/balance/balance.js", + "file/src/services/balance/balance.js.html", + "src/services/balance/balance.js", + "file" + ], + [ + "src/services/balance/balance.js~balance#client", + "class/src/services/balance/balance.js~Balance.html#instance-member-client", + "src/services/balance/balance.js~Balance#client", + "member" + ], + [ + "src/services/balance/balance.js~balance#constructor", + "class/src/services/balance/balance.js~Balance.html#instance-constructor-constructor", + "src/services/balance/balance.js~Balance#constructor", + "method" + ], + [ + "src/services/balance/balance.js~balance#fetchbalance", + "class/src/services/balance/balance.js~Balance.html#instance-method-fetchBalance", + "src/services/balance/balance.js~Balance#fetchBalance", + "method" + ], + [ + "src/services/balance/balance.js~balance#fetchstakebalance", + "class/src/services/balance/balance.js~Balance.html#instance-method-fetchStakeBalance", + "src/services/balance/balance.js~Balance#fetchStakeBalance", + "method" + ], + [ + "src/services/balance/balance.js~balance#fetchvalidatorbalance", + "class/src/services/balance/balance.js~Balance.html#instance-method-fetchValidatorBalance", + "src/services/balance/balance.js~Balance#fetchValidatorBalance", + "method" + ], + [ + "src/services/balance/balance.js~balance#keymanager", + "class/src/services/balance/balance.js~Balance.html#instance-member-keyManager", + "src/services/balance/balance.js~Balance#keyManager", + "member" + ], + [ + "src/services/balance/balance.js~balance#validator", + "class/src/services/balance/balance.js~Balance.html#instance-member-validator", + "src/services/balance/balance.js~Balance#validator", + "member" + ], + [ + "src/services/clients/clientcasper.js", + "file/src/services/clients/clientCasper.js.html", + "src/services/clients/clientCasper.js", + "file" + ], + [ + "src/services/clients/clientcasper.js~clientcasper#casperclient", + "class/src/services/clients/clientCasper.js~ClientCasper.html#instance-member-casperClient", + "src/services/clients/clientCasper.js~ClientCasper#casperClient", + "member" + ], + [ + "src/services/clients/clientcasper.js~clientcasper#casperrpc", + "class/src/services/clients/clientCasper.js~ClientCasper.html#instance-member-casperRPC", + "src/services/clients/clientCasper.js~ClientCasper#casperRPC", + "member" + ], + [ + "src/services/clients/clientcasper.js~clientcasper#constructor", + "class/src/services/clients/clientCasper.js~ClientCasper.html#instance-constructor-constructor", + "src/services/clients/clientCasper.js~ClientCasper#constructor", + "method" + ], + [ + "src/services/clients/index.js", + "file/src/services/clients/index.js.html", + "src/services/clients/index.js", + "file" + ], + [ + "src/services/deploys/abstractsmartcontractdeployparameters.js", + "file/src/services/deploys/abstractSmartContractDeployParameters.js.html", + "src/services/deploys/abstractSmartContractDeployParameters.js", + "file" + ], + [ + "src/services/deploys/abstractsmartcontractdeployparameters.js~abstractsmartcontractdeployparameters#deployparams", + "class/src/services/deploys/abstractSmartContractDeployParameters.js~AbstractSmartContractDeployParameters.html#instance-get-deployParams", + "src/services/deploys/abstractSmartContractDeployParameters.js~AbstractSmartContractDeployParameters#deployParams", + "member" + ], + [ + "src/services/deploys/abstractsmartcontractdeployparameters.js~abstractsmartcontractdeployparameters#deployresult", + "class/src/services/deploys/abstractSmartContractDeployParameters.js~AbstractSmartContractDeployParameters.html#instance-get-deployResult", + "src/services/deploys/abstractSmartContractDeployParameters.js~AbstractSmartContractDeployParameters#deployResult", + "member" + ], + [ + "src/services/deploys/abstractsmartcontractdeployparameters.js~abstractsmartcontractdeployparameters#makedeploy", + "class/src/services/deploys/abstractSmartContractDeployParameters.js~AbstractSmartContractDeployParameters.html#instance-get-makeDeploy", + "src/services/deploys/abstractSmartContractDeployParameters.js~AbstractSmartContractDeployParameters#makeDeploy", + "member" + ], + [ + "src/services/deploys/abstractsmartcontractdeployparameters.js~abstractsmartcontractdeployparameters#payment", + "class/src/services/deploys/abstractSmartContractDeployParameters.js~AbstractSmartContractDeployParameters.html#instance-get-payment", + "src/services/deploys/abstractSmartContractDeployParameters.js~AbstractSmartContractDeployParameters#payment", + "member" + ], + [ + "src/services/deploys/abstractsmartcontractdeployparameters.js~abstractsmartcontractdeployparameters#session", + "class/src/services/deploys/abstractSmartContractDeployParameters.js~AbstractSmartContractDeployParameters.html#instance-get-session", + "src/services/deploys/abstractSmartContractDeployParameters.js~AbstractSmartContractDeployParameters#session", + "member" + ], + [ + "src/services/deploys/abstractsmartcontractstoredbyhashdeployparameters.js", + "file/src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js.html", + "src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js", + "file" + ], + [ + "src/services/deploys/abstractsmartcontractstoredbyhashdeployparameters.js~abstractsmartcontractstoredbyhashdeployparameters#activekey", + "class/src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters.html#instance-member-activeKey", + "src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters#activeKey", + "member" + ], + [ + "src/services/deploys/abstractsmartcontractstoredbyhashdeployparameters.js~abstractsmartcontractstoredbyhashdeployparameters#args", + "class/src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters.html#instance-member-args", + "src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters#args", + "member" + ], + [ + "src/services/deploys/abstractsmartcontractstoredbyhashdeployparameters.js~abstractsmartcontractstoredbyhashdeployparameters#constructor", + "class/src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters.html#instance-constructor-constructor", + "src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters#constructor", + "method" + ], + [ + "src/services/deploys/abstractsmartcontractstoredbyhashdeployparameters.js~abstractsmartcontractstoredbyhashdeployparameters#deployparams", + "class/src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters.html#instance-get-deployParams", + "src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters#deployParams", + "member" + ], + [ + "src/services/deploys/abstractsmartcontractstoredbyhashdeployparameters.js~abstractsmartcontractstoredbyhashdeployparameters#entrypoint", + "class/src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters.html#instance-member-entrypoint", + "src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters#entrypoint", + "member" + ], + [ + "src/services/deploys/abstractsmartcontractstoredbyhashdeployparameters.js~abstractsmartcontractstoredbyhashdeployparameters#fee", + "class/src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters.html#instance-member-fee", + "src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters#fee", + "member" + ], + [ + "src/services/deploys/abstractsmartcontractstoredbyhashdeployparameters.js~abstractsmartcontractstoredbyhashdeployparameters#hash", + "class/src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters.html#instance-member-hash", + "src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters#hash", + "member" + ], + [ + "src/services/deploys/abstractsmartcontractstoredbyhashdeployparameters.js~abstractsmartcontractstoredbyhashdeployparameters#network", + "class/src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters.html#instance-member-network", + "src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters#network", + "member" + ], + [ + "src/services/deploys/abstractsmartcontractstoredbyhashdeployparameters.js~abstractsmartcontractstoredbyhashdeployparameters#payment", + "class/src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters.html#instance-get-payment", + "src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters#payment", + "member" + ], + [ + "src/services/deploys/abstractsmartcontractstoredbyhashdeployparameters.js~abstractsmartcontractstoredbyhashdeployparameters#session", + "class/src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters.html#instance-get-session", + "src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters#session", + "member" + ], + [ + "src/services/deploys/auction/actions/addbid.js", + "file/src/services/deploys/auction/actions/addBid.js.html", + "src/services/deploys/auction/actions/addBid.js", + "file" + ], + [ + "src/services/deploys/auction/actions/addbid.js~addbid#constructor", + "class/src/services/deploys/auction/actions/addBid.js~AddBid.html#instance-constructor-constructor", + "src/services/deploys/auction/actions/addBid.js~AddBid#constructor", + "method" + ], + [ + "src/services/deploys/auction/actions/addbid.js~addbid#deployresult", + "class/src/services/deploys/auction/actions/addBid.js~AddBid.html#instance-get-deployResult", + "src/services/deploys/auction/actions/addBid.js~AddBid#deployResult", + "member" + ], + [ + "src/services/deploys/auction/actions/delegate.js", + "file/src/services/deploys/auction/actions/delegate.js.html", + "src/services/deploys/auction/actions/delegate.js", + "file" + ], + [ + "src/services/deploys/auction/actions/delegate.js~delegate#constructor", + "class/src/services/deploys/auction/actions/delegate.js~Delegate.html#instance-constructor-constructor", + "src/services/deploys/auction/actions/delegate.js~Delegate#constructor", + "method" + ], + [ + "src/services/deploys/auction/actions/delegate.js~delegate#deployresult", + "class/src/services/deploys/auction/actions/delegate.js~Delegate.html#instance-get-deployResult", + "src/services/deploys/auction/actions/delegate.js~Delegate#deployResult", + "member" + ], + [ + "src/services/deploys/auction/actions/index.js", + "file/src/services/deploys/auction/actions/index.js.html", + "src/services/deploys/auction/actions/index.js", + "file" + ], + [ + "src/services/deploys/auction/actions/undelegate.js", + "file/src/services/deploys/auction/actions/undelegate.js.html", + "src/services/deploys/auction/actions/undelegate.js", + "file" + ], + [ + "src/services/deploys/auction/actions/undelegate.js~undelegate#constructor", + "class/src/services/deploys/auction/actions/undelegate.js~Undelegate.html#instance-constructor-constructor", + "src/services/deploys/auction/actions/undelegate.js~Undelegate#constructor", + "method" + ], + [ + "src/services/deploys/auction/actions/undelegate.js~undelegate#deployresult", + "class/src/services/deploys/auction/actions/undelegate.js~Undelegate.html#instance-get-deployResult", + "src/services/deploys/auction/actions/undelegate.js~Undelegate#deployResult", + "member" + ], + [ + "src/services/deploys/auction/actions/withdrawbid.js", + "file/src/services/deploys/auction/actions/withdrawBid.js.html", + "src/services/deploys/auction/actions/withdrawBid.js", + "file" + ], + [ + "src/services/deploys/auction/actions/withdrawbid.js~withdrawbid#constructor", + "class/src/services/deploys/auction/actions/withdrawBid.js~WithdrawBid.html#instance-constructor-constructor", + "src/services/deploys/auction/actions/withdrawBid.js~WithdrawBid#constructor", + "method" + ], + [ + "src/services/deploys/auction/actions/withdrawbid.js~withdrawbid#deployresult", + "class/src/services/deploys/auction/actions/withdrawBid.js~WithdrawBid.html#instance-get-deployResult", + "src/services/deploys/auction/actions/withdrawBid.js~WithdrawBid#deployResult", + "member" + ], + [ + "src/services/deploys/auction/index.js", + "file/src/services/deploys/auction/index.js.html", + "src/services/deploys/auction/index.js", + "file" + ], + [ + "src/services/deploys/deploymanager.js", + "file/src/services/deploys/deployManager.js.html", + "src/services/deploys/deployManager.js", + "file" + ], + [ + "src/services/deploys/deploymanager.js~deploymanager#client", + "class/src/services/deploys/deployManager.js~DeployManager.html#instance-member-client", + "src/services/deploys/deployManager.js~DeployManager#client", + "member" + ], + [ + "src/services/deploys/deploymanager.js~deploymanager#constructor", + "class/src/services/deploys/deployManager.js~DeployManager.html#instance-constructor-constructor", + "src/services/deploys/deployManager.js~DeployManager#constructor", + "method" + ], + [ + "src/services/deploys/deploymanager.js~deploymanager#getdeployresult", + "class/src/services/deploys/deployManager.js~DeployManager.html#instance-method-getDeployResult", + "src/services/deploys/deployManager.js~DeployManager#getDeployResult", + "method" + ], + [ + "src/services/deploys/deploymanager.js~deploymanager#preparesignandsenddeploy", + "class/src/services/deploys/deployManager.js~DeployManager.html#instance-method-prepareSignAndSendDeploy", + "src/services/deploys/deployManager.js~DeployManager#prepareSignAndSendDeploy", + "method" + ], + [ + "src/services/deploys/deploymanager.js~deploymanager#senddeploy", + "class/src/services/deploys/deployManager.js~DeployManager.html#instance-method-sendDeploy", + "src/services/deploys/deployManager.js~DeployManager#sendDeploy", + "method" + ], + [ + "src/services/deploys/index.js", + "file/src/services/deploys/index.js.html", + "src/services/deploys/index.js", + "file" + ], + [ + "src/services/deploys/smartcontract/smartcontractdeployparameters.js", + "file/src/services/deploys/smartContract/smartContractDeployParameters.js.html", + "src/services/deploys/smartContract/smartContractDeployParameters.js", + "file" + ], + [ + "src/services/deploys/smartcontract/smartcontractdeployparameters.js~smartcontractdeployparameters#activekey", + "class/src/services/deploys/smartContract/smartContractDeployParameters.js~SmartContractDeployParameters.html#instance-member-activeKey", + "src/services/deploys/smartContract/smartContractDeployParameters.js~SmartContractDeployParameters#activeKey", + "member" + ], + [ + "src/services/deploys/smartcontract/smartcontractdeployparameters.js~smartcontractdeployparameters#constructor", + "class/src/services/deploys/smartContract/smartContractDeployParameters.js~SmartContractDeployParameters.html#instance-constructor-constructor", + "src/services/deploys/smartContract/smartContractDeployParameters.js~SmartContractDeployParameters#constructor", + "method" + ], + [ + "src/services/deploys/smartcontract/smartcontractdeployparameters.js~smartcontractdeployparameters#deployparams", + "class/src/services/deploys/smartContract/smartContractDeployParameters.js~SmartContractDeployParameters.html#instance-get-deployParams", + "src/services/deploys/smartContract/smartContractDeployParameters.js~SmartContractDeployParameters#deployParams", + "member" + ], + [ + "src/services/deploys/smartcontract/smartcontractdeployparameters.js~smartcontractdeployparameters#deployresult", + "class/src/services/deploys/smartContract/smartContractDeployParameters.js~SmartContractDeployParameters.html#instance-get-deployResult", + "src/services/deploys/smartContract/smartContractDeployParameters.js~SmartContractDeployParameters#deployResult", + "member" + ], + [ + "src/services/deploys/smartcontract/smartcontractdeployparameters.js~smartcontractdeployparameters#fee", + "class/src/services/deploys/smartContract/smartContractDeployParameters.js~SmartContractDeployParameters.html#instance-member-fee", + "src/services/deploys/smartContract/smartContractDeployParameters.js~SmartContractDeployParameters#fee", + "member" + ], + [ + "src/services/deploys/smartcontract/smartcontractdeployparameters.js~smartcontractdeployparameters#network", + "class/src/services/deploys/smartContract/smartContractDeployParameters.js~SmartContractDeployParameters.html#instance-member-network", + "src/services/deploys/smartContract/smartContractDeployParameters.js~SmartContractDeployParameters#network", + "member" + ], + [ + "src/services/deploys/smartcontract/smartcontractdeployparameters.js~smartcontractdeployparameters#payment", + "class/src/services/deploys/smartContract/smartContractDeployParameters.js~SmartContractDeployParameters.html#instance-get-payment", + "src/services/deploys/smartContract/smartContractDeployParameters.js~SmartContractDeployParameters#payment", + "member" + ], + [ + "src/services/deploys/smartcontract/smartcontractdeployparameters.js~smartcontractdeployparameters#session", + "class/src/services/deploys/smartContract/smartContractDeployParameters.js~SmartContractDeployParameters.html#instance-get-session", + "src/services/deploys/smartContract/smartContractDeployParameters.js~SmartContractDeployParameters#session", + "member" + ], + [ + "src/services/deploys/smartcontract/smartcontractdeployparameters.js~smartcontractdeployparameters#smartcontractbuffer", + "class/src/services/deploys/smartContract/smartContractDeployParameters.js~SmartContractDeployParameters.html#instance-member-smartContractBuffer", + "src/services/deploys/smartContract/smartContractDeployParameters.js~SmartContractDeployParameters#smartContractBuffer", + "member" + ], + [ + "src/services/deploys/transfer/transferdeployparameters.js", + "file/src/services/deploys/transfer/TransferDeployParameters.js.html", + "src/services/deploys/transfer/TransferDeployParameters.js", + "file" + ], + [ + "src/services/deploys/transfer/transferdeployparameters.js~transferdeployparameters#activekey", + "class/src/services/deploys/transfer/TransferDeployParameters.js~TransferDeployParameters.html#instance-member-activeKey", + "src/services/deploys/transfer/TransferDeployParameters.js~TransferDeployParameters#activeKey", + "member" + ], + [ + "src/services/deploys/transfer/transferdeployparameters.js~transferdeployparameters#amount", + "class/src/services/deploys/transfer/TransferDeployParameters.js~TransferDeployParameters.html#instance-member-amount", + "src/services/deploys/transfer/TransferDeployParameters.js~TransferDeployParameters#amount", + "member" + ], + [ + "src/services/deploys/transfer/transferdeployparameters.js~transferdeployparameters#constructor", + "class/src/services/deploys/transfer/TransferDeployParameters.js~TransferDeployParameters.html#instance-constructor-constructor", + "src/services/deploys/transfer/TransferDeployParameters.js~TransferDeployParameters#constructor", + "method" + ], + [ + "src/services/deploys/transfer/transferdeployparameters.js~transferdeployparameters#deployparams", + "class/src/services/deploys/transfer/TransferDeployParameters.js~TransferDeployParameters.html#instance-get-deployParams", + "src/services/deploys/transfer/TransferDeployParameters.js~TransferDeployParameters#deployParams", + "member" + ], + [ + "src/services/deploys/transfer/transferdeployparameters.js~transferdeployparameters#deployresult", + "class/src/services/deploys/transfer/TransferDeployParameters.js~TransferDeployParameters.html#instance-get-deployResult", + "src/services/deploys/transfer/TransferDeployParameters.js~TransferDeployParameters#deployResult", + "member" + ], + [ + "src/services/deploys/transfer/transferdeployparameters.js~transferdeployparameters#network", + "class/src/services/deploys/transfer/TransferDeployParameters.js~TransferDeployParameters.html#instance-member-network", + "src/services/deploys/transfer/TransferDeployParameters.js~TransferDeployParameters#network", + "member" + ], + [ + "src/services/deploys/transfer/transferdeployparameters.js~transferdeployparameters#payment", + "class/src/services/deploys/transfer/TransferDeployParameters.js~TransferDeployParameters.html#instance-get-payment", + "src/services/deploys/transfer/TransferDeployParameters.js~TransferDeployParameters#payment", + "member" + ], + [ + "src/services/deploys/transfer/transferdeployparameters.js~transferdeployparameters#session", + "class/src/services/deploys/transfer/TransferDeployParameters.js~TransferDeployParameters.html#instance-get-session", + "src/services/deploys/transfer/TransferDeployParameters.js~TransferDeployParameters#session", + "member" + ], + [ + "src/services/deploys/transfer/transferdeployparameters.js~transferdeployparameters#target", + "class/src/services/deploys/transfer/TransferDeployParameters.js~TransferDeployParameters.html#instance-member-target", + "src/services/deploys/transfer/TransferDeployParameters.js~TransferDeployParameters#target", + "member" + ], + [ + "src/services/deploys/transfer/transferdeployparameters.js~transferdeployparameters#transferid", + "class/src/services/deploys/transfer/TransferDeployParameters.js~TransferDeployParameters.html#instance-member-transferID", + "src/services/deploys/transfer/TransferDeployParameters.js~TransferDeployParameters#transferID", + "member" + ], + [ + "src/services/errors/extendableerror.js", + "file/src/services/errors/extendableError.js.html", + "src/services/errors/extendableError.js", + "file" + ], + [ + "src/services/errors/extendableerror.js~extendableerror#constructor", + "class/src/services/errors/extendableError.js~ExtendableError.html#instance-constructor-constructor", + "src/services/errors/extendableError.js~ExtendableError#constructor", + "method" + ], + [ + "src/services/errors/extendableerror.js~extendableerror#name", + "class/src/services/errors/extendableError.js~ExtendableError.html#instance-member-name", + "src/services/errors/extendableError.js~ExtendableError#name", + "member" + ], + [ + "src/services/errors/extendableerror.js~extendableerror#stack", + "class/src/services/errors/extendableError.js~ExtendableError.html#instance-member-stack", + "src/services/errors/extendableError.js~ExtendableError#stack", + "member" + ], + [ + "src/services/errors/index.js", + "file/src/services/errors/index.js.html", + "src/services/errors/index.js", + "file" + ], + [ + "src/services/errors/insufficientfunds.js", + "file/src/services/errors/insufficientFunds.js.html", + "src/services/errors/insufficientFunds.js", + "file" + ], + [ + "src/services/errors/insufficientfunds.js~insufficientfunds#constructor", + "class/src/services/errors/insufficientFunds.js~InsufficientFunds.html#instance-constructor-constructor", + "src/services/errors/insufficientFunds.js~InsufficientFunds#constructor", + "method" + ], + [ + "src/services/errors/noactivekeyerror.js", + "file/src/services/errors/noActiveKeyError.js.html", + "src/services/errors/noActiveKeyError.js", + "file" + ], + [ + "src/services/errors/noactivekeyerror.js~noactivekeyerror#constructor", + "class/src/services/errors/noActiveKeyError.js~NoActiveKeyError.html#instance-constructor-constructor", + "src/services/errors/noActiveKeyError.js~NoActiveKeyError#constructor", + "method" + ], + [ + "src/services/errors/nostakebalanceerror.js", + "file/src/services/errors/noStakeBalanceError.js.html", + "src/services/errors/noStakeBalanceError.js", + "file" + ], + [ + "src/services/errors/nostakebalanceerror.js~nostakebalanceerror#constructor", + "class/src/services/errors/noStakeBalanceError.js~NoStakeBalanceError.html#instance-constructor-constructor", + "src/services/errors/noStakeBalanceError.js~NoStakeBalanceError#constructor", + "method" + ], + [ + "src/services/errors/novalidatorbalanceerror.js", + "file/src/services/errors/noValidatorBalanceError.js.html", + "src/services/errors/noValidatorBalanceError.js", + "file" + ], + [ + "src/services/errors/novalidatorbalanceerror.js~novalidatorbalanceerror#constructor", + "class/src/services/errors/noValidatorBalanceError.js~NoValidatorBalanceError.html#instance-constructor-constructor", + "src/services/errors/noValidatorBalanceError.js~NoValidatorBalanceError#constructor", + "method" + ], + [ + "src/services/errors/signerror.js", + "file/src/services/errors/signError.js.html", + "src/services/errors/signError.js", + "file" + ], + [ + "src/services/errors/signerror.js~signerror#constructor", + "class/src/services/errors/signError.js~SignError.html#instance-constructor-constructor", + "src/services/errors/signError.js~SignError#constructor", + "method" + ], + [ + "src/services/helpers/currencyutils.js", + "file/src/services/helpers/currencyUtils.js.html", + "src/services/helpers/currencyUtils.js", + "file" + ], + [ + "src/services/helpers/currencyutils.js~currencyutils.convertcaspertomotes", + "class/src/services/helpers/currencyUtils.js~CurrencyUtils.html#static-method-convertCasperToMotes", + "src/services/helpers/currencyUtils.js~CurrencyUtils.convertCasperToMotes", + "method" + ], + [ + "src/services/helpers/currencyutils.js~currencyutils.convertmotestocasper", + "class/src/services/helpers/currencyUtils.js~CurrencyUtils.html#static-method-convertMotesToCasper", + "src/services/helpers/currencyUtils.js~CurrencyUtils.convertMotesToCasper", + "method" + ], + [ + "src/services/helpers/index.js", + "file/src/services/helpers/index.js.html", + "src/services/helpers/index.js", + "file" + ], + [ + "src/services/index.js", + "file/src/services/index.js.html", + "src/services/index.js", + "file" + ], + [ + "src/services/keys/abstractkeymanager.js", + "file/src/services/keys/abstractKeyManager.js.html", + "src/services/keys/abstractKeyManager.js", + "file" + ], + [ + "src/services/keys/abstractkeymanager.js~abstractkeymanager#activekey", + "class/src/services/keys/abstractKeyManager.js~AbstractKeyManager.html#instance-get-activeKey", + "src/services/keys/abstractKeyManager.js~AbstractKeyManager#activeKey", + "member" + ], + [ + "src/services/keys/index.js", + "file/src/services/keys/index.js.html", + "src/services/keys/index.js", + "file" + ], + [ + "src/services/results/addbidresult.js", + "file/src/services/results/addBidResult.js.html", + "src/services/results/addBidResult.js", + "file" + ], + [ + "src/services/results/addbidresult.js~addbidresult#constructor", + "class/src/services/results/addBidResult.js~AddBidResult.html#instance-constructor-constructor", + "src/services/results/addBidResult.js~AddBidResult#constructor", + "method" + ], + [ + "src/services/results/addbidresult.js~addbidresult.getname", + "class/src/services/results/addBidResult.js~AddBidResult.html#static-method-getName", + "src/services/results/addBidResult.js~AddBidResult.getName", + "method" + ], + [ + "src/services/results/delegateresult.js", + "file/src/services/results/delegateResult.js.html", + "src/services/results/delegateResult.js", + "file" + ], + [ + "src/services/results/delegateresult.js~delegateresult#constructor", + "class/src/services/results/delegateResult.js~DelegateResult.html#instance-constructor-constructor", + "src/services/results/delegateResult.js~DelegateResult#constructor", + "method" + ], + [ + "src/services/results/delegateresult.js~delegateresult.getname", + "class/src/services/results/delegateResult.js~DelegateResult.html#static-method-getName", + "src/services/results/delegateResult.js~DelegateResult.getName", + "method" + ], + [ + "src/services/results/deployresult.js", + "file/src/services/results/deployResult.js.html", + "src/services/results/deployResult.js", + "file" + ], + [ + "src/services/results/deployresult.js~deployresult#amount", + "class/src/services/results/deployResult.js~DeployResult.html#instance-member-amount", + "src/services/results/deployResult.js~DeployResult#amount", + "member" + ], + [ + "src/services/results/deployresult.js~deployresult#constructor", + "class/src/services/results/deployResult.js~DeployResult.html#instance-constructor-constructor", + "src/services/results/deployResult.js~DeployResult#constructor", + "method" + ], + [ + "src/services/results/deployresult.js~deployresult#cost", + "class/src/services/results/deployResult.js~DeployResult.html#instance-member-cost", + "src/services/results/deployResult.js~DeployResult#cost", + "member" + ], + [ + "src/services/results/deployresult.js~deployresult#hash", + "class/src/services/results/deployResult.js~DeployResult.html#instance-member-hash", + "src/services/results/deployResult.js~DeployResult#hash", + "member" + ], + [ + "src/services/results/deployresult.js~deployresult#message", + "class/src/services/results/deployResult.js~DeployResult.html#instance-member-message", + "src/services/results/deployResult.js~DeployResult#message", + "member" + ], + [ + "src/services/results/deployresult.js~deployresult#name", + "class/src/services/results/deployResult.js~DeployResult.html#instance-member-name", + "src/services/results/deployResult.js~DeployResult#name", + "member" + ], + [ + "src/services/results/deployresult.js~deployresult#status", + "class/src/services/results/deployResult.js~DeployResult.html#instance-member-status", + "src/services/results/deployResult.js~DeployResult#status", + "member" + ], + [ + "src/services/results/deployresult.js~deployresult.getname", + "class/src/services/results/deployResult.js~DeployResult.html#static-method-getName", + "src/services/results/deployResult.js~DeployResult.getName", + "method" + ], + [ + "src/services/results/index.js", + "file/src/services/results/index.js.html", + "src/services/results/index.js", + "file" + ], + [ + "src/services/results/smartcontractresult.js", + "file/src/services/results/smartContractResult.js.html", + "src/services/results/smartContractResult.js", + "file" + ], + [ + "src/services/results/smartcontractresult.js~smartcontractresult#constructor", + "class/src/services/results/smartContractResult.js~SmartContractResult.html#instance-constructor-constructor", + "src/services/results/smartContractResult.js~SmartContractResult#constructor", + "method" + ], + [ + "src/services/results/smartcontractresult.js~smartcontractresult.getname", + "class/src/services/results/smartContractResult.js~SmartContractResult.html#static-method-getName", + "src/services/results/smartContractResult.js~SmartContractResult.getName", + "method" + ], + [ + "src/services/results/transferresult.js", + "file/src/services/results/transferResult.js.html", + "src/services/results/transferResult.js", + "file" + ], + [ + "src/services/results/transferresult.js~transferresult#constructor", + "class/src/services/results/transferResult.js~TransferResult.html#instance-constructor-constructor", + "src/services/results/transferResult.js~TransferResult#constructor", + "method" + ], + [ + "src/services/results/transferresult.js~transferresult.getname", + "class/src/services/results/transferResult.js~TransferResult.html#static-method-getName", + "src/services/results/transferResult.js~TransferResult.getName", + "method" + ], + [ + "src/services/results/undelegateresult.js", + "file/src/services/results/undelegateResult.js.html", + "src/services/results/undelegateResult.js", + "file" + ], + [ + "src/services/results/undelegateresult.js~undelegateresult#constructor", + "class/src/services/results/undelegateResult.js~UndelegateResult.html#instance-constructor-constructor", + "src/services/results/undelegateResult.js~UndelegateResult#constructor", + "method" + ], + [ + "src/services/results/undelegateresult.js~undelegateresult.getname", + "class/src/services/results/undelegateResult.js~UndelegateResult.html#static-method-getName", + "src/services/results/undelegateResult.js~UndelegateResult.getName", + "method" + ], + [ + "src/services/results/withdrawbidresult.js", + "file/src/services/results/withdrawBidResult.js.html", + "src/services/results/withdrawBidResult.js", + "file" + ], + [ + "src/services/results/withdrawbidresult.js~withdrawbidresult#constructor", + "class/src/services/results/withdrawBidResult.js~WithdrawBidResult.html#instance-constructor-constructor", + "src/services/results/withdrawBidResult.js~WithdrawBidResult#constructor", + "method" + ], + [ + "src/services/results/withdrawbidresult.js~withdrawbidresult.getname", + "class/src/services/results/withdrawBidResult.js~WithdrawBidResult.html#static-method-getName", + "src/services/results/withdrawBidResult.js~WithdrawBidResult.getName", + "method" + ], + [ + "src/services/signers/abstractsigner.js", + "file/src/services/signers/abstractSigner.js.html", + "src/services/signers/abstractSigner.js", + "file" + ], + [ + "src/services/signers/abstractsigner.js~abstractsigner.sign", + "class/src/services/signers/abstractSigner.js~AbstractSigner.html#static-method-sign", + "src/services/signers/abstractSigner.js~AbstractSigner.sign", + "method" + ], + [ + "src/services/signers/abstractsigner.js~deploy", + "typedef/index.html#static-typedef-Deploy", + "src/services/signers/abstractSigner.js~Deploy", + "typedef" + ], + [ + "src/services/signers/caspersigner.js", + "file/src/services/signers/casperSigner.js.html", + "src/services/signers/casperSigner.js", + "file" + ], + [ + "src/services/signers/caspersigner.js~caspersigner.sign", + "class/src/services/signers/casperSigner.js~CasperSigner.html#static-method-sign", + "src/services/signers/casperSigner.js~CasperSigner.sign", + "method" + ], + [ + "src/services/signers/index.js", + "file/src/services/signers/index.js.html", + "src/services/signers/index.js", + "file" + ], + [ + "src/services/signers/localsigner.js", + "file/src/services/signers/localSigner.js.html", + "src/services/signers/localSigner.js", + "file" + ], + [ + "src/services/signers/localsigner.js~localsigner.sign", + "class/src/services/signers/localSigner.js~LocalSigner.html#static-method-sign", + "src/services/signers/localSigner.js~LocalSigner.sign", + "method" + ] +] \ No newline at end of file diff --git a/script/test-summary.js b/script/test-summary.js new file mode 100644 index 0000000..2abad3b --- /dev/null +++ b/script/test-summary.js @@ -0,0 +1,54 @@ +(function(){ + function toggle(ev) { + var button = ev.target; + var parent = ev.target.parentElement; + while(parent) { + if (parent.tagName === 'TR' && parent.classList.contains('test-interface')) break; + parent = parent.parentElement; + } + + if (!parent) return; + + var direction; + if (button.classList.contains('opened')) { + button.classList.remove('opened'); + button.classList.add('closed'); + direction = 'closed'; + } else { + button.classList.remove('closed'); + button.classList.add('opened'); + direction = 'opened'; + } + + var targetDepth = parseInt(parent.dataset.testDepth, 10) + 1; + var nextElement = parent.nextElementSibling; + while (nextElement) { + var depth = parseInt(nextElement.dataset.testDepth, 10); + if (depth >= targetDepth) { + if (direction === 'opened') { + if (depth === targetDepth) nextElement.style.display = ''; + } else if (direction === 'closed') { + nextElement.style.display = 'none'; + var innerButton = nextElement.querySelector('.toggle'); + if (innerButton && innerButton.classList.contains('opened')) { + innerButton.classList.remove('opened'); + innerButton.classList.add('closed'); + } + } + } else { + break; + } + nextElement = nextElement.nextElementSibling; + } + } + + var buttons = document.querySelectorAll('.test-summary tr.test-interface .toggle'); + for (var i = 0; i < buttons.length; i++) { + buttons[i].addEventListener('click', toggle); + } + + var topDescribes = document.querySelectorAll('.test-summary tr[data-test-depth="0"]'); + for (var i = 0; i < topDescribes.length; i++) { + topDescribes[i].style.display = ''; + } +})(); diff --git a/source.html b/source.html new file mode 100644 index 0000000..cf189d3 --- /dev/null +++ b/source.html @@ -0,0 +1,423 @@ + + + + + + Source | casperholderslib + + + + + + + +
    + Home + + Reference + Source + + +
    + + + +

    Source 132/132

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    FileIdentifierDocumentSizeLinesUpdated
    src/index.js--27 byte2021-07-03 23:11:11 (UTC)
    src/services/balance/balance.jsBalance100 %8/82657 byte792021-07-03 23:11:11 (UTC)
    src/services/clients/clientCasper.jsClientCasper100 %4/4520 byte212021-07-03 23:11:11 (UTC)
    src/services/clients/index.js--31 byte2021-07-03 23:11:11 (UTC)
    src/services/deploys/abstractSmartContractDeployParameters.jsAbstractSmartContractDeployParameters100 %6/61346 byte512021-07-03 23:11:11 (UTC)
    src/services/deploys/abstractSmartContractStoredByHashDeployParameters.jsAbstractSmartContractStoredByHashDeployParameters100 %11/112361 byte742021-07-03 23:11:11 (UTC)
    src/services/deploys/auction/actions/addBid.jsAddBid100 %5/51629 byte482021-07-03 23:11:11 (UTC)
    src/services/deploys/auction/actions/delegate.jsDelegate100 %5/51595 byte482021-07-03 23:11:11 (UTC)
    src/services/deploys/auction/actions/index.js--114 byte32021-07-03 23:11:11 (UTC)
    src/services/deploys/auction/actions/undelegate.jsUndelegate100 %5/51639 byte482021-07-03 23:11:11 (UTC)
    src/services/deploys/auction/actions/withdrawBid.jsWithdrawBid100 %5/51498 byte462021-07-03 23:11:11 (UTC)
    src/services/deploys/auction/index.js--26 byte2021-07-03 23:11:11 (UTC)
    src/services/deploys/deployManager.jsDeployManager100 %6/62667 byte742021-07-03 23:11:11 (UTC)
    src/services/deploys/index.js--175 byte32021-07-03 23:11:11 (UTC)
    src/services/deploys/smartContract/smartContractDeployParameters.jsSmartContractDeployParameters100 %10/102399 byte732021-07-03 23:11:11 (UTC)
    src/services/deploys/transfer/TransferDeployParameters.jsTransferDeployParameters100 %12/122516 byte882021-07-03 23:11:11 (UTC)
    src/services/errors/extendableError.jsExtendableError100 %4/4609 byte242021-07-03 23:11:11 (UTC)
    src/services/errors/index.js--183 byte42021-07-03 23:11:11 (UTC)
    src/services/errors/insufficientFunds.jsInsufficientFunds100 %2/2420 byte152021-07-03 23:11:11 (UTC)
    src/services/errors/noActiveKeyError.jsNoActiveKeyError100 %2/2325 byte132021-07-03 23:11:11 (UTC)
    src/services/errors/noStakeBalanceError.jsNoStakeBalanceError100 %2/2307 byte132021-07-03 23:11:11 (UTC)
    src/services/errors/noValidatorBalanceError.jsNoValidatorBalanceError100 %2/2406 byte132021-07-03 23:11:11 (UTC)
    src/services/errors/signError.jsSignError100 %2/2352 byte132021-07-03 23:11:11 (UTC)
    src/services/helpers/currencyUtils.jsCurrencyUtils100 %3/3557 byte252021-07-03 23:11:11 (UTC)
    src/services/helpers/index.js--32 byte2021-07-03 23:11:11 (UTC)
    src/services/index.js--219 byte72021-07-03 23:11:11 (UTC)
    src/services/keys/abstractKeyManager.jsAbstractKeyManager100 %2/2315 byte132021-07-03 23:11:11 (UTC)
    src/services/keys/index.js--71 byte12021-07-03 23:11:11 (UTC)
    src/services/results/addBidResult.jsAddBidResult100 %3/3527 byte232021-07-03 23:11:11 (UTC)
    src/services/results/delegateResult.jsDelegateResult100 %3/3533 byte232021-07-03 23:11:11 (UTC)
    src/services/results/deployResult.jsDeployResult +STATUS_KO +STATUS_OK +STATUS_UNKNOWN100 %12/121145 byte562021-07-03 23:11:11 (UTC)
    src/services/results/index.js--243 byte62021-07-03 23:11:11 (UTC)
    src/services/results/smartContractResult.jsSmartContractResult100 %3/3548 byte222021-07-03 23:11:11 (UTC)
    src/services/results/transferResult.jsTransferResult100 %3/3534 byte232021-07-03 23:11:11 (UTC)
    src/services/results/undelegateResult.jsUndelegateResult100 %3/3539 byte232021-07-03 23:11:11 (UTC)
    src/services/results/withdrawBidResult.jsWithdrawBidResult100 %3/3547 byte232021-07-03 23:11:11 (UTC)
    src/services/signers/abstractSigner.jsAbstractSigner100 %2/2619 byte192021-07-03 23:11:11 (UTC)
    src/services/signers/casperSigner.jsCasperSigner100 %2/21319 byte332021-07-03 23:11:11 (UTC)
    src/services/signers/index.js--62 byte12021-07-03 23:11:11 (UTC)
    src/services/signers/localSigner.jsLocalSigner100 %2/2801 byte242021-07-03 23:11:11 (UTC)
    +
    + + + + + + + + + + + + diff --git a/typedef/index.html b/typedef/index.html new file mode 100644 index 0000000..85b3d18 --- /dev/null +++ b/typedef/index.html @@ -0,0 +1,165 @@ + + + + + + Typedef | casperholderslib + + + + + + + +
    + Home + + Reference + Source + + +
    + + + +

    Typedef

    +
    + + + + + + + + + +
    Static Public Summary
    + public + + + + + +
    +

    + + + + Deploy: import("casper-js-sdk").DeployUtil.Deploy +

    +
    +
    + + + +
    +
    + + +
    +
    +

    Static Public

    + +
    +

    + public + + + + + + Deploy: import("casper-js-sdk").DeployUtil.Deploy + + + + source + +

    + + + + + + + + +
    +
    + + + + + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + + + diff --git a/variable/index.html b/variable/index.html new file mode 100644 index 0000000..363ee47 --- /dev/null +++ b/variable/index.html @@ -0,0 +1,307 @@ + + + + + + Variable | casperholderslib + + + + + + + +
    + Home + + Reference + Source + + +
    + + + +

    Variable

    +
    + + + + + + + + + + + + + + + + + + + +
    Static Public Summary
    + public + + + + + +
    +

    + + + + STATUS_KO: string +

    +
    +
    + + + +
    +
    + + +
    + public + + + + + +
    +

    + + + + STATUS_OK: string +

    +
    +
    + + + +
    +
    + + +
    + public + + + + + +
    +

    + + + + STATUS_UNKNOWN: string +

    +
    +
    + + + +
    +
    + + +
    +
    +

    Static Public

    + +
    +

    + public + + + + + + STATUS_KO: string + + + + source + +

    + + + + + + + + +
    +
    + + + + + + + + + + + + + + + + + +
    +
    +

    + public + + + + + + STATUS_OK: string + + + + source + +

    + + + + + + + + +
    +
    + + + + + + + + + + + + + + + + + +
    +
    +

    + public + + + + + + STATUS_UNKNOWN: string + + + + source + +

    + + + + + + + + +
    +
    + + + + + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + + + From 24cae5d3d43cbc75c1353488858d3974c3538259 Mon Sep 17 00:00:00 2001 From: KillianH Date: Thu, 29 Jul 2021 23:08:24 +0000 Subject: [PATCH 002/127] deploy: 71d2a21e1083c9609db4b3700a1ce898c03834a8 --- .../services/balance/balance.js~Balance.html | 8 +- .../clients/clientCasper.js~ClientCasper.html | 8 +- ...AbstractSmartContractDeployParameters.html | 8 +- ...tContractStoredByHashDeployParameters.html | 8 +- .../auction/actions/addBid.js~AddBid.html | 8 +- .../auction/actions/delegate.js~Delegate.html | 8 +- .../actions/undelegate.js~Undelegate.html | 8 +- .../actions/withdrawBid.js~WithdrawBid.html | 8 +- .../deployManager.js~DeployManager.html | 8 +- ...ters.js~SmartContractDeployParameters.html | 8 +- ...arameters.js~TransferDeployParameters.html | 8 +- .../extendableError.js~ExtendableError.html | 8 +- ...nsufficientFunds.js~InsufficientFunds.html | 8 +- .../noActiveKeyError.js~NoActiveKeyError.html | 8 +- ...keBalanceError.js~NoStakeBalanceError.html | 8 +- ...lanceError.js~NoValidatorBalanceError.html | 8 +- .../errors/signError.js~SignError.html | 8 +- .../currencyUtils.js~CurrencyUtils.html | 8 +- ...tractKeyManager.js~AbstractKeyManager.html | 8 +- .../results/addBidResult.js~AddBidResult.html | 8 +- .../delegateResult.js~DelegateResult.html | 8 +- .../results/deployResult.js~DeployResult.html | 8 +- ...ContractResult.js~SmartContractResult.html | 8 +- .../transferResult.js~TransferResult.html | 8 +- .../undelegateResult.js~UndelegateResult.html | 8 +- ...ithdrawBidResult.js~WithdrawBidResult.html | 8 +- .../abstractSigner.js~AbstractSigner.html | 8 +- .../signers/casperSigner.js~CasperSigner.html | 8 +- .../signers/localSigner.js~LocalSigner.html | 8 +- file/src/index.js.html | 6 +- file/src/services/balance/balance.js.html | 6 +- .../src/services/clients/clientCasper.js.html | 6 +- file/src/services/clients/index.js.html | 6 +- ...tractSmartContractDeployParameters.js.html | 6 +- ...ntractStoredByHashDeployParameters.js.html | 6 +- .../deploys/auction/actions/addBid.js.html | 6 +- .../deploys/auction/actions/delegate.js.html | 6 +- .../deploys/auction/actions/index.js.html | 6 +- .../auction/actions/undelegate.js.html | 6 +- .../auction/actions/withdrawBid.js.html | 6 +- .../services/deploys/auction/index.js.html | 6 +- .../services/deploys/deployManager.js.html | 6 +- file/src/services/deploys/index.js.html | 6 +- .../smartContractDeployParameters.js.html | 6 +- .../transfer/TransferDeployParameters.js.html | 6 +- .../services/errors/extendableError.js.html | 6 +- file/src/services/errors/index.js.html | 6 +- .../services/errors/insufficientFunds.js.html | 6 +- .../services/errors/noActiveKeyError.js.html | 6 +- .../errors/noStakeBalanceError.js.html | 6 +- .../errors/noValidatorBalanceError.js.html | 6 +- file/src/services/errors/signError.js.html | 6 +- .../services/helpers/currencyUtils.js.html | 6 +- file/src/services/helpers/index.js.html | 6 +- file/src/services/index.js.html | 6 +- .../services/keys/abstractKeyManager.js.html | 6 +- file/src/services/keys/index.js.html | 6 +- .../src/services/results/addBidResult.js.html | 6 +- .../services/results/delegateResult.js.html | 6 +- .../src/services/results/deployResult.js.html | 6 +- file/src/services/results/index.js.html | 6 +- .../results/smartContractResult.js.html | 6 +- .../services/results/transferResult.js.html | 6 +- .../services/results/undelegateResult.js.html | 6 +- .../results/withdrawBidResult.js.html | 6 +- .../services/signers/abstractSigner.js.html | 6 +- .../src/services/signers/casperSigner.js.html | 6 +- file/src/services/signers/index.js.html | 6 +- file/src/services/signers/localSigner.js.html | 6 +- identifiers.html | 6 +- image/github.png | Bin 0 -> 4268 bytes index.html | 13 +- index.json | 170 +++++++++--------- script/search_index.js | 128 ++++++------- source.html | 86 ++++----- typedef/index.html | 6 +- variable/index.html | 12 +- 77 files changed, 449 insertions(+), 444 deletions(-) create mode 100644 image/github.png diff --git a/class/src/services/balance/balance.js~Balance.html b/class/src/services/balance/balance.js~Balance.html index e8348ee..5636de0 100644 --- a/class/src/services/balance/balance.js~Balance.html +++ b/class/src/services/balance/balance.js~Balance.html @@ -3,12 +3,12 @@ - Balance | casperholderslib + Balance | @casperholders/core - +
    @@ -24,7 +24,7 @@
      -
      +
      - + public class diff --git a/class/src/services/clients/clientCasper.js~ClientCasper.html b/class/src/services/clients/clientCasper.js~ClientCasper.html index b48f92f..5c644cd 100644 --- a/class/src/services/clients/clientCasper.js~ClientCasper.html +++ b/class/src/services/clients/clientCasper.js~ClientCasper.html @@ -3,12 +3,12 @@ - ClientCasper | casperholderslib + ClientCasper | @casperholders/core - +
      @@ -24,7 +24,7 @@
        - +
        - + public class diff --git a/class/src/services/deploys/abstractSmartContractDeployParameters.js~AbstractSmartContractDeployParameters.html b/class/src/services/deploys/abstractSmartContractDeployParameters.js~AbstractSmartContractDeployParameters.html index 198a403..a711473 100644 --- a/class/src/services/deploys/abstractSmartContractDeployParameters.js~AbstractSmartContractDeployParameters.html +++ b/class/src/services/deploys/abstractSmartContractDeployParameters.js~AbstractSmartContractDeployParameters.html @@ -3,12 +3,12 @@ - AbstractSmartContractDeployParameters | casperholderslib + AbstractSmartContractDeployParameters | @casperholders/core - +
        @@ -24,7 +24,7 @@
          - +
          -
          import {AbstractSmartContractDeployParameters} from 'casperholderslib/src/services/deploys/abstractSmartContractDeployParameters.js'
          +
          import {AbstractSmartContractDeployParameters} from '@casperholders/core/src/services/deploys/abstractSmartContractDeployParameters.js'
          public class diff --git a/class/src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters.html b/class/src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters.html index 5cc0d8a..1692832 100644 --- a/class/src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters.html +++ b/class/src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js~AbstractSmartContractStoredByHashDeployParameters.html @@ -3,12 +3,12 @@ - AbstractSmartContractStoredByHashDeployParameters | casperholderslib + AbstractSmartContractStoredByHashDeployParameters | @casperholders/core - +
          @@ -24,7 +24,7 @@
            - +
            -
            import {AbstractSmartContractStoredByHashDeployParameters} from 'casperholderslib/src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js'
            +
            import {AbstractSmartContractStoredByHashDeployParameters} from '@casperholders/core/src/services/deploys/abstractSmartContractStoredByHashDeployParameters.js'
            public class diff --git a/class/src/services/deploys/auction/actions/addBid.js~AddBid.html b/class/src/services/deploys/auction/actions/addBid.js~AddBid.html index 9ceb5b6..8a2b96b 100644 --- a/class/src/services/deploys/auction/actions/addBid.js~AddBid.html +++ b/class/src/services/deploys/auction/actions/addBid.js~AddBid.html @@ -3,12 +3,12 @@ - AddBid | casperholderslib + AddBid | @casperholders/core - +
            @@ -24,7 +24,7 @@
              - +
              - + public class diff --git a/class/src/services/deploys/auction/actions/delegate.js~Delegate.html b/class/src/services/deploys/auction/actions/delegate.js~Delegate.html index c73c540..b1adc60 100644 --- a/class/src/services/deploys/auction/actions/delegate.js~Delegate.html +++ b/class/src/services/deploys/auction/actions/delegate.js~Delegate.html @@ -3,12 +3,12 @@ - Delegate | casperholderslib + Delegate | @casperholders/core - +
              @@ -24,7 +24,7 @@
                - +
                - + public class diff --git a/class/src/services/deploys/auction/actions/undelegate.js~Undelegate.html b/class/src/services/deploys/auction/actions/undelegate.js~Undelegate.html index 21f365c..51202b8 100644 --- a/class/src/services/deploys/auction/actions/undelegate.js~Undelegate.html +++ b/class/src/services/deploys/auction/actions/undelegate.js~Undelegate.html @@ -3,12 +3,12 @@ - Undelegate | casperholderslib + Undelegate | @casperholders/core - +
                @@ -24,7 +24,7 @@
                  - +
                  - + public class diff --git a/class/src/services/deploys/auction/actions/withdrawBid.js~WithdrawBid.html b/class/src/services/deploys/auction/actions/withdrawBid.js~WithdrawBid.html index a6240c6..00eeaf8 100644 --- a/class/src/services/deploys/auction/actions/withdrawBid.js~WithdrawBid.html +++ b/class/src/services/deploys/auction/actions/withdrawBid.js~WithdrawBid.html @@ -3,12 +3,12 @@ - WithdrawBid | casperholderslib + WithdrawBid | @casperholders/core - +
                  @@ -24,7 +24,7 @@
                    - +
                    - + public class diff --git a/class/src/services/deploys/deployManager.js~DeployManager.html b/class/src/services/deploys/deployManager.js~DeployManager.html index 99122ba..e1af95b 100644 --- a/class/src/services/deploys/deployManager.js~DeployManager.html +++ b/class/src/services/deploys/deployManager.js~DeployManager.html @@ -3,12 +3,12 @@ - DeployManager | casperholderslib + DeployManager | @casperholders/core - +
                    @@ -24,7 +24,7 @@
                      - +
                      - + public class diff --git a/class/src/services/deploys/smartContract/smartContractDeployParameters.js~SmartContractDeployParameters.html b/class/src/services/deploys/smartContract/smartContractDeployParameters.js~SmartContractDeployParameters.html index d032a4c..bd96f5f 100644 --- a/class/src/services/deploys/smartContract/smartContractDeployParameters.js~SmartContractDeployParameters.html +++ b/class/src/services/deploys/smartContract/smartContractDeployParameters.js~SmartContractDeployParameters.html @@ -3,12 +3,12 @@ - SmartContractDeployParameters | casperholderslib + SmartContractDeployParameters | @casperholders/core - +
                      @@ -24,7 +24,7 @@
                        - +
                        - + public class diff --git a/class/src/services/deploys/transfer/TransferDeployParameters.js~TransferDeployParameters.html b/class/src/services/deploys/transfer/TransferDeployParameters.js~TransferDeployParameters.html index 9af513b..91d8f68 100644 --- a/class/src/services/deploys/transfer/TransferDeployParameters.js~TransferDeployParameters.html +++ b/class/src/services/deploys/transfer/TransferDeployParameters.js~TransferDeployParameters.html @@ -3,12 +3,12 @@ - TransferDeployParameters | casperholderslib + TransferDeployParameters | @casperholders/core - +
                        @@ -24,7 +24,7 @@
                          - +
                          - + public class diff --git a/class/src/services/errors/extendableError.js~ExtendableError.html b/class/src/services/errors/extendableError.js~ExtendableError.html index fa51709..b8c419f 100644 --- a/class/src/services/errors/extendableError.js~ExtendableError.html +++ b/class/src/services/errors/extendableError.js~ExtendableError.html @@ -3,12 +3,12 @@ - ExtendableError | casperholderslib + ExtendableError | @casperholders/core - +
                          @@ -24,7 +24,7 @@
                            - +
                            - + public class diff --git a/class/src/services/errors/insufficientFunds.js~InsufficientFunds.html b/class/src/services/errors/insufficientFunds.js~InsufficientFunds.html index 3b980f0..a146545 100644 --- a/class/src/services/errors/insufficientFunds.js~InsufficientFunds.html +++ b/class/src/services/errors/insufficientFunds.js~InsufficientFunds.html @@ -3,12 +3,12 @@ - InsufficientFunds | casperholderslib + InsufficientFunds | @casperholders/core - +
                            @@ -24,7 +24,7 @@
                              - +
                              - + public class diff --git a/class/src/services/errors/noActiveKeyError.js~NoActiveKeyError.html b/class/src/services/errors/noActiveKeyError.js~NoActiveKeyError.html index 7c94e52..0c1d215 100644 --- a/class/src/services/errors/noActiveKeyError.js~NoActiveKeyError.html +++ b/class/src/services/errors/noActiveKeyError.js~NoActiveKeyError.html @@ -3,12 +3,12 @@ - NoActiveKeyError | casperholderslib + NoActiveKeyError | @casperholders/core - +
                              @@ -24,7 +24,7 @@
                                - +
                                - + public class diff --git a/class/src/services/errors/noStakeBalanceError.js~NoStakeBalanceError.html b/class/src/services/errors/noStakeBalanceError.js~NoStakeBalanceError.html index 3e832e2..45cbae5 100644 --- a/class/src/services/errors/noStakeBalanceError.js~NoStakeBalanceError.html +++ b/class/src/services/errors/noStakeBalanceError.js~NoStakeBalanceError.html @@ -3,12 +3,12 @@ - NoStakeBalanceError | casperholderslib + NoStakeBalanceError | @casperholders/core - +
                                @@ -24,7 +24,7 @@
                                  - +
                                  - + public class diff --git a/class/src/services/errors/noValidatorBalanceError.js~NoValidatorBalanceError.html b/class/src/services/errors/noValidatorBalanceError.js~NoValidatorBalanceError.html index 5276fa9..f8133ac 100644 --- a/class/src/services/errors/noValidatorBalanceError.js~NoValidatorBalanceError.html +++ b/class/src/services/errors/noValidatorBalanceError.js~NoValidatorBalanceError.html @@ -3,12 +3,12 @@ - NoValidatorBalanceError | casperholderslib + NoValidatorBalanceError | @casperholders/core - +
                                  @@ -24,7 +24,7 @@
                                    - +
                                    - + public class diff --git a/class/src/services/errors/signError.js~SignError.html b/class/src/services/errors/signError.js~SignError.html index 12a071c..4f6dbe0 100644 --- a/class/src/services/errors/signError.js~SignError.html +++ b/class/src/services/errors/signError.js~SignError.html @@ -3,12 +3,12 @@ - SignError | casperholderslib + SignError | @casperholders/core - +
                                    @@ -24,7 +24,7 @@
                                      - +
                                      - + public class diff --git a/class/src/services/helpers/currencyUtils.js~CurrencyUtils.html b/class/src/services/helpers/currencyUtils.js~CurrencyUtils.html index a4df8b3..7dc192d 100644 --- a/class/src/services/helpers/currencyUtils.js~CurrencyUtils.html +++ b/class/src/services/helpers/currencyUtils.js~CurrencyUtils.html @@ -3,12 +3,12 @@ - CurrencyUtils | casperholderslib + CurrencyUtils | @casperholders/core - +
                                      @@ -24,7 +24,7 @@
                                        - +
                                        - + public class diff --git a/class/src/services/keys/abstractKeyManager.js~AbstractKeyManager.html b/class/src/services/keys/abstractKeyManager.js~AbstractKeyManager.html index 2a2a28c..b85b5e2 100644 --- a/class/src/services/keys/abstractKeyManager.js~AbstractKeyManager.html +++ b/class/src/services/keys/abstractKeyManager.js~AbstractKeyManager.html @@ -3,12 +3,12 @@ - AbstractKeyManager | casperholderslib + AbstractKeyManager | @casperholders/core - +
                                        @@ -24,7 +24,7 @@
                                          - +
                                          - + public class diff --git a/class/src/services/results/addBidResult.js~AddBidResult.html b/class/src/services/results/addBidResult.js~AddBidResult.html index e171530..32164d8 100644 --- a/class/src/services/results/addBidResult.js~AddBidResult.html +++ b/class/src/services/results/addBidResult.js~AddBidResult.html @@ -3,12 +3,12 @@ - AddBidResult | casperholderslib + AddBidResult | @casperholders/core - +
                                          @@ -24,7 +24,7 @@
                                            - +
                                            - + public class diff --git a/class/src/services/results/delegateResult.js~DelegateResult.html b/class/src/services/results/delegateResult.js~DelegateResult.html index a7587e7..2c9ed1d 100644 --- a/class/src/services/results/delegateResult.js~DelegateResult.html +++ b/class/src/services/results/delegateResult.js~DelegateResult.html @@ -3,12 +3,12 @@ - DelegateResult | casperholderslib + DelegateResult | @casperholders/core - +
                                            @@ -24,7 +24,7 @@
                                              - +
                                              - + public class diff --git a/class/src/services/results/deployResult.js~DeployResult.html b/class/src/services/results/deployResult.js~DeployResult.html index 8dbc545..d2d669c 100644 --- a/class/src/services/results/deployResult.js~DeployResult.html +++ b/class/src/services/results/deployResult.js~DeployResult.html @@ -3,12 +3,12 @@ - DeployResult | casperholderslib + DeployResult | @casperholders/core - +
                                              @@ -24,7 +24,7 @@
                                                - +
                                                - + public class diff --git a/class/src/services/results/smartContractResult.js~SmartContractResult.html b/class/src/services/results/smartContractResult.js~SmartContractResult.html index c33bca0..49858e0 100644 --- a/class/src/services/results/smartContractResult.js~SmartContractResult.html +++ b/class/src/services/results/smartContractResult.js~SmartContractResult.html @@ -3,12 +3,12 @@ - SmartContractResult | casperholderslib + SmartContractResult | @casperholders/core - +
                                                @@ -24,7 +24,7 @@
                                                  - +
                                                  - + public class diff --git a/class/src/services/results/transferResult.js~TransferResult.html b/class/src/services/results/transferResult.js~TransferResult.html index b62539c..7924744 100644 --- a/class/src/services/results/transferResult.js~TransferResult.html +++ b/class/src/services/results/transferResult.js~TransferResult.html @@ -3,12 +3,12 @@ - TransferResult | casperholderslib + TransferResult | @casperholders/core - +
                                                  @@ -24,7 +24,7 @@
                                                    - +
                                                    - + public class diff --git a/class/src/services/results/undelegateResult.js~UndelegateResult.html b/class/src/services/results/undelegateResult.js~UndelegateResult.html index 36ed521..ff55c73 100644 --- a/class/src/services/results/undelegateResult.js~UndelegateResult.html +++ b/class/src/services/results/undelegateResult.js~UndelegateResult.html @@ -3,12 +3,12 @@ - UndelegateResult | casperholderslib + UndelegateResult | @casperholders/core - +
                                                    @@ -24,7 +24,7 @@
                                                      - +
                                                      - + public class diff --git a/class/src/services/results/withdrawBidResult.js~WithdrawBidResult.html b/class/src/services/results/withdrawBidResult.js~WithdrawBidResult.html index ef6083e..00df271 100644 --- a/class/src/services/results/withdrawBidResult.js~WithdrawBidResult.html +++ b/class/src/services/results/withdrawBidResult.js~WithdrawBidResult.html @@ -3,12 +3,12 @@ - WithdrawBidResult | casperholderslib + WithdrawBidResult | @casperholders/core - +
                                                      @@ -24,7 +24,7 @@
                                                        - +
                                                        - + public class diff --git a/class/src/services/signers/abstractSigner.js~AbstractSigner.html b/class/src/services/signers/abstractSigner.js~AbstractSigner.html index 9cf528c..c1bb910 100644 --- a/class/src/services/signers/abstractSigner.js~AbstractSigner.html +++ b/class/src/services/signers/abstractSigner.js~AbstractSigner.html @@ -3,12 +3,12 @@ - AbstractSigner | casperholderslib + AbstractSigner | @casperholders/core - +
                                                        @@ -24,7 +24,7 @@
                                                          - +
                                                          - + public class diff --git a/class/src/services/signers/casperSigner.js~CasperSigner.html b/class/src/services/signers/casperSigner.js~CasperSigner.html index b515b70..2ec7d50 100644 --- a/class/src/services/signers/casperSigner.js~CasperSigner.html +++ b/class/src/services/signers/casperSigner.js~CasperSigner.html @@ -3,12 +3,12 @@ - CasperSigner | casperholderslib + CasperSigner | @casperholders/core - +
                                                          @@ -24,7 +24,7 @@
                                                            - +
                                                            - + public class diff --git a/class/src/services/signers/localSigner.js~LocalSigner.html b/class/src/services/signers/localSigner.js~LocalSigner.html index 4924114..04f9ded 100644 --- a/class/src/services/signers/localSigner.js~LocalSigner.html +++ b/class/src/services/signers/localSigner.js~LocalSigner.html @@ -3,12 +3,12 @@ - LocalSigner | casperholderslib + LocalSigner | @casperholders/core - +
                                                            @@ -24,7 +24,7 @@
                                                              - +
                                                              - + public class diff --git a/file/src/index.js.html b/file/src/index.js.html index 5cee2f3..0a22407 100644 --- a/file/src/index.js.html +++ b/file/src/index.js.html @@ -3,12 +3,12 @@ - src/index.js | casperholderslib + src/index.js | @casperholders/core - +
                                                              @@ -24,7 +24,7 @@
                                                                - +