@bitgo-beta/sdk-core 8.2.1-beta.19 → 8.2.1-beta.1900
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/dist/src/account-lib/baseCoin/baseTransaction.d.ts +0 -1
- package/dist/src/account-lib/baseCoin/baseTransaction.d.ts.map +1 -1
- package/dist/src/account-lib/baseCoin/baseTransactionBuilder.d.ts +3 -3
- package/dist/src/account-lib/baseCoin/baseTransactionBuilder.d.ts.map +1 -1
- package/dist/src/account-lib/baseCoin/baseTransactionBuilder.js +4 -3
- package/dist/src/account-lib/baseCoin/ed25519KeyPair.d.ts +1 -0
- package/dist/src/account-lib/baseCoin/ed25519KeyPair.d.ts.map +1 -1
- package/dist/src/account-lib/baseCoin/ed25519KeyPair.js +41 -29
- package/dist/src/account-lib/baseCoin/enum.d.ts +55 -2
- package/dist/src/account-lib/baseCoin/enum.d.ts.map +1 -1
- package/dist/src/account-lib/baseCoin/enum.js +103 -6
- package/dist/src/account-lib/baseCoin/errors.d.ts +3 -0
- package/dist/src/account-lib/baseCoin/errors.d.ts.map +1 -1
- package/dist/src/account-lib/baseCoin/errors.js +8 -2
- package/dist/src/account-lib/baseCoin/iface.d.ts +19 -35
- package/dist/src/account-lib/baseCoin/iface.d.ts.map +1 -1
- package/dist/src/account-lib/baseCoin/iface.js +26 -18
- package/dist/src/account-lib/baseCoin/index.d.ts +1 -1
- package/dist/src/account-lib/baseCoin/index.d.ts.map +1 -1
- package/dist/src/account-lib/baseCoin/index.js +8 -5
- package/dist/src/account-lib/baseCoin/messages/baseMessage.d.ts +88 -0
- package/dist/src/account-lib/baseCoin/messages/baseMessage.d.ts.map +1 -0
- package/dist/src/account-lib/baseCoin/messages/baseMessage.js +154 -0
- package/dist/src/account-lib/baseCoin/messages/baseMessageBuilder.d.ts +67 -0
- package/dist/src/account-lib/baseCoin/messages/baseMessageBuilder.d.ts.map +1 -0
- package/dist/src/account-lib/baseCoin/messages/baseMessageBuilder.js +144 -0
- package/dist/src/account-lib/baseCoin/messages/baseMessageBuilderFactory.d.ts +33 -0
- package/dist/src/account-lib/baseCoin/messages/baseMessageBuilderFactory.d.ts.map +1 -0
- package/dist/src/account-lib/baseCoin/messages/baseMessageBuilderFactory.js +45 -0
- package/dist/src/account-lib/baseCoin/messages/iface.d.ts +164 -0
- package/dist/src/account-lib/baseCoin/messages/iface.d.ts.map +1 -0
- package/dist/src/account-lib/baseCoin/messages/iface.js +3 -0
- package/dist/src/account-lib/baseCoin/messages/index.d.ts +6 -0
- package/dist/src/account-lib/baseCoin/messages/index.d.ts.map +1 -0
- package/dist/src/account-lib/baseCoin/messages/index.js +22 -0
- package/dist/src/account-lib/baseCoin/messages/simple/index.d.ts +3 -0
- package/dist/src/account-lib/baseCoin/messages/simple/index.d.ts.map +1 -0
- package/dist/src/account-lib/baseCoin/messages/simple/index.js +19 -0
- package/dist/src/account-lib/baseCoin/messages/simple/simpleMessage.d.ts +13 -0
- package/dist/src/account-lib/baseCoin/messages/simple/simpleMessage.d.ts.map +1 -0
- package/dist/src/account-lib/baseCoin/messages/simple/simpleMessage.js +28 -0
- package/dist/src/account-lib/baseCoin/messages/simple/simpleMessageBuilder.d.ts +21 -0
- package/dist/src/account-lib/baseCoin/messages/simple/simpleMessageBuilder.d.ts.map +1 -0
- package/dist/src/account-lib/baseCoin/messages/simple/simpleMessageBuilder.js +28 -0
- package/dist/src/account-lib/baseCoin/secp256k1ExtendedKeyPair.d.ts +1 -2
- package/dist/src/account-lib/baseCoin/secp256k1ExtendedKeyPair.d.ts.map +1 -1
- package/dist/src/account-lib/baseCoin/secp256k1ExtendedKeyPair.js +38 -26
- package/dist/src/account-lib/index.js +23 -9
- package/dist/src/account-lib/mpc/curves/ed25519.d.ts +4 -18
- package/dist/src/account-lib/mpc/curves/ed25519.d.ts.map +1 -1
- package/dist/src/account-lib/mpc/curves/ed25519.js +6 -60
- package/dist/src/account-lib/mpc/index.d.ts +4 -4
- package/dist/src/account-lib/mpc/index.d.ts.map +1 -1
- package/dist/src/account-lib/mpc/index.js +11 -7
- package/dist/src/account-lib/mpc/shamir.d.ts +5 -37
- package/dist/src/account-lib/mpc/shamir.d.ts.map +1 -1
- package/dist/src/account-lib/mpc/shamir.js +6 -130
- package/dist/src/account-lib/mpc/tss/ecdsa/ecdsa.d.ts +44 -12
- package/dist/src/account-lib/mpc/tss/ecdsa/ecdsa.d.ts.map +1 -1
- package/dist/src/account-lib/mpc/tss/ecdsa/ecdsa.js +541 -356
- package/dist/src/account-lib/mpc/tss/ecdsa/index.js +23 -9
- package/dist/src/account-lib/mpc/tss/ecdsa/rangeproof.d.ts +2 -2
- package/dist/src/account-lib/mpc/tss/ecdsa/rangeproof.d.ts.map +1 -1
- package/dist/src/account-lib/mpc/tss/ecdsa/rangeproof.js +3 -3
- package/dist/src/account-lib/mpc/tss/ecdsa/types.d.ts +73 -52
- package/dist/src/account-lib/mpc/tss/ecdsa/types.d.ts.map +1 -1
- package/dist/src/account-lib/mpc/tss/ecdsa/types.js +1 -1
- package/dist/src/account-lib/mpc/tss/eddsa/eddsa.d.ts +1 -2
- package/dist/src/account-lib/mpc/tss/eddsa/eddsa.d.ts.map +1 -1
- package/dist/src/account-lib/mpc/tss/eddsa/eddsa.js +66 -69
- package/dist/src/account-lib/mpc/tss/eddsa/index.js +23 -9
- package/dist/src/account-lib/mpc/tss/eddsa/types.d.ts +1 -4
- package/dist/src/account-lib/mpc/tss/eddsa/types.d.ts.map +1 -1
- package/dist/src/account-lib/mpc/tss/eddsa/types.js +1 -1
- package/dist/src/account-lib/mpc/tss/index.js +23 -9
- package/dist/src/account-lib/mpc/util.d.ts +7 -1
- package/dist/src/account-lib/mpc/util.d.ts.map +1 -1
- package/dist/src/account-lib/mpc/util.js +24 -1
- package/dist/src/account-lib/staking/index.js +6 -2
- package/dist/src/account-lib/staking/utils.js +3 -3
- package/dist/src/account-lib/util/crypto.d.ts +8 -2
- package/dist/src/account-lib/util/crypto.d.ts.map +1 -1
- package/dist/src/account-lib/util/crypto.js +69 -38
- package/dist/src/account-lib/util/ed25519KeyDeriver.d.ts +2 -1
- package/dist/src/account-lib/util/ed25519KeyDeriver.d.ts.map +1 -1
- package/dist/src/account-lib/util/ed25519KeyDeriver.js +5 -3
- package/dist/src/api/bip32path.js +2 -3
- package/dist/src/api/index.js +6 -2
- package/dist/src/api/types.d.ts +31 -0
- package/dist/src/api/types.d.ts.map +1 -1
- package/dist/src/api/types.js +1 -1
- package/dist/src/bitgo/address-book/address-book.d.ts +61 -0
- package/dist/src/bitgo/address-book/address-book.d.ts.map +1 -0
- package/dist/src/bitgo/address-book/address-book.js +150 -0
- package/dist/src/bitgo/address-book/index.d.ts +3 -0
- package/dist/src/bitgo/address-book/index.d.ts.map +1 -0
- package/dist/src/{openssl → bitgo/address-book}/index.js +8 -3
- package/dist/src/bitgo/address-book/types.d.ts +170 -0
- package/dist/src/bitgo/address-book/types.d.ts.map +1 -0
- package/dist/src/bitgo/address-book/types.js +3 -0
- package/dist/src/bitgo/baseCoin/baseCoin.d.ts +126 -11
- package/dist/src/bitgo/baseCoin/baseCoin.d.ts.map +1 -1
- package/dist/src/bitgo/baseCoin/baseCoin.js +183 -16
- package/dist/src/bitgo/baseCoin/iBaseCoin.d.ts +286 -27
- package/dist/src/bitgo/baseCoin/iBaseCoin.d.ts.map +1 -1
- package/dist/src/bitgo/baseCoin/iBaseCoin.js +14 -3
- package/dist/src/bitgo/baseCoin/index.js +6 -2
- package/dist/src/bitgo/bip32util.d.ts +3 -16
- package/dist/src/bitgo/bip32util.d.ts.map +1 -1
- package/dist/src/bitgo/bip32util.js +4 -56
- package/dist/src/bitgo/bitcoin.d.ts +0 -1
- package/dist/src/bitgo/bitcoin.d.ts.map +1 -1
- package/dist/src/bitgo/bitcoin.js +26 -13
- package/dist/src/bitgo/bitgoBase.d.ts +9 -4
- package/dist/src/bitgo/bitgoBase.d.ts.map +1 -1
- package/dist/src/bitgo/bitgoBase.js +1 -1
- package/dist/src/bitgo/coinFactory.d.ts +17 -3
- package/dist/src/bitgo/coinFactory.d.ts.map +1 -1
- package/dist/src/bitgo/coinFactory.js +26 -3
- package/dist/src/bitgo/config.d.ts +3 -89
- package/dist/src/bitgo/config.d.ts.map +1 -1
- package/dist/src/bitgo/config.js +26 -15
- package/dist/src/bitgo/defi/defiVault.d.ts +87 -0
- package/dist/src/bitgo/defi/defiVault.d.ts.map +1 -0
- package/dist/src/bitgo/defi/defiVault.js +225 -0
- package/dist/src/bitgo/defi/iDefiVault.d.ts +59 -0
- package/dist/src/bitgo/defi/iDefiVault.d.ts.map +1 -0
- package/dist/src/bitgo/defi/iDefiVault.js +6 -0
- package/dist/src/bitgo/defi/index.d.ts +3 -0
- package/dist/src/bitgo/defi/index.d.ts.map +1 -0
- package/dist/src/bitgo/defi/index.js +22 -0
- package/dist/src/bitgo/ecdh.d.ts +0 -1
- package/dist/src/bitgo/ecdh.d.ts.map +1 -1
- package/dist/src/bitgo/ecdh.js +26 -13
- package/dist/src/bitgo/enterprise/enterprise.d.ts +16 -14
- package/dist/src/bitgo/enterprise/enterprise.d.ts.map +1 -1
- package/dist/src/bitgo/enterprise/enterprise.js +64 -31
- package/dist/src/bitgo/enterprise/enterprises.d.ts +6 -0
- package/dist/src/bitgo/enterprise/enterprises.d.ts.map +1 -1
- package/dist/src/bitgo/enterprise/enterprises.js +48 -9
- package/dist/src/bitgo/enterprise/iEnterprise.d.ts +6 -7
- package/dist/src/bitgo/enterprise/iEnterprise.d.ts.map +1 -1
- package/dist/src/bitgo/enterprise/iEnterprise.js +1 -1
- package/dist/src/bitgo/enterprise/iEnterprises.d.ts +2 -0
- package/dist/src/bitgo/enterprise/iEnterprises.d.ts.map +1 -1
- package/dist/src/bitgo/enterprise/iEnterprises.js +1 -1
- package/dist/src/bitgo/enterprise/index.js +6 -2
- package/dist/src/bitgo/environments.d.ts +83 -5
- package/dist/src/bitgo/environments.d.ts.map +1 -1
- package/dist/src/bitgo/environments.js +435 -30
- package/dist/src/bitgo/errors.d.ts +175 -0
- package/dist/src/bitgo/errors.d.ts.map +1 -1
- package/dist/src/bitgo/errors.js +166 -2
- package/dist/src/bitgo/evm/evmUtils.d.ts +26 -0
- package/dist/src/bitgo/evm/evmUtils.d.ts.map +1 -0
- package/dist/src/bitgo/evm/evmUtils.js +50 -0
- package/dist/src/bitgo/index.d.ts +4 -1
- package/dist/src/bitgo/index.d.ts.map +1 -1
- package/dist/src/bitgo/index.js +30 -11
- package/dist/src/bitgo/inscriptionBuilder/iInscriptionBuilder.d.ts +3 -3
- package/dist/src/bitgo/inscriptionBuilder/iInscriptionBuilder.d.ts.map +1 -1
- package/dist/src/bitgo/inscriptionBuilder/iInscriptionBuilder.js +1 -1
- package/dist/src/bitgo/inscriptionBuilder/index.js +6 -2
- package/dist/src/bitgo/internal/index.js +6 -2
- package/dist/src/bitgo/internal/internal.js +5 -6
- package/dist/src/bitgo/internal/keycard.d.ts +12 -8
- package/dist/src/bitgo/internal/keycard.d.ts.map +1 -1
- package/dist/src/bitgo/internal/keycard.js +60 -48
- package/dist/src/bitgo/keychain/decryptKeychain.d.ts +14 -0
- package/dist/src/bitgo/keychain/decryptKeychain.d.ts.map +1 -0
- package/dist/src/bitgo/keychain/decryptKeychain.js +36 -0
- package/dist/src/bitgo/keychain/iKeychains.d.ts +104 -9
- package/dist/src/bitgo/keychain/iKeychains.d.ts.map +1 -1
- package/dist/src/bitgo/keychain/iKeychains.js +2 -2
- package/dist/src/bitgo/keychain/index.d.ts +1 -0
- package/dist/src/bitgo/keychain/index.d.ts.map +1 -1
- package/dist/src/bitgo/keychain/index.js +7 -2
- package/dist/src/bitgo/keychain/keychains.d.ts +39 -7
- package/dist/src/bitgo/keychain/keychains.d.ts.map +1 -1
- package/dist/src/bitgo/keychain/keychains.js +255 -73
- package/dist/src/bitgo/keychain/ovcJsonCodec.d.ts +126 -91
- package/dist/src/bitgo/keychain/ovcJsonCodec.d.ts.map +1 -1
- package/dist/src/bitgo/keychain/ovcJsonCodec.js +53 -32
- package/dist/src/bitgo/legacyBitcoin.d.ts +0 -1
- package/dist/src/bitgo/legacyBitcoin.d.ts.map +1 -1
- package/dist/src/bitgo/legacyBitcoin.js +27 -13
- package/dist/src/bitgo/lightning/lightningWalletUtil.d.ts +7 -0
- package/dist/src/bitgo/lightning/lightningWalletUtil.d.ts.map +1 -0
- package/dist/src/bitgo/lightning/lightningWalletUtil.js +25 -0
- package/dist/src/bitgo/market/iMarkets.d.ts +2 -2
- package/dist/src/bitgo/market/iMarkets.d.ts.map +1 -1
- package/dist/src/bitgo/market/index.js +6 -2
- package/dist/src/bitgo/market/markets.js +23 -9
- package/dist/src/bitgo/pendingApproval/iPendingApproval.d.ts +3 -0
- package/dist/src/bitgo/pendingApproval/iPendingApproval.d.ts.map +1 -1
- package/dist/src/bitgo/pendingApproval/iPendingApproval.js +4 -4
- package/dist/src/bitgo/pendingApproval/index.js +6 -2
- package/dist/src/bitgo/pendingApproval/pendingApproval.d.ts +20 -8
- package/dist/src/bitgo/pendingApproval/pendingApproval.d.ts.map +1 -1
- package/dist/src/bitgo/pendingApproval/pendingApproval.js +233 -102
- package/dist/src/bitgo/pendingApproval/pendingApprovals.js +23 -9
- package/dist/src/bitgo/proofs/WalletProofs.d.ts +19 -0
- package/dist/src/bitgo/proofs/WalletProofs.d.ts.map +1 -0
- package/dist/src/bitgo/proofs/WalletProofs.js +37 -0
- package/dist/src/bitgo/proofs/index.d.ts +2 -0
- package/dist/src/bitgo/proofs/index.d.ts.map +1 -0
- package/dist/src/bitgo/proofs/index.js +6 -0
- package/dist/src/bitgo/proofs/types.d.ts +80 -0
- package/dist/src/bitgo/proofs/types.d.ts.map +1 -0
- package/dist/src/bitgo/proofs/types.js +80 -0
- package/dist/src/bitgo/recovery/index.js +6 -2
- package/dist/src/bitgo/recovery/initiate.d.ts +20 -4
- package/dist/src/bitgo/recovery/initiate.d.ts.map +1 -1
- package/dist/src/bitgo/recovery/initiate.js +49 -41
- package/dist/src/bitgo/staking/goStakingInterfaces.d.ts +136 -0
- package/dist/src/bitgo/staking/goStakingInterfaces.d.ts.map +1 -0
- package/dist/src/bitgo/staking/goStakingInterfaces.js +3 -0
- package/dist/src/bitgo/staking/goStakingWallet.d.ts +62 -0
- package/dist/src/bitgo/staking/goStakingWallet.d.ts.map +1 -0
- package/dist/src/bitgo/staking/goStakingWallet.js +141 -0
- package/dist/src/bitgo/staking/iGoStakingWallet.d.ts +17 -0
- package/dist/src/bitgo/staking/iGoStakingWallet.d.ts.map +1 -0
- package/dist/src/bitgo/staking/iGoStakingWallet.js +3 -0
- package/dist/src/bitgo/staking/iStakingWallet.d.ts +189 -8
- package/dist/src/bitgo/staking/iStakingWallet.d.ts.map +1 -1
- package/dist/src/bitgo/staking/iStakingWallet.js +2 -2
- package/dist/src/bitgo/staking/index.d.ts +3 -0
- package/dist/src/bitgo/staking/index.d.ts.map +1 -1
- package/dist/src/bitgo/staking/index.js +9 -2
- package/dist/src/bitgo/staking/stakingWallet.d.ts +27 -8
- package/dist/src/bitgo/staking/stakingWallet.d.ts.map +1 -1
- package/dist/src/bitgo/staking/stakingWallet.js +148 -7
- package/dist/src/bitgo/trading/iTradingAccount.d.ts +15 -33
- package/dist/src/bitgo/trading/iTradingAccount.d.ts.map +1 -1
- package/dist/src/bitgo/trading/iTradingAccount.js +1 -1
- package/dist/src/bitgo/trading/index.d.ts +1 -15
- package/dist/src/bitgo/trading/index.d.ts.map +1 -1
- package/dist/src/bitgo/trading/index.js +7 -17
- package/dist/src/bitgo/trading/network/decrypt-aes-gcm.d.ts +8 -0
- package/dist/src/bitgo/trading/network/decrypt-aes-gcm.d.ts.map +1 -0
- package/dist/src/bitgo/trading/network/decrypt-aes-gcm.js +31 -0
- package/dist/src/bitgo/trading/network/decrypt-rsa.d.ts +8 -0
- package/dist/src/bitgo/trading/network/decrypt-rsa.d.ts.map +1 -0
- package/dist/src/bitgo/trading/network/decrypt-rsa.js +23 -0
- package/dist/src/bitgo/trading/network/decrypt.d.ts +14 -0
- package/dist/src/bitgo/trading/network/decrypt.d.ts.map +1 -0
- package/dist/src/bitgo/trading/network/decrypt.js +23 -0
- package/dist/src/bitgo/trading/network/encrypt-aes-gcm.d.ts +8 -0
- package/dist/src/bitgo/trading/network/encrypt-aes-gcm.d.ts.map +1 -0
- package/dist/src/bitgo/trading/network/encrypt-aes-gcm.js +25 -0
- package/dist/src/bitgo/trading/network/encrypt-rsa-browser.d.ts +8 -0
- package/dist/src/bitgo/trading/network/encrypt-rsa-browser.d.ts.map +1 -0
- package/dist/src/bitgo/trading/network/encrypt-rsa-browser.js +65 -0
- package/dist/src/bitgo/trading/network/encrypt-rsa.d.ts +8 -0
- package/dist/src/bitgo/trading/network/encrypt-rsa.d.ts.map +1 -0
- package/dist/src/bitgo/trading/network/encrypt-rsa.js +23 -0
- package/dist/src/bitgo/trading/network/encrypt.d.ts +37 -0
- package/dist/src/bitgo/trading/network/encrypt.d.ts.map +1 -0
- package/dist/src/bitgo/trading/network/encrypt.js +58 -0
- package/dist/src/bitgo/trading/network/index.d.ts +5 -0
- package/dist/src/bitgo/trading/network/index.d.ts.map +1 -0
- package/dist/src/bitgo/trading/network/index.js +21 -0
- package/dist/src/bitgo/trading/network/network.d.ts +36 -0
- package/dist/src/bitgo/trading/network/network.d.ts.map +1 -0
- package/dist/src/bitgo/trading/network/network.js +99 -0
- package/dist/src/bitgo/trading/network/types.d.ts +277 -0
- package/dist/src/bitgo/trading/network/types.d.ts.map +1 -0
- package/dist/src/bitgo/trading/network/types.js +3 -0
- package/dist/src/bitgo/trading/network/utils.d.ts +20 -0
- package/dist/src/bitgo/trading/network/utils.d.ts.map +1 -0
- package/dist/src/bitgo/trading/network/utils.js +54 -0
- package/dist/src/bitgo/trading/tradingAccount.d.ts +23 -33
- package/dist/src/bitgo/trading/tradingAccount.d.ts.map +1 -1
- package/dist/src/bitgo/trading/tradingAccount.js +58 -97
- package/dist/src/bitgo/tss/bitgoPubKeys.d.ts +38 -0
- package/dist/src/bitgo/tss/bitgoPubKeys.d.ts.map +1 -0
- package/dist/src/bitgo/tss/bitgoPubKeys.js +72 -0
- package/dist/src/bitgo/tss/common.d.ts +52 -7
- package/dist/src/bitgo/tss/common.d.ts.map +1 -1
- package/dist/src/bitgo/tss/common.js +143 -23
- package/dist/src/bitgo/tss/ecdsa/ecdsa.d.ts +13 -8
- package/dist/src/bitgo/tss/ecdsa/ecdsa.d.ts.map +1 -1
- package/dist/src/bitgo/tss/ecdsa/ecdsa.js +93 -74
- package/dist/src/bitgo/tss/ecdsa/ecdsaMPCv2.d.ts +15 -0
- package/dist/src/bitgo/tss/ecdsa/ecdsaMPCv2.d.ts.map +1 -0
- package/dist/src/bitgo/tss/ecdsa/ecdsaMPCv2.js +167 -0
- package/dist/src/bitgo/tss/ecdsa/index.d.ts +1 -0
- package/dist/src/bitgo/tss/ecdsa/index.d.ts.map +1 -1
- package/dist/src/bitgo/tss/ecdsa/index.js +25 -10
- package/dist/src/bitgo/tss/ecdsa/types.d.ts +27 -27
- package/dist/src/bitgo/tss/ecdsa/types.d.ts.map +1 -1
- package/dist/src/bitgo/tss/ecdsa/types.js +3 -3
- package/dist/src/bitgo/tss/eddsa/eddsa.d.ts +19 -9
- package/dist/src/bitgo/tss/eddsa/eddsa.d.ts.map +1 -1
- package/dist/src/bitgo/tss/eddsa/eddsa.js +56 -38
- package/dist/src/bitgo/tss/eddsa/eddsaMPCv2.d.ts +37 -0
- package/dist/src/bitgo/tss/eddsa/eddsaMPCv2.d.ts.map +1 -0
- package/dist/src/bitgo/tss/eddsa/eddsaMPCv2.js +95 -0
- package/dist/src/bitgo/tss/eddsa/index.js +23 -9
- package/dist/src/bitgo/tss/eddsa/types.d.ts +4 -4
- package/dist/src/bitgo/tss/eddsa/types.d.ts.map +1 -1
- package/dist/src/bitgo/tss/index.d.ts +3 -2
- package/dist/src/bitgo/tss/index.d.ts.map +1 -1
- package/dist/src/bitgo/tss/index.js +26 -10
- package/dist/src/bitgo/tss/types.d.ts +19 -0
- package/dist/src/bitgo/tss/types.d.ts.map +1 -1
- package/dist/src/bitgo/tss/types.js +2 -2
- package/dist/src/bitgo/types.d.ts +3 -3
- package/dist/src/bitgo/types.d.ts.map +1 -1
- package/dist/src/bitgo/utils/abstractUtxoCoinUtil.d.ts +12 -0
- package/dist/src/bitgo/utils/abstractUtxoCoinUtil.d.ts.map +1 -1
- package/dist/src/bitgo/utils/abstractUtxoCoinUtil.js +67 -10
- package/dist/src/bitgo/utils/codecProps.d.ts +7 -0
- package/dist/src/bitgo/utils/codecProps.d.ts.map +1 -0
- package/dist/src/bitgo/utils/codecProps.js +54 -0
- package/dist/src/bitgo/utils/codecs.d.ts +11 -0
- package/dist/src/bitgo/utils/codecs.d.ts.map +1 -0
- package/dist/src/bitgo/utils/codecs.js +59 -0
- package/dist/src/bitgo/utils/decode.d.ts.map +1 -1
- package/dist/src/bitgo/utils/decode.js +30 -16
- package/dist/src/bitgo/utils/index.d.ts +4 -2
- package/dist/src/bitgo/utils/index.d.ts.map +1 -1
- package/dist/src/bitgo/utils/index.js +27 -11
- package/dist/src/bitgo/utils/messageTypes.d.ts +40 -0
- package/dist/src/bitgo/utils/messageTypes.d.ts.map +1 -0
- package/dist/src/bitgo/utils/messageTypes.js +17 -0
- package/dist/src/bitgo/utils/mpcUtils.d.ts +4 -4
- package/dist/src/bitgo/utils/mpcUtils.d.ts.map +1 -1
- package/dist/src/bitgo/utils/mpcUtils.js +153 -14
- package/dist/src/bitgo/utils/notEmpty.d.ts +2 -0
- package/dist/src/bitgo/utils/notEmpty.d.ts.map +1 -0
- package/dist/src/bitgo/utils/notEmpty.js +7 -0
- package/dist/src/bitgo/utils/opengpgUtils.d.ts +12 -9
- package/dist/src/bitgo/utils/opengpgUtils.d.ts.map +1 -1
- package/dist/src/bitgo/utils/opengpgUtils.js +83 -73
- package/dist/src/bitgo/utils/postWithCodec.d.ts +18 -0
- package/dist/src/bitgo/utils/postWithCodec.d.ts.map +1 -0
- package/dist/src/bitgo/utils/postWithCodec.js +25 -0
- package/dist/src/bitgo/utils/promise-utils.d.ts +1 -1
- package/dist/src/bitgo/utils/promise-utils.d.ts.map +1 -1
- package/dist/src/bitgo/utils/promise-utils.js +2 -3
- package/dist/src/bitgo/utils/transactionUtils.d.ts +9 -0
- package/dist/src/bitgo/utils/transactionUtils.d.ts.map +1 -0
- package/dist/src/bitgo/utils/transactionUtils.js +29 -0
- package/dist/src/bitgo/utils/triple.d.ts +1 -1
- package/dist/src/bitgo/utils/triple.d.ts.map +1 -1
- package/dist/src/bitgo/utils/triple.js +2 -3
- package/dist/src/bitgo/utils/tss/addressVerification.d.ts +62 -0
- package/dist/src/bitgo/utils/tss/addressVerification.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/addressVerification.js +93 -0
- package/dist/src/bitgo/utils/tss/baseTSSUtils.d.ts +155 -29
- package/dist/src/bitgo/utils/tss/baseTSSUtils.d.ts.map +1 -1
- package/dist/src/bitgo/utils/tss/baseTSSUtils.js +367 -44
- package/dist/src/bitgo/utils/tss/baseTypes.d.ts +582 -39
- package/dist/src/bitgo/utils/tss/baseTypes.d.ts.map +1 -1
- package/dist/src/bitgo/utils/tss/baseTypes.js +60 -10
- package/dist/src/bitgo/utils/tss/ecdsa/SMC/utils.d.ts +23 -0
- package/dist/src/bitgo/utils/tss/ecdsa/SMC/utils.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/ecdsa/SMC/utils.js +157 -0
- package/dist/src/bitgo/utils/tss/ecdsa/base.d.ts +28 -0
- package/dist/src/bitgo/utils/tss/ecdsa/base.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/ecdsa/base.js +53 -0
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsa.d.ts +63 -50
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsa.d.ts.map +1 -1
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsa.js +374 -320
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2.d.ts +215 -0
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2.js +1049 -0
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2KeyGenSender.d.ts +8 -0
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2KeyGenSender.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2KeyGenSender.js +13 -0
- package/dist/src/bitgo/utils/tss/ecdsa/index.d.ts +4 -0
- package/dist/src/bitgo/utils/tss/ecdsa/index.d.ts.map +1 -1
- package/dist/src/bitgo/utils/tss/ecdsa/index.js +10 -2
- package/dist/src/bitgo/utils/tss/ecdsa/types.d.ts +15 -9
- package/dist/src/bitgo/utils/tss/ecdsa/types.d.ts.map +1 -1
- package/dist/src/bitgo/utils/tss/ecdsa/types.js +1 -1
- package/dist/src/bitgo/utils/tss/ecdsa/typesMPCv2.d.ts +107 -0
- package/dist/src/bitgo/utils/tss/ecdsa/typesMPCv2.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/ecdsa/typesMPCv2.js +55 -0
- package/dist/src/bitgo/utils/tss/eddsa/SMC/utils.d.ts +21 -0
- package/dist/src/bitgo/utils/tss/eddsa/SMC/utils.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/eddsa/SMC/utils.js +118 -0
- package/dist/src/bitgo/utils/tss/eddsa/base.d.ts +18 -0
- package/dist/src/bitgo/utils/tss/eddsa/base.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/eddsa/base.js +64 -0
- package/dist/src/bitgo/utils/tss/eddsa/eddsa.d.ts +53 -14
- package/dist/src/bitgo/utils/tss/eddsa/eddsa.d.ts.map +1 -1
- package/dist/src/bitgo/utils/tss/eddsa/eddsa.js +311 -99
- package/dist/src/bitgo/utils/tss/eddsa/eddsaMPCv2.d.ts +137 -0
- package/dist/src/bitgo/utils/tss/eddsa/eddsaMPCv2.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/eddsa/eddsaMPCv2.js +643 -0
- package/dist/src/bitgo/utils/tss/eddsa/eddsaMPCv2KeyGenSender.d.ts +6 -0
- package/dist/src/bitgo/utils/tss/eddsa/eddsaMPCv2KeyGenSender.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/eddsa/eddsaMPCv2KeyGenSender.js +13 -0
- package/dist/src/bitgo/utils/tss/eddsa/index.d.ts +4 -0
- package/dist/src/bitgo/utils/tss/eddsa/index.d.ts.map +1 -1
- package/dist/src/bitgo/utils/tss/eddsa/index.js +29 -8
- package/dist/src/bitgo/utils/tss/eddsa/types.d.ts +12 -7
- package/dist/src/bitgo/utils/tss/eddsa/types.d.ts.map +1 -1
- package/dist/src/bitgo/utils/tss/eddsa/types.js +1 -1
- package/dist/src/bitgo/utils/tss/eddsa/typesEddsaMPCv2.d.ts +40 -0
- package/dist/src/bitgo/utils/tss/eddsa/typesEddsaMPCv2.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/eddsa/typesEddsaMPCv2.js +44 -0
- package/dist/src/bitgo/utils/tss/index.d.ts +3 -0
- package/dist/src/bitgo/utils/tss/index.d.ts.map +1 -1
- package/dist/src/bitgo/utils/tss/index.js +26 -9
- package/dist/src/bitgo/utils/tss/preHashedSignable.d.ts +23 -0
- package/dist/src/bitgo/utils/tss/preHashedSignable.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/preHashedSignable.js +26 -0
- package/dist/src/bitgo/utils/tss/recipientUtils.d.ts +33 -0
- package/dist/src/bitgo/utils/tss/recipientUtils.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/recipientUtils.js +117 -0
- package/dist/src/bitgo/utils/txRequest.d.ts +10 -0
- package/dist/src/bitgo/utils/txRequest.d.ts.map +1 -0
- package/dist/src/bitgo/utils/txRequest.js +49 -0
- package/dist/src/bitgo/utils/util.js +24 -10
- package/dist/src/bitgo/utils/wallet.d.ts +7 -0
- package/dist/src/bitgo/utils/wallet.d.ts.map +1 -0
- package/dist/src/bitgo/utils/wallet.js +48 -0
- package/dist/src/bitgo/wallet/BuildParams.d.ts +161 -0
- package/dist/src/bitgo/wallet/BuildParams.d.ts.map +1 -0
- package/dist/src/bitgo/wallet/BuildParams.js +168 -0
- package/dist/src/bitgo/wallet/iWallet.d.ts +513 -24
- package/dist/src/bitgo/wallet/iWallet.d.ts.map +1 -1
- package/dist/src/bitgo/wallet/iWallet.js +1 -1
- package/dist/src/bitgo/wallet/iWallets.d.ts +312 -19
- package/dist/src/bitgo/wallet/iWallets.d.ts.map +1 -1
- package/dist/src/bitgo/wallet/iWallets.js +63 -3
- package/dist/src/bitgo/wallet/index.js +6 -2
- package/dist/src/bitgo/wallet/wallet.d.ts +387 -29
- package/dist/src/bitgo/wallet/wallet.d.ts.map +1 -1
- package/dist/src/bitgo/wallet/wallet.js +2118 -416
- package/dist/src/bitgo/wallet/wallets.d.ts +118 -9
- package/dist/src/bitgo/wallet/wallets.d.ts.map +1 -1
- package/dist/src/bitgo/wallet/wallets.js +1288 -182
- package/dist/src/bitgo/walletUtil/iMessageProvider.d.ts +12 -0
- package/dist/src/bitgo/walletUtil/iMessageProvider.d.ts.map +1 -0
- package/dist/src/bitgo/walletUtil/iMessageProvider.js +3 -0
- package/dist/src/bitgo/walletUtil/index.d.ts +3 -0
- package/dist/src/bitgo/walletUtil/index.d.ts.map +1 -0
- package/dist/src/bitgo/walletUtil/index.js +19 -0
- package/dist/src/bitgo/walletUtil/midnightMessageProvider.d.ts +22 -0
- package/dist/src/bitgo/walletUtil/midnightMessageProvider.d.ts.map +1 -0
- package/dist/src/bitgo/walletUtil/midnightMessageProvider.js +95 -0
- package/dist/src/bitgo/walletUtil/signAccountBasedMidnightClaimMessages.d.ts +9 -0
- package/dist/src/bitgo/walletUtil/signAccountBasedMidnightClaimMessages.d.ts.map +1 -0
- package/dist/src/bitgo/walletUtil/signAccountBasedMidnightClaimMessages.js +72 -0
- package/dist/src/bitgo/walletUtil/utxoMessageProof.d.ts +15 -0
- package/dist/src/bitgo/walletUtil/utxoMessageProof.d.ts.map +1 -0
- package/dist/src/bitgo/walletUtil/utxoMessageProof.js +40 -0
- package/dist/src/bitgo/webhook/index.js +6 -2
- package/dist/src/bitgo/webhook/webhooks.js +23 -9
- package/dist/src/coins/fiat.d.ts +45 -0
- package/dist/src/coins/fiat.d.ts.map +1 -0
- package/dist/src/coins/fiat.js +94 -0
- package/dist/src/coins/index.d.ts +1 -6
- package/dist/src/coins/index.d.ts.map +1 -1
- package/dist/src/coins/index.js +7 -8
- package/dist/src/coins/ofc.d.ts +21 -2
- package/dist/src/coins/ofc.d.ts.map +1 -1
- package/dist/src/coins/ofc.js +29 -3
- package/dist/src/coins/ofcToken.d.ts +15 -4
- package/dist/src/coins/ofcToken.d.ts.map +1 -1
- package/dist/src/coins/ofcToken.js +43 -5
- package/dist/src/coins/susd.d.ts +3 -2
- package/dist/src/coins/susd.d.ts.map +1 -1
- package/dist/src/coins/susd.js +5 -1
- package/dist/src/common.js +27 -13
- package/dist/src/index.d.ts +11 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +34 -11
- package/dist/src/lightning.d.ts +20 -0
- package/dist/src/lightning.d.ts.map +1 -0
- package/dist/src/lightning.js +13 -0
- package/dist/src/units.js +5 -6
- package/dist/test/node.utils.d.ts +2 -0
- package/dist/test/node.utils.d.ts.map +1 -0
- package/dist/test/node.utils.js +5 -0
- package/dist/test/unit/account-lib/baseCoin/messages/baseMessage.d.ts +2 -0
- package/dist/test/unit/account-lib/baseCoin/messages/baseMessage.d.ts.map +1 -0
- package/dist/test/unit/account-lib/baseCoin/messages/baseMessage.js +207 -0
- package/dist/test/unit/account-lib/baseCoin/messages/baseMessageBuilder.d.ts +2 -0
- package/dist/test/unit/account-lib/baseCoin/messages/baseMessageBuilder.d.ts.map +1 -0
- package/dist/test/unit/account-lib/baseCoin/messages/baseMessageBuilder.js +174 -0
- package/dist/test/unit/account-lib/baseCoin/messages/baseMessageBuilderFactory.d.ts +2 -0
- package/dist/test/unit/account-lib/baseCoin/messages/baseMessageBuilderFactory.d.ts.map +1 -0
- package/dist/test/unit/account-lib/baseCoin/messages/baseMessageBuilderFactory.js +108 -0
- package/dist/test/unit/account-lib/baseCoin/messages/fixtures.d.ts +46 -0
- package/dist/test/unit/account-lib/baseCoin/messages/fixtures.d.ts.map +1 -0
- package/dist/test/unit/account-lib/baseCoin/messages/fixtures.js +69 -0
- package/dist/test/unit/account-lib/mpc/tss/ecdsa/ecdsa.d.ts +2 -0
- package/dist/test/unit/account-lib/mpc/tss/ecdsa/ecdsa.d.ts.map +1 -0
- package/dist/test/unit/account-lib/mpc/tss/ecdsa/ecdsa.js +279 -0
- package/dist/test/unit/account-lib/mpc/tss/ecdsa/fixtures.d.ts +3 -0
- package/dist/test/unit/account-lib/mpc/tss/ecdsa/fixtures.d.ts.map +1 -0
- package/dist/test/unit/account-lib/mpc/tss/ecdsa/fixtures.js +24 -0
- package/dist/test/unit/account-lib/mpc/util.d.ts +2 -0
- package/dist/test/unit/account-lib/mpc/util.d.ts.map +1 -0
- package/dist/test/unit/account-lib/mpc/util.js +53 -0
- package/dist/test/unit/bitgo/address-book/address-book.d.ts +2 -0
- package/dist/test/unit/bitgo/address-book/address-book.d.ts.map +1 -0
- package/dist/test/unit/bitgo/address-book/address-book.js +159 -0
- package/dist/test/unit/bitgo/defi/defiVault.d.ts +2 -0
- package/dist/test/unit/bitgo/defi/defiVault.d.ts.map +1 -0
- package/dist/test/unit/bitgo/defi/defiVault.js +338 -0
- package/dist/test/unit/bitgo/environment.d.ts +2 -0
- package/dist/test/unit/bitgo/environment.d.ts.map +1 -0
- package/dist/test/unit/bitgo/environment.js +38 -0
- package/dist/test/unit/bitgo/errors.d.ts +2 -0
- package/dist/test/unit/bitgo/errors.d.ts.map +1 -0
- package/dist/test/unit/bitgo/errors.js +262 -0
- package/dist/test/unit/bitgo/recovery/initiate.d.ts +2 -0
- package/dist/test/unit/bitgo/recovery/initiate.d.ts.map +1 -0
- package/dist/test/unit/bitgo/recovery/initiate.js +159 -0
- package/dist/test/unit/bitgo/trading/network/encrypt.d.ts +2 -0
- package/dist/test/unit/bitgo/trading/network/encrypt.d.ts.map +1 -0
- package/dist/test/unit/bitgo/trading/network/encrypt.js +71 -0
- package/dist/test/unit/bitgo/trading/tradingAccount.d.ts +2 -0
- package/dist/test/unit/bitgo/trading/tradingAccount.d.ts.map +1 -0
- package/dist/test/unit/bitgo/trading/tradingAccount.js +192 -0
- package/dist/test/unit/bitgo/utils/abstractUtxoCoinUtil.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/abstractUtxoCoinUtil.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/abstractUtxoCoinUtil.js +45 -0
- package/dist/test/unit/bitgo/utils/messageTypes.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/messageTypes.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/messageTypes.js +64 -0
- package/dist/test/unit/bitgo/utils/notEmpty.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/notEmpty.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/notEmpty.js +15 -0
- package/dist/test/unit/bitgo/utils/postWithCodec.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/postWithCodec.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/postWithCodec.js +73 -0
- package/dist/test/unit/bitgo/utils/tss/addressVerification.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/tss/addressVerification.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/tss/addressVerification.js +251 -0
- package/dist/test/unit/bitgo/utils/tss/baseTSSUtils.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/tss/baseTSSUtils.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/tss/baseTSSUtils.js +399 -0
- package/dist/test/unit/bitgo/utils/tss/ecdsa/ecdsaEncryptionVersion.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/tss/ecdsa/ecdsaEncryptionVersion.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/tss/ecdsa/ecdsaEncryptionVersion.js +94 -0
- package/dist/test/unit/bitgo/utils/tss/ecdsa/ecdsaMPCv2.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/tss/ecdsa/ecdsaMPCv2.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/tss/ecdsa/ecdsaMPCv2.js +999 -0
- package/dist/test/unit/bitgo/utils/tss/ecdsa/gpgKeys.d.ts +5 -0
- package/dist/test/unit/bitgo/utils/tss/ecdsa/gpgKeys.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/tss/ecdsa/gpgKeys.js +36 -0
- package/dist/test/unit/bitgo/utils/tss/eddsa/eddsaExternalSigner.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/tss/eddsa/eddsaExternalSigner.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/tss/eddsa/eddsaExternalSigner.js +158 -0
- package/dist/test/unit/bitgo/utils/tss/eddsa/eddsaMPCv2.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/tss/eddsa/eddsaMPCv2.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/tss/eddsa/eddsaMPCv2.js +1279 -0
- package/dist/test/unit/bitgo/utils/tss/eddsa/smcUtil.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/tss/eddsa/smcUtil.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/tss/eddsa/smcUtil.js +311 -0
- package/dist/test/unit/bitgo/utils/tss/preHashedSignable.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/tss/preHashedSignable.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/tss/preHashedSignable.js +55 -0
- package/dist/test/unit/bitgo/utils/tss/recipientUtils.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/tss/recipientUtils.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/tss/recipientUtils.js +171 -0
- package/dist/test/unit/bitgo/utils/txRequest.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/txRequest.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/txRequest.js +179 -0
- package/dist/test/unit/bitgo/wallet/BuildParams.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/BuildParams.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/BuildParams.js +97 -0
- package/dist/test/unit/bitgo/wallet/SendTransactionRequest.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/SendTransactionRequest.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/SendTransactionRequest.js +58 -0
- package/dist/test/unit/bitgo/wallet/getAccountResources.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/getAccountResources.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/getAccountResources.js +133 -0
- package/dist/test/unit/bitgo/wallet/getResourceDelegations.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/getResourceDelegations.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/getResourceDelegations.js +118 -0
- package/dist/test/unit/bitgo/wallet/ofcWalletAddressCreation.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/ofcWalletAddressCreation.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/ofcWalletAddressCreation.js +141 -0
- package/dist/test/unit/bitgo/wallet/ofcWalletSignTransaction.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/ofcWalletSignTransaction.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/ofcWalletSignTransaction.js +185 -0
- package/dist/test/unit/bitgo/wallet/resourceManagement.d.ts +3 -0
- package/dist/test/unit/bitgo/wallet/resourceManagement.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/resourceManagement.js +441 -0
- package/dist/test/unit/bitgo/wallet/tokenApproval.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/tokenApproval.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/tokenApproval.js +201 -0
- package/dist/test/unit/bitgo/wallet/walletEvmAddressCreation.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/walletEvmAddressCreation.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/walletEvmAddressCreation.js +181 -0
- package/dist/test/unit/bitgo/wallet/walletOptionsCodecs.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/walletOptionsCodecs.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/walletOptionsCodecs.js +43 -0
- package/dist/test/unit/bitgo/wallet/walletTssAddressVerification.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/walletTssAddressVerification.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/walletTssAddressVerification.js +320 -0
- package/dist/test/unit/bitgo/wallet/walletsEncryptionVersion.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/walletsEncryptionVersion.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/walletsEncryptionVersion.js +228 -0
- package/dist/test/unit/bitgo/wallet/walletsEvmKeyring.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/walletsEvmKeyring.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/walletsEvmKeyring.js +216 -0
- package/dist/test/unit/bitgo/wallet/walletsExternalSigner.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/walletsExternalSigner.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/walletsExternalSigner.js +670 -0
- package/dist/test/unit/bitgo/wallet/walletsWebauthn.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/walletsWebauthn.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/walletsWebauthn.js +201 -0
- package/dist/test/unit/coins/ofc.d.ts +2 -0
- package/dist/test/unit/coins/ofc.d.ts.map +1 -0
- package/dist/test/unit/coins/ofc.js +124 -0
- package/dist/test/unit/lightning.d.ts +2 -0
- package/dist/test/unit/lightning.d.ts.map +1 -0
- package/dist/test/unit/lightning.js +23 -0
- package/dist/test/unit/units.d.ts +2 -0
- package/dist/test/unit/units.d.ts.map +1 -0
- package/dist/test/unit/units.js +98 -0
- package/dist/tsconfig.tsbuildinfo +1 -8339
- package/package.json +29 -23
- package/.eslintignore +0 -5
- package/CHANGELOG.md +0 -662
- package/dist/src/account-lib/baseCoin/blsKeyPair.d.ts +0 -77
- package/dist/src/account-lib/baseCoin/blsKeyPair.d.ts.map +0 -1
- package/dist/src/account-lib/baseCoin/blsKeyPair.js +0 -209
- package/dist/src/account-lib/mpc/hdTree.d.ts +0 -31
- package/dist/src/account-lib/mpc/hdTree.d.ts.map +0 -1
- package/dist/src/account-lib/mpc/hdTree.js +0 -141
- package/dist/src/account-lib/mpc/types.d.ts +0 -5
- package/dist/src/account-lib/mpc/types.d.ts.map +0 -1
- package/dist/src/account-lib/mpc/types.js +0 -3
- package/dist/src/bitgo/lightning/iLightning.d.ts +0 -186
- package/dist/src/bitgo/lightning/iLightning.d.ts.map +0 -1
- package/dist/src/bitgo/lightning/iLightning.js +0 -106
- package/dist/src/bitgo/lightning/index.d.ts +0 -5
- package/dist/src/bitgo/lightning/index.d.ts.map +0 -1
- package/dist/src/bitgo/lightning/index.js +0 -17
- package/dist/src/bitgo/lightning/lightning.d.ts +0 -25
- package/dist/src/bitgo/lightning/lightning.d.ts.map +0 -1
- package/dist/src/bitgo/lightning/lightning.js +0 -111
- package/dist/src/bitgo/lightning/lightningUtils.d.ts +0 -46
- package/dist/src/bitgo/lightning/lightningUtils.d.ts.map +0 -1
- package/dist/src/bitgo/lightning/lightningUtils.js +0 -133
- package/dist/src/bitgo/lightning/lnurlCodec.d.ts +0 -3
- package/dist/src/bitgo/lightning/lnurlCodec.d.ts.map +0 -1
- package/dist/src/bitgo/lightning/lnurlCodec.js +0 -28
- package/dist/src/bitgo/trading/affirmation.d.ts +0 -35
- package/dist/src/bitgo/trading/affirmation.d.ts.map +0 -1
- package/dist/src/bitgo/trading/affirmation.js +0 -53
- package/dist/src/bitgo/trading/affirmations.d.ts +0 -23
- package/dist/src/bitgo/trading/affirmations.d.ts.map +0 -1
- package/dist/src/bitgo/trading/affirmations.js +0 -45
- package/dist/src/bitgo/trading/iAffirmation.d.ts +0 -15
- package/dist/src/bitgo/trading/iAffirmation.d.ts.map +0 -1
- package/dist/src/bitgo/trading/iAffirmation.js +0 -13
- package/dist/src/bitgo/trading/iAffirmations.d.ts +0 -10
- package/dist/src/bitgo/trading/iAffirmations.d.ts.map +0 -1
- package/dist/src/bitgo/trading/iAffirmations.js +0 -3
- package/dist/src/bitgo/trading/iSettlement.d.ts +0 -25
- package/dist/src/bitgo/trading/iSettlement.d.ts.map +0 -1
- package/dist/src/bitgo/trading/iSettlement.js +0 -17
- package/dist/src/bitgo/trading/iSettlements.d.ts +0 -19
- package/dist/src/bitgo/trading/iSettlements.d.ts.map +0 -1
- package/dist/src/bitgo/trading/iSettlements.js +0 -3
- package/dist/src/bitgo/trading/iTradingPartner.d.ts +0 -14
- package/dist/src/bitgo/trading/iTradingPartner.d.ts.map +0 -1
- package/dist/src/bitgo/trading/iTradingPartner.js +0 -17
- package/dist/src/bitgo/trading/iTradingPartners.d.ts +0 -15
- package/dist/src/bitgo/trading/iTradingPartners.d.ts.map +0 -1
- package/dist/src/bitgo/trading/iTradingPartners.js +0 -9
- package/dist/src/bitgo/trading/lock.d.ts +0 -16
- package/dist/src/bitgo/trading/lock.d.ts.map +0 -1
- package/dist/src/bitgo/trading/lock.js +0 -12
- package/dist/src/bitgo/trading/payload.d.ts +0 -22
- package/dist/src/bitgo/trading/payload.d.ts.map +0 -1
- package/dist/src/bitgo/trading/payload.js +0 -3
- package/dist/src/bitgo/trading/settlement.d.ts +0 -16
- package/dist/src/bitgo/trading/settlement.d.ts.map +0 -1
- package/dist/src/bitgo/trading/settlement.js +0 -21
- package/dist/src/bitgo/trading/settlements.d.ts +0 -32
- package/dist/src/bitgo/trading/settlements.d.ts.map +0 -1
- package/dist/src/bitgo/trading/settlements.js +0 -61
- package/dist/src/bitgo/trading/trade.d.ts +0 -29
- package/dist/src/bitgo/trading/trade.d.ts.map +0 -1
- package/dist/src/bitgo/trading/trade.js +0 -11
- package/dist/src/bitgo/trading/tradingPartner.d.ts +0 -26
- package/dist/src/bitgo/trading/tradingPartner.d.ts.map +0 -1
- package/dist/src/bitgo/trading/tradingPartner.js +0 -31
- package/dist/src/bitgo/trading/tradingPartners.d.ts +0 -24
- package/dist/src/bitgo/trading/tradingPartners.d.ts.map +0 -1
- package/dist/src/bitgo/trading/tradingPartners.js +0 -32
- package/dist/src/bitgo/utils/blsUtils.d.ts +0 -52
- package/dist/src/bitgo/utils/blsUtils.d.ts.map +0 -1
- package/dist/src/bitgo/utils/blsUtils.js +0 -237
- package/dist/src/bitgo/utils/iBlsUtils.d.ts +0 -14
- package/dist/src/bitgo/utils/iBlsUtils.d.ts.map +0 -1
- package/dist/src/bitgo/utils/iBlsUtils.js +0 -3
- package/dist/src/coins/fiateur.d.ts +0 -31
- package/dist/src/coins/fiateur.d.ts.map +0 -1
- package/dist/src/coins/fiateur.js +0 -57
- package/dist/src/coins/fiatgbp.d.ts +0 -31
- package/dist/src/coins/fiatgbp.d.ts.map +0 -1
- package/dist/src/coins/fiatgbp.js +0 -57
- package/dist/src/coins/fiatusd.d.ts +0 -31
- package/dist/src/coins/fiatusd.d.ts.map +0 -1
- package/dist/src/coins/fiatusd.js +0 -57
- package/dist/src/coins/tfiateur.d.ts +0 -11
- package/dist/src/coins/tfiateur.d.ts.map +0 -1
- package/dist/src/coins/tfiateur.js +0 -17
- package/dist/src/coins/tfiatgbp.d.ts +0 -11
- package/dist/src/coins/tfiatgbp.d.ts.map +0 -1
- package/dist/src/coins/tfiatgbp.js +0 -17
- package/dist/src/coins/tfiatusd.d.ts +0 -11
- package/dist/src/coins/tfiatusd.d.ts.map +0 -1
- package/dist/src/coins/tfiatusd.js +0 -17
- package/dist/src/openssl/index.d.ts +0 -2
- package/dist/src/openssl/index.d.ts.map +0 -1
- package/dist/src/openssl/openssl.d.ts +0 -12
- package/dist/src/openssl/openssl.d.ts.map +0 -1
- package/dist/src/openssl/openssl.js +0 -48
- package/dist/src/openssl/opensslbytes.d.ts +0 -4
- package/dist/src/openssl/opensslbytes.d.ts.map +0 -1
- package/dist/src/openssl/opensslbytes.js +0 -20
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
import { IRequestTracer } from '../../api';
|
|
2
|
-
import {
|
|
1
|
+
import { EncryptionVersion, IRequestTracer } from '../../api';
|
|
2
|
+
import { CreateLightningInvoiceParams, LightningInvoiceResponse } from '../../lightning';
|
|
3
|
+
import { IBaseCoin, ITransactionRecipient, Message, SignedMessage, SignedTransaction, TransactionParams, TransactionPrebuild, VerificationOptions, TypedData, NFTTransferOptions } from '../baseCoin';
|
|
3
4
|
import { BitGoBase } from '../bitgoBase';
|
|
4
|
-
import { Keychain } from '../keychain';
|
|
5
|
+
import { Keychain, KeychainWithEncryptedPrv } from '../keychain';
|
|
5
6
|
import { IPendingApproval, PendingApprovalData } from '../pendingApproval';
|
|
6
|
-
import {
|
|
7
|
+
import { IDefiVault } from '../defi';
|
|
8
|
+
import { IGoStakingWallet, IStakingWallet } from '../staking';
|
|
7
9
|
import { ITradingAccount } from '../trading';
|
|
8
|
-
import { CustomGShareGeneratingFunction, CustomRShareGeneratingFunction, TokenEnablement, TokenTransferRecipientParams } from '../utils';
|
|
9
|
-
import { ILightning } from '../lightning';
|
|
10
|
+
import { CantonCommandParams, CustomCommitmentGeneratingFunction, CustomEddsaMPCv2SigningRound1GeneratingFunction, CustomEddsaMPCv2SigningRound2GeneratingFunction, CustomEddsaMPCv2SigningRound3GeneratingFunction, CustomGShareGeneratingFunction, CustomKShareGeneratingFunction, CustomMPCv2SigningRound1GeneratingFunction, CustomMPCv2SigningRound2GeneratingFunction, CustomMPCv2SigningRound3GeneratingFunction, CustomMuDeltaShareGeneratingFunction, CustomPaillierModulusGetterFunction, CustomRShareGeneratingFunction, CustomSShareGeneratingFunction, TokenEnablement, TokenTransferRecipientParams, TxRequest } from '../utils';
|
|
10
11
|
import { SerializedNtilde } from '../../account-lib/mpc/tss/ecdsa/types';
|
|
12
|
+
import { IAddressBook } from '../address-book';
|
|
13
|
+
import { WalletUser, AddressQueryResult } from '@bitgo/public-types';
|
|
14
|
+
import { SubmitTransactionResponse } from '../inscriptionBuilder';
|
|
11
15
|
export interface MaximumSpendableOptions {
|
|
12
16
|
minValue?: number | string;
|
|
13
17
|
maxValue?: number | string;
|
|
@@ -29,13 +33,69 @@ export interface Memo {
|
|
|
29
33
|
value: string;
|
|
30
34
|
type: string;
|
|
31
35
|
}
|
|
32
|
-
export interface BuildConsolidationTransactionOptions extends PrebuildTransactionOptions {
|
|
36
|
+
export interface BuildConsolidationTransactionOptions extends PrebuildTransactionOptions, WalletSignTransactionOptions {
|
|
33
37
|
consolidateAddresses?: string[];
|
|
34
38
|
}
|
|
39
|
+
export interface ResourceDelegationEntry {
|
|
40
|
+
receiverAddress: string;
|
|
41
|
+
amount: string;
|
|
42
|
+
/** Resource type to delegate (e.g. 'ENERGY', 'BANDWIDTH'). */
|
|
43
|
+
resource: string;
|
|
44
|
+
}
|
|
45
|
+
export interface BuildResourceDelegationTransactionOptions extends PrebuildTransactionOptions, WalletSignTransactionOptions {
|
|
46
|
+
delegations: ResourceDelegationEntry[];
|
|
47
|
+
}
|
|
48
|
+
export interface BuildResourceUndelegationTransactionOptions extends PrebuildTransactionOptions, WalletSignTransactionOptions {
|
|
49
|
+
undelegations: ResourceDelegationEntry[];
|
|
50
|
+
}
|
|
51
|
+
export interface ResourceManagementSendResult {
|
|
52
|
+
txid?: string;
|
|
53
|
+
status?: string;
|
|
54
|
+
tx?: string;
|
|
55
|
+
txRequestId?: string;
|
|
56
|
+
pendingApprovalId?: string;
|
|
57
|
+
}
|
|
58
|
+
export interface BuildResourceManagementTransactionResult {
|
|
59
|
+
prebuilds: PrebuildTransactionResult[];
|
|
60
|
+
buildFailures: {
|
|
61
|
+
message: string;
|
|
62
|
+
receiverAddress?: string;
|
|
63
|
+
}[];
|
|
64
|
+
}
|
|
35
65
|
export interface BuildTokenEnablementOptions extends PrebuildTransactionOptions {
|
|
36
66
|
enableTokens: TokenEnablement[];
|
|
37
67
|
}
|
|
38
|
-
|
|
68
|
+
type BaseBalance = {
|
|
69
|
+
balanceString: string;
|
|
70
|
+
confirmedBalanceString: string;
|
|
71
|
+
spendableBalanceString: string;
|
|
72
|
+
};
|
|
73
|
+
export type NftBalance = BaseBalance & {
|
|
74
|
+
type: string;
|
|
75
|
+
metadata: {
|
|
76
|
+
name: string;
|
|
77
|
+
tokenContractAddress: string;
|
|
78
|
+
};
|
|
79
|
+
collections: {
|
|
80
|
+
[tokenId: string]: number;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
export type ApiVersion = 'lite' | 'full';
|
|
84
|
+
/** Parameters for sBTC bridging (BTC to sBTC). */
|
|
85
|
+
export interface SbtcBridgingParams {
|
|
86
|
+
/** Amount in satoshis to bridge */
|
|
87
|
+
amount: number | string;
|
|
88
|
+
/** Stacks recipient address */
|
|
89
|
+
stacksRecipient: string;
|
|
90
|
+
/** Maximum fee in satoshis */
|
|
91
|
+
maxFee: number | string;
|
|
92
|
+
/** Lock time for the bridging transaction */
|
|
93
|
+
lockTime: number;
|
|
94
|
+
}
|
|
95
|
+
/** Parameters for cross-chain bridging transactions. */
|
|
96
|
+
export interface BridgingParams {
|
|
97
|
+
sbtc?: SbtcBridgingParams;
|
|
98
|
+
}
|
|
39
99
|
export interface PrebuildTransactionOptions {
|
|
40
100
|
reqId?: IRequestTracer;
|
|
41
101
|
recipients?: {
|
|
@@ -57,7 +117,24 @@ export interface PrebuildTransactionOptions {
|
|
|
57
117
|
gasPrice?: number;
|
|
58
118
|
noSplitChange?: boolean;
|
|
59
119
|
unspents?: any[];
|
|
120
|
+
/**
|
|
121
|
+
* The receive address from which funds will be withdrawn.
|
|
122
|
+
* This feature is supported only for specific coins, like ADA.
|
|
123
|
+
*/
|
|
124
|
+
senderAddress?: string;
|
|
125
|
+
/**
|
|
126
|
+
* The wallet ID of the sender wallet when sender wallet is different from current wallet id.
|
|
127
|
+
* @type {string}
|
|
128
|
+
* @default {undefined}
|
|
129
|
+
* @description For BTC unstaking, the sender wallet(a descriptor wallet) is different from original wallet
|
|
130
|
+
* */
|
|
131
|
+
senderWalletId?: string;
|
|
132
|
+
messages?: {
|
|
133
|
+
address: string;
|
|
134
|
+
message: string;
|
|
135
|
+
}[];
|
|
60
136
|
changeAddress?: string;
|
|
137
|
+
allowExternalChangeAddress?: boolean;
|
|
61
138
|
type?: string;
|
|
62
139
|
closeRemainderTo?: string;
|
|
63
140
|
nonParticipation?: boolean;
|
|
@@ -66,6 +143,7 @@ export interface PrebuildTransactionOptions {
|
|
|
66
143
|
instant?: boolean;
|
|
67
144
|
memo?: Memo;
|
|
68
145
|
addressType?: string;
|
|
146
|
+
changeAddressType?: string;
|
|
69
147
|
hop?: boolean;
|
|
70
148
|
walletPassphrase?: string;
|
|
71
149
|
reservation?: {
|
|
@@ -80,6 +158,8 @@ export interface PrebuildTransactionOptions {
|
|
|
80
158
|
comment?: string;
|
|
81
159
|
[index: string]: unknown;
|
|
82
160
|
tokenName?: string;
|
|
161
|
+
nftCollectionId?: string;
|
|
162
|
+
nftId?: string;
|
|
83
163
|
enableTokens?: TokenEnablement[];
|
|
84
164
|
nonce?: string;
|
|
85
165
|
preview?: boolean;
|
|
@@ -90,6 +170,7 @@ export interface PrebuildTransactionOptions {
|
|
|
90
170
|
isTss?: boolean;
|
|
91
171
|
custodianTransactionId?: string;
|
|
92
172
|
apiVersion?: ApiVersion;
|
|
173
|
+
stakingParams?: unknown;
|
|
93
174
|
/**
|
|
94
175
|
* If set to false, sweep all funds including the required minimums for address(es). E.g. Polkadot (DOT) requires 1 DOT minimum.
|
|
95
176
|
*/
|
|
@@ -98,7 +179,96 @@ export interface PrebuildTransactionOptions {
|
|
|
98
179
|
* This comment applies to UTXO coins. It's asking which transaction format to use:
|
|
99
180
|
* the legacy format defined by bitcoinjs-lib, or the 'psbt' format, which follows the BIP-174.
|
|
100
181
|
*/
|
|
101
|
-
txFormat?: 'legacy' | 'psbt';
|
|
182
|
+
txFormat?: 'legacy' | 'psbt' | 'psbt-lite';
|
|
183
|
+
/**
|
|
184
|
+
* Custom Solana instructions to include in the transaction.
|
|
185
|
+
* Each instruction contains a program ID, accounts array, and data buffer.
|
|
186
|
+
*/
|
|
187
|
+
solInstructions?: {
|
|
188
|
+
programId: string;
|
|
189
|
+
keys: {
|
|
190
|
+
pubkey: string;
|
|
191
|
+
isSigner: boolean;
|
|
192
|
+
isWritable: boolean;
|
|
193
|
+
}[];
|
|
194
|
+
data: string;
|
|
195
|
+
}[];
|
|
196
|
+
/**
|
|
197
|
+
* Solana versioned transaction data for building transactions with Address Lookup Tables.
|
|
198
|
+
* Contains compiled instructions, address lookup tables, static account keys, and message header.
|
|
199
|
+
*/
|
|
200
|
+
solVersionedTransactionData?: {
|
|
201
|
+
versionedInstructions: {
|
|
202
|
+
programIdIndex: number;
|
|
203
|
+
accountKeyIndexes: number[];
|
|
204
|
+
data: string;
|
|
205
|
+
}[];
|
|
206
|
+
addressLookupTables: {
|
|
207
|
+
accountKey: string;
|
|
208
|
+
writableIndexes: number[];
|
|
209
|
+
readonlyIndexes: number[];
|
|
210
|
+
}[];
|
|
211
|
+
staticAccountKeys: string[];
|
|
212
|
+
messageHeader: {
|
|
213
|
+
numRequiredSignatures: number;
|
|
214
|
+
numReadonlySignedAccounts: number;
|
|
215
|
+
numReadonlyUnsignedAccounts: number;
|
|
216
|
+
};
|
|
217
|
+
recentBlockhash?: string;
|
|
218
|
+
};
|
|
219
|
+
/**
|
|
220
|
+
* Custom transaction parameters for Aptos entry function calls.
|
|
221
|
+
* Used with the customTx intent type for Aptos smart contract interactions.
|
|
222
|
+
*/
|
|
223
|
+
aptosCustomTransactionParams?: {
|
|
224
|
+
moduleName: string;
|
|
225
|
+
functionName: string;
|
|
226
|
+
typeArguments?: string[];
|
|
227
|
+
functionArguments?: any[];
|
|
228
|
+
abi?: any;
|
|
229
|
+
};
|
|
230
|
+
txRequestId?: string;
|
|
231
|
+
isTestTransaction?: boolean;
|
|
232
|
+
qr?: boolean;
|
|
233
|
+
transferOfferId?: string;
|
|
234
|
+
/**
|
|
235
|
+
* Amount for intents that use a top-level amount instead of recipients (e.g. bridgeFunds).
|
|
236
|
+
* Named intentAmount to avoid collision with SendOptions.amount which is string | number.
|
|
237
|
+
*/
|
|
238
|
+
intentAmount?: {
|
|
239
|
+
value: string;
|
|
240
|
+
symbol: string;
|
|
241
|
+
};
|
|
242
|
+
/**
|
|
243
|
+
* TIP-20 token address to use for paying transaction fees (Tempo only).
|
|
244
|
+
* When specified, fees will be deducted in this token instead of the native currency.
|
|
245
|
+
*/
|
|
246
|
+
feeToken?: string;
|
|
247
|
+
/**
|
|
248
|
+
* Parameters for bridging transactions (e.g., BTC to sBTC).
|
|
249
|
+
* Used with type: 'bridging' for cross-chain bridging operations.
|
|
250
|
+
*/
|
|
251
|
+
bridgingParams?: BridgingParams;
|
|
252
|
+
/**
|
|
253
|
+
* Parameters for executing DAML commands on Canton.
|
|
254
|
+
*/
|
|
255
|
+
cantonCommandParams?: CantonCommandParams;
|
|
256
|
+
/** Canton party ID of the end investor to onboard (cantonEndInvestorOnboardingOffer intent). */
|
|
257
|
+
endInvestorPartyId?: string;
|
|
258
|
+
/** Reason for rejecting the onboarding offer (cantonEndInvestorOnboardingReject intent). */
|
|
259
|
+
reason?: string;
|
|
260
|
+
/** DTCC operator party ID (cantonParticipantOnboardingRequest intent). */
|
|
261
|
+
operator?: string;
|
|
262
|
+
/** DTCC provider party ID (cantonParticipantOnboardingRequest intent). */
|
|
263
|
+
provider?: string;
|
|
264
|
+
/** DTCC compliance party ID (cantonParticipantOnboardingRequest intent). */
|
|
265
|
+
compliance?: string;
|
|
266
|
+
/** DTCC registrar party ID (cantonParticipantOnboardingRequest intent). */
|
|
267
|
+
registrar?: string;
|
|
268
|
+
/** DTCC client onboarder party ID (cantonParticipantOnboardingRequest intent). */
|
|
269
|
+
clientOnboarder?: string;
|
|
270
|
+
/** Optional ISO 8601 expiration timestamp (cantonParticipantOnboardingRequest intent). */
|
|
271
|
+
expirationIso?: string;
|
|
102
272
|
}
|
|
103
273
|
export interface PrebuildAndSignTransactionOptions extends PrebuildTransactionOptions, WalletSignTransactionOptions {
|
|
104
274
|
prebuildTx?: string | PrebuildTransactionResult;
|
|
@@ -107,6 +277,7 @@ export interface PrebuildAndSignTransactionOptions extends PrebuildTransactionOp
|
|
|
107
277
|
export interface PrebuildTransactionResult extends TransactionPrebuild {
|
|
108
278
|
walletId: string;
|
|
109
279
|
consolidateId?: string;
|
|
280
|
+
stakingRequestId?: string;
|
|
110
281
|
consolidationDetails?: {
|
|
111
282
|
senderAddressIndex: number;
|
|
112
283
|
};
|
|
@@ -114,12 +285,19 @@ export interface PrebuildTransactionResult extends TransactionPrebuild {
|
|
|
114
285
|
fee?: number;
|
|
115
286
|
feeString?: string;
|
|
116
287
|
};
|
|
288
|
+
pendingApprovalId?: string;
|
|
289
|
+
reqId?: IRequestTracer;
|
|
290
|
+
payload?: string;
|
|
291
|
+
stakingParams?: unknown;
|
|
292
|
+
recipients?: ITransactionRecipient[];
|
|
117
293
|
}
|
|
118
294
|
export interface CustomSigningFunction {
|
|
119
295
|
(params: {
|
|
120
296
|
coin: IBaseCoin;
|
|
121
297
|
txPrebuild: TransactionPrebuild;
|
|
122
298
|
pubs?: string[];
|
|
299
|
+
derivationSeed?: string;
|
|
300
|
+
signingStep?: 'signerNonce' | 'signerSignature' | 'cosignerNonce';
|
|
123
301
|
}): Promise<SignedTransaction>;
|
|
124
302
|
}
|
|
125
303
|
export interface WalletSignBaseOptions {
|
|
@@ -130,17 +308,43 @@ export interface WalletSignBaseOptions {
|
|
|
130
308
|
cosignerPub?: string;
|
|
131
309
|
isLastSignature?: boolean;
|
|
132
310
|
customSigningFunction?: CustomSigningFunction;
|
|
311
|
+
bulk?: boolean;
|
|
133
312
|
}
|
|
134
313
|
export interface WalletSignTransactionOptions extends WalletSignBaseOptions {
|
|
135
314
|
txPrebuild?: TransactionPrebuild;
|
|
315
|
+
customCommitmentGeneratingFunction?: CustomCommitmentGeneratingFunction;
|
|
136
316
|
customRShareGeneratingFunction?: CustomRShareGeneratingFunction;
|
|
137
317
|
customGShareGeneratingFunction?: CustomGShareGeneratingFunction;
|
|
318
|
+
customPaillierModulusGeneratingFunction?: CustomPaillierModulusGetterFunction;
|
|
319
|
+
customKShareGeneratingFunction?: CustomKShareGeneratingFunction;
|
|
320
|
+
customMuDeltaShareGeneratingFunction?: CustomMuDeltaShareGeneratingFunction;
|
|
321
|
+
customSShareGeneratingFunction?: CustomSShareGeneratingFunction;
|
|
322
|
+
customMPCv2SigningRound1GenerationFunction?: CustomMPCv2SigningRound1GeneratingFunction;
|
|
323
|
+
customMPCv2SigningRound2GenerationFunction?: CustomMPCv2SigningRound2GeneratingFunction;
|
|
324
|
+
customMPCv2SigningRound3GenerationFunction?: CustomMPCv2SigningRound3GeneratingFunction;
|
|
325
|
+
customEddsaMPCv2SigningRound1GenerationFunction?: CustomEddsaMPCv2SigningRound1GeneratingFunction;
|
|
326
|
+
customEddsaMPCv2SigningRound2GenerationFunction?: CustomEddsaMPCv2SigningRound2GeneratingFunction;
|
|
327
|
+
customEddsaMPCv2SigningRound3GenerationFunction?: CustomEddsaMPCv2SigningRound3GeneratingFunction;
|
|
138
328
|
apiVersion?: ApiVersion;
|
|
329
|
+
multisigTypeVersion?: 'MPCv2';
|
|
330
|
+
walletPassphrase?: string;
|
|
331
|
+
/**
|
|
332
|
+
* Optional transaction verification parameters. When provided, the transaction will be verified
|
|
333
|
+
* using verifyTransaction before signing.
|
|
334
|
+
*/
|
|
335
|
+
verifyTxParams?: {
|
|
336
|
+
txParams: TransactionParams;
|
|
337
|
+
verification?: VerificationOptions;
|
|
338
|
+
};
|
|
139
339
|
[index: string]: unknown;
|
|
140
340
|
}
|
|
141
341
|
interface WalletSignMessageBase extends WalletSignBaseOptions {
|
|
142
342
|
walletPassphrase?: string;
|
|
143
343
|
custodianMessageId?: string;
|
|
344
|
+
customPaillierModulusGeneratingFunction?: CustomPaillierModulusGetterFunction;
|
|
345
|
+
customKShareGeneratingFunction?: CustomKShareGeneratingFunction;
|
|
346
|
+
customMuDeltaShareGeneratingFunction?: CustomMuDeltaShareGeneratingFunction;
|
|
347
|
+
customSShareGeneratingFunction?: CustomSShareGeneratingFunction;
|
|
144
348
|
}
|
|
145
349
|
export interface WalletSignMessageOptions extends WalletSignMessageBase {
|
|
146
350
|
message?: Message;
|
|
@@ -148,6 +352,11 @@ export interface WalletSignMessageOptions extends WalletSignMessageBase {
|
|
|
148
352
|
export interface WalletSignTypedDataOptions extends WalletSignMessageBase {
|
|
149
353
|
typedData: TypedData;
|
|
150
354
|
}
|
|
355
|
+
export interface SignAndSendTxRequestOptions {
|
|
356
|
+
txRequestId: string;
|
|
357
|
+
walletPassphrase: string;
|
|
358
|
+
isTxRequestFull: boolean;
|
|
359
|
+
}
|
|
151
360
|
export interface GetUserPrvOptions {
|
|
152
361
|
keychain?: Keychain;
|
|
153
362
|
key?: Keychain;
|
|
@@ -164,13 +373,30 @@ export interface WalletCoinSpecific {
|
|
|
164
373
|
walletVersion?: number;
|
|
165
374
|
hashAlgorithm?: string;
|
|
166
375
|
pendingEcdsaTssInitialization?: boolean;
|
|
376
|
+
features?: string[];
|
|
377
|
+
freezeDepositsFromShielded?: boolean;
|
|
378
|
+
userKeySigningRequired?: boolean;
|
|
379
|
+
/**
|
|
380
|
+
* Lightning coin specific data starts
|
|
381
|
+
*/
|
|
382
|
+
keys?: string[];
|
|
383
|
+
encryptedSignerAdminMacaroon?: string | null;
|
|
384
|
+
encryptedSignerMacaroon?: string | null;
|
|
385
|
+
watchOnlyExternalIp?: string | null;
|
|
386
|
+
signerHost?: string | null;
|
|
387
|
+
encryptedSignerTlsKey?: string | null;
|
|
388
|
+
signerTlsCert?: string | null;
|
|
389
|
+
watchOnlyAccounts?: Record<string, unknown> | null;
|
|
390
|
+
signedUserAuthKey?: string;
|
|
167
391
|
}
|
|
168
392
|
export interface PaginationOptions {
|
|
393
|
+
page?: number;
|
|
169
394
|
prevId?: string;
|
|
170
395
|
limit?: number;
|
|
171
396
|
}
|
|
172
397
|
export interface GetTransactionOptions extends PaginationOptions {
|
|
173
398
|
txHash?: string;
|
|
399
|
+
includeRbf?: boolean;
|
|
174
400
|
}
|
|
175
401
|
export interface TransfersOptions extends PaginationOptions {
|
|
176
402
|
txHash?: string;
|
|
@@ -184,6 +410,7 @@ export interface TransfersOptions extends PaginationOptions {
|
|
|
184
410
|
includeHex?: boolean;
|
|
185
411
|
state?: string[] | string;
|
|
186
412
|
type?: string;
|
|
413
|
+
decorateUtxoSpecificFields?: boolean;
|
|
187
414
|
}
|
|
188
415
|
export interface GetTransferOptions {
|
|
189
416
|
id?: string;
|
|
@@ -199,6 +426,22 @@ export interface UnspentsOptions extends PaginationOptions {
|
|
|
199
426
|
target?: number | string;
|
|
200
427
|
segwit?: boolean;
|
|
201
428
|
chains?: number[];
|
|
429
|
+
unspentIds?: string[];
|
|
430
|
+
}
|
|
431
|
+
export interface ManageUnspentReservationOptions {
|
|
432
|
+
create?: {
|
|
433
|
+
unspentIds: string[];
|
|
434
|
+
expireTime: string;
|
|
435
|
+
};
|
|
436
|
+
modify?: {
|
|
437
|
+
unspentIds: string[];
|
|
438
|
+
changes: {
|
|
439
|
+
expireTime: string;
|
|
440
|
+
};
|
|
441
|
+
};
|
|
442
|
+
delete?: {
|
|
443
|
+
id: string;
|
|
444
|
+
};
|
|
202
445
|
}
|
|
203
446
|
export interface ConsolidateUnspentsOptions extends WalletSignTransactionOptions {
|
|
204
447
|
walletPassphrase?: string;
|
|
@@ -217,6 +460,7 @@ export interface ConsolidateUnspentsOptions extends WalletSignTransactionOptions
|
|
|
217
460
|
comment?: string;
|
|
218
461
|
otp?: string;
|
|
219
462
|
targetAddress?: string;
|
|
463
|
+
bulk?: boolean;
|
|
220
464
|
[index: string]: unknown;
|
|
221
465
|
}
|
|
222
466
|
export interface FanoutUnspentsOptions extends WalletSignTransactionOptions {
|
|
@@ -226,6 +470,7 @@ export interface FanoutUnspentsOptions extends WalletSignTransactionOptions {
|
|
|
226
470
|
maxValue?: number | string;
|
|
227
471
|
minHeight?: number;
|
|
228
472
|
maxNumInputsToUse?: number;
|
|
473
|
+
unspents?: string[];
|
|
229
474
|
numUnspentsToMake?: number;
|
|
230
475
|
minConfirms?: number;
|
|
231
476
|
enforceMinConfirmsForChange?: boolean;
|
|
@@ -268,6 +513,12 @@ export interface AddressesOptions extends PaginationOptions {
|
|
|
268
513
|
returnBalancesForToken?: string;
|
|
269
514
|
pendingDeployment?: boolean;
|
|
270
515
|
}
|
|
516
|
+
export interface AddressesByBalanceOptions extends PaginationOptions {
|
|
517
|
+
token?: string;
|
|
518
|
+
nftCollectionId?: string;
|
|
519
|
+
nftId?: string;
|
|
520
|
+
sort?: number;
|
|
521
|
+
}
|
|
271
522
|
export interface GetAddressOptions {
|
|
272
523
|
address?: string;
|
|
273
524
|
id?: string;
|
|
@@ -281,6 +532,9 @@ export interface FundForwardersOptions {
|
|
|
281
532
|
forwarderAddress: string;
|
|
282
533
|
amount?: string;
|
|
283
534
|
}
|
|
535
|
+
export interface FundForwarderParams {
|
|
536
|
+
forwarders: FundForwardersOptions[];
|
|
537
|
+
}
|
|
284
538
|
export interface FlushForwarderTokenOptions {
|
|
285
539
|
address?: string;
|
|
286
540
|
id?: string;
|
|
@@ -299,6 +553,62 @@ export interface ForwarderBalanceOptions {
|
|
|
299
553
|
minimumBalance?: number;
|
|
300
554
|
maximumBalance?: number;
|
|
301
555
|
}
|
|
556
|
+
export interface GetAccountResourcesOptions {
|
|
557
|
+
addresses: string[];
|
|
558
|
+
destinationAddress?: string;
|
|
559
|
+
}
|
|
560
|
+
export interface AccountResourceInfo {
|
|
561
|
+
address: string;
|
|
562
|
+
freeBandwidthAvailable: number;
|
|
563
|
+
freeBandwidthUsed: number;
|
|
564
|
+
stakedBandwidthAvailable: number;
|
|
565
|
+
stakedBandwidthUsed: number;
|
|
566
|
+
energyAvailable: number;
|
|
567
|
+
energyUsed: number;
|
|
568
|
+
resourceDeficitForAssetTransfer?: {
|
|
569
|
+
bandwidthDeficit: number;
|
|
570
|
+
bandwidthSunRequired: string;
|
|
571
|
+
energyDeficit?: number;
|
|
572
|
+
energySunRequired?: string;
|
|
573
|
+
};
|
|
574
|
+
maxResourcesDelegatable?: {
|
|
575
|
+
bandwidthSun: string;
|
|
576
|
+
energySun: string;
|
|
577
|
+
};
|
|
578
|
+
}
|
|
579
|
+
export interface FailedAddressInfo {
|
|
580
|
+
address: string;
|
|
581
|
+
error: string;
|
|
582
|
+
}
|
|
583
|
+
export interface GetAccountResourcesResponse {
|
|
584
|
+
resources: AccountResourceInfo[];
|
|
585
|
+
failedAddresses: FailedAddressInfo[];
|
|
586
|
+
}
|
|
587
|
+
export interface GetResourceDelegationsOptions {
|
|
588
|
+
type?: 'outgoing' | 'incoming';
|
|
589
|
+
resource?: string;
|
|
590
|
+
limit?: number;
|
|
591
|
+
nextBatchPrevId?: string;
|
|
592
|
+
}
|
|
593
|
+
export interface DelegationRecord {
|
|
594
|
+
id: string;
|
|
595
|
+
coin: string;
|
|
596
|
+
ownerAddress: string;
|
|
597
|
+
receiverAddress: string;
|
|
598
|
+
resource: 'ENERGY' | 'BANDWIDTH';
|
|
599
|
+
balance: string;
|
|
600
|
+
updatedAt: string;
|
|
601
|
+
}
|
|
602
|
+
export interface GetResourceDelegationsResponse {
|
|
603
|
+
address: string;
|
|
604
|
+
coin: string;
|
|
605
|
+
delegations: {
|
|
606
|
+
outgoing: DelegationRecord[];
|
|
607
|
+
incoming: DelegationRecord[];
|
|
608
|
+
nextBatchPrevId?: string;
|
|
609
|
+
};
|
|
610
|
+
}
|
|
611
|
+
export type CreateAddressFormat = 'base58' | 'cashaddr';
|
|
302
612
|
export interface CreateAddressOptions {
|
|
303
613
|
chain?: number;
|
|
304
614
|
gasPrice?: number | string;
|
|
@@ -306,17 +616,28 @@ export interface CreateAddressOptions {
|
|
|
306
616
|
label?: string;
|
|
307
617
|
lowPriority?: boolean;
|
|
308
618
|
forwarderVersion?: number;
|
|
309
|
-
format?:
|
|
619
|
+
format?: CreateAddressFormat;
|
|
310
620
|
baseAddress?: string;
|
|
311
621
|
allowSkipVerifyAddress?: boolean;
|
|
312
622
|
derivedAddress?: string;
|
|
313
623
|
index?: number;
|
|
314
624
|
onToken?: string;
|
|
625
|
+
evmKeyRingReferenceAddress?: string;
|
|
315
626
|
}
|
|
316
627
|
export interface UpdateAddressOptions {
|
|
317
628
|
label?: string;
|
|
318
629
|
address?: string;
|
|
319
630
|
}
|
|
631
|
+
export interface UpdateBuildDefaultOptions {
|
|
632
|
+
minFeeRate?: number;
|
|
633
|
+
changeAddressType?: string;
|
|
634
|
+
txFormat?: 'legacy' | 'psbt' | 'psbt-lite';
|
|
635
|
+
}
|
|
636
|
+
export interface UpdateWalletOptions {
|
|
637
|
+
coinSpecific?: WalletCoinSpecific;
|
|
638
|
+
buildDefaults?: UpdateBuildDefaultOptions;
|
|
639
|
+
label?: string;
|
|
640
|
+
}
|
|
320
641
|
export interface SimulateWebhookOptions {
|
|
321
642
|
webhookId?: string;
|
|
322
643
|
transferId?: string;
|
|
@@ -330,6 +651,13 @@ export interface GetPrvOptions {
|
|
|
330
651
|
prv?: string;
|
|
331
652
|
walletPassphrase?: string;
|
|
332
653
|
}
|
|
654
|
+
export interface SharedKeyChain {
|
|
655
|
+
pub?: string;
|
|
656
|
+
encryptedPrv?: string;
|
|
657
|
+
fromPubKey?: string;
|
|
658
|
+
toPubKey?: string;
|
|
659
|
+
path?: string;
|
|
660
|
+
}
|
|
333
661
|
export interface CreateShareOptions {
|
|
334
662
|
user?: string;
|
|
335
663
|
permissions?: string;
|
|
@@ -343,6 +671,11 @@ export interface CreateShareOptions {
|
|
|
343
671
|
reshare?: boolean;
|
|
344
672
|
message?: string;
|
|
345
673
|
disableEmail?: boolean;
|
|
674
|
+
/**
|
|
675
|
+
* If true, allows sharing without a keychain.
|
|
676
|
+
* A falsy value is expected to throw an API error if an empty or undefined `keychain` is provided.
|
|
677
|
+
*/
|
|
678
|
+
skipKeychain?: boolean;
|
|
346
679
|
}
|
|
347
680
|
export interface ShareWalletOptions {
|
|
348
681
|
email?: string;
|
|
@@ -350,18 +683,79 @@ export interface ShareWalletOptions {
|
|
|
350
683
|
walletPassphrase?: string;
|
|
351
684
|
message?: string;
|
|
352
685
|
reshare?: boolean;
|
|
686
|
+
/**
|
|
687
|
+
* If true, skips sharing the wallet keychain with the recipient.
|
|
688
|
+
*/
|
|
353
689
|
skipKeychain?: boolean;
|
|
354
690
|
disableEmail?: boolean;
|
|
691
|
+
encryptionVersion?: EncryptionVersion;
|
|
692
|
+
}
|
|
693
|
+
export interface BulkCreateShareOption {
|
|
694
|
+
user: string;
|
|
695
|
+
permissions: string[];
|
|
696
|
+
keychain: BulkWalletShareKeychain;
|
|
697
|
+
}
|
|
698
|
+
export interface BulkWalletShareOptions {
|
|
699
|
+
walletPassphrase: string;
|
|
700
|
+
keyShareOptions: Array<{
|
|
701
|
+
userId: string;
|
|
702
|
+
pubKey: string;
|
|
703
|
+
path: string;
|
|
704
|
+
permissions: string[];
|
|
705
|
+
}>;
|
|
706
|
+
encryptionVersion?: EncryptionVersion;
|
|
707
|
+
}
|
|
708
|
+
export type WalletShareState = 'active' | 'accepted' | 'canceled' | 'rejected' | 'pendingapproval';
|
|
709
|
+
export interface DecryptedKeychainData {
|
|
710
|
+
prv: string;
|
|
711
|
+
pub: string;
|
|
712
|
+
}
|
|
713
|
+
export interface BulkWalletShareKeychain {
|
|
714
|
+
pub: string;
|
|
715
|
+
encryptedPrv: string;
|
|
716
|
+
fromPubKey: string;
|
|
717
|
+
toPubKey: string;
|
|
718
|
+
path: string;
|
|
719
|
+
}
|
|
720
|
+
export interface WalletShare {
|
|
721
|
+
id: string;
|
|
722
|
+
coin: string;
|
|
723
|
+
wallet: string;
|
|
724
|
+
walletLabel?: string;
|
|
725
|
+
fromUser: string;
|
|
726
|
+
toUser: string;
|
|
727
|
+
permissions: string[];
|
|
728
|
+
state?: WalletShareState;
|
|
729
|
+
enterprise?: string;
|
|
730
|
+
message?: string;
|
|
731
|
+
pendingApprovalId?: string;
|
|
732
|
+
/**
|
|
733
|
+
* If true, the wallet share requires the user to provide a new keychain.
|
|
734
|
+
* When accepted, the wallet will be re-shared with all other spenders.
|
|
735
|
+
*/
|
|
736
|
+
keychainOverrideRequired?: boolean;
|
|
737
|
+
/**
|
|
738
|
+
* If true, the wallet share requires the user to to generate a new key-pair.
|
|
739
|
+
* In addition to the encrypted private key, the user must provide the public key.
|
|
740
|
+
* */
|
|
741
|
+
userMultiKeyRotationRequired?: boolean;
|
|
742
|
+
isUMSInitiated?: boolean;
|
|
743
|
+
keychain?: BulkWalletShareKeychain;
|
|
744
|
+
}
|
|
745
|
+
export interface CreateBulkWalletShareListResponse {
|
|
746
|
+
shares: WalletShare[];
|
|
355
747
|
}
|
|
356
748
|
export interface RemoveUserOptions {
|
|
357
749
|
userId?: string;
|
|
358
750
|
}
|
|
359
751
|
export interface AccelerateTransactionOptions {
|
|
360
752
|
cpfpTxIds?: string[];
|
|
753
|
+
rbfTxIds?: string[];
|
|
361
754
|
cpfpFeeRate?: number;
|
|
362
755
|
noCpfpFeeRate?: boolean;
|
|
363
756
|
maxFee?: number;
|
|
364
757
|
noMaxFee?: boolean;
|
|
758
|
+
feeMultiplier?: number;
|
|
365
759
|
recipients?: {
|
|
366
760
|
address: string;
|
|
367
761
|
amount: string;
|
|
@@ -400,11 +794,13 @@ export interface SendManyOptions extends PrebuildAndSignTransactionOptions {
|
|
|
400
794
|
address: string;
|
|
401
795
|
amount: string | number;
|
|
402
796
|
feeLimit?: string;
|
|
403
|
-
data?: string;
|
|
797
|
+
data?: string | TokenTransferRecipientParams;
|
|
404
798
|
tokenName?: string;
|
|
799
|
+
tokenData?: TokenTransferRecipientParams;
|
|
405
800
|
}[];
|
|
406
801
|
numBlocks?: number;
|
|
407
802
|
feeRate?: number;
|
|
803
|
+
feeMultiplier?: number;
|
|
408
804
|
maxFeeRate?: number;
|
|
409
805
|
minConfirms?: number;
|
|
410
806
|
enforceMinConfirmsForChange?: boolean;
|
|
@@ -421,6 +817,7 @@ export interface SendManyOptions extends PrebuildAndSignTransactionOptions {
|
|
|
421
817
|
comment?: string;
|
|
422
818
|
otp?: string;
|
|
423
819
|
changeAddress?: string;
|
|
820
|
+
allowExternalChangeAddress?: boolean;
|
|
424
821
|
instant?: boolean;
|
|
425
822
|
memo?: Memo;
|
|
426
823
|
transferId?: number;
|
|
@@ -432,7 +829,7 @@ export interface SendManyOptions extends PrebuildAndSignTransactionOptions {
|
|
|
432
829
|
export interface FetchCrossChainUTXOsOptions {
|
|
433
830
|
sourceChain?: 'P' | 'C';
|
|
434
831
|
}
|
|
435
|
-
export
|
|
832
|
+
export type Unspent = {
|
|
436
833
|
outputID: number;
|
|
437
834
|
amount: string;
|
|
438
835
|
txid: string;
|
|
@@ -447,7 +844,8 @@ export interface CrossChainUTXO {
|
|
|
447
844
|
toWallet: string;
|
|
448
845
|
toAddress: string;
|
|
449
846
|
}
|
|
450
|
-
export
|
|
847
|
+
export type WalletType = 'backing' | 'cold' | 'custodial' | 'custodialPaired' | 'hot' | 'trading' | 'advanced';
|
|
848
|
+
export type SubWalletType = 'distributedCustody' | 'lightningCustody' | 'lightningSelfCustody' | 'onPrem';
|
|
451
849
|
export interface WalletData {
|
|
452
850
|
id: string;
|
|
453
851
|
approvalsRequired: number;
|
|
@@ -460,9 +858,13 @@ export interface WalletData {
|
|
|
460
858
|
coin: string;
|
|
461
859
|
label: string;
|
|
462
860
|
keys: string[];
|
|
463
|
-
receiveAddress
|
|
861
|
+
receiveAddress?: {
|
|
464
862
|
address: string;
|
|
465
863
|
};
|
|
864
|
+
walletFlags?: {
|
|
865
|
+
name: string;
|
|
866
|
+
value: string;
|
|
867
|
+
}[];
|
|
466
868
|
migratedFrom?: string;
|
|
467
869
|
coinSpecific: WalletCoinSpecific;
|
|
468
870
|
pendingApprovals: PendingApprovalData[];
|
|
@@ -473,8 +875,26 @@ export interface WalletData {
|
|
|
473
875
|
bitgo?: string;
|
|
474
876
|
};
|
|
475
877
|
multisigType: 'onchain' | 'tss';
|
|
878
|
+
multisigTypeVersion?: 'MPCv2';
|
|
476
879
|
type?: WalletType;
|
|
880
|
+
subType?: SubWalletType;
|
|
477
881
|
tokens?: Record<string, any>[];
|
|
882
|
+
nfts?: {
|
|
883
|
+
[contractAddressOrToken: string]: NftBalance;
|
|
884
|
+
};
|
|
885
|
+
unsupportedNfts?: {
|
|
886
|
+
[contractAddress: string]: NftBalance;
|
|
887
|
+
};
|
|
888
|
+
users?: WalletUser[];
|
|
889
|
+
evmKeyRingReferenceWalletId?: string;
|
|
890
|
+
isParent?: boolean;
|
|
891
|
+
enabledChildChains?: string[];
|
|
892
|
+
/**
|
|
893
|
+
* @deprecated Read from `coinSpecific.userKeySigningRequired` instead. Retained
|
|
894
|
+
* temporarily as a fallback while the field migrates from the top level to the OFC
|
|
895
|
+
* coinSpecific subdocument; will be removed in a follow-up major release.
|
|
896
|
+
*/
|
|
897
|
+
userKeySigningRequired?: boolean;
|
|
478
898
|
}
|
|
479
899
|
export interface RecoverTokenOptions {
|
|
480
900
|
tokenContractAddress?: string;
|
|
@@ -492,6 +912,29 @@ export interface ChangeFeeOptions {
|
|
|
492
912
|
fee?: string;
|
|
493
913
|
eip1559?: EIP1559;
|
|
494
914
|
}
|
|
915
|
+
/**
|
|
916
|
+
* Response from the token approval build endpoint
|
|
917
|
+
*/
|
|
918
|
+
export interface BuildTokenApprovalResponse {
|
|
919
|
+
txHex: string;
|
|
920
|
+
txInfo: {
|
|
921
|
+
amount: string;
|
|
922
|
+
contractAddress: string;
|
|
923
|
+
spender: string;
|
|
924
|
+
};
|
|
925
|
+
recipients: {
|
|
926
|
+
address: string;
|
|
927
|
+
amount: string;
|
|
928
|
+
data: string;
|
|
929
|
+
}[];
|
|
930
|
+
eip1559?: {
|
|
931
|
+
maxFeePerGas: string;
|
|
932
|
+
maxPriorityFeePerGas: string;
|
|
933
|
+
};
|
|
934
|
+
nextContractSequenceId: number;
|
|
935
|
+
coin: string;
|
|
936
|
+
walletId: string;
|
|
937
|
+
}
|
|
495
938
|
export interface CreatePolicyRuleOptions {
|
|
496
939
|
id?: string;
|
|
497
940
|
type?: string;
|
|
@@ -514,6 +957,7 @@ export interface DownloadKeycardOptions {
|
|
|
514
957
|
activationCode?: string;
|
|
515
958
|
walletKeyID?: string;
|
|
516
959
|
backupKeyID?: string;
|
|
960
|
+
encryptionVersion?: EncryptionVersion;
|
|
517
961
|
}
|
|
518
962
|
export interface ChallengeVerifiers {
|
|
519
963
|
verifiers: {
|
|
@@ -525,6 +969,14 @@ export interface WalletEcdsaChallenges {
|
|
|
525
969
|
bitgoChallenge: SerializedNtilde & ChallengeVerifiers;
|
|
526
970
|
createdBy: string;
|
|
527
971
|
}
|
|
972
|
+
export type SendNFTOptions = Omit<SendManyOptions, 'recipients' | 'enableTokens' | 'tokenName' | 'txFormat' | 'receiveAddress'>;
|
|
973
|
+
export type SendNFTResult = {
|
|
974
|
+
pendingApproval: PendingApprovalData;
|
|
975
|
+
};
|
|
976
|
+
export type WalletInitResult = {
|
|
977
|
+
success: PrebuildTransactionResult[];
|
|
978
|
+
failure: Error[];
|
|
979
|
+
};
|
|
528
980
|
export interface IWallet {
|
|
529
981
|
bitgo: BitGoBase;
|
|
530
982
|
baseCoin: IBaseCoin;
|
|
@@ -539,10 +991,16 @@ export interface IWallet {
|
|
|
539
991
|
balanceString(): string;
|
|
540
992
|
confirmedBalanceString(): string;
|
|
541
993
|
spendableBalanceString(): string;
|
|
994
|
+
nftBalances(): NftBalance[] | undefined;
|
|
995
|
+
unsupportedNftBalances(): NftBalance[] | undefined;
|
|
542
996
|
coin(): string;
|
|
997
|
+
type(): WalletType;
|
|
998
|
+
subType(): SubWalletType | undefined;
|
|
999
|
+
multisigType(): 'onchain' | 'tss';
|
|
1000
|
+
multisigTypeVersion(): 'MPCv2' | undefined;
|
|
543
1001
|
label(): string;
|
|
544
1002
|
keyIds(): string[];
|
|
545
|
-
receiveAddress(): string;
|
|
1003
|
+
receiveAddress(): string | undefined;
|
|
546
1004
|
migratedFrom(): string | undefined;
|
|
547
1005
|
tokenFlushThresholds(): any;
|
|
548
1006
|
coinSpecific(): WalletCoinSpecific | undefined;
|
|
@@ -555,8 +1013,8 @@ export interface IWallet {
|
|
|
555
1013
|
transferBySequenceId(params?: TransferBySequenceIdOptions): Promise<any>;
|
|
556
1014
|
maximumSpendable(params?: MaximumSpendableOptions): Promise<MaximumSpendable>;
|
|
557
1015
|
unspents(params?: UnspentsOptions): Promise<any>;
|
|
558
|
-
consolidateUnspents(params?: ConsolidateUnspentsOptions): Promise<
|
|
559
|
-
fanoutUnspents(params?: FanoutUnspentsOptions): Promise<
|
|
1016
|
+
consolidateUnspents(params?: ConsolidateUnspentsOptions): Promise<unknown>;
|
|
1017
|
+
fanoutUnspents(params?: FanoutUnspentsOptions): Promise<unknown>;
|
|
560
1018
|
updateTokenFlushThresholds(thresholds?: any): Promise<any>;
|
|
561
1019
|
updateForwarders(forwarderFlags?: any): Promise<any>;
|
|
562
1020
|
deployForwarders(params: DeployForwardersOptions): Promise<any>;
|
|
@@ -565,29 +1023,33 @@ export interface IWallet {
|
|
|
565
1023
|
sweep(params?: SweepOptions): Promise<any>;
|
|
566
1024
|
freeze(params?: FreezeOptions): Promise<any>;
|
|
567
1025
|
transferComment(params?: TransferCommentOptions): Promise<any>;
|
|
568
|
-
addresses(params?: AddressesOptions): Promise<
|
|
1026
|
+
addresses(params?: AddressesOptions): Promise<AddressQueryResult>;
|
|
569
1027
|
getAddress(params?: GetAddressOptions): Promise<any>;
|
|
570
1028
|
createAddress(params?: CreateAddressOptions): Promise<any>;
|
|
571
1029
|
updateAddress(params?: UpdateAddressOptions): Promise<any>;
|
|
1030
|
+
getAccountResources(params: GetAccountResourcesOptions): Promise<GetAccountResourcesResponse>;
|
|
1031
|
+
getResourceDelegations(params?: GetResourceDelegationsOptions): Promise<GetResourceDelegationsResponse>;
|
|
572
1032
|
listWebhooks(params?: PaginationOptions): Promise<any>;
|
|
573
1033
|
simulateWebhook(params?: SimulateWebhookOptions): Promise<any>;
|
|
574
1034
|
addWebhook(params?: ModifyWebhookOptions): Promise<any>;
|
|
575
1035
|
removeWebhook(params?: ModifyWebhookOptions): Promise<any>;
|
|
576
|
-
getEncryptedUserKeychain(
|
|
577
|
-
encryptedPrv: string;
|
|
578
|
-
}>;
|
|
1036
|
+
getEncryptedUserKeychain(): Promise<KeychainWithEncryptedPrv>;
|
|
579
1037
|
getPrv(params?: GetPrvOptions): Promise<any>;
|
|
580
1038
|
createShare(params?: CreateShareOptions): Promise<any>;
|
|
581
1039
|
shareWallet(params?: ShareWalletOptions): Promise<any>;
|
|
1040
|
+
createBulkKeyShares(params?: BulkCreateShareOption[]): Promise<CreateBulkWalletShareListResponse>;
|
|
1041
|
+
createBulkWalletShare(params?: BulkWalletShareOptions): Promise<CreateBulkWalletShareListResponse>;
|
|
582
1042
|
removeUser(params?: RemoveUserOptions): Promise<any>;
|
|
583
1043
|
prebuildTransaction(params?: PrebuildTransactionOptions): Promise<PrebuildTransactionResult>;
|
|
584
1044
|
signTransaction(params?: WalletSignTransactionOptions): Promise<SignedTransaction>;
|
|
585
|
-
getUserPrv(params?: GetUserPrvOptions): string
|
|
1045
|
+
getUserPrv(params?: GetUserPrvOptions): Promise<string>;
|
|
586
1046
|
prebuildAndSignTransaction(params?: PrebuildAndSignTransactionOptions): Promise<SignedTransaction>;
|
|
1047
|
+
signAndSendTxRequest(params?: SignAndSendTxRequestOptions): Promise<SignedTransaction>;
|
|
587
1048
|
accelerateTransaction(params?: AccelerateTransactionOptions): Promise<any>;
|
|
588
1049
|
submitTransaction(params?: SubmitTransactionOptions): Promise<any>;
|
|
589
1050
|
send(params?: SendOptions): Promise<any>;
|
|
590
1051
|
sendMany(params?: SendManyOptions): Promise<any>;
|
|
1052
|
+
sendNft(sendOptions: SendNFTOptions, sendNftOptions: Omit<NFTTransferOptions, 'fromAddress'>): Promise<SendNFTResult>;
|
|
591
1053
|
recoverToken(params?: RecoverTokenOptions): Promise<any>;
|
|
592
1054
|
getFirstPendingTransaction(params?: Record<string, never>): Promise<any>;
|
|
593
1055
|
changeFee(params?: ChangeFeeOptions): Promise<any>;
|
|
@@ -600,20 +1062,47 @@ export interface IWallet {
|
|
|
600
1062
|
removePolicyRule(params?: RemovePolicyRuleOptions): Promise<any>;
|
|
601
1063
|
remove(params?: Record<string, never>): Promise<any>;
|
|
602
1064
|
toJSON(): WalletData;
|
|
1065
|
+
createLightningInvoice(params: CreateLightningInvoiceParams): Promise<LightningInvoiceResponse>;
|
|
1066
|
+
readonly defi: IDefiVault;
|
|
603
1067
|
toTradingAccount(): ITradingAccount;
|
|
604
1068
|
toStakingWallet(): IStakingWallet;
|
|
605
|
-
|
|
1069
|
+
toGoStakingWallet(): IGoStakingWallet;
|
|
1070
|
+
toAddressBook(): IAddressBook;
|
|
1071
|
+
downloadKeycard(params?: DownloadKeycardOptions): Promise<void>;
|
|
606
1072
|
buildAccountConsolidations(params?: BuildConsolidationTransactionOptions): Promise<PrebuildTransactionResult[]>;
|
|
607
1073
|
sendAccountConsolidation(params?: PrebuildAndSignTransactionOptions): Promise<any>;
|
|
608
1074
|
sendAccountConsolidations(params?: BuildConsolidationTransactionOptions): Promise<any>;
|
|
1075
|
+
buildResourceDelegations(params: BuildResourceDelegationTransactionOptions): Promise<BuildResourceManagementTransactionResult>;
|
|
1076
|
+
sendResourceDelegation(params: PrebuildAndSignTransactionOptions): Promise<ResourceManagementSendResult>;
|
|
1077
|
+
sendResourceDelegations(params: BuildResourceDelegationTransactionOptions): Promise<{
|
|
1078
|
+
success: ResourceManagementSendResult[];
|
|
1079
|
+
failure: {
|
|
1080
|
+
message: string;
|
|
1081
|
+
receiverAddress?: string;
|
|
1082
|
+
}[];
|
|
1083
|
+
}>;
|
|
1084
|
+
buildResourceUndelegations(params: BuildResourceUndelegationTransactionOptions): Promise<BuildResourceManagementTransactionResult>;
|
|
1085
|
+
sendResourceUndelegation(params: PrebuildAndSignTransactionOptions): Promise<ResourceManagementSendResult>;
|
|
1086
|
+
sendResourceUndelegations(params: BuildResourceUndelegationTransactionOptions): Promise<{
|
|
1087
|
+
success: ResourceManagementSendResult[];
|
|
1088
|
+
failure: {
|
|
1089
|
+
message: string;
|
|
1090
|
+
receiverAddress?: string;
|
|
1091
|
+
}[];
|
|
1092
|
+
}>;
|
|
609
1093
|
buildTokenEnablements(params?: BuildTokenEnablementOptions): Promise<PrebuildTransactionResult[]>;
|
|
610
1094
|
sendTokenEnablement(params?: PrebuildAndSignTransactionOptions): Promise<any>;
|
|
611
1095
|
sendTokenEnablements(params?: BuildTokenEnablementOptions): Promise<any>;
|
|
612
|
-
|
|
1096
|
+
buildWalletInitialization(params?: PrebuildTransactionOptions): Promise<PrebuildTransactionResult>;
|
|
1097
|
+
sendWalletInitialization(params?: PrebuildTransactionOptions): Promise<WalletInitResult>;
|
|
613
1098
|
signMessage(params: WalletSignMessageOptions): Promise<SignedMessage>;
|
|
1099
|
+
buildSignMessageRequest(params: WalletSignMessageOptions): Promise<TxRequest>;
|
|
614
1100
|
signTypedData(params: WalletSignTypedDataOptions): Promise<SignedMessage>;
|
|
615
1101
|
fetchCrossChainUTXOs(params: FetchCrossChainUTXOsOptions): Promise<CrossChainUTXO[]>;
|
|
616
1102
|
getChallengesForEcdsaSigning(): Promise<WalletEcdsaChallenges>;
|
|
1103
|
+
getNftBalances(): Promise<NftBalance[]>;
|
|
1104
|
+
approveErc20Token(walletPassphrase: string, tokenName: string): Promise<SubmitTransactionResponse>;
|
|
1105
|
+
buildErc20TokenApproval(tokenName: string, walletPassphrase?: string): Promise<BuildTokenApprovalResponse | SubmitTransactionResponse>;
|
|
617
1106
|
}
|
|
618
1107
|
export {};
|
|
619
1108
|
//# sourceMappingURL=iWallet.d.ts.map
|