@aeternity/aepp-sdk 12.1.3 → 13.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/aesophia_cli +0 -0
- package/dist/aepp-sdk.browser-script.js +1 -1
- package/dist/aepp-sdk.browser-script.js.map +1 -1
- package/dist/aepp-sdk.browser.js +1 -1
- package/dist/aepp-sdk.browser.js.map +1 -1
- package/dist/aepp-sdk.js +12031 -11231
- package/dist/aepp-sdk.js.map +1 -1
- package/es/AeSdk.d.ts +7 -3
- package/es/AeSdk.mjs +17 -22
- package/es/AeSdk.mjs.map +1 -1
- package/es/AeSdkAepp.d.ts +6 -5
- package/es/AeSdkAepp.mjs +7 -30
- package/es/AeSdkAepp.mjs.map +1 -1
- package/es/AeSdkBase.d.ts +18 -140
- package/es/AeSdkBase.mjs +30 -184
- package/es/AeSdkBase.mjs.map +1 -1
- package/es/AeSdkMethods.d.ts +123 -0
- package/es/AeSdkMethods.mjs +122 -0
- package/es/AeSdkMethods.mjs.map +1 -0
- package/es/AeSdkWallet.d.ts +7 -21
- package/es/AeSdkWallet.mjs +38 -86
- package/es/AeSdkWallet.mjs.map +1 -1
- package/es/Node.d.ts +11 -15
- package/es/Node.mjs +35 -48
- package/es/Node.mjs.map +1 -1
- package/es/account/Base.d.ts +24 -40
- package/es/account/Base.mjs +1 -101
- package/es/account/Base.mjs.map +1 -1
- package/es/account/Generalized.d.ts +16 -0
- package/es/account/Generalized.mjs +113 -0
- package/es/account/Generalized.mjs.map +1 -0
- package/es/account/Ledger.d.ts +28 -0
- package/es/account/Ledger.mjs +102 -0
- package/es/account/Ledger.mjs.map +1 -0
- package/es/account/LedgerFactory.d.ts +39 -0
- package/es/account/LedgerFactory.mjs +81 -0
- package/es/account/LedgerFactory.mjs.map +1 -0
- package/es/account/Memory.d.ts +13 -17
- package/es/account/Memory.mjs +43 -64
- package/es/account/Memory.mjs.map +1 -1
- package/es/account/Rpc.d.ts +6 -8
- package/es/account/Rpc.mjs +14 -32
- package/es/account/Rpc.mjs.map +1 -1
- package/es/aens.d.ts +4 -4
- package/es/aens.mjs +46 -41
- package/es/aens.mjs.map +1 -1
- package/es/aepp-wallet-communication/connection/Browser.mjs +9 -13
- package/es/aepp-wallet-communication/connection/Browser.mjs.map +1 -1
- package/es/aepp-wallet-communication/connection/BrowserRuntime.d.ts +1 -0
- package/es/aepp-wallet-communication/connection/BrowserRuntime.mjs +22 -11
- package/es/aepp-wallet-communication/connection/BrowserRuntime.mjs.map +1 -1
- package/es/aepp-wallet-communication/connection/BrowserWindowMessage.d.ts +1 -1
- package/es/aepp-wallet-communication/connection/BrowserWindowMessage.mjs +0 -31
- package/es/aepp-wallet-communication/connection/BrowserWindowMessage.mjs.map +1 -1
- package/es/aepp-wallet-communication/connection-proxy.mjs.map +1 -1
- package/es/aepp-wallet-communication/rpc/RpcClient.d.ts +3 -3
- package/es/aepp-wallet-communication/rpc/RpcClient.mjs +5 -42
- package/es/aepp-wallet-communication/rpc/RpcClient.mjs.map +1 -1
- package/es/aepp-wallet-communication/rpc/types.d.ts +7 -1
- package/es/aepp-wallet-communication/rpc/types.mjs.map +1 -1
- package/es/aepp-wallet-communication/schema.mjs +14 -68
- package/es/aepp-wallet-communication/schema.mjs.map +1 -1
- package/es/aepp-wallet-communication/wallet-detector.mjs +0 -3
- package/es/aepp-wallet-communication/wallet-detector.mjs.map +1 -1
- package/es/apis/compiler/compiler.d.ts +23 -29
- package/es/apis/compiler/compiler.mjs +128 -189
- package/es/apis/compiler/compiler.mjs.map +1 -1
- package/es/apis/compiler/index.mjs.map +1 -1
- package/es/apis/compiler/models/index.d.ts +82 -135
- package/es/apis/compiler/models/index.mjs +1 -47
- package/es/apis/compiler/models/index.mjs.map +1 -1
- package/es/apis/compiler/models/mappers.d.ts +8 -8
- package/es/apis/compiler/models/mappers.mjs +165 -183
- package/es/apis/compiler/models/mappers.mjs.map +1 -1
- package/es/apis/compiler/models/parameters.d.ts +0 -1
- package/es/apis/compiler/models/parameters.mjs +5 -9
- package/es/apis/compiler/models/parameters.mjs.map +1 -1
- package/es/apis/node/index.mjs.map +1 -1
- package/es/apis/node/models/index.d.ts +48 -48
- package/es/apis/node/models/mappers.mjs +12 -6
- package/es/apis/node/models/mappers.mjs.map +1 -1
- package/es/apis/node/models/parameters.mjs.map +1 -1
- package/es/apis/node/node.mjs +43 -84
- package/es/apis/node/node.mjs.map +1 -1
- package/es/chain.d.ts +10 -2
- package/es/chain.mjs +37 -59
- package/es/chain.mjs.map +1 -1
- package/es/channel/Base.d.ts +200 -0
- package/es/channel/Base.mjs +293 -0
- package/es/channel/Base.mjs.map +1 -0
- package/es/channel/Contract.d.ts +248 -0
- package/es/channel/Contract.mjs +420 -0
- package/es/channel/Contract.mjs.map +1 -0
- package/es/channel/Spend.d.ts +219 -0
- package/es/channel/Spend.mjs +385 -0
- package/es/channel/Spend.mjs.map +1 -0
- package/es/channel/handlers.d.ts +8 -21
- package/es/channel/handlers.mjs +151 -899
- package/es/channel/handlers.mjs.map +1 -1
- package/es/channel/internal.d.ts +27 -21
- package/es/channel/internal.mjs +101 -191
- package/es/channel/internal.mjs.map +1 -1
- package/es/contract/Contract.d.ts +210 -0
- package/es/contract/Contract.mjs +551 -0
- package/es/contract/Contract.mjs.map +1 -0
- package/es/contract/compiler/Base.d.ts +81 -0
- package/es/contract/compiler/Base.mjs +5 -0
- package/es/contract/compiler/Base.mjs.map +1 -0
- package/es/contract/compiler/Cli.d.ts +23 -0
- package/es/contract/compiler/Cli.mjs +155 -0
- package/es/contract/compiler/Cli.mjs.map +1 -0
- package/es/contract/compiler/Http.d.ts +32 -0
- package/es/contract/compiler/Http.mjs +118 -0
- package/es/contract/compiler/Http.mjs.map +1 -0
- package/es/contract/compiler/HttpNode.d.ts +17 -0
- package/es/contract/compiler/HttpNode.mjs +26 -0
- package/es/contract/compiler/HttpNode.mjs.map +1 -0
- package/es/contract/compiler/getFileSystem.d.ts +6 -0
- package/es/contract/compiler/getFileSystem.mjs +40 -0
- package/es/contract/compiler/getFileSystem.mjs.map +1 -0
- package/es/contract/ga.d.ts +9 -34
- package/es/contract/ga.mjs +29 -112
- package/es/contract/ga.mjs.map +1 -1
- package/es/index-browser.d.ts +39 -0
- package/es/index-browser.mjs +55 -0
- package/es/index-browser.mjs.map +1 -0
- package/es/index.d.ts +4 -35
- package/es/index.mjs +4 -51
- package/es/index.mjs.map +1 -1
- package/es/oracle.d.ts +5 -5
- package/es/oracle.mjs +34 -40
- package/es/oracle.mjs.map +1 -1
- package/es/spend.d.ts +3 -3
- package/es/spend.mjs +18 -23
- package/es/spend.mjs.map +1 -1
- package/es/tx/builder/constants.d.ts +30 -2
- package/es/tx/builder/constants.mjs +43 -14
- package/es/tx/builder/constants.mjs.map +1 -1
- package/es/tx/builder/field-types/abi-version.d.ts +10 -0
- package/es/tx/builder/field-types/abi-version.mjs +20 -0
- package/es/tx/builder/field-types/abi-version.mjs.map +1 -0
- package/es/tx/builder/field-types/address.d.ts +14 -0
- package/es/tx/builder/field-types/address.mjs +51 -0
- package/es/tx/builder/field-types/address.mjs.map +1 -0
- package/es/tx/builder/field-types/array.d.ts +7 -0
- package/es/tx/builder/field-types/array.mjs +11 -0
- package/es/tx/builder/field-types/array.mjs.map +1 -0
- package/es/tx/builder/field-types/boolean.d.ts +6 -0
- package/es/tx/builder/field-types/boolean.mjs +13 -0
- package/es/tx/builder/field-types/boolean.mjs.map +1 -0
- package/es/tx/builder/field-types/coin-amount.d.ts +2 -3
- package/es/tx/builder/field-types/coin-amount.mjs +4 -12
- package/es/tx/builder/field-types/coin-amount.mjs.map +1 -1
- package/es/tx/builder/field-types/ct-version.d.ts +30 -0
- package/es/tx/builder/field-types/ct-version.mjs +48 -0
- package/es/tx/builder/field-types/ct-version.mjs.map +1 -0
- package/es/tx/builder/field-types/deposit.d.ts +1 -2
- package/es/tx/builder/field-types/deposit.mjs +2 -4
- package/es/tx/builder/field-types/deposit.mjs.map +1 -1
- package/es/tx/builder/field-types/encoded.d.ts +6 -0
- package/es/tx/builder/field-types/encoded.mjs +21 -0
- package/es/tx/builder/field-types/encoded.mjs.map +1 -0
- package/es/tx/builder/field-types/entry.d.ts +11 -0
- package/es/tx/builder/field-types/entry.mjs +31 -0
- package/es/tx/builder/field-types/entry.mjs.map +1 -0
- package/es/tx/builder/field-types/enumeration.d.ts +7 -0
- package/es/tx/builder/field-types/enumeration.mjs +30 -0
- package/es/tx/builder/field-types/enumeration.mjs.map +1 -0
- package/es/tx/builder/field-types/fee.d.ts +10 -15
- package/es/tx/builder/field-types/fee.mjs +31 -43
- package/es/tx/builder/field-types/fee.mjs.map +1 -1
- package/es/tx/builder/field-types/field.mjs +0 -2
- package/es/tx/builder/field-types/field.mjs.map +1 -1
- package/es/tx/builder/field-types/gas-limit.d.ts +5 -2
- package/es/tx/builder/field-types/gas-limit.mjs +12 -14
- package/es/tx/builder/field-types/gas-limit.mjs.map +1 -1
- package/es/tx/builder/field-types/gas-price.d.ts +1 -2
- package/es/tx/builder/field-types/gas-price.mjs +3 -7
- package/es/tx/builder/field-types/gas-price.mjs.map +1 -1
- package/es/tx/builder/field-types/index.d.ts +80 -30
- package/es/tx/builder/field-types/index.mjs +34 -9
- package/es/tx/builder/field-types/index.mjs.map +1 -1
- package/es/tx/builder/field-types/mptree.d.ts +37 -0
- package/es/tx/builder/field-types/mptree.mjs +268 -0
- package/es/tx/builder/field-types/mptree.mjs.map +1 -0
- package/es/tx/builder/field-types/name-fee.d.ts +1 -3
- package/es/tx/builder/field-types/name-fee.mjs +3 -5
- package/es/tx/builder/field-types/name-fee.mjs.map +1 -1
- package/es/tx/builder/field-types/name-id.d.ts +1 -4
- package/es/tx/builder/field-types/name-id.mjs +5 -10
- package/es/tx/builder/field-types/name-id.mjs.map +1 -1
- package/es/tx/builder/field-types/name.mjs +0 -2
- package/es/tx/builder/field-types/name.mjs.map +1 -1
- package/es/tx/builder/field-types/pointers.d.ts +23 -0
- package/es/tx/builder/field-types/pointers.mjs +36 -0
- package/es/tx/builder/field-types/pointers.mjs.map +1 -0
- package/es/tx/builder/field-types/raw.d.ts +6 -0
- package/es/tx/builder/field-types/raw.mjs +13 -0
- package/es/tx/builder/field-types/raw.mjs.map +1 -0
- package/es/tx/builder/field-types/short-u-int-const.d.ts +5 -0
- package/es/tx/builder/field-types/short-u-int-const.mjs +16 -0
- package/es/tx/builder/field-types/short-u-int-const.mjs.map +1 -0
- package/es/tx/builder/field-types/short-u-int.mjs +0 -2
- package/es/tx/builder/field-types/short-u-int.mjs.map +1 -1
- package/es/tx/builder/field-types/string.d.ts +6 -0
- package/es/tx/builder/field-types/string.mjs +10 -0
- package/es/tx/builder/field-types/string.mjs.map +1 -0
- package/es/tx/builder/field-types/u-int.d.ts +1 -2
- package/es/tx/builder/field-types/u-int.mjs +3 -4
- package/es/tx/builder/field-types/u-int.mjs.map +1 -1
- package/es/tx/builder/helpers.d.ts +2 -32
- package/es/tx/builder/helpers.mjs +19 -71
- package/es/tx/builder/helpers.mjs.map +1 -1
- package/es/tx/builder/index.d.ts +11 -49
- package/es/tx/builder/index.mjs +57 -337
- package/es/tx/builder/index.mjs.map +1 -1
- package/es/tx/builder/schema.d.ts +2367 -667
- package/es/tx/builder/schema.mjs +70 -145
- package/es/tx/builder/schema.mjs.map +1 -1
- package/es/tx/index.d.ts +4 -49
- package/es/tx/index.mjs +38 -112
- package/es/tx/index.mjs.map +1 -1
- package/es/tx/validator.d.ts +4 -6
- package/es/tx/validator.mjs +104 -90
- package/es/tx/validator.mjs.map +1 -1
- package/es/typings/{@aeternity__argon2-browser → @aeternity__aepp-calldata}/index.d.mjs +0 -0
- package/es/typings/@aeternity__aepp-calldata/index.d.mjs.map +1 -0
- package/es/utils/amount-formatter.mjs +4 -10
- package/es/utils/amount-formatter.mjs.map +1 -1
- package/es/utils/autorest.d.ts +1 -0
- package/es/utils/autorest.mjs +17 -19
- package/es/utils/autorest.mjs.map +1 -1
- package/es/utils/bignumber.mjs +4 -7
- package/es/utils/bignumber.mjs.map +1 -1
- package/es/utils/bytes.d.ts +0 -17
- package/es/utils/bytes.mjs +6 -35
- package/es/utils/bytes.mjs.map +1 -1
- package/es/utils/crypto.d.ts +15 -8
- package/es/utils/crypto.mjs +40 -40
- package/es/utils/crypto.mjs.map +1 -1
- package/es/utils/encoder-types.d.ts +28 -28
- package/es/utils/encoder-types.mjs +0 -1
- package/es/utils/encoder-types.mjs.map +1 -1
- package/es/utils/encoder.d.ts +0 -1
- package/es/utils/encoder.mjs +7 -15
- package/es/utils/encoder.mjs.map +1 -1
- package/es/utils/errors.d.ts +15 -14
- package/es/utils/errors.mjs +86 -172
- package/es/utils/errors.mjs.map +1 -1
- package/es/utils/hd-wallet.d.ts +27 -19
- package/es/utils/hd-wallet.mjs +42 -26
- package/es/utils/hd-wallet.mjs.map +1 -1
- package/es/utils/json-big.mjs +0 -8
- package/es/utils/json-big.mjs.map +1 -1
- package/es/utils/keystore.d.ts +2 -0
- package/es/utils/keystore.mjs +37 -36
- package/es/utils/keystore.mjs.map +1 -1
- package/es/utils/other.d.ts +4 -2
- package/es/utils/other.mjs +11 -7
- package/es/utils/other.mjs.map +1 -1
- package/es/utils/semver-satisfies.mjs +0 -3
- package/es/utils/semver-satisfies.mjs.map +1 -1
- package/es/utils/string.d.ts +0 -12
- package/es/utils/string.mjs +1 -21
- package/es/utils/string.mjs.map +1 -1
- package/package.json +98 -51
- package/src/AeSdk.ts +15 -11
- package/src/AeSdkAepp.ts +9 -7
- package/src/AeSdkBase.ts +31 -202
- package/src/AeSdkMethods.ts +169 -0
- package/src/AeSdkWallet.ts +16 -47
- package/src/Node.ts +17 -18
- package/src/account/Base.ts +29 -75
- package/src/account/Generalized.ts +98 -0
- package/src/account/Ledger.ts +131 -0
- package/src/account/LedgerFactory.ts +86 -0
- package/src/account/Memory.ts +46 -60
- package/src/account/Rpc.ts +17 -26
- package/src/aens.ts +13 -11
- package/src/aepp-wallet-communication/connection/BrowserRuntime.ts +21 -9
- package/src/aepp-wallet-communication/connection/BrowserWindowMessage.ts +3 -3
- package/src/aepp-wallet-communication/rpc/RpcClient.ts +4 -4
- package/src/aepp-wallet-communication/rpc/types.ts +11 -1
- package/src/aepp-wallet-communication/schema.ts +18 -18
- package/src/apis/compiler/code-model-v4.yaml +681 -888
- package/src/apis/compiler/compiler.ts +113 -154
- package/src/apis/compiler/models/index.ts +80 -140
- package/src/apis/compiler/models/mappers.ts +165 -183
- package/src/apis/compiler/models/parameters.ts +6 -12
- package/src/chain.ts +11 -6
- package/src/channel/Base.ts +335 -0
- package/src/channel/Contract.ts +488 -0
- package/src/channel/Spend.ts +408 -0
- package/src/channel/handlers.ts +164 -582
- package/src/channel/internal.ts +114 -143
- package/src/contract/Contract.ts +610 -0
- package/src/contract/compiler/Base.ts +94 -0
- package/src/contract/compiler/Cli.ts +134 -0
- package/src/contract/compiler/Http.ts +124 -0
- package/src/contract/compiler/HttpNode.ts +26 -0
- package/src/contract/compiler/getFileSystem.ts +42 -0
- package/src/contract/ga.ts +23 -106
- package/src/index-browser.ts +58 -0
- package/src/index.ts +4 -55
- package/src/oracle.ts +8 -8
- package/src/spend.ts +6 -14
- package/src/tx/builder/constants.ts +33 -3
- package/src/tx/builder/field-types/abi-version.ts +21 -0
- package/src/tx/builder/field-types/address.ts +62 -0
- package/src/tx/builder/field-types/array.ts +19 -0
- package/src/tx/builder/field-types/boolean.ts +9 -0
- package/src/tx/builder/field-types/coin-amount.ts +4 -9
- package/src/tx/builder/field-types/ct-version.ts +50 -0
- package/src/tx/builder/field-types/deposit.ts +1 -1
- package/src/tx/builder/field-types/encoded.ts +27 -0
- package/src/tx/builder/field-types/entry.ts +31 -0
- package/src/tx/builder/field-types/enumeration.ts +32 -0
- package/src/tx/builder/field-types/fee.ts +39 -21
- package/src/tx/builder/field-types/gas-limit.ts +13 -8
- package/src/tx/builder/field-types/gas-price.ts +0 -2
- package/src/tx/builder/field-types/index.ts +54 -15
- package/src/tx/builder/field-types/mptree.ts +242 -0
- package/src/tx/builder/field-types/name-fee.ts +2 -3
- package/src/tx/builder/field-types/name-id.ts +7 -10
- package/src/tx/builder/field-types/pointers.ts +41 -0
- package/src/tx/builder/field-types/raw.ts +9 -0
- package/src/tx/builder/field-types/short-u-int-const.ts +20 -0
- package/src/tx/builder/field-types/string.ts +11 -0
- package/src/tx/builder/field-types/u-int.ts +4 -5
- package/src/tx/builder/helpers.ts +10 -60
- package/src/tx/builder/index.ts +65 -308
- package/src/tx/builder/schema.ts +280 -341
- package/src/tx/index.ts +40 -103
- package/src/tx/validator.ts +91 -96
- package/src/typings/@aeternity__aepp-calldata/index.d.ts +20 -0
- package/src/utils/autorest.ts +16 -1
- package/src/utils/bytes.ts +6 -34
- package/src/utils/crypto.ts +23 -16
- package/src/utils/encoder.ts +0 -1
- package/src/utils/errors.ts +22 -25
- package/src/utils/hd-wallet.ts +30 -9
- package/src/utils/keystore.ts +24 -21
- package/src/utils/other.ts +16 -1
- package/src/utils/string.ts +0 -20
- package/types-legacy/ts4.2/AeSdk.d.ts +41 -0
- package/types-legacy/ts4.2/AeSdkAepp.d.ts +71 -0
- package/types-legacy/ts4.2/AeSdkBase.d.ts +91 -0
- package/types-legacy/ts4.2/AeSdkMethods.d.ts +140 -0
- package/types-legacy/ts4.2/AeSdkWallet.d.ts +90 -0
- package/types-legacy/ts4.2/Node.d.ts +78 -0
- package/types-legacy/ts4.2/account/Base.d.ts +52 -0
- package/types-legacy/ts4.2/account/Generalized.d.ts +16 -0
- package/types-legacy/ts4.2/account/Ledger.d.ts +28 -0
- package/types-legacy/ts4.2/account/LedgerFactory.d.ts +39 -0
- package/types-legacy/ts4.2/account/Memory.d.ts +22 -0
- package/types-legacy/ts4.2/account/Rpc.d.ts +25 -0
- package/types-legacy/ts4.2/aens.d.ts +222 -0
- package/types-legacy/ts4.2/aepp-wallet-communication/connection/Browser.d.ts +33 -0
- package/types-legacy/ts4.2/aepp-wallet-communication/connection/BrowserRuntime.d.ts +19 -0
- package/types-legacy/ts4.2/aepp-wallet-communication/connection/BrowserWindowMessage.d.ts +36 -0
- package/types-legacy/ts4.2/aepp-wallet-communication/connection-proxy.d.ts +11 -0
- package/types-legacy/ts4.2/aepp-wallet-communication/rpc/RpcClient.d.ts +34 -0
- package/types-legacy/ts4.2/aepp-wallet-communication/rpc/types.d.ts +83 -0
- package/types-legacy/ts4.2/aepp-wallet-communication/schema.d.ts +133 -0
- package/types-legacy/ts4.2/aepp-wallet-communication/wallet-detector.d.ts +25 -0
- package/types-legacy/ts4.2/apis/compiler/compiler.d.ts +86 -0
- package/types-legacy/ts4.2/apis/compiler/index.d.ts +2 -0
- package/types-legacy/ts4.2/apis/compiler/models/index.d.ts +195 -0
- package/types-legacy/ts4.2/apis/compiler/models/mappers.d.ts +23 -0
- package/types-legacy/ts4.2/apis/compiler/models/parameters.d.ts +12 -0
- package/types-legacy/ts4.2/apis/node/index.d.ts +2 -0
- package/types-legacy/ts4.2/apis/node/models/index.d.ts +1065 -0
- package/types-legacy/ts4.2/apis/node/models/mappers.d.ts +95 -0
- package/types-legacy/ts4.2/apis/node/models/parameters.d.ts +17 -0
- package/types-legacy/ts4.2/apis/node/node.d.ts +215 -0
- package/types-legacy/ts4.2/chain.d.ts +256 -0
- package/types-legacy/ts4.2/channel/Base.d.ts +199 -0
- package/types-legacy/ts4.2/channel/Contract.d.ts +248 -0
- package/types-legacy/ts4.2/channel/Spend.d.ts +219 -0
- package/types-legacy/ts4.2/channel/handlers.d.ts +21 -0
- package/types-legacy/ts4.2/channel/internal.d.ts +107 -0
- package/types-legacy/ts4.2/contract/Contract.d.ts +212 -0
- package/types-legacy/ts4.2/contract/compiler/Base.d.ts +81 -0
- package/types-legacy/ts4.2/contract/compiler/Cli.d.ts +23 -0
- package/types-legacy/ts4.2/contract/compiler/Http.d.ts +32 -0
- package/types-legacy/ts4.2/contract/compiler/HttpNode.d.ts +17 -0
- package/types-legacy/ts4.2/contract/compiler/getFileSystem.d.ts +6 -0
- package/types-legacy/ts4.2/contract/ga.d.ts +44 -0
- package/types-legacy/ts4.2/globals.d.ts +16 -0
- package/types-legacy/ts4.2/index-browser.d.ts +39 -0
- package/types-legacy/ts4.2/index.d.ts +5 -0
- package/types-legacy/ts4.2/oracle.d.ts +161 -0
- package/types-legacy/ts4.2/spend.d.ts +62 -0
- package/types-legacy/ts4.2/tx/builder/constants.d.ts +98 -0
- package/types-legacy/ts4.2/tx/builder/field-types/abi-version.d.ts +10 -0
- package/types-legacy/ts4.2/tx/builder/field-types/address.d.ts +21 -0
- package/types-legacy/ts4.2/tx/builder/field-types/array.d.ts +7 -0
- package/types-legacy/ts4.2/tx/builder/field-types/boolean.d.ts +6 -0
- package/types-legacy/ts4.2/tx/builder/field-types/coin-amount.d.ts +12 -0
- package/types-legacy/ts4.2/tx/builder/field-types/ct-version.d.ts +42 -0
- package/types-legacy/ts4.2/tx/builder/field-types/deposit.d.ts +14 -0
- package/types-legacy/ts4.2/tx/builder/field-types/encoded.d.ts +6 -0
- package/types-legacy/ts4.2/tx/builder/field-types/entry.d.ts +11 -0
- package/types-legacy/ts4.2/tx/builder/field-types/enumeration.d.ts +7 -0
- package/types-legacy/ts4.2/tx/builder/field-types/fee.d.ts +20 -0
- package/types-legacy/ts4.2/tx/builder/field-types/field.d.ts +6 -0
- package/types-legacy/ts4.2/tx/builder/field-types/gas-limit.d.ts +15 -0
- package/types-legacy/ts4.2/tx/builder/field-types/gas-price.d.ts +7 -0
- package/types-legacy/ts4.2/tx/builder/field-types/index.d.ts +129 -0
- package/types-legacy/ts4.2/tx/builder/field-types/mptree.d.ts +43 -0
- package/types-legacy/ts4.2/tx/builder/field-types/name-fee.d.ts +18 -0
- package/types-legacy/ts4.2/tx/builder/field-types/name-id.d.ts +11 -0
- package/types-legacy/ts4.2/tx/builder/field-types/name.d.ts +13 -0
- package/types-legacy/ts4.2/tx/builder/field-types/pointers.d.ts +26 -0
- package/types-legacy/ts4.2/tx/builder/field-types/raw.d.ts +6 -0
- package/types-legacy/ts4.2/tx/builder/field-types/short-u-int-const.d.ts +5 -0
- package/types-legacy/ts4.2/tx/builder/field-types/short-u-int.d.ts +6 -0
- package/types-legacy/ts4.2/tx/builder/field-types/string.d.ts +6 -0
- package/types-legacy/ts4.2/tx/builder/field-types/u-int.d.ts +7 -0
- package/types-legacy/ts4.2/tx/builder/helpers.d.ts +112 -0
- package/types-legacy/ts4.2/tx/builder/index.d.ts +50 -0
- package/types-legacy/ts4.2/tx/builder/schema.d.ts +4675 -0
- package/types-legacy/ts4.2/tx/index.d.ts +19 -0
- package/types-legacy/ts4.2/tx/validator.d.ts +18 -0
- package/types-legacy/ts4.2/utils/amount-formatter.d.ts +42 -0
- package/types-legacy/ts4.2/utils/autorest.d.ts +7 -0
- package/types-legacy/ts4.2/utils/bignumber.d.ts +13 -0
- package/types-legacy/ts4.2/utils/bytes.d.ts +9 -0
- package/types-legacy/ts4.2/utils/crypto.d.ts +95 -0
- package/types-legacy/ts4.2/utils/encoder-types.d.ts +61 -0
- package/types-legacy/ts4.2/utils/encoder.d.ts +24 -0
- package/types-legacy/ts4.2/utils/errors.d.ts +475 -0
- package/types-legacy/ts4.2/utils/hd-wallet.d.ts +65 -0
- package/types-legacy/ts4.2/utils/json-big.d.ts +5 -0
- package/types-legacy/ts4.2/utils/keystore.d.ts +53 -0
- package/types-legacy/ts4.2/utils/other.d.ts +31 -0
- package/types-legacy/ts4.2/utils/semver-satisfies.d.ts +1 -0
- package/types-legacy/ts4.2/utils/string.d.ts +12 -0
- package/types-legacy/ts4.5/AeSdk.d.ts +41 -0
- package/types-legacy/ts4.5/AeSdkAepp.d.ts +71 -0
- package/types-legacy/ts4.5/AeSdkBase.d.ts +91 -0
- package/types-legacy/ts4.5/AeSdkMethods.d.ts +140 -0
- package/types-legacy/ts4.5/AeSdkWallet.d.ts +90 -0
- package/types-legacy/ts4.5/Node.d.ts +78 -0
- package/types-legacy/ts4.5/account/Base.d.ts +52 -0
- package/types-legacy/ts4.5/account/Generalized.d.ts +16 -0
- package/types-legacy/ts4.5/account/Ledger.d.ts +28 -0
- package/types-legacy/ts4.5/account/LedgerFactory.d.ts +39 -0
- package/types-legacy/ts4.5/account/Memory.d.ts +22 -0
- package/types-legacy/ts4.5/account/Rpc.d.ts +25 -0
- package/types-legacy/ts4.5/aens.d.ts +222 -0
- package/types-legacy/ts4.5/aepp-wallet-communication/connection/Browser.d.ts +33 -0
- package/types-legacy/ts4.5/aepp-wallet-communication/connection/BrowserRuntime.d.ts +19 -0
- package/types-legacy/ts4.5/aepp-wallet-communication/connection/BrowserWindowMessage.d.ts +36 -0
- package/types-legacy/ts4.5/aepp-wallet-communication/connection-proxy.d.ts +11 -0
- package/types-legacy/ts4.5/aepp-wallet-communication/rpc/RpcClient.d.ts +34 -0
- package/types-legacy/ts4.5/aepp-wallet-communication/rpc/types.d.ts +83 -0
- package/types-legacy/ts4.5/aepp-wallet-communication/schema.d.ts +133 -0
- package/types-legacy/ts4.5/aepp-wallet-communication/wallet-detector.d.ts +25 -0
- package/types-legacy/ts4.5/apis/compiler/compiler.d.ts +86 -0
- package/types-legacy/ts4.5/apis/compiler/index.d.ts +2 -0
- package/types-legacy/ts4.5/apis/compiler/models/index.d.ts +195 -0
- package/types-legacy/ts4.5/apis/compiler/models/mappers.d.ts +23 -0
- package/types-legacy/ts4.5/apis/compiler/models/parameters.d.ts +12 -0
- package/types-legacy/ts4.5/apis/node/index.d.ts +2 -0
- package/types-legacy/ts4.5/apis/node/models/index.d.ts +1065 -0
- package/types-legacy/ts4.5/apis/node/models/mappers.d.ts +95 -0
- package/types-legacy/ts4.5/apis/node/models/parameters.d.ts +17 -0
- package/types-legacy/ts4.5/apis/node/node.d.ts +215 -0
- package/types-legacy/ts4.5/chain.d.ts +256 -0
- package/types-legacy/ts4.5/channel/Base.d.ts +199 -0
- package/types-legacy/ts4.5/channel/Contract.d.ts +248 -0
- package/types-legacy/ts4.5/channel/Spend.d.ts +219 -0
- package/types-legacy/ts4.5/channel/handlers.d.ts +21 -0
- package/types-legacy/ts4.5/channel/internal.d.ts +107 -0
- package/types-legacy/ts4.5/contract/Contract.d.ts +212 -0
- package/types-legacy/ts4.5/contract/compiler/Base.d.ts +81 -0
- package/types-legacy/ts4.5/contract/compiler/Cli.d.ts +23 -0
- package/types-legacy/ts4.5/contract/compiler/Http.d.ts +32 -0
- package/types-legacy/ts4.5/contract/compiler/HttpNode.d.ts +17 -0
- package/types-legacy/ts4.5/contract/compiler/getFileSystem.d.ts +6 -0
- package/types-legacy/ts4.5/contract/ga.d.ts +44 -0
- package/types-legacy/ts4.5/index-browser.d.ts +39 -0
- package/types-legacy/ts4.5/index.d.ts +4 -0
- package/types-legacy/ts4.5/oracle.d.ts +161 -0
- package/types-legacy/ts4.5/spend.d.ts +62 -0
- package/types-legacy/ts4.5/tx/builder/constants.d.ts +98 -0
- package/types-legacy/ts4.5/tx/builder/field-types/abi-version.d.ts +10 -0
- package/types-legacy/ts4.5/tx/builder/field-types/address.d.ts +21 -0
- package/types-legacy/ts4.5/tx/builder/field-types/array.d.ts +7 -0
- package/types-legacy/ts4.5/tx/builder/field-types/boolean.d.ts +6 -0
- package/types-legacy/ts4.5/tx/builder/field-types/coin-amount.d.ts +12 -0
- package/types-legacy/ts4.5/tx/builder/field-types/ct-version.d.ts +42 -0
- package/types-legacy/ts4.5/tx/builder/field-types/deposit.d.ts +14 -0
- package/types-legacy/ts4.5/tx/builder/field-types/encoded.d.ts +6 -0
- package/types-legacy/ts4.5/tx/builder/field-types/entry.d.ts +11 -0
- package/types-legacy/ts4.5/tx/builder/field-types/enumeration.d.ts +7 -0
- package/types-legacy/ts4.5/tx/builder/field-types/fee.d.ts +20 -0
- package/types-legacy/ts4.5/tx/builder/field-types/field.d.ts +6 -0
- package/types-legacy/ts4.5/tx/builder/field-types/gas-limit.d.ts +15 -0
- package/types-legacy/ts4.5/tx/builder/field-types/gas-price.d.ts +7 -0
- package/types-legacy/ts4.5/tx/builder/field-types/index.d.ts +129 -0
- package/types-legacy/ts4.5/tx/builder/field-types/mptree.d.ts +43 -0
- package/types-legacy/ts4.5/tx/builder/field-types/name-fee.d.ts +18 -0
- package/types-legacy/ts4.5/tx/builder/field-types/name-id.d.ts +11 -0
- package/types-legacy/ts4.5/tx/builder/field-types/name.d.ts +13 -0
- package/types-legacy/ts4.5/tx/builder/field-types/pointers.d.ts +26 -0
- package/types-legacy/ts4.5/tx/builder/field-types/raw.d.ts +6 -0
- package/types-legacy/ts4.5/tx/builder/field-types/short-u-int-const.d.ts +5 -0
- package/types-legacy/ts4.5/tx/builder/field-types/short-u-int.d.ts +6 -0
- package/types-legacy/ts4.5/tx/builder/field-types/string.d.ts +6 -0
- package/types-legacy/ts4.5/tx/builder/field-types/u-int.d.ts +7 -0
- package/types-legacy/ts4.5/tx/builder/helpers.d.ts +112 -0
- package/types-legacy/ts4.5/tx/builder/index.d.ts +50 -0
- package/types-legacy/ts4.5/tx/builder/schema.d.ts +4675 -0
- package/types-legacy/ts4.5/tx/index.d.ts +19 -0
- package/types-legacy/ts4.5/tx/validator.d.ts +18 -0
- package/types-legacy/ts4.5/utils/amount-formatter.d.ts +42 -0
- package/types-legacy/ts4.5/utils/autorest.d.ts +7 -0
- package/types-legacy/ts4.5/utils/bignumber.d.ts +13 -0
- package/types-legacy/ts4.5/utils/bytes.d.ts +9 -0
- package/types-legacy/ts4.5/utils/crypto.d.ts +95 -0
- package/types-legacy/ts4.5/utils/encoder-types.d.ts +61 -0
- package/types-legacy/ts4.5/utils/encoder.d.ts +24 -0
- package/types-legacy/ts4.5/utils/errors.d.ts +475 -0
- package/types-legacy/ts4.5/utils/hd-wallet.d.ts +65 -0
- package/types-legacy/ts4.5/utils/json-big.d.ts +5 -0
- package/types-legacy/ts4.5/utils/keystore.d.ts +53 -0
- package/types-legacy/ts4.5/utils/other.d.ts +31 -0
- package/types-legacy/ts4.5/utils/semver-satisfies.d.ts +1 -0
- package/types-legacy/ts4.5/utils/string.d.ts +12 -0
- package/es/channel/index.d.ts +0 -625
- package/es/channel/index.mjs +0 -975
- package/es/channel/index.mjs.map +0 -1
- package/es/contract/Compiler.d.ts +0 -18
- package/es/contract/Compiler.mjs +0 -68
- package/es/contract/Compiler.mjs.map +0 -1
- package/es/contract/aci.d.ts +0 -127
- package/es/contract/aci.mjs +0 -508
- package/es/contract/aci.mjs.map +0 -1
- package/es/contract/methods.d.ts +0 -71
- package/es/contract/methods.mjs +0 -104
- package/es/contract/methods.mjs.map +0 -1
- package/es/deprecated/index.d.ts +0 -143
- package/es/deprecated/index.mjs +0 -162
- package/es/deprecated/index.mjs.map +0 -1
- package/es/deprecated/methods.d.ts +0 -18
- package/es/deprecated/methods.mjs +0 -26
- package/es/deprecated/methods.mjs.map +0 -1
- package/es/tx/builder/address.d.ts +0 -25
- package/es/tx/builder/address.mjs +0 -45
- package/es/tx/builder/address.mjs.map +0 -1
- package/es/typings/@aeternity__argon2-browser/index.d.mjs.map +0 -1
- package/es/utils/mptree.d.ts +0 -26
- package/es/utils/mptree.mjs +0 -165
- package/es/utils/mptree.mjs.map +0 -1
- package/src/channel/index.ts +0 -1025
- package/src/contract/Compiler.ts +0 -67
- package/src/contract/aci.ts +0 -537
- package/src/contract/methods.ts +0 -123
- package/src/deprecated/index.ts +0 -172
- package/src/deprecated/methods.ts +0 -25
- package/src/tx/builder/address.ts +0 -50
- package/src/typings/@aeternity__argon2-browser/index.d.ts +0 -3
- package/src/utils/mptree.ts +0 -145
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compiler.mjs","names":["coreClient","coreRestPipeline","Parameters","Mappers","Compiler","ServiceClient","constructor","$host","options","undefined","Error","defaults","requestContentType","packageDetails","userAgentPrefix","userAgentOptions","optionsWithDefaults","baseUri","endpoint","pipeline","getOrderedPolicies","length","pipelinePolicies","bearerTokenAuthenticationPolicyFound","some","pipelinePolicy","name","bearerTokenAuthenticationPolicyName","removePolicy","addPolicy","bearerTokenAuthenticationPolicy","scopes","challengeCallbacks","authorizeRequestOnChallenge","authorizeRequestOnClaimChallenge","generateACI","body","sendOperationRequest","generateACIOperationSpec","api","apiOperationSpec","aPIVersion","aPIVersionOperationSpec","compileContract","compileContractOperationSpec","getCompilerVersion","getCompilerVersionOperationSpec","decodeCallResult","decodeCallResultOperationSpec","decodeCallResultBytecode","decodeCallResultBytecodeOperationSpec","decodeCalldataBytecode","decodeCalldataBytecodeOperationSpec","decodeCalldataSource","decodeCalldataSourceOperationSpec","decodeData","decodeDataOperationSpec","encodeCalldata","encodeCalldataOperationSpec","getFateAssemblerCode","getFateAssemblerCodeOperationSpec","validateByteCode","validateByteCodeOperationSpec","version","versionOperationSpec","serializer","createSerializer","path","httpMethod","responses","bodyMapper","Aci","type","element","className","isError","requestBody","urlParameters","headerParameters","contentType","accept","mediaType","value","ErrorModel","APIVersion","ByteCode","CompilerVersion","body1","body2","DecodedCallresult","body3","DecodedCalldata","body4","body5","SophiaJsonData","body6","Calldata","body7","FateAssembler","body8"],"sources":["../../../src/apis/compiler/compiler.ts"],"sourcesContent":["import * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport * as Parameters from \"./models/parameters\";\nimport * as Mappers from \"./models/mappers\";\nimport {\n CompilerOptionalParams,\n Contract,\n GenerateACIOptionalParams,\n GenerateACIResponse,\n ApiOptionalParams,\n ApiResponse,\n APIVersionOptionalParams,\n APIVersionResponse,\n CompileContractOptionalParams,\n CompileContractResponse,\n ByteCodeInput,\n GetCompilerVersionOptionalParams,\n GetCompilerVersionResponse,\n SophiaCallResultInput,\n DecodeCallResultOptionalParams,\n DecodeCallResultResponse,\n BytecodeCallResultInput,\n DecodeCallResultBytecodeOptionalParams,\n DecodeCallResultBytecodeResponse,\n DecodeCalldataBytecode,\n DecodeCalldataBytecodeOptionalParams,\n DecodeCalldataBytecodeResponse,\n DecodeCalldataSource,\n DecodeCalldataSourceOptionalParams,\n DecodeCalldataSourceResponse,\n SophiaBinaryData,\n DecodeDataOptionalParams,\n DecodeDataResponse,\n FunctionCallInput,\n EncodeCalldataOptionalParams,\n EncodeCalldataResponse,\n GetFateAssemblerCodeOptionalParams,\n GetFateAssemblerCodeResponse,\n ValidateByteCodeInput,\n ValidateByteCodeOptionalParams,\n VersionOptionalParams,\n VersionResponse\n} from \"./models\";\n\nexport class Compiler extends coreClient.ServiceClient {\n $host: string;\n\n /**\n * Initializes a new instance of the Compiler class.\n * @param $host server parameter\n * @param options The parameter options\n */\n constructor($host: string, options?: CompilerOptionalParams) {\n if ($host === undefined) {\n throw new Error(\"'$host' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: CompilerOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\"\n };\n\n const packageDetails = `azsdk-js-compiler/1.0.0-beta.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n baseUri: options.endpoint ?? options.baseUri ?? \"{$host}\"\n };\n super(optionsWithDefaults);\n\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n if (!bearerTokenAuthenticationPolicyFound) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n scopes: `${optionsWithDefaults.baseUri}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n }\n // Parameter assignments\n this.$host = $host;\n }\n\n /**\n * Generate an Aeternity Contract Interface (ACI) for contract\n * @param body contract code\n * @param options The options parameters.\n */\n generateACI(\n body: Contract,\n options?: GenerateACIOptionalParams\n ): Promise<GenerateACIResponse> {\n return this.sendOperationRequest(\n { body, options },\n generateACIOperationSpec\n );\n }\n\n /**\n * Get the Api description\n * @param options The options parameters.\n */\n api(options?: ApiOptionalParams): Promise<ApiResponse> {\n return this.sendOperationRequest({ options }, apiOperationSpec);\n }\n\n /**\n * Get the version of the API\n * @param options The options parameters.\n */\n aPIVersion(options?: APIVersionOptionalParams): Promise<APIVersionResponse> {\n return this.sendOperationRequest({ options }, aPIVersionOperationSpec);\n }\n\n /**\n * Compile a sophia contract from source and return byte code\n * @param body contract code\n * @param options The options parameters.\n */\n compileContract(\n body: Contract,\n options?: CompileContractOptionalParams\n ): Promise<CompileContractResponse> {\n return this.sendOperationRequest(\n { body, options },\n compileContractOperationSpec\n );\n }\n\n /**\n * Extract compiler version from bytecode\n * @param body contract byte array\n * @param options The options parameters.\n */\n getCompilerVersion(\n body: ByteCodeInput,\n options?: GetCompilerVersionOptionalParams\n ): Promise<GetCompilerVersionResponse> {\n return this.sendOperationRequest(\n { body, options },\n getCompilerVersionOperationSpec\n );\n }\n\n /**\n * Decode the result of contract call\n * @param body Binary data in Sophia ABI format\n * @param options The options parameters.\n */\n decodeCallResult(\n body: SophiaCallResultInput,\n options?: DecodeCallResultOptionalParams\n ): Promise<DecodeCallResultResponse> {\n return this.sendOperationRequest(\n { body, options },\n decodeCallResultOperationSpec\n );\n }\n\n /**\n * Decode the result of contract call from Bytecode\n * @param body Call result + compiled contract\n * @param options The options parameters.\n */\n decodeCallResultBytecode(\n body: BytecodeCallResultInput,\n options?: DecodeCallResultBytecodeOptionalParams\n ): Promise<DecodeCallResultBytecodeResponse> {\n return this.sendOperationRequest(\n { body, options },\n decodeCallResultBytecodeOperationSpec\n );\n }\n\n /**\n * Identify function name and arguments in Calldata for a compiled contract\n * @param body Calldata + compiled contract\n * @param options The options parameters.\n */\n decodeCalldataBytecode(\n body: DecodeCalldataBytecode,\n options?: DecodeCalldataBytecodeOptionalParams\n ): Promise<DecodeCalldataBytecodeResponse> {\n return this.sendOperationRequest(\n { body, options },\n decodeCalldataBytecodeOperationSpec\n );\n }\n\n /**\n * Identify function name and arguments in Calldata for a (partial) contract\n * @param body Calldata + contract (stub) code\n * @param options The options parameters.\n */\n decodeCalldataSource(\n body: DecodeCalldataSource,\n options?: DecodeCalldataSourceOptionalParams\n ): Promise<DecodeCalldataSourceResponse> {\n return this.sendOperationRequest(\n { body, options },\n decodeCalldataSourceOperationSpec\n );\n }\n\n /**\n * Decode data as retuned by a contract call. - Legacy decoding\n * @param body Binary data in Sophia ABI format\n * @param options The options parameters.\n */\n decodeData(\n body: SophiaBinaryData,\n options?: DecodeDataOptionalParams\n ): Promise<DecodeDataResponse> {\n return this.sendOperationRequest(\n { body, options },\n decodeDataOperationSpec\n );\n }\n\n /**\n * Encode Sophia function call according to sophia ABI.\n * @param body Sophia function call - contract code + function name + arguments\n * @param options The options parameters.\n */\n encodeCalldata(\n body: FunctionCallInput,\n options?: EncodeCalldataOptionalParams\n ): Promise<EncodeCalldataResponse> {\n return this.sendOperationRequest(\n { body, options },\n encodeCalldataOperationSpec\n );\n }\n\n /**\n * Get FATE assembler code from bytecode\n * @param body contract byte array\n * @param options The options parameters.\n */\n getFateAssemblerCode(\n body: ByteCodeInput,\n options?: GetFateAssemblerCodeOptionalParams\n ): Promise<GetFateAssemblerCodeResponse> {\n return this.sendOperationRequest(\n { body, options },\n getFateAssemblerCodeOperationSpec\n );\n }\n\n /**\n * Verify that an encoded byte array is the result of compiling a given contract\n * @param body contract byte array and source code\n * @param options The options parameters.\n */\n validateByteCode(\n body: ValidateByteCodeInput,\n options?: ValidateByteCodeOptionalParams\n ): Promise<void> {\n return this.sendOperationRequest(\n { body, options },\n validateByteCodeOperationSpec\n );\n }\n\n /**\n * Get the version of the underlying Sophia compiler version\n * @param options The options parameters.\n */\n version(options?: VersionOptionalParams): Promise<VersionResponse> {\n return this.sendOperationRequest({ options }, versionOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst generateACIOperationSpec: coreClient.OperationSpec = {\n path: \"/aci\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.Aci\n },\n 400: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: { type: { name: \"Composite\", className: \"CompilerError\" } }\n }\n },\n isError: true\n }\n },\n requestBody: Parameters.body,\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst apiOperationSpec: coreClient.OperationSpec = {\n path: \"/api\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: { name: \"Dictionary\", value: { type: { name: \"any\" } } }\n }\n },\n 400: {\n bodyMapper: Mappers.ErrorModel,\n isError: true\n }\n },\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst aPIVersionOperationSpec: coreClient.OperationSpec = {\n path: \"/api-version\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.APIVersion\n },\n 500: {\n bodyMapper: Mappers.ErrorModel,\n isError: true\n }\n },\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst compileContractOperationSpec: coreClient.OperationSpec = {\n path: \"/compile\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ByteCode\n },\n 400: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: { type: { name: \"Composite\", className: \"CompilerError\" } }\n }\n },\n isError: true\n }\n },\n requestBody: Parameters.body,\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst getCompilerVersionOperationSpec: coreClient.OperationSpec = {\n path: \"/compiler-version\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CompilerVersion\n },\n 400: {\n bodyMapper: Mappers.ErrorModel,\n isError: true\n }\n },\n requestBody: Parameters.body1,\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst decodeCallResultOperationSpec: coreClient.OperationSpec = {\n path: \"/decode-call-result\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: { type: { name: \"any\" } }\n },\n 400: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: { type: { name: \"Composite\", className: \"CompilerError\" } }\n }\n },\n isError: true\n }\n },\n requestBody: Parameters.body2,\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst decodeCallResultBytecodeOperationSpec: coreClient.OperationSpec = {\n path: \"/decode-call-result/bytecode\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.DecodedCallresult\n },\n 400: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: { type: { name: \"Composite\", className: \"CompilerError\" } }\n }\n },\n isError: true\n }\n },\n requestBody: Parameters.body3,\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst decodeCalldataBytecodeOperationSpec: coreClient.OperationSpec = {\n path: \"/decode-calldata/bytecode\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.DecodedCalldata\n },\n 400: {\n bodyMapper: Mappers.ErrorModel,\n isError: true\n }\n },\n requestBody: Parameters.body4,\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst decodeCalldataSourceOperationSpec: coreClient.OperationSpec = {\n path: \"/decode-calldata/source\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.DecodedCalldata\n },\n 400: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: { type: { name: \"Composite\", className: \"CompilerError\" } }\n }\n },\n isError: true\n }\n },\n requestBody: Parameters.body5,\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst decodeDataOperationSpec: coreClient.OperationSpec = {\n path: \"/decode-data\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.SophiaJsonData\n },\n 400: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: { type: { name: \"Composite\", className: \"CompilerError\" } }\n }\n },\n isError: true\n }\n },\n requestBody: Parameters.body6,\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst encodeCalldataOperationSpec: coreClient.OperationSpec = {\n path: \"/encode-calldata\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.Calldata\n },\n 400: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: { type: { name: \"Composite\", className: \"CompilerError\" } }\n }\n },\n isError: true\n }\n },\n requestBody: Parameters.body7,\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst getFateAssemblerCodeOperationSpec: coreClient.OperationSpec = {\n path: \"/fate-assembler\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.FateAssembler\n },\n 400: {\n bodyMapper: Mappers.ErrorModel,\n isError: true\n }\n },\n requestBody: Parameters.body1,\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst validateByteCodeOperationSpec: coreClient.OperationSpec = {\n path: \"/validate-byte-code\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 400: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: { type: { name: \"Composite\", className: \"CompilerError\" } }\n }\n },\n isError: true\n }\n },\n requestBody: Parameters.body8,\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst versionOperationSpec: coreClient.OperationSpec = {\n path: \"/version\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CompilerVersion\n },\n 500: {\n bodyMapper: Mappers.ErrorModel,\n isError: true\n }\n },\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\n"],"mappings":"AAAA,OAAO,KAAKA,UAAZ,MAA4B,oBAA5B;AACA,OAAO,KAAKC,gBAAZ,MAAkC,2BAAlC;OACO,KAAKC,U;OACL,KAAKC,O;AAyCZ,OAAO,MAAMC,QAAN,SAAuBJ,UAAU,CAACK,aAAlC,CAAgD;EAGrD;AACF;AACA;AACA;AACA;EACEC,WAAW,CAACC,KAAD,EAAgBC,OAAhB,EAAkD;IAAA;;IAC3D,IAAID,KAAK,KAAKE,SAAd,EAAyB;MACvB,MAAM,IAAIC,KAAJ,CAAU,wBAAV,CAAN;IACD,CAH0D,CAK3D;;;IACA,IAAI,CAACF,OAAL,EAAc;MACZA,OAAO,GAAG,EAAV;IACD;;IACD,MAAMG,QAAgC,GAAG;MACvCC,kBAAkB,EAAE;IADmB,CAAzC;IAIA,MAAMC,cAAc,GAAI,gCAAxB;IACA,MAAMC,eAAe,GACnBN,OAAO,CAACO,gBAAR,IAA4BP,OAAO,CAACO,gBAAR,CAAyBD,eAArD,GACK,GAAEN,OAAO,CAACO,gBAAR,CAAyBD,eAAgB,IAAGD,cAAe,EADlE,GAEK,GAAEA,cAAe,EAHxB;IAKA,MAAMG,mBAAmB,GAAG,EAC1B,GAAGL,QADuB;MAE1B,GAAGH,OAFuB;MAG1BO,gBAAgB,EAAE;QAChBD;MADgB,CAHQ;MAM1BG,OAAO,+BAAET,OAAO,CAACU,QAAV,iEAAsBV,OAAO,CAACS,OAA9B,uCAAyC;IANtB,CAA5B;IAQA,MAAMD,mBAAN;;IAEA,IAAI,YAAAR,OAAO,UAAP,oCAASW,QAAT,IAAqBX,OAAO,CAACW,QAAR,CAAiBC,kBAAjB,GAAsCC,MAAtC,GAA+C,CAAx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BlEhB;AAhBkE,CAApE;AAkBA,MAAMH,6BAAuD,GAAG;EAC9DK,IAAI,EAAE,qBADwD;EAE9DC,UAAU,EAAE,MAFkD;EAG9DC,SAAS,EAAE;IACT,KAAK,EADI;IAET,KAAK;MACHC,UAAU,EAAE;QACVE,IAAI,EAAE;UACJ9C,IAAI,EAAE,UADF;UAEJ+C,OAAO,EAAE;YAAED,IAAI,EAAE;cAAE9C,IAAI,EAAE,WAAR;cAAqBgD,SAAS,EAAE;YAAhC;UAAR;QAFL;MADI,CADT;MAOHC,OAAO,EAAE;IAPN;EAFI,CAHmD;EAe9DC,WAAW,EAAE1E,UAAU,CAACiG,KAfsC;EAgB9DtB,aAAa,EAAE,CAAC3E,UAAU,CAACK,KAAZ,CAhB+C;EAiB9DuE,gBAAgB,EAAE,CAAC5E,UAAU,CAAC6E,WAAZ,EAAyB7E,UAAU,CAAC8E,MAApC,CAjB4C;EAkB9DC,SAAS,EAAE,MAlBmD;EAmB9DhB;AAnB8D,CAAhE;AAqBA,MAAMD,oBAA8C,GAAG;EACrDG,IAAI,EAAE,UAD+C;EAErDC,UAAU,EAAE,KAFyC;EAGrDC,SAAS,EAAE;IACT,KAAK;MACHC,UAAU,EAAEnE,OAAO,CAACmF;IADjB,CADI;IAIT,KAAK;MACHhB,UAAU,EAAEnE,OAAO,CAACgF,UADjB;MAEHR,OAAO,EAAE;IAFN;EAJI,CAH0C;EAYrDE,aAAa,EAAE,CAAC3E,UAAU,CAACK,KAAZ,CAZsC;EAarDuE,gBAAgB,EAAE,CAAC5E,UAAU,CAAC8E,MAAZ,CAbmC;EAcrDf;AAdqD,CAAvD"}
|
|
1
|
+
{"version":3,"file":"compiler.mjs","names":["coreClient","coreRestPipeline","Parameters","Mappers","Compiler","ServiceClient","constructor","$host","options","undefined","Error","defaults","requestContentType","packageDetails","userAgentPrefix","userAgentOptions","optionsWithDefaults","baseUri","endpoint","pipeline","getOrderedPolicies","length","pipelinePolicies","bearerTokenAuthenticationPolicyFound","some","pipelinePolicy","name","bearerTokenAuthenticationPolicyName","removePolicy","addPolicy","bearerTokenAuthenticationPolicy","scopes","challengeCallbacks","authorizeRequestOnChallenge","authorizeRequestOnClaimChallenge","generateACI","body","sendOperationRequest","generateACIOperationSpec","compileContract","compileContractOperationSpec","decodeCallResult","decodeCallResultOperationSpec","decodeCallResultBytecode","decodeCallResultBytecodeOperationSpec","encodeCalldata","encodeCalldataOperationSpec","decodeCalldataBytecode","decodeCalldataBytecodeOperationSpec","decodeCalldataSource","decodeCalldataSourceOperationSpec","getFateAssemblerCode","getFateAssemblerCodeOperationSpec","validateByteCode","validateByteCodeOperationSpec","getCompilerVersion","getCompilerVersionOperationSpec","version","versionOperationSpec","apiVersion","apiVersionOperationSpec","api","apiOperationSpec","serializer","createSerializer","path","httpMethod","responses","bodyMapper","Aci","type","element","className","isError","requestBody","urlParameters","headerParameters","contentType","accept","mediaType","ByteCode","body1","DecodedCallresult","body2","Calldata","body3","DecodedCalldata","ErrorModel","body4","body5","FateAssembler","body6","body7","CompilerVersion","ApiVersion","value"],"sources":["../../../src/apis/compiler/compiler.ts"],"sourcesContent":["import * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport * as Parameters from \"./models/parameters\";\nimport * as Mappers from \"./models/mappers\";\nimport {\n CompilerOptionalParams,\n Contract,\n GenerateACIOptionalParams,\n GenerateACIResponse,\n CompileContractOptionalParams,\n CompileContractResponse,\n SophiaCallResultInput,\n DecodeCallResultOptionalParams,\n DecodeCallResultResponse,\n BytecodeCallResultInput,\n DecodeCallResultBytecodeOptionalParams,\n DecodeCallResultBytecodeResponse,\n FunctionCallInput,\n EncodeCalldataOptionalParams,\n EncodeCalldataResponse,\n DecodeCalldataBytecode,\n DecodeCalldataBytecodeOptionalParams,\n DecodeCalldataBytecodeResponse,\n DecodeCalldataSource,\n DecodeCalldataSourceOptionalParams,\n DecodeCalldataSourceResponse,\n ByteCodeInput,\n GetFateAssemblerCodeOptionalParams,\n GetFateAssemblerCodeResponse,\n ValidateByteCodeInput,\n ValidateByteCodeOptionalParams,\n GetCompilerVersionOptionalParams,\n GetCompilerVersionResponse,\n VersionOptionalParams,\n VersionResponse,\n ApiVersionOptionalParams,\n ApiVersionResponse,\n ApiOptionalParams,\n ApiResponse\n} from \"./models\";\n\nexport class Compiler extends coreClient.ServiceClient {\n $host: string;\n\n /**\n * Initializes a new instance of the Compiler class.\n * @param $host server parameter\n * @param options The parameter options\n */\n constructor($host: string, options?: CompilerOptionalParams) {\n if ($host === undefined) {\n throw new Error(\"'$host' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: CompilerOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\"\n };\n\n const packageDetails = `azsdk-js-compiler/1.0.0-beta.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n baseUri: options.endpoint ?? options.baseUri ?? \"{$host}\"\n };\n super(optionsWithDefaults);\n\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n if (!bearerTokenAuthenticationPolicyFound) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n scopes: `${optionsWithDefaults.baseUri}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n }\n // Parameter assignments\n this.$host = $host;\n }\n\n /**\n * Generate an Aeternity Contract Interface (ACI) for contract\n * @param body contract code\n * @param options The options parameters.\n */\n generateACI(\n body: Contract,\n options?: GenerateACIOptionalParams\n ): Promise<GenerateACIResponse> {\n return this.sendOperationRequest(\n { body, options },\n generateACIOperationSpec\n );\n }\n\n /**\n * Compile a sophia contract from source and return byte code\n * @param body contract code\n * @param options The options parameters.\n */\n compileContract(\n body: Contract,\n options?: CompileContractOptionalParams\n ): Promise<CompileContractResponse> {\n return this.sendOperationRequest(\n { body, options },\n compileContractOperationSpec\n );\n }\n\n /**\n * Decode the result of contract call\n * @param body Binary data in Sophia ABI format\n * @param options The options parameters.\n */\n decodeCallResult(\n body: SophiaCallResultInput,\n options?: DecodeCallResultOptionalParams\n ): Promise<DecodeCallResultResponse> {\n return this.sendOperationRequest(\n { body, options },\n decodeCallResultOperationSpec\n );\n }\n\n /**\n * Decode the result of contract call from Bytecode\n * @param body Call result + compiled contract\n * @param options The options parameters.\n */\n decodeCallResultBytecode(\n body: BytecodeCallResultInput,\n options?: DecodeCallResultBytecodeOptionalParams\n ): Promise<DecodeCallResultBytecodeResponse> {\n return this.sendOperationRequest(\n { body, options },\n decodeCallResultBytecodeOperationSpec\n );\n }\n\n /**\n * Encode Sophia function call according to sophia ABI.\n * @param body Sophia function call - contract code + function name + arguments\n * @param options The options parameters.\n */\n encodeCalldata(\n body: FunctionCallInput,\n options?: EncodeCalldataOptionalParams\n ): Promise<EncodeCalldataResponse> {\n return this.sendOperationRequest(\n { body, options },\n encodeCalldataOperationSpec\n );\n }\n\n /**\n * Identify function name and arguments in Calldata for a compiled contract\n * @param body Calldata + compiled contract\n * @param options The options parameters.\n */\n decodeCalldataBytecode(\n body: DecodeCalldataBytecode,\n options?: DecodeCalldataBytecodeOptionalParams\n ): Promise<DecodeCalldataBytecodeResponse> {\n return this.sendOperationRequest(\n { body, options },\n decodeCalldataBytecodeOperationSpec\n );\n }\n\n /**\n * Identify function name and arguments in Calldata for a (partial) contract\n * @param body Calldata + contract (stub) code\n * @param options The options parameters.\n */\n decodeCalldataSource(\n body: DecodeCalldataSource,\n options?: DecodeCalldataSourceOptionalParams\n ): Promise<DecodeCalldataSourceResponse> {\n return this.sendOperationRequest(\n { body, options },\n decodeCalldataSourceOperationSpec\n );\n }\n\n /**\n * Get FATE assembler code from bytecode\n * @param body contract byte array\n * @param options The options parameters.\n */\n getFateAssemblerCode(\n body: ByteCodeInput,\n options?: GetFateAssemblerCodeOptionalParams\n ): Promise<GetFateAssemblerCodeResponse> {\n return this.sendOperationRequest(\n { body, options },\n getFateAssemblerCodeOperationSpec\n );\n }\n\n /**\n * Verify that an encoded byte array is the result of compiling a given contract\n * @param body contract byte array and source code\n * @param options The options parameters.\n */\n validateByteCode(\n body: ValidateByteCodeInput,\n options?: ValidateByteCodeOptionalParams\n ): Promise<void> {\n return this.sendOperationRequest(\n { body, options },\n validateByteCodeOperationSpec\n );\n }\n\n /**\n * Extract compiler version from bytecode\n * @param body contract byte array\n * @param options The options parameters.\n */\n getCompilerVersion(\n body: ByteCodeInput,\n options?: GetCompilerVersionOptionalParams\n ): Promise<GetCompilerVersionResponse> {\n return this.sendOperationRequest(\n { body, options },\n getCompilerVersionOperationSpec\n );\n }\n\n /**\n * Get the version of the underlying Sophia compiler version\n * @param options The options parameters.\n */\n version(options?: VersionOptionalParams): Promise<VersionResponse> {\n return this.sendOperationRequest({ options }, versionOperationSpec);\n }\n\n /**\n * Get the version of the API\n * @param options The options parameters.\n */\n apiVersion(options?: ApiVersionOptionalParams): Promise<ApiVersionResponse> {\n return this.sendOperationRequest({ options }, apiVersionOperationSpec);\n }\n\n /**\n * Get the Api description\n * @param options The options parameters.\n */\n api(options?: ApiOptionalParams): Promise<ApiResponse> {\n return this.sendOperationRequest({ options }, apiOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst generateACIOperationSpec: coreClient.OperationSpec = {\n path: \"/aci\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.Aci\n },\n 400: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: { type: { name: \"Composite\", className: \"CompilerError\" } }\n }\n },\n isError: true\n }\n },\n requestBody: Parameters.body,\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst compileContractOperationSpec: coreClient.OperationSpec = {\n path: \"/compile\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ByteCode\n },\n 400: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: { type: { name: \"Composite\", className: \"CompilerError\" } }\n }\n },\n isError: true\n }\n },\n requestBody: Parameters.body,\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst decodeCallResultOperationSpec: coreClient.OperationSpec = {\n path: \"/decode-call-result\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: { type: { name: \"any\" } }\n },\n 400: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: { type: { name: \"Composite\", className: \"CompilerError\" } }\n }\n },\n isError: true\n }\n },\n requestBody: Parameters.body1,\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst decodeCallResultBytecodeOperationSpec: coreClient.OperationSpec = {\n path: \"/decode-call-result/bytecode\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.DecodedCallresult\n },\n 400: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: { type: { name: \"Composite\", className: \"CompilerError\" } }\n }\n },\n isError: true\n }\n },\n requestBody: Parameters.body2,\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst encodeCalldataOperationSpec: coreClient.OperationSpec = {\n path: \"/encode-calldata\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.Calldata\n },\n 400: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: { type: { name: \"Composite\", className: \"CompilerError\" } }\n }\n },\n isError: true\n }\n },\n requestBody: Parameters.body3,\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst decodeCalldataBytecodeOperationSpec: coreClient.OperationSpec = {\n path: \"/decode-calldata/bytecode\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.DecodedCalldata\n },\n 400: {\n bodyMapper: Mappers.ErrorModel,\n isError: true\n }\n },\n requestBody: Parameters.body4,\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst decodeCalldataSourceOperationSpec: coreClient.OperationSpec = {\n path: \"/decode-calldata/source\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.DecodedCalldata\n },\n 400: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: { type: { name: \"Composite\", className: \"CompilerError\" } }\n }\n },\n isError: true\n }\n },\n requestBody: Parameters.body5,\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst getFateAssemblerCodeOperationSpec: coreClient.OperationSpec = {\n path: \"/fate-assembler\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.FateAssembler\n },\n 400: {\n bodyMapper: Mappers.ErrorModel,\n isError: true\n }\n },\n requestBody: Parameters.body6,\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst validateByteCodeOperationSpec: coreClient.OperationSpec = {\n path: \"/validate-byte-code\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 400: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: { type: { name: \"Composite\", className: \"CompilerError\" } }\n }\n },\n isError: true\n }\n },\n requestBody: Parameters.body7,\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst getCompilerVersionOperationSpec: coreClient.OperationSpec = {\n path: \"/compiler-version\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CompilerVersion\n },\n 400: {\n bodyMapper: Mappers.ErrorModel,\n isError: true\n }\n },\n requestBody: Parameters.body6,\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst versionOperationSpec: coreClient.OperationSpec = {\n path: \"/version\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CompilerVersion\n },\n 500: {\n bodyMapper: Mappers.ErrorModel,\n isError: true\n }\n },\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst apiVersionOperationSpec: coreClient.OperationSpec = {\n path: \"/api-version\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApiVersion\n },\n 500: {\n bodyMapper: Mappers.ErrorModel,\n isError: true\n }\n },\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst apiOperationSpec: coreClient.OperationSpec = {\n path: \"/api\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: { name: \"Dictionary\", value: { type: { name: \"any\" } } }\n }\n },\n 400: {\n bodyMapper: Mappers.ErrorModel,\n isError: true\n }\n },\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\n"],"mappings":"AAAA,OAAO,KAAKA,UAAU,MAAM,oBAAoB;AAChD,OAAO,KAAKC,gBAAgB,MAAM,2BAA2B;AAAC,OACvD,KAAKC,UAAU;AAAA,OACf,KAAKC,OAAO;AAsCnB,OAAO,MAAMC,QAAQ,SAASJ,UAAU,CAACK,aAAa,CAAC;EAGrD;AACF;AACA;AACA;AACA;EACEC,WAA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U,CAAC4E,MAAM,CAAC;EACrCf;AACF,CAAC;AACD,MAAMH,uBAAiD,GAAG;EACxDK,IAAI,EAAE,cAAc;EACpBC,UAAU,EAAE,KAAK;EACjBC,SAAS,EAAE;IACT,GAAG,EAAE;MACHC,UAAU,EAAEjE,OAAO,CAAC2F;IACtB,CAAC;IACD,GAAG,EAAE;MACH1B,UAAU,EAAEjE,OAAO,CAACoF,UAAU;MAC9Bd,OAAO,EAAE;IACX;EACF,CAAC;EACDE,aAAa,EAAE,CAACzE,UAAU,CAACK,KAAK,CAAC;EACjCqE,gBAAgB,EAAE,CAAC1E,UAAU,CAAC4E,MAAM,CAAC;EACrCf;AACF,CAAC;AACD,MAAMD,gBAA0C,GAAG;EACjDG,IAAI,EAAE,MAAM;EACZC,UAAU,EAAE,KAAK;EACjBC,SAAS,EAAE;IACT,GAAG,EAAE;MACHC,UAAU,EAAE;QACVE,IAAI,EAAE;UAAE5C,IAAI,EAAE,YAAY;UAAEqE,KAAK,EAAE;YAAEzB,IAAI,EAAE;cAAE5C,IAAI,EAAE;YAAM;UAAE;QAAE;MAC/D;IACF,CAAC;IACD,GAAG,EAAE;MACH0C,UAAU,EAAEjE,OAAO,CAACoF,UAAU;MAC9Bd,OAAO,EAAE;IACX;EACF,CAAC;EACDE,aAAa,EAAE,CAACzE,UAAU,CAACK,KAAK,CAAC;EACjCqE,gBAAgB,EAAE,CAAC1E,UAAU,CAAC4E,MAAM,CAAC;EACrCf;AACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["Compiler"],"sources":["../../../src/apis/compiler/index.ts"],"sourcesContent":["export * from \"./models\";\nexport { Compiler } from \"./compiler\";\n"],"mappings":";SACSA,
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["Compiler"],"sources":["../../../src/apis/compiler/index.ts"],"sourcesContent":["export * from \"./models\";\nexport { Compiler } from \"./compiler\";\n"],"mappings":";SACSA,QAAQ"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import * as coreClient from "@azure/core-client";
|
|
2
2
|
export interface Contract {
|
|
3
3
|
code: string;
|
|
4
|
-
options
|
|
4
|
+
options?: CompileOpts;
|
|
5
5
|
}
|
|
6
6
|
export interface CompileOpts {
|
|
7
|
-
/** Compiler backend; fate | aevm */
|
|
8
|
-
backend?: CompileOptsBackend;
|
|
9
7
|
/** An explicit file system, mapping file names to file content */
|
|
10
8
|
fileSystem?: Record<string, unknown>;
|
|
11
9
|
/** Name of contract source file - only used in error messages */
|
|
@@ -18,104 +16,84 @@ export interface Aci {
|
|
|
18
16
|
interface: string;
|
|
19
17
|
}
|
|
20
18
|
export interface CompilerError {
|
|
21
|
-
context?: string;
|
|
22
|
-
message: string;
|
|
23
|
-
pos: ErrorPos;
|
|
24
19
|
type: string;
|
|
20
|
+
pos: ErrorPos;
|
|
21
|
+
message: string;
|
|
22
|
+
context?: string;
|
|
25
23
|
}
|
|
26
24
|
export interface ErrorPos {
|
|
27
|
-
col: number;
|
|
28
25
|
file?: string;
|
|
29
26
|
line: number;
|
|
30
|
-
|
|
31
|
-
export interface ErrorModel {
|
|
32
|
-
reason: string;
|
|
33
|
-
}
|
|
34
|
-
export interface APIVersion {
|
|
35
|
-
/** API compiler version */
|
|
36
|
-
apiVersion: string;
|
|
27
|
+
col: number;
|
|
37
28
|
}
|
|
38
29
|
export interface ByteCode {
|
|
39
30
|
/** Prefixed (cb_) Base64Check encoded byte array */
|
|
40
31
|
bytecode: string;
|
|
41
32
|
}
|
|
42
|
-
export interface ByteCodeInput {
|
|
43
|
-
/** Compiled contract */
|
|
44
|
-
bytecode: string;
|
|
45
|
-
}
|
|
46
|
-
export interface CompilerVersion {
|
|
47
|
-
/** Sophia compiler version */
|
|
48
|
-
version: string;
|
|
49
|
-
}
|
|
50
33
|
export interface SophiaCallResultInput {
|
|
34
|
+
/** (Possibly partial) Sophia contract code/interface */
|
|
35
|
+
source: string;
|
|
36
|
+
options?: CompileOpts;
|
|
37
|
+
/** Name of the called function */
|
|
38
|
+
function: string;
|
|
51
39
|
/** Call result type (ok | revert | error) */
|
|
52
40
|
callResult: string;
|
|
53
41
|
/** Call result value (ABI encoded data or error string) */
|
|
54
42
|
callValue: string;
|
|
55
|
-
/** Name of the called function */
|
|
56
|
-
function: string;
|
|
57
|
-
options?: CompileOpts;
|
|
58
|
-
/** (Possibly partial) Sophia contract code/interface */
|
|
59
|
-
source: string;
|
|
60
43
|
}
|
|
61
44
|
export interface BytecodeCallResultInput {
|
|
62
|
-
/** Compiler backend; fate | aevm */
|
|
63
|
-
backend?: BytecodeCallResultInputBackend;
|
|
64
45
|
/** Compiled contract */
|
|
65
46
|
bytecode: string;
|
|
47
|
+
/** Name of the called function */
|
|
48
|
+
function: string;
|
|
66
49
|
/** Call result type (ok | revert | error) */
|
|
67
50
|
callResult: string;
|
|
68
51
|
/** Call result value (ABI encoded data or error string) */
|
|
69
52
|
callValue: string;
|
|
70
|
-
/** Name of the called function */
|
|
71
|
-
function: string;
|
|
72
53
|
}
|
|
73
54
|
export interface DecodedCallresult {
|
|
74
55
|
function: string;
|
|
75
56
|
/** Any object */
|
|
76
57
|
result: Record<string, unknown>;
|
|
77
58
|
}
|
|
59
|
+
export interface FunctionCallInput {
|
|
60
|
+
/** (Possibly partial) Sophia contract code */
|
|
61
|
+
source: string;
|
|
62
|
+
options?: CompileOpts;
|
|
63
|
+
/** Name of function to call */
|
|
64
|
+
function: string;
|
|
65
|
+
/** Array of function call arguments */
|
|
66
|
+
arguments: string[];
|
|
67
|
+
}
|
|
68
|
+
export interface Calldata {
|
|
69
|
+
/** Prefixed (cb_) Base64Check encoded byte array */
|
|
70
|
+
calldata: string;
|
|
71
|
+
}
|
|
78
72
|
export interface DecodeCalldataBytecode {
|
|
79
|
-
/** Compiler backend; fate | aevm */
|
|
80
|
-
backend?: DecodeCalldataBytecodeBackend;
|
|
81
|
-
/** Compiled contract */
|
|
82
|
-
bytecode: string;
|
|
83
73
|
/** Calldata to dissect */
|
|
84
74
|
calldata: string;
|
|
75
|
+
/** Compiled contract */
|
|
76
|
+
bytecode: string;
|
|
85
77
|
}
|
|
86
78
|
export interface DecodedCalldata {
|
|
87
|
-
arguments: Record<string, unknown>[];
|
|
88
79
|
function: string;
|
|
80
|
+
arguments: Record<string, unknown>[];
|
|
81
|
+
}
|
|
82
|
+
export interface ErrorModel {
|
|
83
|
+
reason: string;
|
|
89
84
|
}
|
|
90
85
|
export interface DecodeCalldataSource {
|
|
86
|
+
/** (Possibly partial) Sophia contract code */
|
|
87
|
+
source: string;
|
|
88
|
+
options?: CompileOpts;
|
|
91
89
|
/** Calldata to dissect */
|
|
92
90
|
calldata: string;
|
|
93
91
|
/** Name of the function to call */
|
|
94
92
|
function: string;
|
|
95
|
-
options?: CompileOpts;
|
|
96
|
-
/** (Possibly partial) Sophia contract code */
|
|
97
|
-
source: string;
|
|
98
|
-
}
|
|
99
|
-
export interface SophiaBinaryData {
|
|
100
|
-
data: string;
|
|
101
|
-
sophiaType: string;
|
|
102
|
-
}
|
|
103
|
-
export interface SophiaJsonData {
|
|
104
|
-
/** Any object */
|
|
105
|
-
data: Record<string, unknown>;
|
|
106
|
-
}
|
|
107
|
-
export interface FunctionCallInput {
|
|
108
|
-
/** Array of function call arguments */
|
|
109
|
-
arguments: string[];
|
|
110
|
-
/** Name of function to call */
|
|
111
|
-
function: string;
|
|
112
|
-
options?: CompileOpts;
|
|
113
|
-
/** (Possibly partial) Sophia contract code */
|
|
114
|
-
source: string;
|
|
115
93
|
}
|
|
116
|
-
export interface
|
|
117
|
-
/**
|
|
118
|
-
|
|
94
|
+
export interface ByteCodeInput {
|
|
95
|
+
/** Compiled contract */
|
|
96
|
+
bytecode: string;
|
|
119
97
|
}
|
|
120
98
|
export interface FateAssembler {
|
|
121
99
|
/** Fate assembler code */
|
|
@@ -124,82 +102,41 @@ export interface FateAssembler {
|
|
|
124
102
|
export interface ValidateByteCodeInput {
|
|
125
103
|
/** Compiled contract */
|
|
126
104
|
bytecode: string;
|
|
127
|
-
options: CompileOpts;
|
|
128
105
|
/** Sophia contract source code */
|
|
129
106
|
source: string;
|
|
107
|
+
options?: CompileOpts;
|
|
130
108
|
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
Aevm = "aevm"
|
|
135
|
-
}
|
|
136
|
-
/**
|
|
137
|
-
* Defines values for CompileOptsBackend. \
|
|
138
|
-
* {@link KnownCompileOptsBackend} can be used interchangeably with CompileOptsBackend,
|
|
139
|
-
* this enum contains the known values that the service supports.
|
|
140
|
-
* ### Known values supported by the service
|
|
141
|
-
* **fate** \
|
|
142
|
-
* **aevm**
|
|
143
|
-
*/
|
|
144
|
-
export declare type CompileOptsBackend = string;
|
|
145
|
-
/** Known values of {@link BytecodeCallResultInputBackend} that the service accepts. */
|
|
146
|
-
export declare enum KnownBytecodeCallResultInputBackend {
|
|
147
|
-
Fate = "fate",
|
|
148
|
-
Aevm = "aevm"
|
|
149
|
-
}
|
|
150
|
-
/**
|
|
151
|
-
* Defines values for BytecodeCallResultInputBackend. \
|
|
152
|
-
* {@link KnownBytecodeCallResultInputBackend} can be used interchangeably with BytecodeCallResultInputBackend,
|
|
153
|
-
* this enum contains the known values that the service supports.
|
|
154
|
-
* ### Known values supported by the service
|
|
155
|
-
* **fate** \
|
|
156
|
-
* **aevm**
|
|
157
|
-
*/
|
|
158
|
-
export declare type BytecodeCallResultInputBackend = string;
|
|
159
|
-
/** Known values of {@link DecodeCalldataBytecodeBackend} that the service accepts. */
|
|
160
|
-
export declare enum KnownDecodeCalldataBytecodeBackend {
|
|
161
|
-
Fate = "fate",
|
|
162
|
-
Aevm = "aevm"
|
|
163
|
-
}
|
|
164
|
-
/**
|
|
165
|
-
* Defines values for DecodeCalldataBytecodeBackend. \
|
|
166
|
-
* {@link KnownDecodeCalldataBytecodeBackend} can be used interchangeably with DecodeCalldataBytecodeBackend,
|
|
167
|
-
* this enum contains the known values that the service supports.
|
|
168
|
-
* ### Known values supported by the service
|
|
169
|
-
* **fate** \
|
|
170
|
-
* **aevm**
|
|
171
|
-
*/
|
|
172
|
-
export declare type DecodeCalldataBytecodeBackend = string;
|
|
173
|
-
/** Optional parameters. */
|
|
174
|
-
export interface GenerateACIOptionalParams extends coreClient.OperationOptions {
|
|
109
|
+
export interface CompilerVersion {
|
|
110
|
+
/** Sophia compiler version */
|
|
111
|
+
version: string;
|
|
175
112
|
}
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
113
|
+
export interface ApiVersion {
|
|
114
|
+
/** API compiler version */
|
|
115
|
+
apiVersion: string;
|
|
116
|
+
}
|
|
117
|
+
export interface SophiaBinaryData {
|
|
118
|
+
sophiaType: string;
|
|
119
|
+
data: string;
|
|
120
|
+
}
|
|
121
|
+
export interface SophiaJsonData {
|
|
122
|
+
/** Any object */
|
|
123
|
+
data: Record<string, unknown>;
|
|
180
124
|
}
|
|
181
|
-
/** Contains response data for the api operation. */
|
|
182
|
-
export declare type ApiResponse = Record<string, unknown>;
|
|
183
125
|
/** Optional parameters. */
|
|
184
|
-
export interface
|
|
126
|
+
export interface GenerateACIOptionalParams extends coreClient.OperationOptions {
|
|
185
127
|
}
|
|
186
|
-
/** Contains response data for the
|
|
187
|
-
export
|
|
128
|
+
/** Contains response data for the generateACI operation. */
|
|
129
|
+
export type GenerateACIResponse = Aci;
|
|
188
130
|
/** Optional parameters. */
|
|
189
131
|
export interface CompileContractOptionalParams extends coreClient.OperationOptions {
|
|
190
132
|
}
|
|
191
133
|
/** Contains response data for the compileContract operation. */
|
|
192
|
-
export
|
|
193
|
-
/** Optional parameters. */
|
|
194
|
-
export interface GetCompilerVersionOptionalParams extends coreClient.OperationOptions {
|
|
195
|
-
}
|
|
196
|
-
/** Contains response data for the getCompilerVersion operation. */
|
|
197
|
-
export declare type GetCompilerVersionResponse = CompilerVersion;
|
|
134
|
+
export type CompileContractResponse = ByteCode;
|
|
198
135
|
/** Optional parameters. */
|
|
199
136
|
export interface DecodeCallResultOptionalParams extends coreClient.OperationOptions {
|
|
200
137
|
}
|
|
201
138
|
/** Contains response data for the decodeCallResult operation. */
|
|
202
|
-
export
|
|
139
|
+
export type DecodeCallResultResponse = {
|
|
203
140
|
/** The parsed response body. */
|
|
204
141
|
body: any;
|
|
205
142
|
};
|
|
@@ -207,40 +144,50 @@ export declare type DecodeCallResultResponse = {
|
|
|
207
144
|
export interface DecodeCallResultBytecodeOptionalParams extends coreClient.OperationOptions {
|
|
208
145
|
}
|
|
209
146
|
/** Contains response data for the decodeCallResultBytecode operation. */
|
|
210
|
-
export
|
|
147
|
+
export type DecodeCallResultBytecodeResponse = DecodedCallresult;
|
|
148
|
+
/** Optional parameters. */
|
|
149
|
+
export interface EncodeCalldataOptionalParams extends coreClient.OperationOptions {
|
|
150
|
+
}
|
|
151
|
+
/** Contains response data for the encodeCalldata operation. */
|
|
152
|
+
export type EncodeCalldataResponse = Calldata;
|
|
211
153
|
/** Optional parameters. */
|
|
212
154
|
export interface DecodeCalldataBytecodeOptionalParams extends coreClient.OperationOptions {
|
|
213
155
|
}
|
|
214
156
|
/** Contains response data for the decodeCalldataBytecode operation. */
|
|
215
|
-
export
|
|
157
|
+
export type DecodeCalldataBytecodeResponse = DecodedCalldata;
|
|
216
158
|
/** Optional parameters. */
|
|
217
159
|
export interface DecodeCalldataSourceOptionalParams extends coreClient.OperationOptions {
|
|
218
160
|
}
|
|
219
161
|
/** Contains response data for the decodeCalldataSource operation. */
|
|
220
|
-
export
|
|
221
|
-
/** Optional parameters. */
|
|
222
|
-
export interface DecodeDataOptionalParams extends coreClient.OperationOptions {
|
|
223
|
-
}
|
|
224
|
-
/** Contains response data for the decodeData operation. */
|
|
225
|
-
export declare type DecodeDataResponse = SophiaJsonData;
|
|
226
|
-
/** Optional parameters. */
|
|
227
|
-
export interface EncodeCalldataOptionalParams extends coreClient.OperationOptions {
|
|
228
|
-
}
|
|
229
|
-
/** Contains response data for the encodeCalldata operation. */
|
|
230
|
-
export declare type EncodeCalldataResponse = Calldata;
|
|
162
|
+
export type DecodeCalldataSourceResponse = DecodedCalldata;
|
|
231
163
|
/** Optional parameters. */
|
|
232
164
|
export interface GetFateAssemblerCodeOptionalParams extends coreClient.OperationOptions {
|
|
233
165
|
}
|
|
234
166
|
/** Contains response data for the getFateAssemblerCode operation. */
|
|
235
|
-
export
|
|
167
|
+
export type GetFateAssemblerCodeResponse = FateAssembler;
|
|
236
168
|
/** Optional parameters. */
|
|
237
169
|
export interface ValidateByteCodeOptionalParams extends coreClient.OperationOptions {
|
|
238
170
|
}
|
|
239
171
|
/** Optional parameters. */
|
|
172
|
+
export interface GetCompilerVersionOptionalParams extends coreClient.OperationOptions {
|
|
173
|
+
}
|
|
174
|
+
/** Contains response data for the getCompilerVersion operation. */
|
|
175
|
+
export type GetCompilerVersionResponse = CompilerVersion;
|
|
176
|
+
/** Optional parameters. */
|
|
240
177
|
export interface VersionOptionalParams extends coreClient.OperationOptions {
|
|
241
178
|
}
|
|
242
179
|
/** Contains response data for the version operation. */
|
|
243
|
-
export
|
|
180
|
+
export type VersionResponse = CompilerVersion;
|
|
181
|
+
/** Optional parameters. */
|
|
182
|
+
export interface ApiVersionOptionalParams extends coreClient.OperationOptions {
|
|
183
|
+
}
|
|
184
|
+
/** Contains response data for the apiVersion operation. */
|
|
185
|
+
export type ApiVersionResponse = ApiVersion;
|
|
186
|
+
/** Optional parameters. */
|
|
187
|
+
export interface ApiOptionalParams extends coreClient.OperationOptions {
|
|
188
|
+
}
|
|
189
|
+
/** Contains response data for the api operation. */
|
|
190
|
+
export type ApiResponse = Record<string, unknown>;
|
|
244
191
|
/** Optional parameters. */
|
|
245
192
|
export interface CompilerOptionalParams extends coreClient.ServiceClientOptions {
|
|
246
193
|
/** Overrides client endpoint. */
|
|
@@ -1,48 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export let KnownCompileOptsBackend;
|
|
3
|
-
/**
|
|
4
|
-
* Defines values for CompileOptsBackend. \
|
|
5
|
-
* {@link KnownCompileOptsBackend} can be used interchangeably with CompileOptsBackend,
|
|
6
|
-
* this enum contains the known values that the service supports.
|
|
7
|
-
* ### Known values supported by the service
|
|
8
|
-
* **fate** \
|
|
9
|
-
* **aevm**
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
(function (KnownCompileOptsBackend) {
|
|
13
|
-
KnownCompileOptsBackend["Fate"] = "fate";
|
|
14
|
-
KnownCompileOptsBackend["Aevm"] = "aevm";
|
|
15
|
-
})(KnownCompileOptsBackend || (KnownCompileOptsBackend = {}));
|
|
16
|
-
|
|
17
|
-
/** Known values of {@link BytecodeCallResultInputBackend} that the service accepts. */
|
|
18
|
-
export let KnownBytecodeCallResultInputBackend;
|
|
19
|
-
/**
|
|
20
|
-
* Defines values for BytecodeCallResultInputBackend. \
|
|
21
|
-
* {@link KnownBytecodeCallResultInputBackend} can be used interchangeably with BytecodeCallResultInputBackend,
|
|
22
|
-
* this enum contains the known values that the service supports.
|
|
23
|
-
* ### Known values supported by the service
|
|
24
|
-
* **fate** \
|
|
25
|
-
* **aevm**
|
|
26
|
-
*/
|
|
27
|
-
|
|
28
|
-
(function (KnownBytecodeCallResultInputBackend) {
|
|
29
|
-
KnownBytecodeCallResultInputBackend["Fate"] = "fate";
|
|
30
|
-
KnownBytecodeCallResultInputBackend["Aevm"] = "aevm";
|
|
31
|
-
})(KnownBytecodeCallResultInputBackend || (KnownBytecodeCallResultInputBackend = {}));
|
|
32
|
-
|
|
33
|
-
/** Known values of {@link DecodeCalldataBytecodeBackend} that the service accepts. */
|
|
34
|
-
export let KnownDecodeCalldataBytecodeBackend;
|
|
35
|
-
/**
|
|
36
|
-
* Defines values for DecodeCalldataBytecodeBackend. \
|
|
37
|
-
* {@link KnownDecodeCalldataBytecodeBackend} can be used interchangeably with DecodeCalldataBytecodeBackend,
|
|
38
|
-
* this enum contains the known values that the service supports.
|
|
39
|
-
* ### Known values supported by the service
|
|
40
|
-
* **fate** \
|
|
41
|
-
* **aevm**
|
|
42
|
-
*/
|
|
43
|
-
|
|
44
|
-
(function (KnownDecodeCalldataBytecodeBackend) {
|
|
45
|
-
KnownDecodeCalldataBytecodeBackend["Fate"] = "fate";
|
|
46
|
-
KnownDecodeCalldataBytecodeBackend["Aevm"] = "aevm";
|
|
47
|
-
})(KnownDecodeCalldataBytecodeBackend || (KnownDecodeCalldataBytecodeBackend = {}));
|
|
1
|
+
export {};
|
|
48
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../../../src/apis/compiler/models/index.ts"],"sourcesContent":["import * as coreClient from \"@azure/core-client\";\n\nexport interface Contract {\n code: string;\n options?: CompileOpts;\n}\n\nexport interface CompileOpts {\n /** An explicit file system, mapping file names to file content */\n fileSystem?: Record<string, unknown>;\n /** Name of contract source file - only used in error messages */\n srcFile?: string;\n}\n\nexport interface Aci {\n /** Any object */\n encodedAci: Record<string, unknown>;\n externalEncodedAci?: Record<string, unknown>[];\n interface: string;\n}\n\nexport interface CompilerError {\n type: string;\n pos: ErrorPos;\n message: string;\n context?: string;\n}\n\nexport interface ErrorPos {\n file?: string;\n line: number;\n col: number;\n}\n\nexport interface ByteCode {\n /** Prefixed (cb_) Base64Check encoded byte array */\n bytecode: string;\n}\n\nexport interface SophiaCallResultInput {\n /** (Possibly partial) Sophia contract code/interface */\n source: string;\n options?: CompileOpts;\n /** Name of the called function */\n function: string;\n /** Call result type (ok | revert | error) */\n callResult: string;\n /** Call result value (ABI encoded data or error string) */\n callValue: string;\n}\n\nexport interface BytecodeCallResultInput {\n /** Compiled contract */\n bytecode: string;\n /** Name of the called function */\n function: string;\n /** Call result type (ok | revert | error) */\n callResult: string;\n /** Call result value (ABI encoded data or error string) */\n callValue: string;\n}\n\nexport interface DecodedCallresult {\n function: string;\n /** Any object */\n result: Record<string, unknown>;\n}\n\nexport interface FunctionCallInput {\n /** (Possibly partial) Sophia contract code */\n source: string;\n options?: CompileOpts;\n /** Name of function to call */\n function: string;\n /** Array of function call arguments */\n arguments: string[];\n}\n\nexport interface Calldata {\n /** Prefixed (cb_) Base64Check encoded byte array */\n calldata: string;\n}\n\nexport interface DecodeCalldataBytecode {\n /** Calldata to dissect */\n calldata: string;\n /** Compiled contract */\n bytecode: string;\n}\n\nexport interface DecodedCalldata {\n function: string;\n arguments: Record<string, unknown>[];\n}\n\nexport interface ErrorModel {\n reason: string;\n}\n\nexport interface DecodeCalldataSource {\n /** (Possibly partial) Sophia contract code */\n source: string;\n options?: CompileOpts;\n /** Calldata to dissect */\n calldata: string;\n /** Name of the function to call */\n function: string;\n}\n\nexport interface ByteCodeInput {\n /** Compiled contract */\n bytecode: string;\n}\n\nexport interface FateAssembler {\n /** Fate assembler code */\n fateAssembler: string;\n}\n\nexport interface ValidateByteCodeInput {\n /** Compiled contract */\n bytecode: string;\n /** Sophia contract source code */\n source: string;\n options?: CompileOpts;\n}\n\nexport interface CompilerVersion {\n /** Sophia compiler version */\n version: string;\n}\n\nexport interface ApiVersion {\n /** API compiler version */\n apiVersion: string;\n}\n\nexport interface SophiaBinaryData {\n sophiaType: string;\n data: string;\n}\n\nexport interface SophiaJsonData {\n /** Any object */\n data: Record<string, unknown>;\n}\n\n/** Optional parameters. */\nexport interface GenerateACIOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the generateACI operation. */\nexport type GenerateACIResponse = Aci;\n\n/** Optional parameters. */\nexport interface CompileContractOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the compileContract operation. */\nexport type CompileContractResponse = ByteCode;\n\n/** Optional parameters. */\nexport interface DecodeCallResultOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the decodeCallResult operation. */\nexport type DecodeCallResultResponse = {\n /** The parsed response body. */\n body: any;\n};\n\n/** Optional parameters. */\nexport interface DecodeCallResultBytecodeOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the decodeCallResultBytecode operation. */\nexport type DecodeCallResultBytecodeResponse = DecodedCallresult;\n\n/** Optional parameters. */\nexport interface EncodeCalldataOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the encodeCalldata operation. */\nexport type EncodeCalldataResponse = Calldata;\n\n/** Optional parameters. */\nexport interface DecodeCalldataBytecodeOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the decodeCalldataBytecode operation. */\nexport type DecodeCalldataBytecodeResponse = DecodedCalldata;\n\n/** Optional parameters. */\nexport interface DecodeCalldataSourceOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the decodeCalldataSource operation. */\nexport type DecodeCalldataSourceResponse = DecodedCalldata;\n\n/** Optional parameters. */\nexport interface GetFateAssemblerCodeOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the getFateAssemblerCode operation. */\nexport type GetFateAssemblerCodeResponse = FateAssembler;\n\n/** Optional parameters. */\nexport interface ValidateByteCodeOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface GetCompilerVersionOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the getCompilerVersion operation. */\nexport type GetCompilerVersionResponse = CompilerVersion;\n\n/** Optional parameters. */\nexport interface VersionOptionalParams extends coreClient.OperationOptions {}\n\n/** Contains response data for the version operation. */\nexport type VersionResponse = CompilerVersion;\n\n/** Optional parameters. */\nexport interface ApiVersionOptionalParams extends coreClient.OperationOptions {}\n\n/** Contains response data for the apiVersion operation. */\nexport type ApiVersionResponse = ApiVersion;\n\n/** Optional parameters. */\nexport interface ApiOptionalParams extends coreClient.OperationOptions {}\n\n/** Contains response data for the api operation. */\nexport type ApiResponse = Record<string, unknown>;\n\n/** Optional parameters. */\nexport interface CompilerOptionalParams\n extends coreClient.ServiceClientOptions {\n /** Overrides client endpoint. */\n endpoint?: string;\n}\n"],"mappings":""}
|
|
@@ -4,20 +4,20 @@ export declare const CompileOpts: coreClient.CompositeMapper;
|
|
|
4
4
|
export declare const Aci: coreClient.CompositeMapper;
|
|
5
5
|
export declare const CompilerError: coreClient.CompositeMapper;
|
|
6
6
|
export declare const ErrorPos: coreClient.CompositeMapper;
|
|
7
|
-
export declare const ErrorModel: coreClient.CompositeMapper;
|
|
8
|
-
export declare const APIVersion: coreClient.CompositeMapper;
|
|
9
7
|
export declare const ByteCode: coreClient.CompositeMapper;
|
|
10
|
-
export declare const ByteCodeInput: coreClient.CompositeMapper;
|
|
11
|
-
export declare const CompilerVersion: coreClient.CompositeMapper;
|
|
12
8
|
export declare const SophiaCallResultInput: coreClient.CompositeMapper;
|
|
13
9
|
export declare const BytecodeCallResultInput: coreClient.CompositeMapper;
|
|
14
10
|
export declare const DecodedCallresult: coreClient.CompositeMapper;
|
|
11
|
+
export declare const FunctionCallInput: coreClient.CompositeMapper;
|
|
12
|
+
export declare const Calldata: coreClient.CompositeMapper;
|
|
15
13
|
export declare const DecodeCalldataBytecode: coreClient.CompositeMapper;
|
|
16
14
|
export declare const DecodedCalldata: coreClient.CompositeMapper;
|
|
15
|
+
export declare const ErrorModel: coreClient.CompositeMapper;
|
|
17
16
|
export declare const DecodeCalldataSource: coreClient.CompositeMapper;
|
|
18
|
-
export declare const
|
|
19
|
-
export declare const SophiaJsonData: coreClient.CompositeMapper;
|
|
20
|
-
export declare const FunctionCallInput: coreClient.CompositeMapper;
|
|
21
|
-
export declare const Calldata: coreClient.CompositeMapper;
|
|
17
|
+
export declare const ByteCodeInput: coreClient.CompositeMapper;
|
|
22
18
|
export declare const FateAssembler: coreClient.CompositeMapper;
|
|
23
19
|
export declare const ValidateByteCodeInput: coreClient.CompositeMapper;
|
|
20
|
+
export declare const CompilerVersion: coreClient.CompositeMapper;
|
|
21
|
+
export declare const ApiVersion: coreClient.CompositeMapper;
|
|
22
|
+
export declare const SophiaBinaryData: coreClient.CompositeMapper;
|
|
23
|
+
export declare const SophiaJsonData: coreClient.CompositeMapper;
|