@bitgo-beta/sdk-core 8.2.1-beta.20 → 8.2.1-beta.2000
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 +59 -2
- package/dist/src/account-lib/baseCoin/enum.d.ts.map +1 -1
- package/dist/src/account-lib/baseCoin/enum.js +113 -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 +40 -11
- package/dist/src/account-lib/mpc/tss/ecdsa/ecdsa.d.ts.map +1 -1
- package/dist/src/account-lib/mpc/tss/ecdsa/ecdsa.js +521 -378
- 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 +137 -12
- package/dist/src/bitgo/baseCoin/baseCoin.d.ts.map +1 -1
- package/dist/src/bitgo/baseCoin/baseCoin.js +217 -16
- package/dist/src/bitgo/baseCoin/iBaseCoin.d.ts +304 -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 +19 -5
- 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 +137 -0
- package/dist/src/bitgo/defi/defiVault.d.ts.map +1 -0
- package/dist/src/bitgo/defi/defiVault.js +379 -0
- package/dist/src/bitgo/defi/iDefiVault.d.ts +81 -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 +22 -14
- package/dist/src/bitgo/enterprise/enterprise.d.ts.map +1 -1
- package/dist/src/bitgo/enterprise/enterprise.js +72 -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 +9 -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 +182 -1
- package/dist/src/bitgo/errors.d.ts.map +1 -1
- package/dist/src/bitgo/errors.js +177 -3
- 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 +5 -1
- package/dist/src/bitgo/index.d.ts.map +1 -1
- package/dist/src/bitgo/index.js +31 -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 +137 -10
- 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 +55 -7
- package/dist/src/bitgo/keychain/keychains.d.ts.map +1 -1
- package/dist/src/bitgo/keychain/keychains.js +297 -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 +7 -1
- 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 +251 -103
- 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/safe/iSafe.d.ts +87 -0
- package/dist/src/bitgo/safe/iSafe.d.ts.map +1 -0
- package/dist/src/bitgo/safe/iSafe.js +3 -0
- package/dist/src/bitgo/safe/iSafes.d.ts +94 -0
- package/dist/src/bitgo/safe/iSafes.d.ts.map +1 -0
- package/dist/src/bitgo/safe/iSafes.js +3 -0
- package/dist/src/bitgo/safe/index.d.ts +6 -0
- package/dist/src/bitgo/safe/index.d.ts.map +1 -0
- package/dist/src/bitgo/safe/index.js +22 -0
- package/dist/src/bitgo/safe/safe.d.ts +61 -0
- package/dist/src/bitgo/safe/safe.d.ts.map +1 -0
- package/dist/src/bitgo/safe/safe.js +230 -0
- package/dist/src/bitgo/safe/safeDerivation.d.ts +30 -0
- package/dist/src/bitgo/safe/safeDerivation.d.ts.map +1 -0
- package/dist/src/bitgo/safe/safeDerivation.js +122 -0
- package/dist/src/bitgo/safe/safes.d.ts +107 -0
- package/dist/src/bitgo/safe/safes.d.ts.map +1 -0
- package/dist/src/bitgo/safe/safes.js +306 -0
- 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 +94 -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 +49 -0
- package/dist/src/bitgo/tss/bitgoPubKeys.d.ts.map +1 -0
- package/dist/src/bitgo/tss/bitgoPubKeys.js +92 -0
- package/dist/src/bitgo/tss/common.d.ts +52 -6
- package/dist/src/bitgo/tss/common.d.ts.map +1 -1
- package/dist/src/bitgo/tss/common.js +141 -15
- package/dist/src/bitgo/tss/ecdsa/ecdsa.d.ts +6 -4
- package/dist/src/bitgo/tss/ecdsa/ecdsa.d.ts.map +1 -1
- package/dist/src/bitgo/tss/ecdsa/ecdsa.js +85 -81
- 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 +42 -0
- package/dist/src/bitgo/tss/eddsa/eddsaMPCv2.d.ts.map +1 -0
- package/dist/src/bitgo/tss/eddsa/eddsaMPCv2.js +104 -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 +14 -0
- package/dist/src/bitgo/utils/abstractUtxoCoinUtil.d.ts.map +1 -1
- package/dist/src/bitgo/utils/abstractUtxoCoinUtil.js +87 -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 +160 -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 +13 -9
- package/dist/src/bitgo/utils/opengpgUtils.d.ts.map +1 -1
- package/dist/src/bitgo/utils/opengpgUtils.js +87 -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 +152 -28
- package/dist/src/bitgo/utils/tss/baseTSSUtils.d.ts.map +1 -1
- package/dist/src/bitgo/utils/tss/baseTSSUtils.js +365 -43
- package/dist/src/bitgo/utils/tss/baseTypes.d.ts +589 -44
- 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 -53
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsa.d.ts.map +1 -1
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsa.js +356 -327
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2.d.ts +216 -0
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2.js +1057 -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 +16 -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 +54 -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 +204 -0
- package/dist/src/bitgo/utils/tss/eddsa/eddsaMPCv2.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/eddsa/eddsaMPCv2.js +862 -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 +16 -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 +5 -0
- package/dist/src/bitgo/utils/tss/index.d.ts.map +1 -1
- package/dist/src/bitgo/utils/tss/index.js +29 -10
- 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 +41 -0
- package/dist/src/bitgo/utils/tss/recipientUtils.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/recipientUtils.js +141 -0
- package/dist/src/bitgo/utils/tss/redpallas/SMC/utils.d.ts +29 -0
- package/dist/src/bitgo/utils/tss/redpallas/SMC/utils.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/redpallas/SMC/utils.js +128 -0
- package/dist/src/bitgo/utils/tss/redpallas/index.d.ts +4 -0
- package/dist/src/bitgo/utils/tss/redpallas/index.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/redpallas/index.js +20 -0
- package/dist/src/bitgo/utils/tss/redpallas/redpallasMPCv2.d.ts +30 -0
- package/dist/src/bitgo/utils/tss/redpallas/redpallasMPCv2.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/redpallas/redpallasMPCv2.js +46 -0
- package/dist/src/bitgo/utils/tss/redpallas/redpallasMPCv2KeyGenSender.d.ts +46 -0
- package/dist/src/bitgo/utils/tss/redpallas/redpallasMPCv2KeyGenSender.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/redpallas/redpallasMPCv2KeyGenSender.js +55 -0
- package/dist/src/bitgo/utils/tss/serializedTxHexVerify.d.ts +8 -0
- package/dist/src/bitgo/utils/tss/serializedTxHexVerify.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/serializedTxHexVerify.js +13 -0
- package/dist/src/bitgo/utils/tss/signableConsistency.d.ts +12 -0
- package/dist/src/bitgo/utils/tss/signableConsistency.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/signableConsistency.js +9 -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/v1Wallets.d.ts +170 -0
- package/dist/src/bitgo/v1Wallets.d.ts.map +1 -0
- package/dist/src/bitgo/v1Wallets.js +3 -0
- package/dist/src/bitgo/wallet/BuildParams.d.ts +191 -0
- package/dist/src/bitgo/wallet/BuildParams.d.ts.map +1 -0
- package/dist/src/bitgo/wallet/BuildParams.js +193 -0
- package/dist/src/bitgo/wallet/iWallet.d.ts +586 -30
- 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 +322 -19
- package/dist/src/bitgo/wallet/iWallets.d.ts.map +1 -1
- package/dist/src/bitgo/wallet/iWallets.js +83 -3
- package/dist/src/bitgo/wallet/index.d.ts +1 -0
- package/dist/src/bitgo/wallet/index.d.ts.map +1 -1
- package/dist/src/bitgo/wallet/index.js +7 -2
- package/dist/src/bitgo/wallet/safeKeychain.d.ts +52 -0
- package/dist/src/bitgo/wallet/safeKeychain.d.ts.map +1 -0
- package/dist/src/bitgo/wallet/safeKeychain.js +97 -0
- package/dist/src/bitgo/wallet/wallet.d.ts +421 -29
- package/dist/src/bitgo/wallet/wallet.d.ts.map +1 -1
- package/dist/src/bitgo/wallet/wallet.js +2403 -447
- 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 +1370 -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 +13 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +42 -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 +600 -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/safe/safe.d.ts +2 -0
- package/dist/test/unit/bitgo/safe/safe.d.ts.map +1 -0
- package/dist/test/unit/bitgo/safe/safe.js +277 -0
- package/dist/test/unit/bitgo/safe/safes.d.ts +2 -0
- package/dist/test/unit/bitgo/safe/safes.d.ts.map +1 -0
- package/dist/test/unit/bitgo/safe/safes.js +338 -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/network/network.test.d.ts +2 -0
- package/dist/test/unit/bitgo/trading/network/network.test.d.ts.map +1 -0
- package/dist/test/unit/bitgo/trading/network/network.test.js +136 -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/tss/bitgoPubKeys.d.ts +2 -0
- package/dist/test/unit/bitgo/tss/bitgoPubKeys.d.ts.map +1 -0
- package/dist/test/unit/bitgo/tss/bitgoPubKeys.js +66 -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 +66 -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 +348 -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 +1918 -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 +361 -0
- package/dist/test/unit/bitgo/utils/tss/redpallas/redpallasMPCv2.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/tss/redpallas/redpallasMPCv2.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/tss/redpallas/redpallasMPCv2.js +81 -0
- package/dist/test/unit/bitgo/utils/tss/redpallas/smcUtil.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/tss/redpallas/smcUtil.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/tss/redpallas/smcUtil.js +281 -0
- package/dist/test/unit/bitgo/utils/tss/redpallasBitgoGpgKey.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/tss/redpallasBitgoGpgKey.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/tss/redpallasBitgoGpgKey.js +111 -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/utils/wallet.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/wallet.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/wallet.js +55 -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 +129 -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 +114 -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/prebuildTransactionTypes.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/prebuildTransactionTypes.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/prebuildTransactionTypes.js +20 -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/safeGetUserPrv.d.ts +5 -0
- package/dist/test/unit/bitgo/wallet/safeGetUserPrv.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/safeGetUserPrv.js +671 -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 +66 -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 +293 -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 +675 -0
- package/dist/test/unit/bitgo/wallet/walletsGoAccount.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/walletsGoAccount.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/walletsGoAccount.js +150 -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 -8340
- 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,11 +1,20 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @prettier
|
|
3
|
+
*/
|
|
4
|
+
import { type AddressQueryResult } from '@bitgo/public-types';
|
|
5
|
+
import { EncryptionVersion, IRequestTracer } from '../../api';
|
|
6
|
+
import { IAddressBook } from '../address-book';
|
|
7
|
+
import { IBaseCoin, NFTTransferOptions, SignedMessage, SignedTransaction } from '../baseCoin';
|
|
2
8
|
import { BitGoBase } from '../bitgoBase';
|
|
9
|
+
import { SubmitTransactionResponse } from '../inscriptionBuilder';
|
|
10
|
+
import { KeychainWithEncryptedPrv } from '../keychain';
|
|
11
|
+
import { CreateLightningInvoiceParams, LightningInvoiceResponse } from '../../lightning';
|
|
3
12
|
import { IPendingApproval } from '../pendingApproval';
|
|
4
|
-
import {
|
|
13
|
+
import { DefiVault } from '../defi';
|
|
14
|
+
import { GoStakingWallet, StakingWallet } from '../staking';
|
|
15
|
+
import { TradingAccount } from '../trading';
|
|
5
16
|
import { TxRequest } from '../utils';
|
|
6
|
-
import { AccelerateTransactionOptions, AddressesOptions, BuildConsolidationTransactionOptions, BuildTokenEnablementOptions, ChangeFeeOptions, ConsolidateUnspentsOptions, CreateAddressOptions, CreatePolicyRuleOptions, CreateShareOptions, CrossChainUTXO, DeployForwardersOptions, DownloadKeycardOptions, FanoutUnspentsOptions, FetchCrossChainUTXOsOptions, FlushForwarderTokenOptions, ForwarderBalance, ForwarderBalanceOptions, FreezeOptions, FundForwardersOptions, GetAddressOptions, GetPrvOptions, GetTransactionOptions, GetTransferOptions, GetUserPrvOptions, IWallet, MaximumSpendable, MaximumSpendableOptions, ModifyWebhookOptions, PaginationOptions, PrebuildAndSignTransactionOptions, PrebuildTransactionOptions, PrebuildTransactionResult, RecoverTokenOptions, RemovePolicyRuleOptions, RemoveUserOptions, SendManyOptions, SendOptions, ShareWalletOptions, SimulateWebhookOptions, SubmitTransactionOptions, SweepOptions, TransferBySequenceIdOptions, TransferCommentOptions, TransfersOptions, UnspentsOptions, UpdateAddressOptions, WalletCoinSpecific, WalletData, WalletEcdsaChallenges, WalletSignMessageOptions, WalletSignTransactionOptions, WalletSignTypedDataOptions } from './iWallet';
|
|
7
|
-
import { StakingWallet } from '../staking/stakingWallet';
|
|
8
|
-
import { Lightning } from '../lightning';
|
|
17
|
+
import { AccelerateTransactionOptions, AddressesByBalanceOptions, AddressesOptions, BuildConsolidationTransactionOptions, BuildResourceDelegationTransactionOptions, BuildResourceManagementTransactionResult, BuildResourceUndelegationTransactionOptions, ResourceManagementSendResult, BuildTokenEnablementOptions, BulkCreateShareOption, BulkWalletShareKeychain, BulkWalletShareOptions, ChangeFeeOptions, ConsolidateUnspentsOptions, CreateAddressOptions, CreateBulkWalletShareListResponse, CreatePolicyRuleOptions, CreateShareOptions, CrossChainUTXO, DecryptedKeychainData, DeployForwardersOptions, DownloadKeycardOptions, FanoutUnspentsOptions, FetchCrossChainUTXOsOptions, FlushForwarderTokenOptions, ForwarderBalance, ForwarderBalanceOptions, FreezeOptions, FundForwarderParams, FundForwardersOptions, GetAddressOptions, GetPrvOptions, GetTransactionOptions, GetTransferOptions, GetUserPrvOptions, type IWallet, ManageUnspentReservationOptions, MaximumSpendable, MaximumSpendableOptions, ModifyWebhookOptions, NftBalance, PaginationOptions, PrebuildAndSignTransactionOptions, PrebuildTransactionOptions, PrebuildTransactionResult, RecoverTokenOptions, RemovePolicyRuleOptions, RemoveUserOptions, SendManyOptions, SendNFTOptions, SendNFTResult, SendOptions, SharedKeyChain, ShareWalletOptions, SignAndSendTxRequestOptions, SimulateWebhookOptions, SubmitTransactionOptions, SubWalletType, SweepOptions, TransferBySequenceIdOptions, TransferCommentOptions, TransfersOptions, UnspentsOptions, UpdateAddressOptions, UpdateBuildDefaultOptions, UpdateWalletOptions, UpgradeEncryptionOptions, UpgradeEncryptionResult, WalletCoinSpecific, WalletData, WalletEcdsaChallenges, WalletSignMessageOptions, WalletSignTransactionOptions, WalletSignTypedDataOptions, WalletType, BuildTokenApprovalResponse, WalletInitResult, GetAccountResourcesOptions, GetAccountResourcesResponse, GetResourceDelegationsOptions, GetResourceDelegationsResponse } from './iWallet';
|
|
9
18
|
export declare enum ManageUnspentsOptions {
|
|
10
19
|
BUILD_ONLY = 0,
|
|
11
20
|
BUILD_SIGN_SEND = 1
|
|
@@ -14,8 +23,11 @@ export declare class Wallet implements IWallet {
|
|
|
14
23
|
readonly bitgo: BitGoBase;
|
|
15
24
|
readonly baseCoin: IBaseCoin;
|
|
16
25
|
_wallet: WalletData;
|
|
26
|
+
private _defi?;
|
|
17
27
|
private readonly tssUtils;
|
|
18
28
|
private readonly _permissions?;
|
|
29
|
+
/** Root keychain from passphrase preflight; consumed by getUserPrv to avoid a second GET. */
|
|
30
|
+
private validatedSafeRootKeychain?;
|
|
19
31
|
constructor(bitgo: BitGoBase, baseCoin: IBaseCoin, walletData: any);
|
|
20
32
|
/**
|
|
21
33
|
* Build a URL using this wallet's id which can be used for BitGo API operations
|
|
@@ -34,6 +46,7 @@ export declare class Wallet implements IWallet {
|
|
|
34
46
|
* Get the current balance of this wallet
|
|
35
47
|
*/
|
|
36
48
|
balance(): number;
|
|
49
|
+
/** @deprecated use codec instead: t.exact(BuildParams).encode(v) */
|
|
37
50
|
prebuildWhitelistedParams(): string[];
|
|
38
51
|
/**
|
|
39
52
|
* This is a strict sub-set of prebuildWhitelistedParams
|
|
@@ -69,10 +82,24 @@ export declare class Wallet implements IWallet {
|
|
|
69
82
|
* Get the coin identifier for the type of coin this wallet holds
|
|
70
83
|
*/
|
|
71
84
|
coin(): string;
|
|
85
|
+
type(): WalletType;
|
|
86
|
+
multisigType(): 'onchain' | 'tss';
|
|
87
|
+
multisigTypeVersion(): 'MPCv2' | undefined;
|
|
88
|
+
/**
|
|
89
|
+
* Public id of the parent safe, if this wallet was minted in one.
|
|
90
|
+
* @experimental
|
|
91
|
+
*/
|
|
92
|
+
safeId(): string | undefined;
|
|
93
|
+
subType(): SubWalletType | undefined;
|
|
72
94
|
/**
|
|
73
95
|
* Get the label (name) for this wallet
|
|
74
96
|
*/
|
|
75
97
|
label(): string;
|
|
98
|
+
flags(): {
|
|
99
|
+
name: string;
|
|
100
|
+
value: string;
|
|
101
|
+
}[];
|
|
102
|
+
flag(name: string): string | undefined;
|
|
76
103
|
/**
|
|
77
104
|
* Get the public object ids for the keychains on this wallet.
|
|
78
105
|
*/
|
|
@@ -80,7 +107,7 @@ export declare class Wallet implements IWallet {
|
|
|
80
107
|
/**
|
|
81
108
|
* Get a receive address for this wallet
|
|
82
109
|
*/
|
|
83
|
-
receiveAddress(): string;
|
|
110
|
+
receiveAddress(): string | undefined;
|
|
84
111
|
/**
|
|
85
112
|
* Get the wallet id of the wallet that this wallet was migrated from.
|
|
86
113
|
*
|
|
@@ -113,6 +140,26 @@ export declare class Wallet implements IWallet {
|
|
|
113
140
|
* @returns {*}
|
|
114
141
|
*/
|
|
115
142
|
transactions(params?: PaginationOptions): Promise<any>;
|
|
143
|
+
/**
|
|
144
|
+
* Return a list of nft tokens for this wallet. Will always return undefined if the wallet
|
|
145
|
+
* was not initialized with the allTokens flag.
|
|
146
|
+
*
|
|
147
|
+
* @returns {NftBalance[] | undefined}
|
|
148
|
+
*/
|
|
149
|
+
nftBalances(): NftBalance[] | undefined;
|
|
150
|
+
/**
|
|
151
|
+
* Return a list of unsupported nft tokens for this wallet. Will always return undefined if the wallet
|
|
152
|
+
* was not initialized with the allTokens flag.
|
|
153
|
+
*
|
|
154
|
+
* @returns {NftBalance[] | undefined}
|
|
155
|
+
*/
|
|
156
|
+
unsupportedNftBalances(): NftBalance[] | undefined;
|
|
157
|
+
/**
|
|
158
|
+
* Returns a list of the wallets nft & unsupported nfts.
|
|
159
|
+
*
|
|
160
|
+
* @returns {NftBalance[]}
|
|
161
|
+
*/
|
|
162
|
+
getNftBalances(): Promise<NftBalance[]>;
|
|
116
163
|
/**
|
|
117
164
|
* List the transactions for a given wallet
|
|
118
165
|
* @param params
|
|
@@ -187,8 +234,25 @@ export declare class Wallet implements IWallet {
|
|
|
187
234
|
* - maximum number of unspents you want to use in the transaction
|
|
188
235
|
* Output parameters:
|
|
189
236
|
* @param {Number} params.numUnspentsToMake - the number of new unspents to make
|
|
237
|
+
* @param {Boolean} params.bulk - if set to True, this enables the consolidation of large number of unspents by creating multiple transactions,
|
|
238
|
+
* with each transaction composed of 200 unspents, except for the last transaction which may have fewer unspents.
|
|
190
239
|
*/
|
|
191
240
|
private manageUnspents;
|
|
241
|
+
/**
|
|
242
|
+
* Manage the unspent reservations on the wallet
|
|
243
|
+
*
|
|
244
|
+
* @param params.create - create a new reservation
|
|
245
|
+
* @param params.modify - modify an existing reservation
|
|
246
|
+
* @param params.delete - delete an existing reservation
|
|
247
|
+
*/
|
|
248
|
+
manageUnspentReservations(params: ManageUnspentReservationOptions): Promise<{
|
|
249
|
+
unspents: {
|
|
250
|
+
id: string;
|
|
251
|
+
walletId: string;
|
|
252
|
+
expireTime: string;
|
|
253
|
+
userId?: string;
|
|
254
|
+
}[];
|
|
255
|
+
}>;
|
|
192
256
|
/**
|
|
193
257
|
* Consolidate unspents on a wallet
|
|
194
258
|
*
|
|
@@ -207,9 +271,11 @@ export declare class Wallet implements IWallet {
|
|
|
207
271
|
* @param {Number} params.limit for routeName === 'consolidate'
|
|
208
272
|
* params.maxNumInputsToUse for routeName === 'fanout'
|
|
209
273
|
* - maximum number of unspents you want to use in the transaction
|
|
210
|
-
* @param {Number} params.numUnspentsToMake - the number of new unspents to make
|
|
274
|
+
* @param {Number} params.numUnspentsToMake - the number of new unspents to make. It is not applicable for if bulk consolidate.
|
|
275
|
+
* @param {Boolean} params.bulk - if set to True, this enables the consolidation of large number of unspents by creating multiple transactions,
|
|
276
|
+
* with each transaction composed of 200 unspents, except for the last transaction which may have fewer unspents.
|
|
211
277
|
*/
|
|
212
|
-
consolidateUnspents(params?: ConsolidateUnspentsOptions, option?: ManageUnspentsOptions): Promise<
|
|
278
|
+
consolidateUnspents(params?: ConsolidateUnspentsOptions, option?: ManageUnspentsOptions): Promise<unknown>;
|
|
213
279
|
/**
|
|
214
280
|
* Fanout unspents on a wallet
|
|
215
281
|
*
|
|
@@ -226,8 +292,10 @@ export declare class Wallet implements IWallet {
|
|
|
226
292
|
* @param {Number} params.maxFeeRate - The max limit for a fee rate in satoshis/kB
|
|
227
293
|
* @param {Number} params.maxNumInputsToUse - the number of unspents you want to use in the transaction
|
|
228
294
|
* @param {Number} params.numUnspentsToMake - the number of new unspents to make
|
|
295
|
+
*
|
|
296
|
+
* @param {ManageUnspentsOptions} option - flag to toggle build and send or build only
|
|
229
297
|
*/
|
|
230
|
-
fanoutUnspents(params?: FanoutUnspentsOptions): Promise<
|
|
298
|
+
fanoutUnspents(params?: FanoutUnspentsOptions, option?: ManageUnspentsOptions): Promise<unknown>;
|
|
231
299
|
/**
|
|
232
300
|
* Set the token flush thresholds for the wallet. Updates the wallet.
|
|
233
301
|
* Tokens will only be flushed from forwarder contracts if the balance is greater than the threshold defined here.
|
|
@@ -300,7 +368,13 @@ export declare class Wallet implements IWallet {
|
|
|
300
368
|
* @param params
|
|
301
369
|
* @returns {*}
|
|
302
370
|
*/
|
|
303
|
-
addresses(params?: AddressesOptions): Promise<
|
|
371
|
+
addresses(params?: AddressesOptions): Promise<AddressQueryResult>;
|
|
372
|
+
/**
|
|
373
|
+
* List the addresses sorted by balance for a given wallet
|
|
374
|
+
* @param params
|
|
375
|
+
* @returns {*}
|
|
376
|
+
*/
|
|
377
|
+
addressesByBalance(params: AddressesByBalanceOptions): Promise<any>;
|
|
304
378
|
/**
|
|
305
379
|
* Get a single wallet address by its id
|
|
306
380
|
* @param params
|
|
@@ -334,6 +408,20 @@ export declare class Wallet implements IWallet {
|
|
|
334
408
|
* @returns {*}
|
|
335
409
|
*/
|
|
336
410
|
updateAddress(params?: UpdateAddressOptions): Promise<any>;
|
|
411
|
+
/**
|
|
412
|
+
* Get account resources for the given addresses
|
|
413
|
+
* @param params - options object containing addresses and optional destinationAddress
|
|
414
|
+
* @returns {Promise<GetAccountResourcesResponse>} - response from WP API
|
|
415
|
+
*/
|
|
416
|
+
getAccountResources(params: GetAccountResourcesOptions): Promise<GetAccountResourcesResponse>;
|
|
417
|
+
/**
|
|
418
|
+
* Get resource delegations for this wallet
|
|
419
|
+
* @param params - optional filters: type, resource, limit, nextBatchPrevId
|
|
420
|
+
* @returns {Promise<GetResourceDelegationsResponse>} - response from WP API
|
|
421
|
+
*/
|
|
422
|
+
getResourceDelegations(params?: GetResourceDelegationsOptions): Promise<GetResourceDelegationsResponse>;
|
|
423
|
+
updateWalletBuildDefaults(params: UpdateBuildDefaultOptions): Promise<unknown>;
|
|
424
|
+
updateWallet(params: UpdateWalletOptions): Promise<unknown>;
|
|
337
425
|
/**
|
|
338
426
|
* List webhooks on this wallet
|
|
339
427
|
* @param params
|
|
@@ -359,15 +447,12 @@ export declare class Wallet implements IWallet {
|
|
|
359
447
|
*/
|
|
360
448
|
removeWebhook(params?: ModifyWebhookOptions): Promise<any>;
|
|
361
449
|
/**
|
|
362
|
-
* Gets the user
|
|
450
|
+
* Gets the user keychain for this wallet
|
|
363
451
|
*
|
|
364
|
-
* The user
|
|
452
|
+
* The user keychain is the first keychain of the wallet and usually has the encrypted prv stored on BitGo.
|
|
365
453
|
* Useful when trying to get the users' keychain from the server before decrypting to sign a transaction.
|
|
366
|
-
* @param params
|
|
367
454
|
*/
|
|
368
|
-
getEncryptedUserKeychain(
|
|
369
|
-
encryptedPrv: string;
|
|
370
|
-
}>;
|
|
455
|
+
getEncryptedUserKeychain(): Promise<KeychainWithEncryptedPrv>;
|
|
371
456
|
/**
|
|
372
457
|
* Gets the unencrypted private key for this wallet (be careful!)
|
|
373
458
|
* Requires wallet passphrase
|
|
@@ -375,11 +460,77 @@ export declare class Wallet implements IWallet {
|
|
|
375
460
|
* @param params
|
|
376
461
|
*/
|
|
377
462
|
getPrv(params?: GetPrvOptions): Promise<any>;
|
|
463
|
+
private isMultiUserKeyWallet;
|
|
378
464
|
/**
|
|
379
465
|
* Send an encrypted wallet share to BitGo.
|
|
380
466
|
* @param params
|
|
381
467
|
*/
|
|
382
468
|
createShare(params?: CreateShareOptions): Promise<any>;
|
|
469
|
+
/**
|
|
470
|
+
* Shares a wallet with multiple users by creating bulk wallet shares.
|
|
471
|
+
*
|
|
472
|
+
* @async
|
|
473
|
+
* @param {BulkWalletShareOptions} params - The options for sharing wallets in bulk.
|
|
474
|
+
* @param {Array<ShareOption>} params.shareOptions - An array of share option objects containing user and permissions information.
|
|
475
|
+
* @param {Object} [params.shareOptions[].keychain] - The keychain object used to share the wallet.
|
|
476
|
+
* @param {string} [params.shareOptions[].keychain.toPubKey] - The recipient's public key.
|
|
477
|
+
* @param {string} [params.shareOptions[].keychain.path] - The derivation path of the keychain.
|
|
478
|
+
* @param {string} params.shareOptions[].user - The user to share the wallet with.
|
|
479
|
+
* @param {string} params.shareOptions[].permissions - The permissions granted to the user.
|
|
480
|
+
* @param {string} [params.walletPassphrase] - The wallet passphrase used to decrypt the keychain.
|
|
481
|
+
* @throws {Error} If `shareOptions` is empty, or if required keychain parameters (`toPubKey` and `path`) are missing when needed.
|
|
482
|
+
* @throws {Error} If unable to decrypt the user keychain.
|
|
483
|
+
* @returns {Promise<CreateBulkWalletShareListResponse>} A promise that resolves with the response of the bulk wallet share creation.
|
|
484
|
+
*/
|
|
485
|
+
createBulkWalletShare(params: BulkWalletShareOptions): Promise<CreateBulkWalletShareListResponse>;
|
|
486
|
+
/**
|
|
487
|
+
* Creates bulk wallet share entries for specified share options.
|
|
488
|
+
* Filters out share options that do not contain valid keychain information or have missing keychain fields.
|
|
489
|
+
* If all share options are invalid or empty, it throws an error.
|
|
490
|
+
* Sends a POST request to create the wallet shares for valid share options.
|
|
491
|
+
*
|
|
492
|
+
* @async
|
|
493
|
+
* @param {BulkCreateShareOption[]} [params=[]] - The array of share options to process.
|
|
494
|
+
* Keychain entries must include the following fields: `pub`, `encryptedPrv`, `fromPubKey`, `toPubKey`, and `path`.
|
|
495
|
+
* @returns {Promise<CreateBulkWalletShareListResponse>} A promise resolving to the result of the wallet shares creation.
|
|
496
|
+
* @throws {Error} Throws an error if no valid share options are provided.
|
|
497
|
+
*/
|
|
498
|
+
createBulkKeyShares(params?: BulkCreateShareOption[]): Promise<CreateBulkWalletShareListResponse>;
|
|
499
|
+
/**
|
|
500
|
+
* Gets keychain with encrypted private key to be shared for wallet sharing.
|
|
501
|
+
*/
|
|
502
|
+
private getEncryptedWalletKeychainForWalletSharing;
|
|
503
|
+
/**
|
|
504
|
+
* Fetches and decrypts the wallet keychain for sharing.
|
|
505
|
+
* This method fetches the keychain once and decrypts it, returning the decrypted
|
|
506
|
+
* private key and public key info needed for sharing with multiple users.
|
|
507
|
+
*
|
|
508
|
+
* @param walletPassphrase - The passphrase to decrypt the keychain
|
|
509
|
+
* @returns Object containing decrypted prv and pub, or undefined for cold wallets
|
|
510
|
+
*/
|
|
511
|
+
getDecryptedKeychainForSharing(walletPassphrase: string | undefined): Promise<DecryptedKeychainData | undefined>;
|
|
512
|
+
/**
|
|
513
|
+
* Encrypts a decrypted private key for sharing with a specific user.
|
|
514
|
+
* This is the pure encryption step - no API calls, no decryption.
|
|
515
|
+
*
|
|
516
|
+
* @param decryptedPrv - The already-decrypted private key
|
|
517
|
+
* @param pub - The wallet's public key
|
|
518
|
+
* @param userPubkey - The recipient user's public key
|
|
519
|
+
* @param path - The key path
|
|
520
|
+
* @param encryptionVersion - Optional encryption version (defaults to v2)
|
|
521
|
+
* @returns The encrypted keychain for the recipient with all required fields
|
|
522
|
+
*/
|
|
523
|
+
encryptPrvForUser(decryptedPrv: string, pub: string, userPubkey: string, path: string, encryptionVersion?: EncryptionVersion): Promise<BulkWalletShareKeychain>;
|
|
524
|
+
/**
|
|
525
|
+
* Prepares a keychain for sharing with another user.
|
|
526
|
+
* Fetches the wallet keychain, decrypts it, and encrypts it for the recipient.
|
|
527
|
+
*
|
|
528
|
+
* @param walletPassphrase - The passphrase to decrypt the keychain
|
|
529
|
+
* @param pubkey - The recipient's public key
|
|
530
|
+
* @param path - The key path
|
|
531
|
+
* @returns The encrypted keychain for the recipient
|
|
532
|
+
*/
|
|
533
|
+
prepareSharedKeychain(walletPassphrase: string | undefined, pubkey: string, path: string, encryptionVersion?: EncryptionVersion, decryptedKeychain?: DecryptedKeychainData): Promise<SharedKeyChain>;
|
|
383
534
|
/**
|
|
384
535
|
* Share this wallet with another BitGo user.
|
|
385
536
|
* @param params
|
|
@@ -429,12 +580,25 @@ export declare class Wallet implements IWallet {
|
|
|
429
580
|
* @returns {*}
|
|
430
581
|
*/
|
|
431
582
|
prebuildTransaction(params?: PrebuildTransactionOptions): Promise<PrebuildTransactionResult>;
|
|
583
|
+
/**
|
|
584
|
+
* Gets the User Keychain and sign a TSS transaction
|
|
585
|
+
* @param txRequestId The transaction request id
|
|
586
|
+
* @param walletPassphrase The wallet passphrase
|
|
587
|
+
* @return Promise<SignedTransaction>
|
|
588
|
+
*/
|
|
589
|
+
getUserKeyAndSignTssTransaction({ txRequestId, walletPassphrase, }: {
|
|
590
|
+
txRequestId: string;
|
|
591
|
+
walletPassphrase: string;
|
|
592
|
+
}): Promise<SignedTransaction>;
|
|
432
593
|
/**
|
|
433
594
|
* Sign a transaction
|
|
434
595
|
* @param params
|
|
435
596
|
* - txPrebuild
|
|
436
597
|
* - [keychain / key] (object) or prv (string)
|
|
437
|
-
* - walletPassphrase
|
|
598
|
+
* - walletPassphrase (optional ONLY for OFC wallets with userKeySigningRequired = false)
|
|
599
|
+
* - verifyTxParams (optional) - when provided, the transaction will be verified before signing
|
|
600
|
+
* - txParams: transaction parameters used for verification
|
|
601
|
+
* - verification: optional verification options
|
|
438
602
|
* @return {*}
|
|
439
603
|
*/
|
|
440
604
|
signTransaction(params?: WalletSignTransactionOptions): Promise<SignedTransaction | TxRequest>;
|
|
@@ -451,28 +615,40 @@ export declare class Wallet implements IWallet {
|
|
|
451
615
|
*/
|
|
452
616
|
signMessage(params?: WalletSignMessageOptions): Promise<SignedMessage>;
|
|
453
617
|
/**
|
|
454
|
-
*
|
|
618
|
+
* Prepares and creates a sign message request for TSS wallets, that can be used later for signing.
|
|
619
|
+
*
|
|
620
|
+
* @param params - Parameters for creating the sign message request
|
|
621
|
+
* @returns Promise<TxRequest> - The created transaction request for signing a message
|
|
622
|
+
*/
|
|
623
|
+
buildSignMessageRequest(params: WalletSignMessageOptions): Promise<TxRequest>;
|
|
624
|
+
/**
|
|
625
|
+
* Get the user private key from either a derivation or an encrypted keychain.
|
|
626
|
+
* Supports both v1 (SJCL) and v2 (Argon2id) envelopes.
|
|
455
627
|
* @param [params.keychain / params.key] (object) or params.prv (string)
|
|
456
628
|
* @param params.walletPassphrase (string)
|
|
457
629
|
*/
|
|
458
|
-
getUserPrv(params?: GetUserPrvOptions): string
|
|
630
|
+
getUserPrv(params?: GetUserPrvOptions): Promise<string>;
|
|
459
631
|
/**
|
|
460
632
|
* Get a transaction prebuild from BitGo, validate it, and then decrypt the user key and sign the transaction
|
|
461
633
|
* @param params
|
|
462
634
|
*/
|
|
463
635
|
prebuildAndSignTransaction(params?: PrebuildAndSignTransactionOptions): Promise<SignedTransaction>;
|
|
464
636
|
/**
|
|
465
|
-
* Accelerate a transaction's confirmation using Child-Pays-For-Parent (CPFP)
|
|
637
|
+
* Accelerate a transaction's confirmation using Child-Pays-For-Parent (CPFP) or Replace-By-Fee (RBF)
|
|
466
638
|
* @param params
|
|
467
639
|
*/
|
|
468
640
|
accelerateTransaction(params?: AccelerateTransactionOptions): Promise<any>;
|
|
641
|
+
private validateAccelerationParams;
|
|
642
|
+
private validateRbfParams;
|
|
643
|
+
private validateCpfpParams;
|
|
469
644
|
/**
|
|
470
645
|
* Submit a half-signed transaction to BitGo
|
|
471
646
|
* @param params
|
|
472
647
|
* - txHex: transaction hex to submit
|
|
473
648
|
* - halfSigned: object containing transaction (txHex or txBase64) to submit
|
|
649
|
+
* @param reqId - request tracer request id
|
|
474
650
|
*/
|
|
475
|
-
submitTransaction(params?: SubmitTransactionOptions): Promise<any>;
|
|
651
|
+
submitTransaction(params?: SubmitTransactionOptions, reqId?: IRequestTracer): Promise<any>;
|
|
476
652
|
/**
|
|
477
653
|
* Send coins to a recipient
|
|
478
654
|
* @param params
|
|
@@ -488,6 +664,19 @@ export declare class Wallet implements IWallet {
|
|
|
488
664
|
* @returns {*}
|
|
489
665
|
*/
|
|
490
666
|
send(params?: SendOptions): Promise<any>;
|
|
667
|
+
/**
|
|
668
|
+
* Send an ERC-721 NFT or ERC-1155 NFT(s).
|
|
669
|
+
*
|
|
670
|
+
* This function constructs the appropriate call data for an ERC-721/1155 token transfer,
|
|
671
|
+
* and calls the token contract with the data, and amount 0. This transaction will always produce
|
|
672
|
+
* a pending approval.
|
|
673
|
+
*
|
|
674
|
+
* @param sendOptions Options to specify how the transaction should be sent.
|
|
675
|
+
* @param sendNftOptions Options to specify the NFT(s) to be sent.
|
|
676
|
+
*
|
|
677
|
+
* @return A pending approval for the transaction.
|
|
678
|
+
*/
|
|
679
|
+
sendNft(sendOptions: SendNFTOptions, sendNftOptions: NFTTransferOptions): Promise<SendNFTResult>;
|
|
491
680
|
/**
|
|
492
681
|
* Send money to multiple recipients
|
|
493
682
|
* 1. Gets the user keychain by checking the wallet for a key which has an encrypted prv
|
|
@@ -606,16 +795,38 @@ export declare class Wallet implements IWallet {
|
|
|
606
795
|
* Extract a JSON representable version of this wallet
|
|
607
796
|
*/
|
|
608
797
|
toJSON(): WalletData;
|
|
798
|
+
/**
|
|
799
|
+
* Create a lightning invoice for this wallet.
|
|
800
|
+
* Supported for OFC (trading) and BTC wallets.
|
|
801
|
+
* Uses the same wallet-platform endpoint as lnbtc wallets.
|
|
802
|
+
* @param params.valueSat - Invoice value in satoshis - if not provided, a zero-value invoice is created
|
|
803
|
+
* @param params.memo - Optional memo/description
|
|
804
|
+
* @param params.expiry - Optional expiry in seconds (not supported for trading wallets)
|
|
805
|
+
*/
|
|
806
|
+
createLightningInvoice(params: CreateLightningInvoiceParams): Promise<LightningInvoiceResponse>;
|
|
609
807
|
/**
|
|
610
808
|
* Create a trading account from this wallet
|
|
611
809
|
*/
|
|
612
810
|
toTradingAccount(): TradingAccount;
|
|
811
|
+
/**
|
|
812
|
+
* Get the address book for this wallet
|
|
813
|
+
*/
|
|
814
|
+
toAddressBook(): IAddressBook;
|
|
815
|
+
/**
|
|
816
|
+
* Access DeFi vault operations for this wallet (deposit, withdraw, resume).
|
|
817
|
+
*/
|
|
818
|
+
get defi(): DefiVault;
|
|
613
819
|
/**
|
|
614
820
|
* Create a staking wallet from this wallet
|
|
615
821
|
*/
|
|
616
822
|
toStakingWallet(): StakingWallet;
|
|
617
823
|
/**
|
|
618
|
-
*
|
|
824
|
+
* Create a go staking wallet from this wallet
|
|
825
|
+
*/
|
|
826
|
+
toGoStakingWallet(): GoStakingWallet;
|
|
827
|
+
/**
|
|
828
|
+
* Creates and downloads PDF keycard for wallet (requires response from wallets.generateWallet).
|
|
829
|
+
* Defaults to v2 encryption for Box D; pass `encryptionVersion: 1` for legacy v1.
|
|
619
830
|
*
|
|
620
831
|
* Note: this is example code and is not the version used on bitgo.com
|
|
621
832
|
*
|
|
@@ -632,7 +843,30 @@ export declare class Wallet implements IWallet {
|
|
|
632
843
|
* * backupKeyID - the Key ID used for deriving a cold wallet's backup key
|
|
633
844
|
* @returns {*}
|
|
634
845
|
*/
|
|
635
|
-
downloadKeycard(params?: DownloadKeycardOptions): void
|
|
846
|
+
downloadKeycard(params?: DownloadKeycardOptions): Promise<void>;
|
|
847
|
+
/**
|
|
848
|
+
* Upgrade this wallet's keychain encryption from v1 (SJCL / PBKDF2-SHA256 + AES-256-CCM) to
|
|
849
|
+
* v2 (Argon2id + AES-256-GCM) and, optionally, regenerate the keycard PDF.
|
|
850
|
+
*
|
|
851
|
+
* Steps:
|
|
852
|
+
* 1. Unlock the BitGo session (skipped in dry-run).
|
|
853
|
+
* 2. Validate MPCv2 requirements (boxA/boxB when relevant).
|
|
854
|
+
* 3. Resolve the current and original passphrases (deriving from boxD if needed).
|
|
855
|
+
* 4. Re-encrypt user and backup keychains from v1 to v2 and PUT them to the server.
|
|
856
|
+
* 5. Re-encrypt MPCv2 reducedEncryptedPrv shares from boxA/boxB (keycard-only, no server PUT).
|
|
857
|
+
* 6. Invoke the injected {@link UpgradeEncryptionPdfGenerator} to regenerate the keycard PDF.
|
|
858
|
+
*
|
|
859
|
+
* @returns the generated PDF and wallet label, or undefined in dry-run or when no PDF generator is provided.
|
|
860
|
+
*/
|
|
861
|
+
upgradeEncryption(params: UpgradeEncryptionOptions): Promise<UpgradeEncryptionResult | undefined>;
|
|
862
|
+
/**
|
|
863
|
+
* Re-encrypt a ciphertext that was written at wallet creation time (backup key, boxA, boxB).
|
|
864
|
+
* These are not re-encrypted on password change, so the encryption passphrase may still be
|
|
865
|
+
* the original one from when the wallet was created. Try the current passphrase first; fall
|
|
866
|
+
* back to `originalPassphrase` if provided.
|
|
867
|
+
*/
|
|
868
|
+
private reencryptCreationTimeKey;
|
|
869
|
+
private fetchPasscodeEncryptionCode;
|
|
636
870
|
/**
|
|
637
871
|
* Builds a set of consolidation transactions for a wallet.
|
|
638
872
|
* @param params
|
|
@@ -653,6 +887,75 @@ export declare class Wallet implements IWallet {
|
|
|
653
887
|
* consolidateAddresses - these are the on-chain receive addresses we want to pick a consolidation amount from
|
|
654
888
|
*/
|
|
655
889
|
sendAccountConsolidations(params?: BuildConsolidationTransactionOptions): Promise<any>;
|
|
890
|
+
/**
|
|
891
|
+
* Shared build logic for resource delegation and undelegation.
|
|
892
|
+
* POSTs to the given endpoint and post-processes each prebuild.
|
|
893
|
+
*/
|
|
894
|
+
private buildResourceManagementTransactions;
|
|
895
|
+
/**
|
|
896
|
+
* Shared signing logic for a single resource management transaction (delegation or undelegation).
|
|
897
|
+
* Signing flow by wallet type (mirrors sendAccountConsolidation):
|
|
898
|
+
* - TSS (hot or custodial) → sendManyTxRequests (requires txRequestId on prebuildTx)
|
|
899
|
+
* - Custodial non-TSS → initiateTransaction (BitGo auto-signs with its key)
|
|
900
|
+
* - Hot non-TSS → prebuildAndSignTransaction + submitTransaction
|
|
901
|
+
*/
|
|
902
|
+
private sendResourceManagementTransaction;
|
|
903
|
+
/**
|
|
904
|
+
* Shared build → sign → send loop for resource delegation and undelegation.
|
|
905
|
+
* Validates the wallet passphrase upfront, then sends each transaction individually.
|
|
906
|
+
* Returns { success, failure } so partial success is handled gracefully.
|
|
907
|
+
*/
|
|
908
|
+
private sendResourceManagementTransactions;
|
|
909
|
+
/**
|
|
910
|
+
* Builds a set of resource delegation transactions for the given delegation entries.
|
|
911
|
+
* Each entry delegates resources (e.g. ENERGY, BANDWIDTH) from this wallet's root address
|
|
912
|
+
* to a receiver address. Modelled after buildAccountConsolidations.
|
|
913
|
+
*
|
|
914
|
+
* @param params.delegations - Array of { receiverAddress, amount, resource } entries
|
|
915
|
+
* @returns Unsigned prebuild transaction results, one per delegation entry
|
|
916
|
+
*/
|
|
917
|
+
buildResourceDelegations(params: BuildResourceDelegationTransactionOptions): Promise<BuildResourceManagementTransactionResult>;
|
|
918
|
+
/**
|
|
919
|
+
* Signs and sends a single resource delegation transaction.
|
|
920
|
+
* @param params.prebuildTx - A single prebuild result from buildResourceDelegations
|
|
921
|
+
*/
|
|
922
|
+
sendResourceDelegation(params?: PrebuildAndSignTransactionOptions): Promise<ResourceManagementSendResult>;
|
|
923
|
+
/**
|
|
924
|
+
* Builds, signs, and sends all resource delegation transactions in a single call.
|
|
925
|
+
* @param params.delegations - Array of { receiverAddress, amount, resource } entries
|
|
926
|
+
*/
|
|
927
|
+
sendResourceDelegations(params: BuildResourceDelegationTransactionOptions): Promise<{
|
|
928
|
+
success: ResourceManagementSendResult[];
|
|
929
|
+
failure: {
|
|
930
|
+
message: string;
|
|
931
|
+
receiverAddress?: string;
|
|
932
|
+
}[];
|
|
933
|
+
}>;
|
|
934
|
+
/**
|
|
935
|
+
* Builds a set of resource undelegation transactions for the given entries.
|
|
936
|
+
* Each entry reclaims delegated resources from this wallet's root address back from
|
|
937
|
+
* a receiver address. Modelled after buildResourceDelegations.
|
|
938
|
+
*
|
|
939
|
+
* @param params.undelegations - Array of { receiverAddress, amount, resource } entries
|
|
940
|
+
* @returns Unsigned prebuild transaction results, one per undelegation entry
|
|
941
|
+
*/
|
|
942
|
+
buildResourceUndelegations(params: BuildResourceUndelegationTransactionOptions): Promise<BuildResourceManagementTransactionResult>;
|
|
943
|
+
/**
|
|
944
|
+
* Signs and sends a single resource undelegation transaction.
|
|
945
|
+
* @param params.prebuildTx - A single prebuild result from buildResourceUndelegations
|
|
946
|
+
*/
|
|
947
|
+
sendResourceUndelegation(params?: PrebuildAndSignTransactionOptions): Promise<ResourceManagementSendResult>;
|
|
948
|
+
/**
|
|
949
|
+
* Builds, signs, and sends all resource undelegation transactions in a single call.
|
|
950
|
+
* @param params.undelegations - Array of { receiverAddress, amount, resource } entries
|
|
951
|
+
*/
|
|
952
|
+
sendResourceUndelegations(params: BuildResourceUndelegationTransactionOptions): Promise<{
|
|
953
|
+
success: ResourceManagementSendResult[];
|
|
954
|
+
failure: {
|
|
955
|
+
message: string;
|
|
956
|
+
receiverAddress?: string;
|
|
957
|
+
}[];
|
|
958
|
+
}>;
|
|
656
959
|
/**
|
|
657
960
|
* Builds a set of transactions that enables the specified tokens
|
|
658
961
|
* @param params -
|
|
@@ -660,6 +963,12 @@ export declare class Wallet implements IWallet {
|
|
|
660
963
|
* @returns Unsigned transactions that enables the specified tokens
|
|
661
964
|
*/
|
|
662
965
|
buildTokenEnablements(params?: BuildTokenEnablementOptions): Promise<PrebuildTransactionResult[]>;
|
|
966
|
+
/**
|
|
967
|
+
* Builds wallet initialization
|
|
968
|
+
* @param {PrebuildTransactionOptions} params
|
|
969
|
+
* @returns {Promise<PrebuildTransactionResult>}
|
|
970
|
+
*/
|
|
971
|
+
buildWalletInitialization(params: PrebuildTransactionOptions): Promise<PrebuildTransactionResult>;
|
|
663
972
|
/**
|
|
664
973
|
* Signs and sends a single unsigned token enablement transaction
|
|
665
974
|
* @param params
|
|
@@ -684,21 +993,67 @@ export declare class Wallet implements IWallet {
|
|
|
684
993
|
failure: Error[];
|
|
685
994
|
}>;
|
|
686
995
|
/**
|
|
687
|
-
*
|
|
996
|
+
* The chain canton, requires the wallet to be initialized by sending out a transaction
|
|
997
|
+
* to be onboarded onto the validator.
|
|
998
|
+
* Builds, Signs and sends a transaction that initializes the canton wallet
|
|
999
|
+
* @param params
|
|
688
1000
|
*/
|
|
689
|
-
|
|
1001
|
+
sendWalletInitialization(params?: PrebuildTransactionOptions): Promise<WalletInitResult>;
|
|
690
1002
|
/**
|
|
691
1003
|
* Prebuilds a transaction for a TSS wallet.
|
|
692
1004
|
*
|
|
693
1005
|
* @param params prebuild transaction options
|
|
694
1006
|
*/
|
|
695
|
-
private
|
|
1007
|
+
private prebuildTransactionTxRequests;
|
|
696
1008
|
/**
|
|
697
|
-
* Signs a transaction from a TSS wallet using external signer.
|
|
1009
|
+
* Signs a transaction from a TSS EdDSA wallet using external signer.
|
|
698
1010
|
*
|
|
699
1011
|
* @param params signing options
|
|
700
1012
|
*/
|
|
701
1013
|
private signTransactionTssExternalSignerEdDSA;
|
|
1014
|
+
/**
|
|
1015
|
+
* Signs and sends a transaction request from a TSS (hot) wallet, or a SMC (cold) wallet with an external signer.
|
|
1016
|
+
* Meant to be used for a transaction request where the signing process is aborted.
|
|
1017
|
+
*
|
|
1018
|
+
* Always clears any existing signature shares before signing, for both full and lite transaction
|
|
1019
|
+
* requests, so a resumed/retried sign (including one picked up by a different user than whoever
|
|
1020
|
+
* last touched this transaction request) restarts cleanly instead of building on stale shares.
|
|
1021
|
+
*
|
|
1022
|
+
* @param params
|
|
1023
|
+
* txRequestId - The ID of the transaction request.
|
|
1024
|
+
* walletPassphrase - The passphrase for the wallet.
|
|
1025
|
+
* isTxRequestFull - Flag indicating if the transaction request is full.
|
|
1026
|
+
* @returns A promise that resolves to a SignedTransaction.
|
|
1027
|
+
*/
|
|
1028
|
+
signAndSendTxRequest(params: SignAndSendTxRequestOptions): Promise<SignedTransaction>;
|
|
1029
|
+
/**
|
|
1030
|
+
* Ensures signature shares are in a clean state before signing a transaction.
|
|
1031
|
+
* Automatically deletes signature shares for Full TxRequests before signing to prevent
|
|
1032
|
+
* issues with stale or partial signatures.
|
|
1033
|
+
* Use this for Express API and other integrations that need automatic cleanup of signatures.
|
|
1034
|
+
*
|
|
1035
|
+
* @param params - signing options
|
|
1036
|
+
* @returns signed transaction
|
|
1037
|
+
*/
|
|
1038
|
+
ensureCleanSigSharesAndSignTransaction(params?: WalletSignTransactionOptions): Promise<SignedTransaction | TxRequest>;
|
|
1039
|
+
/**
|
|
1040
|
+
* Signs a transaction from a TSS ECDSA wallet using external signer.
|
|
1041
|
+
*
|
|
1042
|
+
* @param params signing options
|
|
1043
|
+
*/
|
|
1044
|
+
private signTransactionTssExternalSignerECDSA;
|
|
1045
|
+
/**
|
|
1046
|
+
* Signs a transaction from a TSS EdDSA MPCv2 wallet using external signer.
|
|
1047
|
+
*
|
|
1048
|
+
* @param params signing options
|
|
1049
|
+
*/
|
|
1050
|
+
private signTransactionTssExternalSignerEdDSAMPCv2;
|
|
1051
|
+
/**
|
|
1052
|
+
* Signs a transaction from a TSS ECDSA wallet using external signer.
|
|
1053
|
+
*
|
|
1054
|
+
* @param params signing options
|
|
1055
|
+
*/
|
|
1056
|
+
private signTransactionTssExternalSignerECDSAMPCv2;
|
|
702
1057
|
/**
|
|
703
1058
|
* Signs a transaction from a TSS wallet.
|
|
704
1059
|
*
|
|
@@ -722,7 +1077,7 @@ export declare class Wallet implements IWallet {
|
|
|
722
1077
|
*
|
|
723
1078
|
* @param params send options
|
|
724
1079
|
*/
|
|
725
|
-
private
|
|
1080
|
+
private sendManyTxRequests;
|
|
726
1081
|
/**
|
|
727
1082
|
* Send funds from a fee address to a forwarder. Only supports eth-like coins.
|
|
728
1083
|
*
|
|
@@ -731,7 +1086,15 @@ export declare class Wallet implements IWallet {
|
|
|
731
1086
|
* @param {String} params.amount - Amount to send the forwarder (optional). If not given, defaults to sending an estimate of the amount needed for a fund recovery
|
|
732
1087
|
* @returns {*}
|
|
733
1088
|
*/
|
|
734
|
-
fundForwarder(params: FundForwardersOptions): Promise<
|
|
1089
|
+
fundForwarder(params: FundForwardersOptions): Promise<WalletData>;
|
|
1090
|
+
/**
|
|
1091
|
+
* Send funds from a fee address to a forwarder.
|
|
1092
|
+
*
|
|
1093
|
+
* @param {Object} params - parameters object
|
|
1094
|
+
* @param {List} params.forwarders - list of fund forwarder options
|
|
1095
|
+
* @returns {*}
|
|
1096
|
+
*/
|
|
1097
|
+
fundForwarders(params: FundForwarderParams): Promise<WalletData>;
|
|
735
1098
|
/**
|
|
736
1099
|
* Gets forwarder's balance
|
|
737
1100
|
* @param params - optional query parameters
|
|
@@ -747,5 +1110,34 @@ export declare class Wallet implements IWallet {
|
|
|
747
1110
|
* @returns {Promise<WalletEcdsaChallenges>}
|
|
748
1111
|
*/
|
|
749
1112
|
getChallengesForEcdsaSigning(): Promise<WalletEcdsaChallenges>;
|
|
1113
|
+
private sendTransaction;
|
|
1114
|
+
private initiateTransaction;
|
|
1115
|
+
/**
|
|
1116
|
+
* Get wallet keychains and validate passphrase if necessary
|
|
1117
|
+
* @param {PrebuildTransactionOptions} params - prebuild transaction options
|
|
1118
|
+
* @param {string} params.walletPassphrase - wallet passphrase
|
|
1119
|
+
* @param {string} params.reqId - request id for tracing purposes
|
|
1120
|
+
* @param {Function} params.customSigningFunction - custom signing function for external signing
|
|
1121
|
+
* @returns {Promise<Keychain[]>}
|
|
1122
|
+
*/
|
|
1123
|
+
private getKeychainsAndValidatePassphrase;
|
|
1124
|
+
/**
|
|
1125
|
+
* Approve token for use with a batcher contract
|
|
1126
|
+
* This function builds, signs, and sends a token approval transaction
|
|
1127
|
+
*
|
|
1128
|
+
* @param {string} walletPassphrase - The passphrase to be used to decrypt the user key
|
|
1129
|
+
* @param {string} tokenName - The name of the token to be approved
|
|
1130
|
+
* @returns {Promise<any>} The transaction details
|
|
1131
|
+
*/
|
|
1132
|
+
approveErc20Token(walletPassphrase: string, tokenName: string): Promise<SubmitTransactionResponse>;
|
|
1133
|
+
/**
|
|
1134
|
+
* Build token approval transaction for ERC20 tokens
|
|
1135
|
+
* If walletPassphrase is provided, also signs and sends the transaction
|
|
1136
|
+
*
|
|
1137
|
+
* @param {string} tokenName - The name of the token to be approved
|
|
1138
|
+
* @param {string} [walletPassphrase] - Optional wallet passphrase for signing and sending
|
|
1139
|
+
* @returns {Promise<BuildTokenApprovalResponse | SubmitTransactionResponse>} The token approval build response or transaction details if signed
|
|
1140
|
+
*/
|
|
1141
|
+
buildErc20TokenApproval(tokenName: string, walletPassphrase?: string): Promise<BuildTokenApprovalResponse | SubmitTransactionResponse>;
|
|
750
1142
|
}
|
|
751
1143
|
//# sourceMappingURL=wallet.d.ts.map
|