@airgap/coinlib-core 0.13.11-beta.1 → 0.13.11-beta.2
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/actions/Action.d.ts +24 -0
- package/actions/Action.js +119 -0
- package/actions/Action.js.map +1 -0
- package/actions/LinkedAction.d.ts +10 -0
- package/actions/LinkedAction.js +95 -0
- package/actions/LinkedAction.js.map +1 -0
- package/actions/RepeatableAction.d.ts +8 -0
- package/actions/RepeatableAction.js +92 -0
- package/actions/RepeatableAction.js.map +1 -0
- package/actions/SimpleAction.d.ts +7 -0
- package/actions/SimpleAction.js +80 -0
- package/actions/SimpleAction.js.map +1 -0
- package/actions/StateMachine.d.ts +9 -0
- package/actions/StateMachine.js +42 -0
- package/actions/StateMachine.js.map +1 -0
- package/data/KeyPair.d.ts +5 -0
- package/data/KeyPair.js +3 -0
- package/data/KeyPair.js.map +1 -0
- package/data/Lazy.d.ts +14 -0
- package/data/Lazy.js +83 -0
- package/data/Lazy.js.map +1 -0
- package/data/RPCBody.d.ts +7 -0
- package/data/RPCBody.js +16 -0
- package/data/RPCBody.js.map +1 -0
- package/dependencies/src/@stablelib/binary-1.0.1/packages/binary/binary.d.ts +230 -0
- package/dependencies/src/@stablelib/binary-1.0.1/packages/binary/binary.js +471 -0
- package/dependencies/src/@stablelib/binary-1.0.1/packages/binary/binary.js.map +1 -0
- package/dependencies/src/@stablelib/blake2b-1.0.1/packages/blake2b/blake2b.d.ts +76 -0
- package/dependencies/src/@stablelib/blake2b-1.0.1/packages/blake2b/blake2b.js +455 -0
- package/dependencies/src/@stablelib/blake2b-1.0.1/packages/blake2b/blake2b.js.map +1 -0
- package/dependencies/src/@stablelib/ed25519-1.0.3/packages/ed25519/ed25519.d.ts +27 -0
- package/dependencies/src/@stablelib/ed25519-1.0.3/packages/ed25519/ed25519.js +848 -0
- package/dependencies/src/@stablelib/ed25519-1.0.3/packages/ed25519/ed25519.js.map +1 -0
- package/dependencies/src/@stablelib/hash-1.0.1/packages/hash/hash.d.ts +22 -0
- package/dependencies/src/@stablelib/hash-1.0.1/packages/hash/hash.js +14 -0
- package/dependencies/src/@stablelib/hash-1.0.1/packages/hash/hash.js.map +1 -0
- package/dependencies/src/@stablelib/int-1.0.1/packages/int/int.d.ts +29 -0
- package/dependencies/src/@stablelib/int-1.0.1/packages/int/int.js +63 -0
- package/dependencies/src/@stablelib/int-1.0.1/packages/int/int.js.map +1 -0
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/random.d.ts +36 -0
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/random.js +87 -0
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/random.js.map +1 -0
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/browser.d.ts +8 -0
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/browser.js +33 -0
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/browser.js.map +1 -0
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/index.d.ts +11 -0
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/index.js +5 -0
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/index.js.map +1 -0
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/node.d.ts +8 -0
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/node.js +43 -0
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/node.js.map +1 -0
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/system.d.ts +8 -0
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/system.js +37 -0
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/system.js.map +1 -0
- package/dependencies/src/@stablelib/sha512/packages/sha512/sha512.d.ts +73 -0
- package/dependencies/src/@stablelib/sha512/packages/sha512/sha512.js +552 -0
- package/dependencies/src/@stablelib/sha512/packages/sha512/sha512.js.map +1 -0
- package/dependencies/src/@stablelib/sha512-1.0.1/packages/sha512/sha512.d.ts +73 -0
- package/dependencies/src/@stablelib/sha512-1.0.1/packages/sha512/sha512.js +552 -0
- package/dependencies/src/@stablelib/sha512-1.0.1/packages/sha512/sha512.js.map +1 -0
- package/dependencies/src/@stablelib/wipe-1.0.1/packages/wipe/wipe.d.ts +18 -0
- package/dependencies/src/@stablelib/wipe-1.0.1/packages/wipe/wipe.js +29 -0
- package/dependencies/src/@stablelib/wipe-1.0.1/packages/wipe/wipe.js.map +1 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/codec.d.ts +57 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/codec.js +384 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/codec.js.map +1 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/constants.d.ts +63 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/constants.js +264 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/constants.js.map +1 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/decoder.d.ts +5 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/decoder.js +82 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/decoder.js.map +1 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/encoder.d.ts +4 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/encoder.js +67 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/encoder.js.map +1 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/error.d.ts +89 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/error.js +169 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/error.js.map +1 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/interface.d.ts +9 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/interface.js +3 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/interface.js.map +1 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/michelson/codec.d.ts +42 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/michelson/codec.js +270 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/michelson/codec.js.map +1 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/codec-proto14.d.ts +15 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/codec-proto14.js +80 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/codec-proto14.js.map +1 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/constants-proto14.d.ts +12 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/constants-proto14.js +184 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/constants-proto14.js.map +1 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/decoder-proto14.d.ts +5 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/decoder-proto14.js +81 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/decoder-proto14.js.map +1 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/encoder-proto14.d.ts +4 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/encoder-proto14.js +76 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/encoder-proto14.js.map +1 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/michelson/codec-proto14.d.ts +14 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/michelson/codec-proto14.js +150 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/michelson/codec-proto14.js.map +1 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/protocols.d.ts +17 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/protocols.js +41 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/protocols.js.map +1 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/schema/operation.d.ts +150 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/schema/operation.js +217 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/schema/operation.js.map +1 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/taquito-local-forging.d.ts +26 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/taquito-local-forging.js +115 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/taquito-local-forging.js.map +1 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/uint8array-consumer.d.ts +9 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/uint8array-consumer.js +35 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/uint8array-consumer.js.map +1 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/utils.d.ts +3 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/utils.js +26 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/utils.js.map +1 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/validator.d.ts +13 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/validator.js +52 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/validator.js.map +1 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/version.d.ts +4 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/version.js +9 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/version.js.map +1 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-rpc/src/opkind.d.ts +34 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-rpc/src/opkind.js +39 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-rpc/src/opkind.js.map +1 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-rpc/src/types.d.ts +1590 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-rpc/src/types.js +35 -0
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-rpc/src/types.js.map +1 -0
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/constants.d.ts +91 -0
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/constants.js +127 -0
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/constants.js.map +1 -0
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/errors.d.ts +145 -0
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/errors.js +270 -0
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/errors.js.map +1 -0
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/format.d.ts +4 -0
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/format.js +33 -0
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/format.js.map +1 -0
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/taquito-utils.d.ts +163 -0
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/taquito-utils.js +438 -0
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/taquito-utils.js.map +1 -0
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/validators.d.ts +158 -0
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/validators.js +254 -0
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/validators.js.map +1 -0
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/verify-signature.d.ts +24 -0
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/verify-signature.js +126 -0
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/verify-signature.js.map +1 -0
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/version.d.ts +4 -0
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/version.js +9 -0
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/version.js.map +1 -0
- package/dependencies/src/axios-0.19.0/index.d.ts +152 -0
- package/dependencies/src/axios-0.19.0/index.js +1 -0
- package/dependencies/src/axios-0.19.0/lib/adapters/http.js +275 -0
- package/dependencies/src/axios-0.19.0/lib/adapters/xhr.js +174 -0
- package/dependencies/src/axios-0.19.0/lib/axios.js +53 -0
- package/dependencies/src/axios-0.19.0/lib/cancel/Cancel.js +19 -0
- package/dependencies/src/axios-0.19.0/lib/cancel/CancelToken.js +57 -0
- package/dependencies/src/axios-0.19.0/lib/cancel/isCancel.js +5 -0
- package/dependencies/src/axios-0.19.0/lib/core/Axios.js +86 -0
- package/dependencies/src/axios-0.19.0/lib/core/InterceptorManager.js +52 -0
- package/dependencies/src/axios-0.19.0/lib/core/createError.js +18 -0
- package/dependencies/src/axios-0.19.0/lib/core/dispatchRequest.js +86 -0
- package/dependencies/src/axios-0.19.0/lib/core/enhanceError.js +42 -0
- package/dependencies/src/axios-0.19.0/lib/core/mergeConfig.js +51 -0
- package/dependencies/src/axios-0.19.0/lib/core/settle.js +25 -0
- package/dependencies/src/axios-0.19.0/lib/core/transformData.js +20 -0
- package/dependencies/src/axios-0.19.0/lib/defaults.js +98 -0
- package/dependencies/src/axios-0.19.0/lib/helpers/bind.js +11 -0
- package/dependencies/src/axios-0.19.0/lib/helpers/buildURL.js +71 -0
- package/dependencies/src/axios-0.19.0/lib/helpers/combineURLs.js +14 -0
- package/dependencies/src/axios-0.19.0/lib/helpers/cookies.js +53 -0
- package/dependencies/src/axios-0.19.0/lib/helpers/deprecatedMethod.js +24 -0
- package/dependencies/src/axios-0.19.0/lib/helpers/isAbsoluteURL.js +14 -0
- package/dependencies/src/axios-0.19.0/lib/helpers/isURLSameOrigin.js +68 -0
- package/dependencies/src/axios-0.19.0/lib/helpers/normalizeHeaderName.js +12 -0
- package/dependencies/src/axios-0.19.0/lib/helpers/parseHeaders.js +53 -0
- package/dependencies/src/axios-0.19.0/lib/helpers/spread.js +27 -0
- package/dependencies/src/axios-0.19.0/lib/utils.js +334 -0
- package/dependencies/src/axios-0.19.0/package.json +85 -0
- package/dependencies/src/base-x-3.0.7/src/index.d.ts +10 -0
- package/dependencies/src/base-x-3.0.7/src/index.js +120 -0
- package/dependencies/src/base64-js-1.3.1/index.js +152 -0
- package/dependencies/src/bech32-0.0.3/index.js +139 -0
- package/dependencies/src/bech32-1.1.3/index.js +147 -0
- package/dependencies/src/big-integer-1.6.45/BigInteger.d.ts +2393 -0
- package/dependencies/src/big-integer-1.6.45/BigInteger.js +1452 -0
- package/dependencies/src/bigi-1.4.2/lib/bigi.js +1509 -0
- package/dependencies/src/bigi-1.4.2/lib/convert.js +91 -0
- package/dependencies/src/bigi-1.4.2/lib/index.js +6 -0
- package/dependencies/src/bigi-1.4.2/package.json +55 -0
- package/dependencies/src/bignumber.js-9.0.0/bignumber.d.ts +1829 -0
- package/dependencies/src/bignumber.js-9.0.0/bignumber.js +2902 -0
- package/dependencies/src/bip32-2.0.4/src/bip32.js +290 -0
- package/dependencies/src/bip32-2.0.4/src/crypto.js +26 -0
- package/dependencies/src/bip32-2.0.4/src/index.js +7 -0
- package/dependencies/src/bip32-path-0.4.2/index.js +96 -0
- package/dependencies/src/bip39-2.5.0/index.js +153 -0
- package/dependencies/src/bip39-2.5.0/wordlists/chinese_simplified.json +2050 -0
- package/dependencies/src/bip39-2.5.0/wordlists/chinese_traditional.json +2050 -0
- package/dependencies/src/bip39-2.5.0/wordlists/english.json +2050 -0
- package/dependencies/src/bip39-2.5.0/wordlists/french.json +2050 -0
- package/dependencies/src/bip39-2.5.0/wordlists/italian.json +2050 -0
- package/dependencies/src/bip39-2.5.0/wordlists/japanese.json +2050 -0
- package/dependencies/src/bip39-2.5.0/wordlists/korean.json +2050 -0
- package/dependencies/src/bip39-2.5.0/wordlists/spanish.json +2050 -0
- package/dependencies/src/bip66-1.1.5/index.js +113 -0
- package/dependencies/src/bitcoin-ops-1.4.1/index.json +120 -0
- package/dependencies/src/bitcoin-ops-1.4.1/map.js +9 -0
- package/dependencies/src/bitcoinjs-message-2.1.1/index.js +157 -0
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/address.js +109 -0
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/block.js +234 -0
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/bufferWriter.js +40 -0
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/bufferutils.js +65 -0
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/coins.js +53 -0
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/crypto.js +43 -0
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/ecdsa.js +161 -0
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/ecpair.js +155 -0
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/ecsignature.js +97 -0
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/fastcurve.js +92 -0
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/hdnode.js +363 -0
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/index.js +24 -0
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/networks.js +214 -0
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/script.js +214 -0
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/script_number.js +68 -0
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/templates/index.js +74 -0
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/templates/multisig/index.js +4 -0
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/templates/multisig/input.js +71 -0
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/templates/multisig/output.js +64 -0
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/templates/nulldata.js +39 -0
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/templates/pubkey/index.js +4 -0
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/templates/pubkey/input.js +39 -0
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/templates/pubkey/output.js +33 -0
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/templates/pubkeyhash/index.js +4 -0
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/templates/pubkeyhash/input.js +51 -0
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/templates/pubkeyhash/output.js +42 -0
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/templates/scripthash/index.js +4 -0
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/templates/scripthash/input.js +84 -0
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/templates/scripthash/output.js +34 -0
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/templates/witnesscommitment/index.js +3 -0
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/templates/witnesscommitment/output.js +42 -0
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/templates/witnesspubkeyhash/index.js +4 -0
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/templates/witnesspubkeyhash/input.js +44 -0
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/templates/witnesspubkeyhash/output.js +33 -0
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/templates/witnessscripthash/index.js +4 -0
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/templates/witnessscripthash/input.js +63 -0
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/templates/witnessscripthash/output.js +33 -0
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/transaction.js +1125 -0
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/transaction_builder.js +892 -0
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/types.js +55 -0
- package/dependencies/src/blake2b-6268e6dd678661e0acc4359e9171b97eb1ebf8ac/index.js +313 -0
- package/dependencies/src/blake2b-wasm-193cdb71656c1a6c7f89b05d0327bb9b758d071b/blake2b.js +63 -0
- package/dependencies/src/blake2b-wasm-193cdb71656c1a6c7f89b05d0327bb9b758d071b/index.js +128 -0
- package/dependencies/src/blakejs-1.1.0/blake2b.js +273 -0
- package/dependencies/src/blakejs-1.1.0/blake2s.js +190 -0
- package/dependencies/src/blakejs-1.1.0/index.js +15 -0
- package/dependencies/src/blakejs-1.1.0/util.js +81 -0
- package/dependencies/src/bn.js-4.11.8/lib/bn.js +3427 -0
- package/dependencies/src/brorand-1.1.0/index.js +65 -0
- package/dependencies/src/bs58-4.0.1/index.js +4 -0
- package/dependencies/src/bs58check-2.1.2/base.js +50 -0
- package/dependencies/src/bs58check-2.1.2/index.js +12 -0
- package/dependencies/src/bs58grscheck-2.1.2/base.js +50 -0
- package/dependencies/src/bs58grscheck-2.1.2/index.js +12 -0
- package/dependencies/src/buffer-5.6.0/index.d.ts +186 -0
- package/dependencies/src/buffer-5.6.0/index.js +1794 -0
- package/dependencies/src/buffer-equals-1.0.4/index.js +26 -0
- package/dependencies/src/cbor-sync-1.0.4/index.d.ts +11 -0
- package/dependencies/src/cbor-sync-1.0.4/index.js +632 -0
- package/dependencies/src/cipher-base-1.0.4/index.js +99 -0
- package/dependencies/src/cosmjs/index.d.ts +379 -0
- package/dependencies/src/cosmjs/index.js +1297 -0
- package/dependencies/src/cosmjs/index.js.map +1 -0
- package/dependencies/src/create-hash-1.2.0/browser.js +30 -0
- package/dependencies/src/create-hash-1.2.0/index.js +1 -0
- package/dependencies/src/create-hash-1.2.0/md5.js +5 -0
- package/dependencies/src/create-hmac-1.1.4/browser.js +68 -0
- package/dependencies/src/create-hmac-1.1.4/index.js +1 -0
- package/dependencies/src/create-hmac-1.1.7/browser.js +62 -0
- package/dependencies/src/create-hmac-1.1.7/legacy.js +46 -0
- package/dependencies/src/cryptocompare-0.5.0/index.js +138 -0
- package/dependencies/src/cuint-0.2.2/index.js +2 -0
- package/dependencies/src/cuint-0.2.2/lib/uint32.js +451 -0
- package/dependencies/src/cuint-0.2.2/lib/uint64.js +648 -0
- package/dependencies/src/debug-3.1.0/src/browser.js +195 -0
- package/dependencies/src/debug-3.1.0/src/debug.js +225 -0
- package/dependencies/src/drbg.js-1.0.1/hash.js +92 -0
- package/dependencies/src/drbg.js-1.0.1/hmac.js +71 -0
- package/dependencies/src/drbg.js-1.0.1/index.js +4 -0
- package/dependencies/src/drbg.js-1.0.1/lib/hash-info.json +27 -0
- package/dependencies/src/drbg.js-1.0.1/lib/util.js +36 -0
- package/dependencies/src/eciesjs-0.3.9/src/index.d.ts +12 -0
- package/dependencies/src/eciesjs-0.3.9/src/index.js +35 -0
- package/dependencies/src/eciesjs-0.3.9/src/index.js.map +1 -0
- package/dependencies/src/eciesjs-0.3.9/src/keys/PrivateKey.d.ts +12 -0
- package/dependencies/src/eciesjs-0.3.9/src/keys/PrivateKey.js +62 -0
- package/dependencies/src/eciesjs-0.3.9/src/keys/PrivateKey.js.map +1 -0
- package/dependencies/src/eciesjs-0.3.9/src/keys/PublicKey.d.ts +11 -0
- package/dependencies/src/eciesjs-0.3.9/src/keys/PublicKey.js +65 -0
- package/dependencies/src/eciesjs-0.3.9/src/keys/PublicKey.js.map +1 -0
- package/dependencies/src/eciesjs-0.3.9/src/keys/index.d.ts +2 -0
- package/dependencies/src/eciesjs-0.3.9/src/keys/index.js +11 -0
- package/dependencies/src/eciesjs-0.3.9/src/keys/index.js.map +1 -0
- package/dependencies/src/eciesjs-0.3.9/src/utils.d.ts +6 -0
- package/dependencies/src/eciesjs-0.3.9/src/utils.js +65 -0
- package/dependencies/src/eciesjs-0.3.9/src/utils.js.map +1 -0
- package/dependencies/src/ecurve-1.0.6/lib/curve.js +77 -0
- package/dependencies/src/ecurve-1.0.6/lib/curves.json +65 -0
- package/dependencies/src/ecurve-1.0.6/lib/index.js +10 -0
- package/dependencies/src/ecurve-1.0.6/lib/names.js +21 -0
- package/dependencies/src/ecurve-1.0.6/lib/point.js +244 -0
- package/dependencies/src/elliptic-6.5.1/lib/elliptic/curve/base.js +374 -0
- package/dependencies/src/elliptic-6.5.1/lib/elliptic/curve/edwards.js +432 -0
- package/dependencies/src/elliptic-6.5.1/lib/elliptic/curve/index.js +8 -0
- package/dependencies/src/elliptic-6.5.1/lib/elliptic/curve/mont.js +178 -0
- package/dependencies/src/elliptic-6.5.1/lib/elliptic/curve/short.js +937 -0
- package/dependencies/src/elliptic-6.5.1/lib/elliptic/curves.js +206 -0
- package/dependencies/src/elliptic-6.5.1/lib/elliptic/ec/index.js +241 -0
- package/dependencies/src/elliptic-6.5.1/lib/elliptic/ec/key.js +118 -0
- package/dependencies/src/elliptic-6.5.1/lib/elliptic/ec/signature.js +134 -0
- package/dependencies/src/elliptic-6.5.1/lib/elliptic/eddsa/index.js +118 -0
- package/dependencies/src/elliptic-6.5.1/lib/elliptic/eddsa/key.js +95 -0
- package/dependencies/src/elliptic-6.5.1/lib/elliptic/eddsa/signature.js +65 -0
- package/dependencies/src/elliptic-6.5.1/lib/elliptic/precomputed/secp256k1.js +780 -0
- package/dependencies/src/elliptic-6.5.1/lib/elliptic/utils.js +120 -0
- package/dependencies/src/elliptic-6.5.1/lib/elliptic.js +13 -0
- package/dependencies/src/elliptic-6.5.1/package.json +55 -0
- package/dependencies/src/elliptic-6.5.3/lib/elliptic/curve/base.js +376 -0
- package/dependencies/src/elliptic-6.5.3/lib/elliptic/curve/edwards.js +432 -0
- package/dependencies/src/elliptic-6.5.3/lib/elliptic/curve/index.js +8 -0
- package/dependencies/src/elliptic-6.5.3/lib/elliptic/curve/mont.js +178 -0
- package/dependencies/src/elliptic-6.5.3/lib/elliptic/curve/short.js +937 -0
- package/dependencies/src/elliptic-6.5.3/lib/elliptic/curves.js +206 -0
- package/dependencies/src/elliptic-6.5.3/lib/elliptic/ec/index.js +241 -0
- package/dependencies/src/elliptic-6.5.3/lib/elliptic/ec/key.js +118 -0
- package/dependencies/src/elliptic-6.5.3/lib/elliptic/ec/signature.js +166 -0
- package/dependencies/src/elliptic-6.5.3/lib/elliptic/eddsa/index.js +118 -0
- package/dependencies/src/elliptic-6.5.3/lib/elliptic/eddsa/key.js +95 -0
- package/dependencies/src/elliptic-6.5.3/lib/elliptic/eddsa/signature.js +65 -0
- package/dependencies/src/elliptic-6.5.3/lib/elliptic/precomputed/secp256k1.js +780 -0
- package/dependencies/src/elliptic-6.5.3/lib/elliptic/utils.js +119 -0
- package/dependencies/src/elliptic-6.5.3/lib/elliptic.js +13 -0
- package/dependencies/src/elliptic-6.5.3/package.json +55 -0
- package/dependencies/src/ethereum-common-0.2.1/bootstrapNodes.json +92 -0
- package/dependencies/src/ethereum-common-0.2.1/genesisState.json +8895 -0
- package/dependencies/src/ethereum-common-0.2.1/index.js +4 -0
- package/dependencies/src/ethereum-common-0.2.1/params.json +245 -0
- package/dependencies/src/ethereumjs-tx-1.3.7/index.js +298 -0
- package/dependencies/src/ethereumjs-util-5.2.0/index.js +714 -0
- package/dependencies/src/ethjs-util-0.1.4/src/index.js +203 -0
- package/dependencies/src/follow-redirects-1.5.10/http.js +1 -0
- package/dependencies/src/follow-redirects-1.5.10/https.js +1 -0
- package/dependencies/src/follow-redirects-1.5.10/index.js +322 -0
- package/dependencies/src/futoin-hkdf-1.3.3/hkdf.d.ts +29 -0
- package/dependencies/src/futoin-hkdf-1.3.3/hkdf.js +174 -0
- package/dependencies/src/groestl-hash-js-ef6a04f1c4d2f0448f0882b5f213ef7a0659baee/index.js +39 -0
- package/dependencies/src/groestl-hash-js-ef6a04f1c4d2f0448f0882b5f213ef7a0659baee/lib/groestl.js +1248 -0
- package/dependencies/src/groestl-hash-js-ef6a04f1c4d2f0448f0882b5f213ef7a0659baee/lib/helper.js +253 -0
- package/dependencies/src/groestl-hash-js-ef6a04f1c4d2f0448f0882b5f213ef7a0659baee/lib/op.js +462 -0
- package/dependencies/src/groestlcoinjs-message-2.1.0/index.js +245 -0
- package/dependencies/src/hash-base-3.0.4/index.js +95 -0
- package/dependencies/src/hash.js-1.1.7/lib/hash/common.js +92 -0
- package/dependencies/src/hash.js-1.1.7/lib/hash/hmac.js +47 -0
- package/dependencies/src/hash.js-1.1.7/lib/hash/ripemd.js +146 -0
- package/dependencies/src/hash.js-1.1.7/lib/hash/sha/1.js +74 -0
- package/dependencies/src/hash.js-1.1.7/lib/hash/sha/224.js +30 -0
- package/dependencies/src/hash.js-1.1.7/lib/hash/sha/256.js +105 -0
- package/dependencies/src/hash.js-1.1.7/lib/hash/sha/384.js +35 -0
- package/dependencies/src/hash.js-1.1.7/lib/hash/sha/512.js +330 -0
- package/dependencies/src/hash.js-1.1.7/lib/hash/sha/common.js +49 -0
- package/dependencies/src/hash.js-1.1.7/lib/hash/sha.js +7 -0
- package/dependencies/src/hash.js-1.1.7/lib/hash/utils.js +278 -0
- package/dependencies/src/hash.js-1.1.7/lib/hash.js +15 -0
- package/dependencies/src/hd-wallet-js-b216450e56954a6e82ace0aade9474673de5d9d5/src/hd-key.d.ts +15 -0
- package/dependencies/src/hd-wallet-js-b216450e56954a6e82ace0aade9474673de5d9d5/src/hd-key.js +101 -0
- package/dependencies/src/hd-wallet-js-b216450e56954a6e82ace0aade9474673de5d9d5/src/hd-key.js.map +1 -0
- package/dependencies/src/hd-wallet-js-b216450e56954a6e82ace0aade9474673de5d9d5/src/hd-wallet.d.ts +3 -0
- package/dependencies/src/hd-wallet-js-b216450e56954a6e82ace0aade9474673de5d9d5/src/hd-wallet.js +37 -0
- package/dependencies/src/hd-wallet-js-b216450e56954a6e82ace0aade9474673de5d9d5/src/hd-wallet.js.map +1 -0
- package/dependencies/src/hd-wallet-js-b216450e56954a6e82ace0aade9474673de5d9d5/src/index.d.ts +1 -0
- package/dependencies/src/hd-wallet-js-b216450e56954a6e82ace0aade9474673de5d9d5/src/index.js +34 -0
- package/dependencies/src/hd-wallet-js-b216450e56954a6e82ace0aade9474673de5d9d5/src/index.js.map +1 -0
- package/dependencies/src/hmac-drbg-1.0.1/lib/hmac-drbg.js +113 -0
- package/dependencies/src/idna-uts46-hx-3.4.0/idna-map.js +23865 -0
- package/dependencies/src/idna-uts46-hx-3.4.0/index.d.ts +6 -0
- package/dependencies/src/idna-uts46-hx-3.4.0/uts46.js +170 -0
- package/dependencies/src/ieee754-1.1.13/index.js +84 -0
- package/dependencies/src/inherits-2.0.4/inherits.js +9 -0
- package/dependencies/src/inherits-2.0.4/inherits_browser.js +27 -0
- package/dependencies/src/is-buffer-2.0.3/index.js +11 -0
- package/dependencies/src/is-hex-prefixed-1.0.0/src/index.js +13 -0
- package/dependencies/src/js-cuint-0.2.2/index.js +2 -0
- package/dependencies/src/js-cuint-0.2.2/lib/uint32.js +451 -0
- package/dependencies/src/js-cuint-0.2.2/lib/uint64.js +648 -0
- package/dependencies/src/keccak-1.0.2/js.js +2 -0
- package/dependencies/src/keccak-1.0.2/lib/api/index.js +28 -0
- package/dependencies/src/keccak-1.0.2/lib/api/keccak.js +83 -0
- package/dependencies/src/keccak-1.0.2/lib/api/shake.js +74 -0
- package/dependencies/src/keccak-1.0.2/lib/keccak-state.js +187 -0
- package/dependencies/src/keccak-1.0.2/lib/keccak.js +69 -0
- package/dependencies/src/md5.js-1.3.5/index.js +146 -0
- package/dependencies/src/merkle-lib-2.0.10/fastRoot.js +24 -0
- package/dependencies/src/merkle-lib-2.0.10/index.js +34 -0
- package/dependencies/src/minimalistic-assert-1.0.1/index.js +11 -0
- package/dependencies/src/minimalistic-crypto-utils-1.0.1/lib/utils.js +58 -0
- package/dependencies/src/ms-2.1.2/index.js +162 -0
- package/dependencies/src/nan-2.14.0/include_dirs.js +1 -0
- package/dependencies/src/nanoassert-1.1.0/index.js +22 -0
- package/dependencies/src/pako-2.0.3/index.js +18 -0
- package/dependencies/src/pako-2.0.3/lib/deflate.js +373 -0
- package/dependencies/src/pako-2.0.3/lib/inflate.js +402 -0
- package/dependencies/src/pako-2.0.3/lib/utils/common.js +48 -0
- package/dependencies/src/pako-2.0.3/lib/utils/strings.js +187 -0
- package/dependencies/src/pako-2.0.3/lib/zlib/adler32.js +50 -0
- package/dependencies/src/pako-2.0.3/lib/zlib/constants.js +66 -0
- package/dependencies/src/pako-2.0.3/lib/zlib/crc32.js +58 -0
- package/dependencies/src/pako-2.0.3/lib/zlib/deflate.js +1849 -0
- package/dependencies/src/pako-2.0.3/lib/zlib/gzheader.js +58 -0
- package/dependencies/src/pako-2.0.3/lib/zlib/inffast.js +347 -0
- package/dependencies/src/pako-2.0.3/lib/zlib/inflate.js +1625 -0
- package/dependencies/src/pako-2.0.3/lib/zlib/inftrees.js +462 -0
- package/dependencies/src/pako-2.0.3/lib/zlib/messages.js +32 -0
- package/dependencies/src/pako-2.0.3/lib/zlib/trees.js +1192 -0
- package/dependencies/src/pako-2.0.3/lib/zlib/zstream.js +47 -0
- package/dependencies/src/pbkdf2-3.0.17/bench/index.js +35 -0
- package/dependencies/src/pbkdf2-3.0.17/bench/old.js +47 -0
- package/dependencies/src/pbkdf2-3.0.17/browser.js +2 -0
- package/dependencies/src/pbkdf2-3.0.17/index.js +31 -0
- package/dependencies/src/pbkdf2-3.0.17/lib/async.js +100 -0
- package/dependencies/src/pbkdf2-3.0.17/lib/default-encoding.js +10 -0
- package/dependencies/src/pbkdf2-3.0.17/lib/precondition.js +28 -0
- package/dependencies/src/pbkdf2-3.0.17/lib/sync-browser.js +104 -0
- package/dependencies/src/pbkdf2-3.0.17/lib/sync.js +51 -0
- package/dependencies/src/punycode-2.1.1/punycode.js +429 -0
- package/dependencies/src/pushdata-bitcoin-1.0.1/index.js +77 -0
- package/dependencies/src/randombytes-2.1.0/browser.js +50 -0
- package/dependencies/src/randombytes-2.1.0/index.js +1 -0
- package/dependencies/src/ripemd160-2.0.2/index.js +163 -0
- package/dependencies/src/rlp-2.2.3/index.js +230 -0
- package/dependencies/src/safe-buffer-5.2.0/index.js +64 -0
- package/dependencies/src/secp256k1-3.7.1/elliptic.js +2 -0
- package/dependencies/src/secp256k1-3.7.1/lib/assert.js +44 -0
- package/dependencies/src/secp256k1-3.7.1/lib/der.js +193 -0
- package/dependencies/src/secp256k1-3.7.1/lib/elliptic/index.js +263 -0
- package/dependencies/src/secp256k1-3.7.1/lib/index.js +245 -0
- package/dependencies/src/secp256k1-3.7.1/lib/messages.json +37 -0
- package/dependencies/src/secp256k1-4.0.2/elliptic.js +1 -0
- package/dependencies/src/secp256k1-4.0.2/lib/elliptic.js +402 -0
- package/dependencies/src/secp256k1-4.0.2/lib/index.js +336 -0
- package/dependencies/src/sha.js-2.4.11/hash.js +81 -0
- package/dependencies/src/sha.js-2.4.11/index.js +16 -0
- package/dependencies/src/sha.js-2.4.11/sha.js +94 -0
- package/dependencies/src/sha.js-2.4.11/sha1.js +99 -0
- package/dependencies/src/sha.js-2.4.11/sha224.js +53 -0
- package/dependencies/src/sha.js-2.4.11/sha256.js +135 -0
- package/dependencies/src/sha.js-2.4.11/sha384.js +57 -0
- package/dependencies/src/sha.js-2.4.11/sha512.js +260 -0
- package/dependencies/src/strip-hex-prefix-1.0.0/src/index.js +14 -0
- package/dependencies/src/tiny-secp256k1-1.1.3/js.js +276 -0
- package/dependencies/src/tiny-secp256k1-1.1.3/rfc6979.js +62 -0
- package/dependencies/src/tweetnacl-1.0.1/nacl.d.ts +98 -0
- package/dependencies/src/tweetnacl-1.0.1/nacl.js +1164 -0
- package/dependencies/src/tweetnacl-auth-1.0.1/nacl-auth.js +47 -0
- package/dependencies/src/typedarray-to-buffer-4.0.0/index.js +17 -0
- package/dependencies/src/typeforce-1.18.0/errors.js +110 -0
- package/dependencies/src/typeforce-1.18.0/extra.js +91 -0
- package/dependencies/src/typeforce-1.18.0/index.js +260 -0
- package/dependencies/src/typeforce-1.18.0/native.js +21 -0
- package/dependencies/src/unorm-1.6.0/lib/unorm.js +452 -0
- package/dependencies/src/utf8-3.0.0/utf8.js +202 -0
- package/dependencies/src/validate.js-0.13.1/validate.d.ts +55 -0
- package/dependencies/src/validate.js-0.13.1/validate.js +1253 -0
- package/dependencies/src/varuint-bitcoin-1.1.2/index.d.ts +13 -0
- package/dependencies/src/varuint-bitcoin-1.1.2/index.js +90 -0
- package/dependencies/src/wif-2.0.6/index.js +63 -0
- package/dependencies/src/xxhashjs-0.2.2/lib/index.js +4 -0
- package/dependencies/src/xxhashjs-0.2.2/lib/xxhash.js +389 -0
- package/dependencies/src/xxhashjs-0.2.2/lib/xxhash64.js +444 -0
- package/errors/coinlib-error.d.ts +30 -0
- package/errors/coinlib-error.js +62 -0
- package/errors/coinlib-error.js.map +1 -0
- package/errors/index.d.ts +156 -0
- package/errors/index.js +281 -0
- package/errors/index.js.map +1 -0
- package/errors/network.d.ts +0 -0
- package/errors/network.js +2 -0
- package/errors/network.js.map +1 -0
- package/index.d.ts +33 -0
- package/index.js +58 -0
- package/index.js.map +1 -0
- package/interfaces/IAirGapAddress.d.ts +10 -0
- package/interfaces/IAirGapAddress.js +3 -0
- package/interfaces/IAirGapAddress.js.map +1 -0
- package/interfaces/IAirGapSignedTransaction.d.ts +1 -0
- package/interfaces/IAirGapSignedTransaction.js +3 -0
- package/interfaces/IAirGapSignedTransaction.js.map +1 -0
- package/interfaces/IAirGapTransaction.d.ts +53 -0
- package/interfaces/IAirGapTransaction.js +22 -0
- package/interfaces/IAirGapTransaction.js.map +1 -0
- package/interfaces/IAirGapWallet.d.ts +6 -0
- package/interfaces/IAirGapWallet.js +3 -0
- package/interfaces/IAirGapWallet.js.map +1 -0
- package/interfaces/JSONConvertible.d.ts +3 -0
- package/interfaces/JSONConvertible.js +3 -0
- package/interfaces/JSONConvertible.js.map +1 -0
- package/interfaces/RPCConvertible.d.ts +3 -0
- package/interfaces/RPCConvertible.js +3 -0
- package/interfaces/RPCConvertible.js.map +1 -0
- package/networks.d.ts +19 -0
- package/networks.js +1341 -0
- package/networks.js.map +1 -0
- package/package.json +1 -5
- package/protocols/BlockExplorerProtocol.d.ts +6 -0
- package/protocols/BlockExplorerProtocol.js +60 -0
- package/protocols/BlockExplorerProtocol.js.map +1 -0
- package/protocols/CryptoClient.d.ts +15 -0
- package/protocols/CryptoClient.js +84 -0
- package/protocols/CryptoClient.js.map +1 -0
- package/protocols/Ed25519CryptoClient.d.ts +8 -0
- package/protocols/Ed25519CryptoClient.js +107 -0
- package/protocols/Ed25519CryptoClient.js.map +1 -0
- package/protocols/HasConfigurableContract.d.ts +4 -0
- package/protocols/HasConfigurableContract.js +3 -0
- package/protocols/HasConfigurableContract.js.map +1 -0
- package/protocols/ICoinBaseProtocol.d.ts +107 -0
- package/protocols/ICoinBaseProtocol.js +3 -0
- package/protocols/ICoinBaseProtocol.js.map +1 -0
- package/protocols/ICoinDelegateProtocol.d.ts +40 -0
- package/protocols/ICoinDelegateProtocol.js +3 -0
- package/protocols/ICoinDelegateProtocol.js.map +1 -0
- package/protocols/ICoinOfflineProtocol.d.ts +24 -0
- package/protocols/ICoinOfflineProtocol.js +3 -0
- package/protocols/ICoinOfflineProtocol.js.map +1 -0
- package/protocols/ICoinOnlineProtocol.d.ts +46 -0
- package/protocols/ICoinOnlineProtocol.js +3 -0
- package/protocols/ICoinOnlineProtocol.js.map +1 -0
- package/protocols/ICoinProtocol.d.ts +9 -0
- package/protocols/ICoinProtocol.js +3 -0
- package/protocols/ICoinProtocol.js.map +1 -0
- package/protocols/ICoinSubProtocol.d.ts +22 -0
- package/protocols/ICoinSubProtocol.js +9 -0
- package/protocols/ICoinSubProtocol.js.map +1 -0
- package/protocols/NonExtendedProtocol.d.ts +17 -0
- package/protocols/NonExtendedProtocol.js +49 -0
- package/protocols/NonExtendedProtocol.js.map +1 -0
- package/protocols/Secp256k1CryptoClient.d.ts +8 -0
- package/protocols/Secp256k1CryptoClient.js +79 -0
- package/protocols/Secp256k1CryptoClient.js.map +1 -0
- package/protocols/Sr25519CryptoClient.d.ts +8 -0
- package/protocols/Sr25519CryptoClient.js +82 -0
- package/protocols/Sr25519CryptoClient.js.map +1 -0
- package/types/signed-transaction.d.ts +4 -0
- package/types/signed-transaction.js +3 -0
- package/types/signed-transaction.js.map +1 -0
- package/types/unsigned-transaction.d.ts +5 -0
- package/types/unsigned-transaction.js +3 -0
- package/types/unsigned-transaction.js.map +1 -0
- package/utils/AES.d.ts +10 -0
- package/utils/AES.js +165 -0
- package/utils/AES.js.map +1 -0
- package/utils/ErrorWithData.d.ts +4 -0
- package/utils/ErrorWithData.js +29 -0
- package/utils/ErrorWithData.js.map +1 -0
- package/utils/Network.d.ts +2 -0
- package/utils/Network.js +8 -0
- package/utils/Network.js.map +1 -0
- package/utils/ProtocolBlockExplorer.d.ts +6 -0
- package/utils/ProtocolBlockExplorer.js +11 -0
- package/utils/ProtocolBlockExplorer.js.map +1 -0
- package/utils/ProtocolNetwork.d.ts +15 -0
- package/utils/ProtocolNetwork.js +35 -0
- package/utils/ProtocolNetwork.js.map +1 -0
- package/utils/ProtocolOptions.d.ts +5 -0
- package/utils/ProtocolOptions.js +3 -0
- package/utils/ProtocolOptions.js.map +1 -0
- package/utils/ProtocolSymbols.d.ts +45 -0
- package/utils/ProtocolSymbols.js +59 -0
- package/utils/ProtocolSymbols.js.map +1 -0
- package/utils/array.d.ts +4 -0
- package/utils/array.js +36 -0
- package/utils/array.js.map +1 -0
- package/utils/assert.d.ts +2 -0
- package/utils/assert.js +20 -0
- package/utils/assert.js.map +1 -0
- package/utils/base64Check.d.ts +7 -0
- package/utils/base64Check.js +39 -0
- package/utils/base64Check.js.map +1 -0
- package/utils/blake2b.d.ts +7 -0
- package/utils/blake2b.js +23 -0
- package/utils/blake2b.js.map +1 -0
- package/utils/buffer.d.ts +2 -0
- package/utils/buffer.js +8 -0
- package/utils/buffer.js.map +1 -0
- package/utils/cache.d.ts +15 -0
- package/utils/cache.js +97 -0
- package/utils/cache.js.map +1 -0
- package/utils/error.d.ts +1 -0
- package/utils/error.js +8 -0
- package/utils/error.js.map +1 -0
- package/utils/hex.d.ts +14 -0
- package/utils/hex.js +112 -0
- package/utils/hex.js.map +1 -0
- package/utils/interfaces.d.ts +3 -0
- package/utils/interfaces.js +18 -0
- package/utils/interfaces.js.map +1 -0
- package/utils/object.d.ts +1 -0
- package/utils/object.js +23 -0
- package/utils/object.js.map +1 -0
- package/utils/padStart.d.ts +1 -0
- package/utils/padStart.js +20 -0
- package/utils/padStart.js.map +1 -0
- package/utils/remote-data/HttpRemoteData.d.ts +8 -0
- package/utils/remote-data/HttpRemoteData.js +117 -0
- package/utils/remote-data/HttpRemoteData.js.map +1 -0
- package/utils/remote-data/IpfsRemoteData.d.ts +8 -0
- package/utils/remote-data/IpfsRemoteData.js +142 -0
- package/utils/remote-data/IpfsRemoteData.js.map +1 -0
- package/utils/remote-data/RemoteData.d.ts +11 -0
- package/utils/remote-data/RemoteData.js +11 -0
- package/utils/remote-data/RemoteData.js.map +1 -0
- package/utils/remote-data/RemoteDataFactory.d.ts +11 -0
- package/utils/remote-data/RemoteDataFactory.js +29 -0
- package/utils/remote-data/RemoteDataFactory.js.map +1 -0
- package/utils/remote-data/Sha256RemoteData.d.ts +11 -0
- package/utils/remote-data/Sha256RemoteData.js +139 -0
- package/utils/remote-data/Sha256RemoteData.js.map +1 -0
- package/utils/string.d.ts +7 -0
- package/utils/string.js +50 -0
- package/utils/string.js.map +1 -0
- package/utils/type.d.ts +1 -0
- package/utils/type.js +16 -0
- package/utils/type.js.map +1 -0
- package/utils/xxhash.d.ts +5 -0
- package/utils/xxhash.js +18 -0
- package/utils/xxhash.js.map +1 -0
- package/wallet/AirGapCoinWallet.d.ts +19 -0
- package/wallet/AirGapCoinWallet.js +199 -0
- package/wallet/AirGapCoinWallet.js.map +1 -0
- package/wallet/AirGapMarketWallet.d.ts +40 -0
- package/wallet/AirGapMarketWallet.js +221 -0
- package/wallet/AirGapMarketWallet.js.map +1 -0
- package/wallet/AirGapNFTWallet.d.ts +15 -0
- package/wallet/AirGapNFTWallet.js +179 -0
- package/wallet/AirGapNFTWallet.js.map +1 -0
- package/wallet/AirGapWallet.d.ts +35 -0
- package/wallet/AirGapWallet.js +142 -0
- package/wallet/AirGapWallet.js.map +1 -0
package/errors/index.js
ADDED
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.InvalidString = exports.InvalidHexString = exports.InvalidPayloadError = exports.InvalidSchemaType = exports.InvalidSchema = exports.TypeNotSupported = exports.ProtocolVersionMismatch = exports.ProtocolNotSupported = exports.SerializerVersionMismatch = exports.SerializerError = exports.InvalidValueError = exports.NotImplementedError = exports.OperationFailedError = exports.PropertyUndefinedError = exports.TransactionError = exports.BalanceError = exports.NotFoundError = exports.UnsupportedError = exports.ConditionViolationError = exports.NetworkError = exports.ProtocolErrorType = exports.SerializerErrorType = void 0;
|
|
19
|
+
var coinlib_error_1 = require("./coinlib-error");
|
|
20
|
+
var SerializerErrorType;
|
|
21
|
+
(function (SerializerErrorType) {
|
|
22
|
+
SerializerErrorType["SERIALIZER_VERSION_MISMATCH"] = "SERIALIZER_VERSION_MISMATCH";
|
|
23
|
+
SerializerErrorType["PROTOCOL_NOT_SUPPORTED"] = "PROTOCOL_NOT_SUPPORTED";
|
|
24
|
+
SerializerErrorType["PROTOCOL_VERSION_MISMATCH"] = "PROTOCOL_VERSION_MISMATCH";
|
|
25
|
+
SerializerErrorType["TYPE_NOT_SUPPORTED"] = "TYPE_NOT_SUPPORTED";
|
|
26
|
+
SerializerErrorType["INVALID_SCHEMA"] = "INVALID_SCHEMA";
|
|
27
|
+
SerializerErrorType["INVALID_SCHEMA_TYPE"] = "INVALID_SCHEMA_TYPE";
|
|
28
|
+
SerializerErrorType["INVALID_PAYLOAD"] = "INVALID_PAYLOAD";
|
|
29
|
+
SerializerErrorType["INVALID_HEX_STRING"] = "INVALID_HEX_STRING";
|
|
30
|
+
SerializerErrorType["INVALID_STRING"] = "INVALID_STRING";
|
|
31
|
+
SerializerErrorType["SCHEMA_ALREADY_EXISTS"] = "SCHEMA_ALREADY_EXISTS";
|
|
32
|
+
SerializerErrorType["SCHEMA_DOES_NOT_EXISTS"] = "SCHEMA_DOES_NOT_EXISTS";
|
|
33
|
+
SerializerErrorType["UNEXPECTED_PAYLOAD"] = "UNEXPECTED_PAYLOAD";
|
|
34
|
+
SerializerErrorType["PAYLOAD_TYPE_UNKNOWN"] = "PAYLOAD_TYPE_UNKNOWN";
|
|
35
|
+
SerializerErrorType["PAYLOAD_TYPE_MISMATCH"] = "PAYLOAD_TYPE_MISMATCH";
|
|
36
|
+
SerializerErrorType["PAYLOAD_TYPE_NOT_SUPPORTED"] = "PAYLOAD_TYPE_NOT_SUPPORTED";
|
|
37
|
+
SerializerErrorType["PROPERTY_IS_EMPTY"] = "PROPERTY_IS_EMPTY";
|
|
38
|
+
SerializerErrorType["PROPERTY_INVALID"] = "PROPERTY_INVALID";
|
|
39
|
+
})(SerializerErrorType = exports.SerializerErrorType || (exports.SerializerErrorType = {}));
|
|
40
|
+
var ProtocolErrorType;
|
|
41
|
+
(function (ProtocolErrorType) {
|
|
42
|
+
ProtocolErrorType["NETWORK"] = "NETWORK";
|
|
43
|
+
ProtocolErrorType["CONDITION_VIOLATION"] = "CONDITION_VIOLATION";
|
|
44
|
+
ProtocolErrorType["UNSUPPORTED"] = "UNSUPPORTED";
|
|
45
|
+
ProtocolErrorType["NOT_FOUND"] = "NOT_FOUND";
|
|
46
|
+
ProtocolErrorType["BALANCE"] = "BALANCE";
|
|
47
|
+
ProtocolErrorType["PROPERTY_UNDEFINED"] = "PROPERTY_UNDEFINED";
|
|
48
|
+
ProtocolErrorType["OPERATION_FAILED"] = "OPERATION_FAILED";
|
|
49
|
+
ProtocolErrorType["NOT_IMPLEMENTED"] = "NOT_IMPLEMENTED";
|
|
50
|
+
ProtocolErrorType["INVALID_VALUE"] = "INVALID_VALUE";
|
|
51
|
+
ProtocolErrorType["TRANSACTION_FAILED"] = "TRANSACTION_FAILED";
|
|
52
|
+
})(ProtocolErrorType = exports.ProtocolErrorType || (exports.ProtocolErrorType = {}));
|
|
53
|
+
/**
|
|
54
|
+
* Gets thrown if an error occurs when making a network request
|
|
55
|
+
* Partial<AxiosError> is either an AxiosError or an AxiosResponse,
|
|
56
|
+
* as we sometimes want to throw an Error even though we get a 200 response
|
|
57
|
+
* from the API (as in case of internal operation errors for Tezos).
|
|
58
|
+
*/
|
|
59
|
+
var NetworkError = /** @class */ (function (_super) {
|
|
60
|
+
__extends(NetworkError, _super);
|
|
61
|
+
function NetworkError(domain, error, description) {
|
|
62
|
+
var _this = this;
|
|
63
|
+
var _a, _b, _c, _d, _e;
|
|
64
|
+
_this = _super.call(this, domain, ProtocolErrorType.NETWORK) || this;
|
|
65
|
+
_this.data = description !== null && description !== void 0 ? description : (_a = error.response) === null || _a === void 0 ? void 0 : _a.data;
|
|
66
|
+
_this.status = (_b = error === null || error === void 0 ? void 0 : error.response) === null || _b === void 0 ? void 0 : _b.status;
|
|
67
|
+
_this.url = (_c = error.config) === null || _c === void 0 ? void 0 : _c.url;
|
|
68
|
+
_this.method = (_d = error.config) === null || _d === void 0 ? void 0 : _d.method;
|
|
69
|
+
_this.requestBody = (_e = error.config) === null || _e === void 0 ? void 0 : _e.data;
|
|
70
|
+
return _this;
|
|
71
|
+
}
|
|
72
|
+
return NetworkError;
|
|
73
|
+
}(coinlib_error_1.CoinlibError));
|
|
74
|
+
exports.NetworkError = NetworkError;
|
|
75
|
+
/**
|
|
76
|
+
* Gets thrown if a value ist expected to fulfill a certain condition such as having a certain length, but the condition is not satisfied
|
|
77
|
+
*/
|
|
78
|
+
var ConditionViolationError = /** @class */ (function (_super) {
|
|
79
|
+
__extends(ConditionViolationError, _super);
|
|
80
|
+
function ConditionViolationError(domain, description) {
|
|
81
|
+
return _super.call(this, domain, ProtocolErrorType.CONDITION_VIOLATION, description) || this;
|
|
82
|
+
}
|
|
83
|
+
return ConditionViolationError;
|
|
84
|
+
}(coinlib_error_1.CoinlibError));
|
|
85
|
+
exports.ConditionViolationError = ConditionViolationError;
|
|
86
|
+
/**
|
|
87
|
+
* Gets thrown if a variable assumes a value for which an operation is not supported
|
|
88
|
+
*/
|
|
89
|
+
var UnsupportedError = /** @class */ (function (_super) {
|
|
90
|
+
__extends(UnsupportedError, _super);
|
|
91
|
+
function UnsupportedError(domain, description) {
|
|
92
|
+
return _super.call(this, domain, ProtocolErrorType.UNSUPPORTED, description) || this;
|
|
93
|
+
}
|
|
94
|
+
return UnsupportedError;
|
|
95
|
+
}(coinlib_error_1.CoinlibError));
|
|
96
|
+
exports.UnsupportedError = UnsupportedError;
|
|
97
|
+
/**
|
|
98
|
+
* Gets thrown if a variable is unexpectedly undefined
|
|
99
|
+
*/
|
|
100
|
+
var NotFoundError = /** @class */ (function (_super) {
|
|
101
|
+
__extends(NotFoundError, _super);
|
|
102
|
+
function NotFoundError(domain, description) {
|
|
103
|
+
return _super.call(this, domain, ProtocolErrorType.NOT_FOUND, description) || this;
|
|
104
|
+
}
|
|
105
|
+
return NotFoundError;
|
|
106
|
+
}(coinlib_error_1.CoinlibError));
|
|
107
|
+
exports.NotFoundError = NotFoundError;
|
|
108
|
+
/**
|
|
109
|
+
* Gets thrown if an account has an insufficient balance to perform a certain kind of operation
|
|
110
|
+
*/
|
|
111
|
+
var BalanceError = /** @class */ (function (_super) {
|
|
112
|
+
__extends(BalanceError, _super);
|
|
113
|
+
function BalanceError(domain, description) {
|
|
114
|
+
return _super.call(this, domain, ProtocolErrorType.BALANCE, description) || this;
|
|
115
|
+
}
|
|
116
|
+
return BalanceError;
|
|
117
|
+
}(coinlib_error_1.CoinlibError));
|
|
118
|
+
exports.BalanceError = BalanceError;
|
|
119
|
+
var TransactionError = /** @class */ (function (_super) {
|
|
120
|
+
__extends(TransactionError, _super);
|
|
121
|
+
function TransactionError(domain, description, data) {
|
|
122
|
+
var _this = _super.call(this, domain, ProtocolErrorType.TRANSACTION_FAILED, description) || this;
|
|
123
|
+
_this.data = data;
|
|
124
|
+
return _this;
|
|
125
|
+
}
|
|
126
|
+
return TransactionError;
|
|
127
|
+
}(coinlib_error_1.CoinlibError));
|
|
128
|
+
exports.TransactionError = TransactionError;
|
|
129
|
+
/**
|
|
130
|
+
* Gets thrown if an accessed object property is undefined
|
|
131
|
+
*/
|
|
132
|
+
var PropertyUndefinedError = /** @class */ (function (_super) {
|
|
133
|
+
__extends(PropertyUndefinedError, _super);
|
|
134
|
+
function PropertyUndefinedError(domain, description) {
|
|
135
|
+
return _super.call(this, domain, ProtocolErrorType.PROPERTY_UNDEFINED, description) || this;
|
|
136
|
+
}
|
|
137
|
+
return PropertyUndefinedError;
|
|
138
|
+
}(coinlib_error_1.CoinlibError));
|
|
139
|
+
exports.PropertyUndefinedError = PropertyUndefinedError;
|
|
140
|
+
/**
|
|
141
|
+
* Gets thrown if an internal method fails
|
|
142
|
+
*/
|
|
143
|
+
var OperationFailedError = /** @class */ (function (_super) {
|
|
144
|
+
__extends(OperationFailedError, _super);
|
|
145
|
+
function OperationFailedError(domain, description) {
|
|
146
|
+
return _super.call(this, domain, ProtocolErrorType.OPERATION_FAILED, description) || this;
|
|
147
|
+
}
|
|
148
|
+
return OperationFailedError;
|
|
149
|
+
}(coinlib_error_1.CoinlibError));
|
|
150
|
+
exports.OperationFailedError = OperationFailedError;
|
|
151
|
+
/**
|
|
152
|
+
* Gets thrown if a method is executed which is not implemented
|
|
153
|
+
*/
|
|
154
|
+
var NotImplementedError = /** @class */ (function (_super) {
|
|
155
|
+
__extends(NotImplementedError, _super);
|
|
156
|
+
function NotImplementedError(domain, description) {
|
|
157
|
+
return _super.call(this, domain, ProtocolErrorType.NOT_IMPLEMENTED, description) || this;
|
|
158
|
+
}
|
|
159
|
+
return NotImplementedError;
|
|
160
|
+
}(coinlib_error_1.CoinlibError));
|
|
161
|
+
exports.NotImplementedError = NotImplementedError;
|
|
162
|
+
/**
|
|
163
|
+
* Gets thrown if a variable has a value which cannot be handled
|
|
164
|
+
*/
|
|
165
|
+
var InvalidValueError = /** @class */ (function (_super) {
|
|
166
|
+
__extends(InvalidValueError, _super);
|
|
167
|
+
function InvalidValueError(domain, description) {
|
|
168
|
+
return _super.call(this, domain, ProtocolErrorType.INVALID_VALUE, description) || this;
|
|
169
|
+
}
|
|
170
|
+
return InvalidValueError;
|
|
171
|
+
}(coinlib_error_1.CoinlibError));
|
|
172
|
+
exports.InvalidValueError = InvalidValueError;
|
|
173
|
+
var SerializerError = /** @class */ (function (_super) {
|
|
174
|
+
__extends(SerializerError, _super);
|
|
175
|
+
function SerializerError(code, description) {
|
|
176
|
+
return _super.call(this, coinlib_error_1.Domain.SERIALIZER, code, description) || this;
|
|
177
|
+
}
|
|
178
|
+
return SerializerError;
|
|
179
|
+
}(coinlib_error_1.CoinlibError));
|
|
180
|
+
exports.SerializerError = SerializerError;
|
|
181
|
+
// tslint:disable:max-classes-per-file
|
|
182
|
+
/**
|
|
183
|
+
* Gets thrown if the serializer version does not match
|
|
184
|
+
*/
|
|
185
|
+
var SerializerVersionMismatch = /** @class */ (function (_super) {
|
|
186
|
+
__extends(SerializerVersionMismatch, _super);
|
|
187
|
+
function SerializerVersionMismatch(description) {
|
|
188
|
+
return _super.call(this, SerializerErrorType.SERIALIZER_VERSION_MISMATCH, description) || this;
|
|
189
|
+
}
|
|
190
|
+
return SerializerVersionMismatch;
|
|
191
|
+
}(SerializerError));
|
|
192
|
+
exports.SerializerVersionMismatch = SerializerVersionMismatch;
|
|
193
|
+
/**
|
|
194
|
+
* Gets thrown if the serializer cannot handle the specified coin/protocol
|
|
195
|
+
*/
|
|
196
|
+
var ProtocolNotSupported = /** @class */ (function (_super) {
|
|
197
|
+
__extends(ProtocolNotSupported, _super);
|
|
198
|
+
function ProtocolNotSupported(description) {
|
|
199
|
+
return _super.call(this, SerializerErrorType.PROTOCOL_NOT_SUPPORTED, description) || this;
|
|
200
|
+
}
|
|
201
|
+
return ProtocolNotSupported;
|
|
202
|
+
}(SerializerError));
|
|
203
|
+
exports.ProtocolNotSupported = ProtocolNotSupported;
|
|
204
|
+
/**
|
|
205
|
+
* Gets thrown if the serializer CAN handle the specified coin/protocol, but not in this version
|
|
206
|
+
*/
|
|
207
|
+
var ProtocolVersionMismatch = /** @class */ (function (_super) {
|
|
208
|
+
__extends(ProtocolVersionMismatch, _super);
|
|
209
|
+
function ProtocolVersionMismatch(description) {
|
|
210
|
+
return _super.call(this, SerializerErrorType.PROTOCOL_VERSION_MISMATCH, description) || this;
|
|
211
|
+
}
|
|
212
|
+
return ProtocolVersionMismatch;
|
|
213
|
+
}(SerializerError));
|
|
214
|
+
exports.ProtocolVersionMismatch = ProtocolVersionMismatch;
|
|
215
|
+
/**
|
|
216
|
+
* Gets thrown if the specified Type is not supported
|
|
217
|
+
*/
|
|
218
|
+
var TypeNotSupported = /** @class */ (function (_super) {
|
|
219
|
+
__extends(TypeNotSupported, _super);
|
|
220
|
+
function TypeNotSupported(description) {
|
|
221
|
+
return _super.call(this, SerializerErrorType.TYPE_NOT_SUPPORTED, description) || this;
|
|
222
|
+
}
|
|
223
|
+
return TypeNotSupported;
|
|
224
|
+
}(SerializerError));
|
|
225
|
+
exports.TypeNotSupported = TypeNotSupported;
|
|
226
|
+
/**
|
|
227
|
+
* Gets thrown if the schema in the serializer is invalid
|
|
228
|
+
*/
|
|
229
|
+
var InvalidSchema = /** @class */ (function (_super) {
|
|
230
|
+
__extends(InvalidSchema, _super);
|
|
231
|
+
function InvalidSchema(description) {
|
|
232
|
+
return _super.call(this, SerializerErrorType.INVALID_SCHEMA, description) || this;
|
|
233
|
+
}
|
|
234
|
+
return InvalidSchema;
|
|
235
|
+
}(SerializerError));
|
|
236
|
+
exports.InvalidSchema = InvalidSchema;
|
|
237
|
+
/**
|
|
238
|
+
* Gets thrown if the 2 types provided are not compatible
|
|
239
|
+
*/
|
|
240
|
+
var InvalidSchemaType = /** @class */ (function (_super) {
|
|
241
|
+
__extends(InvalidSchemaType, _super);
|
|
242
|
+
function InvalidSchemaType(description) {
|
|
243
|
+
return _super.call(this, SerializerErrorType.INVALID_SCHEMA_TYPE, description) || this;
|
|
244
|
+
}
|
|
245
|
+
return InvalidSchemaType;
|
|
246
|
+
}(SerializerError));
|
|
247
|
+
exports.InvalidSchemaType = InvalidSchemaType;
|
|
248
|
+
/**
|
|
249
|
+
* Gets thrown if the payload that is being decoded does not match the schema
|
|
250
|
+
*/
|
|
251
|
+
var InvalidPayloadError = /** @class */ (function (_super) {
|
|
252
|
+
__extends(InvalidPayloadError, _super);
|
|
253
|
+
function InvalidPayloadError(description) {
|
|
254
|
+
return _super.call(this, SerializerErrorType.INVALID_PAYLOAD, description) || this;
|
|
255
|
+
}
|
|
256
|
+
return InvalidPayloadError;
|
|
257
|
+
}(SerializerError));
|
|
258
|
+
exports.InvalidPayloadError = InvalidPayloadError;
|
|
259
|
+
/**
|
|
260
|
+
* Gets thrown if the string is not a valid hex string
|
|
261
|
+
*/
|
|
262
|
+
var InvalidHexString = /** @class */ (function (_super) {
|
|
263
|
+
__extends(InvalidHexString, _super);
|
|
264
|
+
function InvalidHexString(description) {
|
|
265
|
+
return _super.call(this, SerializerErrorType.INVALID_HEX_STRING, description) || this;
|
|
266
|
+
}
|
|
267
|
+
return InvalidHexString;
|
|
268
|
+
}(SerializerError));
|
|
269
|
+
exports.InvalidHexString = InvalidHexString;
|
|
270
|
+
/**
|
|
271
|
+
* Gets thrown if the string starts with "0x". This causes problems with RLP
|
|
272
|
+
*/
|
|
273
|
+
var InvalidString = /** @class */ (function (_super) {
|
|
274
|
+
__extends(InvalidString, _super);
|
|
275
|
+
function InvalidString(description) {
|
|
276
|
+
return _super.call(this, SerializerErrorType.INVALID_STRING, description) || this;
|
|
277
|
+
}
|
|
278
|
+
return InvalidString;
|
|
279
|
+
}(SerializerError));
|
|
280
|
+
exports.InvalidString = InvalidString;
|
|
281
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/errors/index.ts"],"names":[],"mappings":"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"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"network.js","sourceRoot":"","sources":["../../src/errors/network.ts"],"names":[],"mappings":""}
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Action } from './actions/Action';
|
|
2
|
+
import { LinkedAction } from './actions/LinkedAction';
|
|
3
|
+
import { RepeatableAction } from './actions/RepeatableAction';
|
|
4
|
+
import { SimpleAction } from './actions/SimpleAction';
|
|
5
|
+
import { BalanceError, NetworkError, ProtocolErrorType, ProtocolNotSupported, SerializerErrorType, SerializerVersionMismatch, TransactionError, TypeNotSupported } from './errors';
|
|
6
|
+
import { CoinlibError, Domain } from './errors/coinlib-error';
|
|
7
|
+
import { IAirGapSignedTransaction } from './interfaces/IAirGapSignedTransaction';
|
|
8
|
+
import { IAirGapTransaction, IAirGapTransactionResult, IProtocolTransactionCursor } from './interfaces/IAirGapTransaction';
|
|
9
|
+
import { IAirGapWallet } from './interfaces/IAirGapWallet';
|
|
10
|
+
import { CryptoClient } from './protocols/CryptoClient';
|
|
11
|
+
import { HasConfigurableContract } from './protocols/HasConfigurableContract';
|
|
12
|
+
import { DelegateeDetails, DelegatorAction, DelegatorDetails, DelegatorReward, ICoinDelegateProtocol } from './protocols/ICoinDelegateProtocol';
|
|
13
|
+
import { FeeDefaults, ICoinProtocol } from './protocols/ICoinProtocol';
|
|
14
|
+
import { ICoinSubProtocol, SubProtocolType } from './protocols/ICoinSubProtocol';
|
|
15
|
+
import { SignedTransaction } from './types/signed-transaction';
|
|
16
|
+
import { UnsignedTransaction } from './types/unsigned-transaction';
|
|
17
|
+
import { assertNever } from './utils/assert';
|
|
18
|
+
import { bufferFrom } from './utils/buffer';
|
|
19
|
+
import { hasConfigurableContract, implementsInterface } from './utils/interfaces';
|
|
20
|
+
import { isNetworkEqual } from './utils/Network';
|
|
21
|
+
import { ProtocolBlockExplorer } from './utils/ProtocolBlockExplorer';
|
|
22
|
+
import { NetworkType, ProtocolNetwork } from './utils/ProtocolNetwork';
|
|
23
|
+
import { isMainProtocolSymbol, isProtocolSymbol, isSubProtocolSymbol, MainProtocolSymbols, ProtocolSymbols, SubProtocolSymbols } from './utils/ProtocolSymbols';
|
|
24
|
+
import { AirGapCoinWallet, TimeInterval } from './wallet/AirGapCoinWallet';
|
|
25
|
+
import { AirGapMarketWallet, AirGapWalletPriceService } from './wallet/AirGapMarketWallet';
|
|
26
|
+
import { AirGapNFTWallet } from './wallet/AirGapNFTWallet';
|
|
27
|
+
import { AirGapWallet, AirGapWalletStatus, SerializedAirGapWallet } from './wallet/AirGapWallet';
|
|
28
|
+
export { AirGapWallet, AirGapMarketWallet, AirGapCoinWallet, AirGapWalletStatus, AirGapNFTWallet, HasConfigurableContract, IAirGapWallet, IAirGapTransaction, ICoinProtocol, ICoinSubProtocol, ICoinDelegateProtocol, CryptoClient, ProtocolBlockExplorer, ProtocolNetwork, ProtocolSymbols, MainProtocolSymbols, SubProtocolSymbols, NetworkType, FeeDefaults };
|
|
29
|
+
export { UnsignedTransaction, SignedTransaction };
|
|
30
|
+
export { SerializedAirGapWallet };
|
|
31
|
+
export { Action, RepeatableAction, LinkedAction, SimpleAction };
|
|
32
|
+
export { isNetworkEqual, isProtocolSymbol, isMainProtocolSymbol, isSubProtocolSymbol, TypeNotSupported, SerializerVersionMismatch, ProtocolNotSupported, NetworkError, CoinlibError, SerializerErrorType, ProtocolErrorType, BalanceError, TransactionError, Domain, TimeInterval, DelegateeDetails, DelegatorAction, DelegatorDetails, DelegatorReward, IAirGapSignedTransaction, IAirGapTransactionResult, AirGapWalletPriceService, IProtocolTransactionCursor, SubProtocolType, assertNever, implementsInterface, hasConfigurableContract };
|
|
33
|
+
export { bufferFrom };
|
package/index.js
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.bufferFrom = exports.hasConfigurableContract = exports.implementsInterface = exports.assertNever = exports.SubProtocolType = exports.TimeInterval = exports.Domain = exports.TransactionError = exports.BalanceError = exports.ProtocolErrorType = exports.SerializerErrorType = exports.CoinlibError = exports.NetworkError = exports.ProtocolNotSupported = exports.SerializerVersionMismatch = exports.TypeNotSupported = exports.isSubProtocolSymbol = exports.isMainProtocolSymbol = exports.isProtocolSymbol = exports.isNetworkEqual = exports.SimpleAction = exports.LinkedAction = exports.RepeatableAction = exports.Action = exports.NetworkType = exports.SubProtocolSymbols = exports.MainProtocolSymbols = exports.ProtocolNetwork = exports.ProtocolBlockExplorer = exports.CryptoClient = exports.AirGapNFTWallet = exports.AirGapWalletStatus = exports.AirGapCoinWallet = exports.AirGapMarketWallet = exports.AirGapWallet = void 0;
|
|
4
|
+
var Action_1 = require("./actions/Action");
|
|
5
|
+
Object.defineProperty(exports, "Action", { enumerable: true, get: function () { return Action_1.Action; } });
|
|
6
|
+
var LinkedAction_1 = require("./actions/LinkedAction");
|
|
7
|
+
Object.defineProperty(exports, "LinkedAction", { enumerable: true, get: function () { return LinkedAction_1.LinkedAction; } });
|
|
8
|
+
var RepeatableAction_1 = require("./actions/RepeatableAction");
|
|
9
|
+
Object.defineProperty(exports, "RepeatableAction", { enumerable: true, get: function () { return RepeatableAction_1.RepeatableAction; } });
|
|
10
|
+
var SimpleAction_1 = require("./actions/SimpleAction");
|
|
11
|
+
Object.defineProperty(exports, "SimpleAction", { enumerable: true, get: function () { return SimpleAction_1.SimpleAction; } });
|
|
12
|
+
var errors_1 = require("./errors");
|
|
13
|
+
Object.defineProperty(exports, "BalanceError", { enumerable: true, get: function () { return errors_1.BalanceError; } });
|
|
14
|
+
Object.defineProperty(exports, "NetworkError", { enumerable: true, get: function () { return errors_1.NetworkError; } });
|
|
15
|
+
Object.defineProperty(exports, "ProtocolErrorType", { enumerable: true, get: function () { return errors_1.ProtocolErrorType; } });
|
|
16
|
+
Object.defineProperty(exports, "ProtocolNotSupported", { enumerable: true, get: function () { return errors_1.ProtocolNotSupported; } });
|
|
17
|
+
Object.defineProperty(exports, "SerializerErrorType", { enumerable: true, get: function () { return errors_1.SerializerErrorType; } });
|
|
18
|
+
Object.defineProperty(exports, "SerializerVersionMismatch", { enumerable: true, get: function () { return errors_1.SerializerVersionMismatch; } });
|
|
19
|
+
Object.defineProperty(exports, "TransactionError", { enumerable: true, get: function () { return errors_1.TransactionError; } });
|
|
20
|
+
Object.defineProperty(exports, "TypeNotSupported", { enumerable: true, get: function () { return errors_1.TypeNotSupported; } });
|
|
21
|
+
var coinlib_error_1 = require("./errors/coinlib-error");
|
|
22
|
+
Object.defineProperty(exports, "CoinlibError", { enumerable: true, get: function () { return coinlib_error_1.CoinlibError; } });
|
|
23
|
+
Object.defineProperty(exports, "Domain", { enumerable: true, get: function () { return coinlib_error_1.Domain; } });
|
|
24
|
+
var CryptoClient_1 = require("./protocols/CryptoClient");
|
|
25
|
+
Object.defineProperty(exports, "CryptoClient", { enumerable: true, get: function () { return CryptoClient_1.CryptoClient; } });
|
|
26
|
+
var ICoinSubProtocol_1 = require("./protocols/ICoinSubProtocol");
|
|
27
|
+
Object.defineProperty(exports, "SubProtocolType", { enumerable: true, get: function () { return ICoinSubProtocol_1.SubProtocolType; } });
|
|
28
|
+
var assert_1 = require("./utils/assert");
|
|
29
|
+
Object.defineProperty(exports, "assertNever", { enumerable: true, get: function () { return assert_1.assertNever; } });
|
|
30
|
+
var buffer_1 = require("./utils/buffer");
|
|
31
|
+
Object.defineProperty(exports, "bufferFrom", { enumerable: true, get: function () { return buffer_1.bufferFrom; } });
|
|
32
|
+
var interfaces_1 = require("./utils/interfaces");
|
|
33
|
+
Object.defineProperty(exports, "hasConfigurableContract", { enumerable: true, get: function () { return interfaces_1.hasConfigurableContract; } });
|
|
34
|
+
Object.defineProperty(exports, "implementsInterface", { enumerable: true, get: function () { return interfaces_1.implementsInterface; } });
|
|
35
|
+
var Network_1 = require("./utils/Network");
|
|
36
|
+
Object.defineProperty(exports, "isNetworkEqual", { enumerable: true, get: function () { return Network_1.isNetworkEqual; } });
|
|
37
|
+
var ProtocolBlockExplorer_1 = require("./utils/ProtocolBlockExplorer");
|
|
38
|
+
Object.defineProperty(exports, "ProtocolBlockExplorer", { enumerable: true, get: function () { return ProtocolBlockExplorer_1.ProtocolBlockExplorer; } });
|
|
39
|
+
var ProtocolNetwork_1 = require("./utils/ProtocolNetwork");
|
|
40
|
+
Object.defineProperty(exports, "NetworkType", { enumerable: true, get: function () { return ProtocolNetwork_1.NetworkType; } });
|
|
41
|
+
Object.defineProperty(exports, "ProtocolNetwork", { enumerable: true, get: function () { return ProtocolNetwork_1.ProtocolNetwork; } });
|
|
42
|
+
var ProtocolSymbols_1 = require("./utils/ProtocolSymbols");
|
|
43
|
+
Object.defineProperty(exports, "isMainProtocolSymbol", { enumerable: true, get: function () { return ProtocolSymbols_1.isMainProtocolSymbol; } });
|
|
44
|
+
Object.defineProperty(exports, "isProtocolSymbol", { enumerable: true, get: function () { return ProtocolSymbols_1.isProtocolSymbol; } });
|
|
45
|
+
Object.defineProperty(exports, "isSubProtocolSymbol", { enumerable: true, get: function () { return ProtocolSymbols_1.isSubProtocolSymbol; } });
|
|
46
|
+
Object.defineProperty(exports, "MainProtocolSymbols", { enumerable: true, get: function () { return ProtocolSymbols_1.MainProtocolSymbols; } });
|
|
47
|
+
Object.defineProperty(exports, "SubProtocolSymbols", { enumerable: true, get: function () { return ProtocolSymbols_1.SubProtocolSymbols; } });
|
|
48
|
+
var AirGapCoinWallet_1 = require("./wallet/AirGapCoinWallet");
|
|
49
|
+
Object.defineProperty(exports, "AirGapCoinWallet", { enumerable: true, get: function () { return AirGapCoinWallet_1.AirGapCoinWallet; } });
|
|
50
|
+
Object.defineProperty(exports, "TimeInterval", { enumerable: true, get: function () { return AirGapCoinWallet_1.TimeInterval; } });
|
|
51
|
+
var AirGapMarketWallet_1 = require("./wallet/AirGapMarketWallet");
|
|
52
|
+
Object.defineProperty(exports, "AirGapMarketWallet", { enumerable: true, get: function () { return AirGapMarketWallet_1.AirGapMarketWallet; } });
|
|
53
|
+
var AirGapNFTWallet_1 = require("./wallet/AirGapNFTWallet");
|
|
54
|
+
Object.defineProperty(exports, "AirGapNFTWallet", { enumerable: true, get: function () { return AirGapNFTWallet_1.AirGapNFTWallet; } });
|
|
55
|
+
var AirGapWallet_1 = require("./wallet/AirGapWallet");
|
|
56
|
+
Object.defineProperty(exports, "AirGapWallet", { enumerable: true, get: function () { return AirGapWallet_1.AirGapWallet; } });
|
|
57
|
+
Object.defineProperty(exports, "AirGapWalletStatus", { enumerable: true, get: function () { return AirGapWallet_1.AirGapWalletStatus; } });
|
|
58
|
+
//# sourceMappingURL=index.js.map
|
package/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,2CAAyC;AAgFhC,uFAhFA,eAAM,OAgFA;AA/Ef,uDAAqD;AA+ElB,6FA/E1B,2BAAY,OA+E0B;AA9E/C,+DAA6D;AA8E5C,iGA9ER,mCAAgB,OA8EQ;AA7EjC,uDAAqD;AA6EJ,6FA7ExC,2BAAY,OA6EwC;AA5E7D,mCASiB;AAmFf,6FA3FA,qBAAY,OA2FA;AAJZ,6FAtFA,qBAAY,OAsFA;AAGZ,kGAxFA,0BAAiB,OAwFA;AAJjB,qGAnFA,6BAAoB,OAmFA;AAGpB,oGArFA,4BAAmB,OAqFA;AAJnB,0GAhFA,kCAAyB,OAgFA;AAOzB,iGAtFA,yBAAgB,OAsFA;AARhB,iGA7EA,yBAAgB,OA6EA;AA3ElB,wDAA6D;AA+E3D,6FA/EO,4BAAY,OA+EP;AAKZ,uFApFqB,sBAAM,OAoFrB;AAhFR,yDAAuD;AA6CrD,6FA7CO,2BAAY,OA6CP;AAnCd,iEAAgF;AAgF9E,gGAhFyB,kCAAe,OAgFzB;AA7EjB,yCAA4C;AA8E1C,4FA9EO,oBAAW,OA8EP;AA7Eb,yCAA2C;AAkFlC,2FAlFA,mBAAU,OAkFA;AAjFnB,iDAAiF;AA8E/E,wGA9EO,oCAAuB,OA8EP;AADvB,oGA7EgC,gCAAmB,OA6EhC;AA5ErB,2CAAgD;AAkD9C,+FAlDO,wBAAc,OAkDP;AAjDhB,uEAAqE;AA6BnE,sGA7BO,6CAAqB,OA6BP;AA5BvB,2DAAsE;AAiCpE,4FAjCO,6BAAW,OAiCP;AAJX,gGA7BoB,iCAAe,OA6BpB;AA5BjB,2DAOgC;AA0C9B,qGAhDA,sCAAoB,OAgDA;AADpB,iGA9CA,kCAAgB,OA8CA;AAEhB,oGA/CA,qCAAmB,OA+CA;AApBnB,oGA1BA,qCAAmB,OA0BA;AACnB,mGAzBA,oCAAkB,OAyBA;AAvBpB,8DAA0E;AASxE,iGATO,mCAAgB,OASP;AA6ChB,6FAtDyB,+BAAY,OAsDzB;AArDd,kEAA0F;AAOxF,mGAPO,uCAAkB,OAOP;AANpB,4DAA0D;AASxD,gGATO,iCAAe,OASP;AARjB,sDAAgG;AAI9F,6FAJO,2BAAY,OAIP;AAGZ,mGAPqB,iCAAkB,OAOrB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface IAirGapAddress {
|
|
2
|
+
asString(): string;
|
|
3
|
+
}
|
|
4
|
+
export interface IProtocolAddressCursor {
|
|
5
|
+
hasNext: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface IAirGapAddressResult<T extends IProtocolAddressCursor = IProtocolAddressCursor> {
|
|
8
|
+
address: string;
|
|
9
|
+
cursor: T;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAirGapAddress.js","sourceRoot":"","sources":["../../src/interfaces/IAirGapAddress.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type IAirGapSignedTransaction = string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAirGapSignedTransaction.js","sourceRoot":"","sources":["../../src/interfaces/IAirGapSignedTransaction.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { ProtocolNetwork } from '../utils/ProtocolNetwork';
|
|
2
|
+
import { ProtocolSymbols } from '../utils/ProtocolSymbols';
|
|
3
|
+
export declare enum AirGapTransactionType {
|
|
4
|
+
SPEND = "Spend Transaction",
|
|
5
|
+
DELEGATE = "Delegation",
|
|
6
|
+
UNDELEGATE = "Undelegate"
|
|
7
|
+
}
|
|
8
|
+
export declare enum AirGapTransactionStatus {
|
|
9
|
+
APPLIED = "applied",
|
|
10
|
+
FAILED = "failed"
|
|
11
|
+
}
|
|
12
|
+
export declare enum AirGapTransactionWarningType {
|
|
13
|
+
SUCCESS = "success",
|
|
14
|
+
NOTE = "note",
|
|
15
|
+
WARNING = "warning",
|
|
16
|
+
ERROR = "error"
|
|
17
|
+
}
|
|
18
|
+
export interface AirGapTransactionWarning {
|
|
19
|
+
type: AirGapTransactionWarningType;
|
|
20
|
+
title: string;
|
|
21
|
+
description: string;
|
|
22
|
+
icon?: string;
|
|
23
|
+
actions?: ({
|
|
24
|
+
text: string;
|
|
25
|
+
link: string;
|
|
26
|
+
} | {
|
|
27
|
+
text: string;
|
|
28
|
+
action(): Promise<void>;
|
|
29
|
+
})[];
|
|
30
|
+
}
|
|
31
|
+
export interface IAirGapTransaction {
|
|
32
|
+
from: string[];
|
|
33
|
+
to: string[];
|
|
34
|
+
isInbound: boolean;
|
|
35
|
+
amount: string;
|
|
36
|
+
fee: string;
|
|
37
|
+
timestamp?: number;
|
|
38
|
+
protocolIdentifier: ProtocolSymbols;
|
|
39
|
+
network: ProtocolNetwork;
|
|
40
|
+
hash?: string;
|
|
41
|
+
blockHeight?: string;
|
|
42
|
+
data?: string;
|
|
43
|
+
extra?: any;
|
|
44
|
+
status?: AirGapTransactionStatus;
|
|
45
|
+
warnings?: AirGapTransactionWarning[];
|
|
46
|
+
transactionDetails?: any;
|
|
47
|
+
}
|
|
48
|
+
export interface IProtocolTransactionCursor {
|
|
49
|
+
}
|
|
50
|
+
export interface IAirGapTransactionResult<T extends IProtocolTransactionCursor = IProtocolTransactionCursor> {
|
|
51
|
+
transactions: IAirGapTransaction[];
|
|
52
|
+
cursor: T;
|
|
53
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AirGapTransactionWarningType = exports.AirGapTransactionStatus = exports.AirGapTransactionType = void 0;
|
|
4
|
+
var AirGapTransactionType;
|
|
5
|
+
(function (AirGapTransactionType) {
|
|
6
|
+
AirGapTransactionType["SPEND"] = "Spend Transaction";
|
|
7
|
+
AirGapTransactionType["DELEGATE"] = "Delegation";
|
|
8
|
+
AirGapTransactionType["UNDELEGATE"] = "Undelegate";
|
|
9
|
+
})(AirGapTransactionType = exports.AirGapTransactionType || (exports.AirGapTransactionType = {}));
|
|
10
|
+
var AirGapTransactionStatus;
|
|
11
|
+
(function (AirGapTransactionStatus) {
|
|
12
|
+
AirGapTransactionStatus["APPLIED"] = "applied";
|
|
13
|
+
AirGapTransactionStatus["FAILED"] = "failed";
|
|
14
|
+
})(AirGapTransactionStatus = exports.AirGapTransactionStatus || (exports.AirGapTransactionStatus = {}));
|
|
15
|
+
var AirGapTransactionWarningType;
|
|
16
|
+
(function (AirGapTransactionWarningType) {
|
|
17
|
+
AirGapTransactionWarningType["SUCCESS"] = "success";
|
|
18
|
+
AirGapTransactionWarningType["NOTE"] = "note";
|
|
19
|
+
AirGapTransactionWarningType["WARNING"] = "warning";
|
|
20
|
+
AirGapTransactionWarningType["ERROR"] = "error";
|
|
21
|
+
})(AirGapTransactionWarningType = exports.AirGapTransactionWarningType || (exports.AirGapTransactionWarningType = {}));
|
|
22
|
+
//# sourceMappingURL=IAirGapTransaction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAirGapTransaction.js","sourceRoot":"","sources":["../../src/interfaces/IAirGapTransaction.ts"],"names":[],"mappings":";;;AAGA,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC/B,oDAA2B,CAAA;IAC3B,gDAAuB,CAAA;IACvB,kDAAyB,CAAA;AAC3B,CAAC,EAJW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAIhC;AAED,IAAY,uBAGX;AAHD,WAAY,uBAAuB;IACjC,8CAAmB,CAAA;IACnB,4CAAiB,CAAA;AACnB,CAAC,EAHW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAGlC;AAED,IAAY,4BAKX;AALD,WAAY,4BAA4B;IACtC,mDAAmB,CAAA;IACnB,6CAAa,CAAA;IACb,mDAAmB,CAAA;IACnB,+CAAe,CAAA;AACjB,CAAC,EALW,4BAA4B,GAA5B,oCAA4B,KAA5B,oCAA4B,QAKvC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAirGapWallet.js","sourceRoot":"","sources":["../../src/interfaces/IAirGapWallet.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JSONConvertible.js","sourceRoot":"","sources":["../../src/interfaces/JSONConvertible.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RPCConvertible.js","sourceRoot":"","sources":["../../src/interfaces/RPCConvertible.ts"],"names":[],"mappings":""}
|
package/networks.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
interface Bip32 {
|
|
2
|
+
public: number;
|
|
3
|
+
private: number;
|
|
4
|
+
}
|
|
5
|
+
export interface Network {
|
|
6
|
+
messagePrefix?: string;
|
|
7
|
+
bip32: Bip32;
|
|
8
|
+
pubKeyHash: number;
|
|
9
|
+
scriptHash?: number;
|
|
10
|
+
wif: number;
|
|
11
|
+
dustSoftThreshold?: number;
|
|
12
|
+
dustThreshold?: number;
|
|
13
|
+
feePerKb?: number;
|
|
14
|
+
ethereum?: boolean;
|
|
15
|
+
}
|
|
16
|
+
declare const networks: {
|
|
17
|
+
[key: string]: Network;
|
|
18
|
+
};
|
|
19
|
+
export { networks };
|