@bitgo-beta/sdk-core 8.2.1-beta.217 → 8.2.1-beta.2171
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 +43 -31
- package/dist/src/account-lib/baseCoin/enum.d.ts +59 -5
- package/dist/src/account-lib/baseCoin/enum.d.ts.map +1 -1
- package/dist/src/account-lib/baseCoin/enum.js +112 -10
- 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.d.ts +0 -1
- package/dist/src/account-lib/index.d.ts.map +1 -1
- package/dist/src/account-lib/index.js +23 -10
- package/dist/src/account-lib/mpc/index.d.ts +1 -1
- package/dist/src/account-lib/mpc/index.d.ts.map +1 -1
- package/dist/src/account-lib/mpc/index.js +6 -2
- package/dist/src/account-lib/mpc/tss/ecdsa/ecdsa.d.ts +2 -3
- package/dist/src/account-lib/mpc/tss/ecdsa/ecdsa.d.ts.map +1 -1
- package/dist/src/account-lib/mpc/tss/ecdsa/ecdsa.js +376 -354
- 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 +46 -53
- 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 +0 -1
- 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 -1
- 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/api/bip32path.js +2 -3
- package/dist/src/api/index.js +6 -2
- package/dist/src/api/types.d.ts +37 -0
- package/dist/src/api/types.d.ts.map +1 -1
- package/dist/src/api/types.js +8 -1
- package/dist/src/bitgo/address-book/address-book.d.ts.map +1 -1
- package/dist/src/bitgo/address-book/address-book.js +20 -12
- package/dist/src/bitgo/address-book/index.js +6 -2
- package/dist/src/bitgo/address-book/types.d.ts +36 -36
- package/dist/src/bitgo/address-book/types.d.ts.map +1 -1
- package/dist/src/bitgo/baseCoin/baseCoin.d.ts +123 -13
- package/dist/src/bitgo/baseCoin/baseCoin.d.ts.map +1 -1
- package/dist/src/bitgo/baseCoin/baseCoin.js +200 -16
- package/dist/src/bitgo/baseCoin/iBaseCoin.d.ts +341 -33
- 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 +21 -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 +24 -3
- package/dist/src/bitgo/coinFactory.d.ts.map +1 -1
- package/dist/src/bitgo/coinFactory.js +35 -3
- package/dist/src/bitgo/config.d.ts +3 -107
- 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 +171 -0
- package/dist/src/bitgo/defi/defiVault.d.ts.map +1 -0
- package/dist/src/bitgo/defi/defiVault.js +445 -0
- package/dist/src/bitgo/defi/iDefiVault.d.ts +101 -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 +28 -7
- package/dist/src/bitgo/enterprise/enterprise.d.ts.map +1 -1
- package/dist/src/bitgo/enterprise/enterprise.js +97 -42
- package/dist/src/bitgo/enterprise/enterprises.js +27 -13
- package/dist/src/bitgo/enterprise/iEnterprise.d.ts +12 -3
- 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/index.js +6 -2
- package/dist/src/bitgo/environments.d.ts +72 -3
- package/dist/src/bitgo/environments.d.ts.map +1 -1
- package/dist/src/bitgo/environments.js +413 -34
- package/dist/src/bitgo/errors.d.ts +193 -1
- package/dist/src/bitgo/errors.d.ts.map +1 -1
- package/dist/src/bitgo/errors.js +194 -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 +6 -1
- package/dist/src/bitgo/index.d.ts.map +1 -1
- package/dist/src/bitgo/index.js +32 -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 +13 -8
- package/dist/src/bitgo/internal/keycard.d.ts.map +1 -1
- package/dist/src/bitgo/internal/keycard.js +63 -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 +234 -11
- package/dist/src/bitgo/keychain/iKeychains.d.ts.map +1 -1
- package/dist/src/bitgo/keychain/iKeychains.js +23 -3
- package/dist/src/bitgo/keychain/index.d.ts +2 -0
- package/dist/src/bitgo/keychain/index.d.ts.map +1 -1
- package/dist/src/bitgo/keychain/index.js +8 -2
- package/dist/src/bitgo/keychain/keychains.d.ts +127 -13
- package/dist/src/bitgo/keychain/keychains.d.ts.map +1 -1
- package/dist/src/bitgo/keychain/keychains.js +519 -72
- package/dist/src/bitgo/keychain/ovcJsonCodec.d.ts +3 -3
- package/dist/src/bitgo/keychain/ovcJsonCodec.d.ts.map +1 -1
- package/dist/src/bitgo/keychain/ovcJsonCodec.js +23 -9
- package/dist/src/bitgo/keychain/upgradeEncryption.d.ts +10 -0
- package/dist/src/bitgo/keychain/upgradeEncryption.d.ts.map +1 -0
- package/dist/src/bitgo/keychain/upgradeEncryption.js +14 -0
- 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 +25 -1
- package/dist/src/bitgo/pendingApproval/iPendingApproval.d.ts.map +1 -1
- package/dist/src/bitgo/pendingApproval/iPendingApproval.js +7 -5
- package/dist/src/bitgo/pendingApproval/index.js +6 -2
- package/dist/src/bitgo/pendingApproval/pendingApproval.d.ts +28 -9
- package/dist/src/bitgo/pendingApproval/pendingApproval.d.ts.map +1 -1
- package/dist/src/bitgo/pendingApproval/pendingApproval.js +278 -113
- 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 +35 -3
- package/dist/src/bitgo/recovery/initiate.d.ts.map +1 -1
- package/dist/src/bitgo/recovery/initiate.js +71 -41
- package/dist/src/bitgo/safe/derivableEd25519Pub.d.ts +72 -0
- package/dist/src/bitgo/safe/derivableEd25519Pub.d.ts.map +1 -0
- package/dist/src/bitgo/safe/derivableEd25519Pub.js +186 -0
- package/dist/src/bitgo/safe/iSafe.d.ts +145 -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 +132 -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 +9 -0
- package/dist/src/bitgo/safe/index.d.ts.map +1 -0
- package/dist/src/bitgo/safe/index.js +25 -0
- package/dist/src/bitgo/safe/keycard.d.ts +165 -0
- package/dist/src/bitgo/safe/keycard.d.ts.map +1 -0
- package/dist/src/bitgo/safe/keycard.js +298 -0
- package/dist/src/bitgo/safe/recovery.d.ts +332 -0
- package/dist/src/bitgo/safe/recovery.d.ts.map +1 -0
- package/dist/src/bitgo/safe/recovery.js +414 -0
- package/dist/src/bitgo/safe/rootCoin.d.ts +15 -0
- package/dist/src/bitgo/safe/rootCoin.d.ts.map +1 -0
- package/dist/src/bitgo/safe/rootCoin.js +47 -0
- package/dist/src/bitgo/safe/safe.d.ts +114 -0
- package/dist/src/bitgo/safe/safe.d.ts.map +1 -0
- package/dist/src/bitgo/safe/safe.js +476 -0
- package/dist/src/bitgo/safe/safes.d.ts +116 -0
- package/dist/src/bitgo/safe/safes.d.ts.map +1 -0
- package/dist/src/bitgo/safe/safes.js +467 -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 +161 -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 +21 -8
- package/dist/src/bitgo/staking/stakingWallet.d.ts.map +1 -1
- package/dist/src/bitgo/staking/stakingWallet.js +153 -7
- package/dist/src/bitgo/trading/iTradingAccount.d.ts +13 -1
- 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 -0
- package/dist/src/bitgo/trading/index.d.ts.map +1 -1
- package/dist/src/bitgo/trading/index.js +7 -2
- 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 +2 -0
- package/dist/src/bitgo/trading/network/index.d.ts.map +1 -1
- package/dist/src/bitgo/trading/network/index.js +8 -2
- package/dist/src/bitgo/trading/network/network.d.ts +4 -3
- package/dist/src/bitgo/trading/network/network.d.ts.map +1 -1
- package/dist/src/bitgo/trading/network/network.js +24 -27
- package/dist/src/bitgo/trading/network/types.d.ts +79 -46
- package/dist/src/bitgo/trading/network/types.d.ts.map +1 -1
- package/dist/src/bitgo/trading/network/types.js +1 -1
- 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 +15 -1
- package/dist/src/bitgo/trading/tradingAccount.d.ts.map +1 -1
- package/dist/src/bitgo/trading/tradingAccount.js +55 -7
- 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 +53 -6
- package/dist/src/bitgo/tss/common.d.ts.map +1 -1
- package/dist/src/bitgo/tss/common.js +145 -23
- package/dist/src/bitgo/tss/ecdsa/ecdsa.d.ts +7 -4
- package/dist/src/bitgo/tss/ecdsa/ecdsa.d.ts.map +1 -1
- package/dist/src/bitgo/tss/ecdsa/ecdsa.js +78 -66
- 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 +16 -6
- package/dist/src/bitgo/tss/eddsa/eddsa.d.ts.map +1 -1
- package/dist/src/bitgo/tss/eddsa/eddsa.js +47 -40
- 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/redpallas/redpallasMPCv2.d.ts +138 -0
- package/dist/src/bitgo/tss/redpallas/redpallasMPCv2.d.ts.map +1 -0
- package/dist/src/bitgo/tss/redpallas/redpallasMPCv2.js +255 -0
- package/dist/src/bitgo/tss/types.d.ts +3 -3
- 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 +10 -0
- package/dist/src/bitgo/utils/abstractUtxoCoinUtil.d.ts.map +1 -1
- package/dist/src/bitgo/utils/abstractUtxoCoinUtil.js +76 -14
- package/dist/src/bitgo/utils/codecProps.js +24 -11
- 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 +6 -2
- package/dist/src/bitgo/utils/index.d.ts.map +1 -1
- package/dist/src/bitgo/utils/index.js +29 -11
- package/dist/src/bitgo/utils/legacyV1Envelope.d.ts +20 -0
- package/dist/src/bitgo/utils/legacyV1Envelope.d.ts.map +1 -0
- package/dist/src/bitgo/utils/legacyV1Envelope.js +74 -0
- package/dist/src/bitgo/utils/messageTypes.d.ts +46 -0
- package/dist/src/bitgo/utils/messageTypes.d.ts.map +1 -0
- package/dist/src/bitgo/utils/messageTypes.js +23 -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 +220 -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 +22 -5
- package/dist/src/bitgo/utils/opengpgUtils.d.ts.map +1 -1
- package/dist/src/bitgo/utils/opengpgUtils.js +116 -60
- package/dist/src/bitgo/utils/postWithCodec.js +2 -3
- 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/siws.d.ts +17 -0
- package/dist/src/bitgo/utils/siws.d.ts.map +1 -0
- package/dist/src/bitgo/utils/siws.js +171 -0
- 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 +103 -18
- package/dist/src/bitgo/utils/tss/baseTSSUtils.d.ts.map +1 -1
- package/dist/src/bitgo/utils/tss/baseTSSUtils.js +328 -46
- package/dist/src/bitgo/utils/tss/baseTypes.d.ts +502 -57
- package/dist/src/bitgo/utils/tss/baseTypes.d.ts.map +1 -1
- package/dist/src/bitgo/utils/tss/baseTypes.js +47 -22
- 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 +96 -52
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsa.d.ts.map +1 -1
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsa.js +421 -248
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2.d.ts +245 -0
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2.js +1096 -0
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2KeyGenSender.d.ts +17 -0
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2KeyGenSender.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2KeyGenSender.js +39 -0
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsaVrfMPCv2.d.ts +65 -0
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsaVrfMPCv2.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsaVrfMPCv2.js +439 -0
- package/dist/src/bitgo/utils/tss/ecdsa/index.d.ts +5 -0
- package/dist/src/bitgo/utils/tss/ecdsa/index.d.ts.map +1 -1
- package/dist/src/bitgo/utils/tss/ecdsa/index.js +11 -2
- package/dist/src/bitgo/utils/tss/ecdsa/types.d.ts +7 -10
- 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 +151 -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 +119 -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 +43 -11
- package/dist/src/bitgo/utils/tss/eddsa/eddsa.d.ts.map +1 -1
- package/dist/src/bitgo/utils/tss/eddsa/eddsa.js +267 -96
- package/dist/src/bitgo/utils/tss/eddsa/eddsaMPCv2.d.ts +265 -0
- package/dist/src/bitgo/utils/tss/eddsa/eddsaMPCv2.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/eddsa/eddsaMPCv2.js +1025 -0
- package/dist/src/bitgo/utils/tss/eddsa/eddsaMPCv2KeyGenSender.d.ts +14 -0
- package/dist/src/bitgo/utils/tss/eddsa/eddsaMPCv2KeyGenSender.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/eddsa/eddsaMPCv2KeyGenSender.js +29 -0
- package/dist/src/bitgo/utils/tss/eddsa/eddsaVrfMPCv2.d.ts +44 -0
- package/dist/src/bitgo/utils/tss/eddsa/eddsaVrfMPCv2.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/eddsa/eddsaVrfMPCv2.js +268 -0
- package/dist/src/bitgo/utils/tss/eddsa/index.d.ts +5 -0
- package/dist/src/bitgo/utils/tss/eddsa/index.d.ts.map +1 -1
- package/dist/src/bitgo/utils/tss/eddsa/index.js +30 -8
- package/dist/src/bitgo/utils/tss/eddsa/types.d.ts +15 -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 +75 -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/encryptedSessionSingleUse.d.ts +29 -0
- package/dist/src/bitgo/utils/tss/encryptedSessionSingleUse.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/encryptedSessionSingleUse.js +163 -0
- package/dist/src/bitgo/utils/tss/index.d.ts +7 -0
- package/dist/src/bitgo/utils/tss/index.d.ts.map +1 -1
- package/dist/src/bitgo/utils/tss/index.js +31 -10
- package/dist/src/bitgo/utils/tss/keyShareEnvelope.d.ts +40 -0
- package/dist/src/bitgo/utils/tss/keyShareEnvelope.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/keyShareEnvelope.js +103 -0
- package/dist/src/bitgo/utils/tss/keyVerification.d.ts +45 -0
- package/dist/src/bitgo/utils/tss/keyVerification.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/keyVerification.js +192 -0
- 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 +46 -0
- package/dist/src/bitgo/utils/tss/recipientUtils.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/recipientUtils.js +208 -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 +126 -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 +27 -0
- package/dist/src/bitgo/utils/tss/redpallas/redpallasMPCv2.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/redpallas/redpallasMPCv2.js +43 -0
- package/dist/src/bitgo/utils/tss/redpallas/redpallasMPCv2KeyGenSender.d.ts +45 -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 +93 -1
- package/dist/src/bitgo/wallet/BuildParams.d.ts.map +1 -1
- package/dist/src/bitgo/wallet/BuildParams.js +106 -11
- package/dist/src/bitgo/wallet/iWallet.d.ts +678 -33
- 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 +311 -16
- package/dist/src/bitgo/wallet/iWallets.d.ts.map +1 -1
- package/dist/src/bitgo/wallet/iWallets.js +84 -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 +74 -0
- package/dist/src/bitgo/wallet/safeKeychain.d.ts.map +1 -0
- package/dist/src/bitgo/wallet/safeKeychain.js +176 -0
- package/dist/src/bitgo/wallet/wallet.d.ts +437 -28
- package/dist/src/bitgo/wallet/wallet.d.ts.map +1 -1
- package/dist/src/bitgo/wallet/wallet.js +2626 -504
- package/dist/src/bitgo/wallet/wallets.d.ts +99 -4
- package/dist/src/bitgo/wallet/wallets.d.ts.map +1 -1
- package/dist/src/bitgo/wallet/wallets.js +1263 -156
- 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/webauthn/base64url.d.ts +16 -0
- package/dist/src/bitgo/webauthn/base64url.d.ts.map +1 -0
- package/dist/src/bitgo/webauthn/base64url.js +27 -0
- package/dist/src/bitgo/webauthn/deriveEnterpriseSalt.d.ts +18 -0
- package/dist/src/bitgo/webauthn/deriveEnterpriseSalt.d.ts.map +1 -0
- package/dist/src/bitgo/webauthn/deriveEnterpriseSalt.js +26 -0
- package/dist/src/bitgo/webauthn/derivePassword.d.ts +11 -0
- package/dist/src/bitgo/webauthn/derivePassword.d.ts.map +1 -0
- package/dist/src/bitgo/webauthn/derivePassword.js +16 -0
- package/dist/src/bitgo/webauthn/index.d.ts +5 -0
- package/dist/src/bitgo/webauthn/index.d.ts.map +1 -0
- package/dist/src/bitgo/webauthn/index.js +21 -0
- package/dist/src/bitgo/webauthn/types.d.ts +18 -0
- package/dist/src/bitgo/webauthn/types.d.ts.map +1 -0
- package/dist/src/bitgo/webauthn/types.js +3 -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 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +45 -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/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.js +91 -29
- 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 +863 -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 +276 -0
- package/dist/test/unit/bitgo/keychain/keychains.d.ts +2 -0
- package/dist/test/unit/bitgo/keychain/keychains.d.ts.map +1 -0
- package/dist/test/unit/bitgo/keychain/keychains.js +452 -0
- package/dist/test/unit/bitgo/keychain/upgradeEncryption.d.ts +2 -0
- package/dist/test/unit/bitgo/keychain/upgradeEncryption.d.ts.map +1 -0
- package/dist/test/unit/bitgo/keychain/upgradeEncryption.js +21 -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/derivableEd25519Pub.d.ts +2 -0
- package/dist/test/unit/bitgo/safe/derivableEd25519Pub.d.ts.map +1 -0
- package/dist/test/unit/bitgo/safe/derivableEd25519Pub.js +268 -0
- package/dist/test/unit/bitgo/safe/fixtures/derivableEd25519Pub.json +72 -0
- package/dist/test/unit/bitgo/safe/fixtures/safeBip44Vectors.json +319 -0
- package/dist/test/unit/bitgo/safe/keycard.d.ts +2 -0
- package/dist/test/unit/bitgo/safe/keycard.d.ts.map +1 -0
- package/dist/test/unit/bitgo/safe/keycard.js +530 -0
- package/dist/test/unit/bitgo/safe/recovery.d.ts +2 -0
- package/dist/test/unit/bitgo/safe/recovery.d.ts.map +1 -0
- package/dist/test/unit/bitgo/safe/recovery.js +1204 -0
- package/dist/test/unit/bitgo/safe/rootCoin.d.ts +2 -0
- package/dist/test/unit/bitgo/safe/rootCoin.d.ts.map +1 -0
- package/dist/test/unit/bitgo/safe/rootCoin.js +13 -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 +626 -0
- package/dist/test/unit/bitgo/safe/safeBip44Vectors.d.ts +2 -0
- package/dist/test/unit/bitgo/safe/safeBip44Vectors.d.ts.map +1 -0
- package/dist/test/unit/bitgo/safe/safeBip44Vectors.js +189 -0
- package/dist/test/unit/bitgo/safe/safeDerivation.d.ts +2 -0
- package/dist/test/unit/bitgo/safe/safeDerivation.d.ts.map +1 -0
- package/dist/test/unit/bitgo/safe/safeDerivation.js +37 -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 +718 -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/tss/common.d.ts +2 -0
- package/dist/test/unit/bitgo/tss/common.d.ts.map +1 -0
- package/dist/test/unit/bitgo/tss/common.js +133 -0
- package/dist/test/unit/bitgo/tss/redpallas/redpallasMPCv2.d.ts +2 -0
- package/dist/test/unit/bitgo/tss/redpallas/redpallasMPCv2.d.ts.map +1 -0
- package/dist/test/unit/bitgo/tss/redpallas/redpallasMPCv2.js +370 -0
- package/dist/test/unit/bitgo/utils/abstractUtxoCoinUtil.js +45 -4
- 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/mpcUtils.canton.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/mpcUtils.canton.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/mpcUtils.canton.js +90 -0
- package/dist/test/unit/bitgo/utils/mpcUtils.enableToken.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/mpcUtils.enableToken.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/mpcUtils.enableToken.js +115 -0
- package/dist/test/unit/bitgo/utils/mpcUtils.unwrap.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/mpcUtils.unwrap.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/mpcUtils.unwrap.js +109 -0
- package/dist/test/unit/bitgo/utils/mpcUtils.wrapApprove.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/mpcUtils.wrapApprove.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/mpcUtils.wrapApprove.js +106 -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.js +24 -10
- package/dist/test/unit/bitgo/utils/siws.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/siws.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/siws.js +206 -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 +521 -0
- package/dist/test/unit/bitgo/utils/tss/ecdsa/ecdsa.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/tss/ecdsa/ecdsa.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/tss/ecdsa/ecdsa.js +141 -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 +1318 -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 +2682 -0
- package/dist/test/unit/bitgo/utils/tss/eddsa/eddsaVrfMPCv2.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/tss/eddsa/eddsaVrfMPCv2.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/tss/eddsa/eddsaVrfMPCv2.js +553 -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 +376 -0
- package/dist/test/unit/bitgo/utils/tss/keyShareEnvelope.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/tss/keyShareEnvelope.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/tss/keyShareEnvelope.js +83 -0
- package/dist/test/unit/bitgo/utils/tss/keyVerification.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/tss/keyVerification.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/tss/keyVerification.js +229 -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 +578 -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 +80 -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 +279 -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 +167 -0
- package/dist/test/unit/bitgo/wallet/SendTransactionRequest.js +79 -9
- package/dist/test/unit/bitgo/wallet/custodialInitiate.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/custodialInitiate.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/custodialInitiate.js +87 -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/getPotentialStuckTxs.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/getPotentialStuckTxs.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/getPotentialStuckTxs.js +88 -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 +186 -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 +757 -0
- package/dist/test/unit/bitgo/wallet/safeShareWallet.d.ts +9 -0
- package/dist/test/unit/bitgo/wallet/safeShareWallet.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/safeShareWallet.js +486 -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 +210 -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 +69 -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/walletVerifyKey.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/walletVerifyKey.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/walletVerifyKey.js +160 -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 +354 -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 +853 -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.map +1 -1
- package/dist/test/unit/units.js +64 -64
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +25 -22
- package/.eslintignore +0 -5
- package/CHANGELOG.md +0 -1866
- 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/util/ed25519KeyDeriver.d.ts +0 -49
- package/dist/src/account-lib/util/ed25519KeyDeriver.d.ts.map +0 -1
- package/dist/src/account-lib/util/ed25519KeyDeriver.js +0 -87
- 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/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 -5
- package/dist/src/openssl/index.d.ts.map +0 -1
- package/dist/src/openssl/index.js +0 -9
- package/dist/test/unit/openssl.d.ts +0 -2
- package/dist/test/unit/openssl.d.ts.map +0 -1
- package/dist/test/unit/openssl.js +0 -39
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { AttestationPayload } from './BuildParams';
|
|
2
|
+
import { EncryptionVersion, IRequestTracer } from '../../api';
|
|
3
|
+
import { CreateLightningInvoiceParams, LightningInvoiceResponse } from '../../lightning';
|
|
4
|
+
import { IBaseCoin, ITransactionRecipient, Message, SignedMessage, SignedTransaction, TransactionParams, TransactionPrebuild, VerificationOptions, TypedData, NFTTransferOptions, UnifiedRecipientPreference } from '../baseCoin';
|
|
3
5
|
import { BitGoBase } from '../bitgoBase';
|
|
4
|
-
import { Keychain } from '../keychain';
|
|
6
|
+
import { KeyEncryptionUpgradeResult, Keychain, KeychainWithEncryptedPrv } from '../keychain';
|
|
5
7
|
import { IPendingApproval, PendingApprovalData } from '../pendingApproval';
|
|
6
|
-
import {
|
|
8
|
+
import { IDefiVault } from '../defi';
|
|
9
|
+
import { IGoStakingWallet, IStakingWallet } from '../staking';
|
|
7
10
|
import { ITradingAccount } from '../trading';
|
|
8
|
-
import { CustomCommitmentGeneratingFunction, CustomGShareGeneratingFunction, CustomKShareGeneratingFunction, CustomMuDeltaShareGeneratingFunction, CustomPaillierModulusGetterFunction, CustomRShareGeneratingFunction, CustomSShareGeneratingFunction, TokenEnablement, TokenTransferRecipientParams } from '../utils';
|
|
9
|
-
import { ILightning } from '../lightning';
|
|
11
|
+
import { CantonCommandParams, CustomCommitmentGeneratingFunction, CustomEddsaMPCv2SigningRound1GeneratingFunction, CustomEddsaMPCv2SigningRound2GeneratingFunction, CustomEddsaMPCv2SigningRound3GeneratingFunction, CustomGShareGeneratingFunction, CustomKShareGeneratingFunction, CustomMPCv2SigningRound1GeneratingFunction, CustomMPCv2SigningRound2GeneratingFunction, CustomMPCv2SigningRound3GeneratingFunction, CustomMuDeltaShareGeneratingFunction, CustomPaillierModulusGetterFunction, CustomRShareGeneratingFunction, CustomSShareGeneratingFunction, TokenEnablement, TokenTransferRecipientParams, TxRequest } from '../utils';
|
|
10
12
|
import { SerializedNtilde } from '../../account-lib/mpc/tss/ecdsa/types';
|
|
11
13
|
import { IAddressBook } from '../address-book';
|
|
14
|
+
import { WalletUser, AddressQueryResult } from '@bitgo/public-types';
|
|
15
|
+
import { SubmitTransactionResponse } from '../inscriptionBuilder';
|
|
12
16
|
export interface MaximumSpendableOptions {
|
|
13
17
|
minValue?: number | string;
|
|
14
18
|
maxValue?: number | string;
|
|
@@ -32,16 +36,43 @@ export interface Memo {
|
|
|
32
36
|
}
|
|
33
37
|
export interface BuildConsolidationTransactionOptions extends PrebuildTransactionOptions, WalletSignTransactionOptions {
|
|
34
38
|
consolidateAddresses?: string[];
|
|
39
|
+
consolidationMode?: 'single-asset' | 'legacy-multi-asset';
|
|
40
|
+
}
|
|
41
|
+
export interface ResourceDelegationEntry {
|
|
42
|
+
receiverAddress: string;
|
|
43
|
+
amount: string;
|
|
44
|
+
/** Resource type to delegate (e.g. 'ENERGY', 'BANDWIDTH'). */
|
|
45
|
+
resource: string;
|
|
46
|
+
}
|
|
47
|
+
export interface BuildResourceDelegationTransactionOptions extends PrebuildTransactionOptions, WalletSignTransactionOptions {
|
|
48
|
+
delegations: ResourceDelegationEntry[];
|
|
49
|
+
}
|
|
50
|
+
export interface BuildResourceUndelegationTransactionOptions extends PrebuildTransactionOptions, WalletSignTransactionOptions {
|
|
51
|
+
undelegations: ResourceDelegationEntry[];
|
|
52
|
+
}
|
|
53
|
+
export interface ResourceManagementSendResult {
|
|
54
|
+
txid?: string;
|
|
55
|
+
status?: string;
|
|
56
|
+
tx?: string;
|
|
57
|
+
txRequestId?: string;
|
|
58
|
+
pendingApprovalId?: string;
|
|
59
|
+
}
|
|
60
|
+
export interface BuildResourceManagementTransactionResult {
|
|
61
|
+
prebuilds: PrebuildTransactionResult[];
|
|
62
|
+
buildFailures: {
|
|
63
|
+
message: string;
|
|
64
|
+
receiverAddress?: string;
|
|
65
|
+
}[];
|
|
35
66
|
}
|
|
36
67
|
export interface BuildTokenEnablementOptions extends PrebuildTransactionOptions {
|
|
37
68
|
enableTokens: TokenEnablement[];
|
|
38
69
|
}
|
|
39
|
-
|
|
70
|
+
type BaseBalance = {
|
|
40
71
|
balanceString: string;
|
|
41
72
|
confirmedBalanceString: string;
|
|
42
73
|
spendableBalanceString: string;
|
|
43
74
|
};
|
|
44
|
-
export
|
|
75
|
+
export type NftBalance = BaseBalance & {
|
|
45
76
|
type: string;
|
|
46
77
|
metadata: {
|
|
47
78
|
name: string;
|
|
@@ -51,7 +82,22 @@ export declare type NftBalance = BaseBalance & {
|
|
|
51
82
|
[tokenId: string]: number;
|
|
52
83
|
};
|
|
53
84
|
};
|
|
54
|
-
export
|
|
85
|
+
export type ApiVersion = 'lite' | 'full';
|
|
86
|
+
/** Parameters for sBTC bridging (BTC to sBTC). */
|
|
87
|
+
export interface SbtcBridgingParams {
|
|
88
|
+
/** Amount in satoshis to bridge */
|
|
89
|
+
amount: number | string;
|
|
90
|
+
/** Stacks recipient address */
|
|
91
|
+
stacksRecipient: string;
|
|
92
|
+
/** Maximum fee in satoshis */
|
|
93
|
+
maxFee: number | string;
|
|
94
|
+
/** Lock time for the bridging transaction */
|
|
95
|
+
lockTime: number;
|
|
96
|
+
}
|
|
97
|
+
/** Parameters for cross-chain bridging transactions. */
|
|
98
|
+
export interface BridgingParams {
|
|
99
|
+
sbtc?: SbtcBridgingParams;
|
|
100
|
+
}
|
|
55
101
|
export interface PrebuildTransactionOptions {
|
|
56
102
|
reqId?: IRequestTracer;
|
|
57
103
|
recipients?: {
|
|
@@ -73,7 +119,36 @@ export interface PrebuildTransactionOptions {
|
|
|
73
119
|
gasPrice?: number;
|
|
74
120
|
noSplitChange?: boolean;
|
|
75
121
|
unspents?: any[];
|
|
122
|
+
/**
|
|
123
|
+
* The receive address from which funds will be withdrawn.
|
|
124
|
+
* This feature is supported only for specific coins, like ADA.
|
|
125
|
+
*/
|
|
126
|
+
senderAddress?: string;
|
|
127
|
+
/**
|
|
128
|
+
* Solana wire-version marker for structured intents (SIMD-0296/0385): 1 builds the
|
|
129
|
+
* v1 envelope server-side, 0/absent keeps the v0 path. Forwarded to the intent as
|
|
130
|
+
* `version`; only the SOL coin consumes it.
|
|
131
|
+
*/
|
|
132
|
+
version?: 0 | 1;
|
|
133
|
+
/**
|
|
134
|
+
* User IDs of the Video ID approvers selected for this withdrawal. Each must be in the enterprise's
|
|
135
|
+
* approved Video ID user list. When omitted, the "Video ID required" email goes to the enterprise's
|
|
136
|
+
* primary contact. Currently forwarded for TSS `transfer` and `transfertoken` transactions only.
|
|
137
|
+
*/
|
|
138
|
+
videoApprovers?: string[];
|
|
139
|
+
/**
|
|
140
|
+
* The wallet ID of the sender wallet when sender wallet is different from current wallet id.
|
|
141
|
+
* @type {string}
|
|
142
|
+
* @default {undefined}
|
|
143
|
+
* @description For BTC unstaking, the sender wallet(a descriptor wallet) is different from original wallet
|
|
144
|
+
* */
|
|
145
|
+
senderWalletId?: string;
|
|
146
|
+
messages?: {
|
|
147
|
+
address: string;
|
|
148
|
+
message: string;
|
|
149
|
+
}[];
|
|
76
150
|
changeAddress?: string;
|
|
151
|
+
allowExternalChangeAddress?: boolean;
|
|
77
152
|
type?: string;
|
|
78
153
|
closeRemainderTo?: string;
|
|
79
154
|
nonParticipation?: boolean;
|
|
@@ -95,9 +170,18 @@ export interface PrebuildTransactionOptions {
|
|
|
95
170
|
idfUserId?: string;
|
|
96
171
|
idfVersion?: number;
|
|
97
172
|
comment?: string;
|
|
173
|
+
/** WebAuthn proof for a withdrawal; pass-through only. */
|
|
174
|
+
attestation?: AttestationPayload;
|
|
98
175
|
[index: string]: unknown;
|
|
99
176
|
tokenName?: string;
|
|
177
|
+
nftCollectionId?: string;
|
|
178
|
+
nftId?: string;
|
|
100
179
|
enableTokens?: TokenEnablement[];
|
|
180
|
+
/**
|
|
181
|
+
* Solana CT: also run ConfigureAccount after ATA creation (TDD decision #25).
|
|
182
|
+
* Opt-out flag for non-CMB mints; default true server-side. CMB mints always configure.
|
|
183
|
+
*/
|
|
184
|
+
configureAccount?: boolean;
|
|
101
185
|
nonce?: string;
|
|
102
186
|
preview?: boolean;
|
|
103
187
|
eip1559?: EIP1559;
|
|
@@ -107,6 +191,11 @@ export interface PrebuildTransactionOptions {
|
|
|
107
191
|
isTss?: boolean;
|
|
108
192
|
custodianTransactionId?: string;
|
|
109
193
|
apiVersion?: ApiVersion;
|
|
194
|
+
stakingParams?: unknown;
|
|
195
|
+
/**
|
|
196
|
+
* PoX-5 unstaking parameters, e.g. `{ pox5: { branch: 'early-exit', principalPreimage } }`.
|
|
197
|
+
*/
|
|
198
|
+
unstakingParams?: unknown;
|
|
110
199
|
/**
|
|
111
200
|
* If set to false, sweep all funds including the required minimums for address(es). E.g. Polkadot (DOT) requires 1 DOT minimum.
|
|
112
201
|
*/
|
|
@@ -115,31 +204,165 @@ export interface PrebuildTransactionOptions {
|
|
|
115
204
|
* This comment applies to UTXO coins. It's asking which transaction format to use:
|
|
116
205
|
* the legacy format defined by bitcoinjs-lib, or the 'psbt' format, which follows the BIP-174.
|
|
117
206
|
*/
|
|
118
|
-
txFormat?: 'legacy' | 'psbt';
|
|
207
|
+
txFormat?: 'legacy' | 'psbt' | 'psbt-lite';
|
|
208
|
+
/**
|
|
209
|
+
* how to resolve a Unified Address recipient for zec.
|
|
210
|
+
*/
|
|
211
|
+
unifiedRecipientPreference?: UnifiedRecipientPreference;
|
|
212
|
+
/**
|
|
213
|
+
* Custom Solana instructions to include in the transaction.
|
|
214
|
+
* Each instruction contains a program ID, accounts array, and data buffer.
|
|
215
|
+
*/
|
|
216
|
+
solInstructions?: {
|
|
217
|
+
programId: string;
|
|
218
|
+
keys: {
|
|
219
|
+
pubkey: string;
|
|
220
|
+
isSigner: boolean;
|
|
221
|
+
isWritable: boolean;
|
|
222
|
+
}[];
|
|
223
|
+
data: string;
|
|
224
|
+
}[];
|
|
225
|
+
/**
|
|
226
|
+
* Solana versioned transaction data for building transactions with Address Lookup Tables.
|
|
227
|
+
* Contains compiled instructions, address lookup tables, static account keys, and message header.
|
|
228
|
+
*/
|
|
229
|
+
solVersionedTransactionData?: {
|
|
230
|
+
versionedInstructions: {
|
|
231
|
+
programIdIndex: number;
|
|
232
|
+
accountKeyIndexes: number[];
|
|
233
|
+
data: string;
|
|
234
|
+
}[];
|
|
235
|
+
addressLookupTables: {
|
|
236
|
+
accountKey: string;
|
|
237
|
+
writableIndexes: number[];
|
|
238
|
+
readonlyIndexes: number[];
|
|
239
|
+
}[];
|
|
240
|
+
staticAccountKeys: string[];
|
|
241
|
+
messageHeader: {
|
|
242
|
+
numRequiredSignatures: number;
|
|
243
|
+
numReadonlySignedAccounts: number;
|
|
244
|
+
numReadonlyUnsignedAccounts: number;
|
|
245
|
+
};
|
|
246
|
+
recentBlockhash?: string;
|
|
247
|
+
/** Transaction version. Absent or 0 = v0 (existing), 1 = v1 */
|
|
248
|
+
version?: 0 | 1;
|
|
249
|
+
/** V1 transaction config. Required when version === 1 */
|
|
250
|
+
transactionConfig?: {
|
|
251
|
+
computeUnitLimit: number | null;
|
|
252
|
+
heapSize: number | null;
|
|
253
|
+
loadedAccountsDataSizeLimit: number | null;
|
|
254
|
+
priorityFee: number | null;
|
|
255
|
+
};
|
|
256
|
+
};
|
|
257
|
+
/**
|
|
258
|
+
* Custom transaction parameters for Aptos entry function calls.
|
|
259
|
+
* Used with the customTx intent type for Aptos smart contract interactions.
|
|
260
|
+
*/
|
|
261
|
+
aptosCustomTransactionParams?: {
|
|
262
|
+
moduleName: string;
|
|
263
|
+
functionName: string;
|
|
264
|
+
typeArguments?: string[];
|
|
265
|
+
functionArguments?: any[];
|
|
266
|
+
abi?: any;
|
|
267
|
+
};
|
|
268
|
+
txRequestId?: string;
|
|
269
|
+
isTestTransaction?: boolean;
|
|
270
|
+
qr?: boolean;
|
|
271
|
+
transferOfferId?: string;
|
|
272
|
+
/**
|
|
273
|
+
* Amount for intents that use a top-level amount instead of recipients (e.g. bridgeFunds).
|
|
274
|
+
* Named intentAmount to avoid collision with SendOptions.amount which is string | number.
|
|
275
|
+
*/
|
|
276
|
+
intentAmount?: {
|
|
277
|
+
value: string;
|
|
278
|
+
symbol: string;
|
|
279
|
+
};
|
|
280
|
+
/**
|
|
281
|
+
* TIP-20 token address to use for paying transaction fees (Tempo only).
|
|
282
|
+
* When specified, fees will be deducted in this token instead of the native currency.
|
|
283
|
+
*/
|
|
284
|
+
feeToken?: string;
|
|
285
|
+
/**
|
|
286
|
+
* Parameters for bridging transactions (e.g., BTC to sBTC).
|
|
287
|
+
* Used with type: 'bridging' for cross-chain bridging operations.
|
|
288
|
+
*/
|
|
289
|
+
bridgingParams?: BridgingParams;
|
|
290
|
+
/**
|
|
291
|
+
* ERC-7984 wrap / wrapApprove parameters (`type: 'wrapApprove' | 'wrap'`).
|
|
292
|
+
* Passed through to WP as tokenName + amount on the intent.
|
|
293
|
+
*/
|
|
294
|
+
wrapParams?: {
|
|
295
|
+
tokenName: string;
|
|
296
|
+
amount: string;
|
|
297
|
+
};
|
|
298
|
+
/**
|
|
299
|
+
* ERC-7984 unwrap (unshield) parameters (`type: 'unwrap'`).
|
|
300
|
+
* Passed through to WP as tokenName + amount on the intent.
|
|
301
|
+
*/
|
|
302
|
+
unwrapParams?: {
|
|
303
|
+
tokenName: string;
|
|
304
|
+
amount: string;
|
|
305
|
+
};
|
|
306
|
+
/**
|
|
307
|
+
* Parameters for executing DAML commands on Canton.
|
|
308
|
+
*/
|
|
309
|
+
cantonCommandParams?: CantonCommandParams;
|
|
310
|
+
/** External settlement executor party ID (cantonBroadridgeStandingDelegation intent). */
|
|
311
|
+
executorPartyId?: string;
|
|
312
|
+
/** Canton party ID of the end investor to onboard (cantonEndInvestorOnboardingOffer intent). */
|
|
313
|
+
endInvestorPartyId?: string;
|
|
314
|
+
/** Reason for rejecting the onboarding offer (cantonEndInvestorOnboardingReject intent). */
|
|
315
|
+
reason?: string;
|
|
316
|
+
/** DTCC operator party ID (cantonParticipantOnboardingRequest intent). */
|
|
317
|
+
operator?: string;
|
|
318
|
+
/** DTCC provider party ID (cantonParticipantOnboardingRequest intent). */
|
|
319
|
+
provider?: string;
|
|
320
|
+
/** DTCC compliance party ID (cantonParticipantOnboardingRequest intent). */
|
|
321
|
+
compliance?: string;
|
|
322
|
+
/** DTCC registrar party ID (cantonParticipantOnboardingRequest intent). */
|
|
323
|
+
registrar?: string;
|
|
324
|
+
/** DTCC client onboarder party ID (cantonParticipantOnboardingRequest intent). */
|
|
325
|
+
clientOnboarder?: string;
|
|
326
|
+
/** Optional ISO 8601 expiration timestamp (cantonParticipantOnboardingRequest intent). */
|
|
327
|
+
expirationIso?: string;
|
|
119
328
|
}
|
|
120
329
|
export interface PrebuildAndSignTransactionOptions extends PrebuildTransactionOptions, WalletSignTransactionOptions {
|
|
121
330
|
prebuildTx?: string | PrebuildTransactionResult;
|
|
122
331
|
verification?: VerificationOptions;
|
|
123
332
|
}
|
|
124
|
-
|
|
333
|
+
/** Fee fields returned on {@link PrebuildTransactionResult} (withdraw / send previews). */
|
|
334
|
+
export type PrebuildTransactionFeeInfo = {
|
|
335
|
+
fee?: number;
|
|
336
|
+
feeString?: string;
|
|
337
|
+
};
|
|
338
|
+
export type PrebuildTransactionResult = TransactionPrebuild & {
|
|
125
339
|
walletId: string;
|
|
126
340
|
consolidateId?: string;
|
|
341
|
+
stakingRequestId?: string;
|
|
127
342
|
consolidationDetails?: {
|
|
128
343
|
senderAddressIndex: number;
|
|
129
344
|
};
|
|
130
|
-
feeInfo?:
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
345
|
+
feeInfo?: PrebuildTransactionFeeInfo;
|
|
346
|
+
pendingApprovalId?: string;
|
|
347
|
+
reqId?: IRequestTracer;
|
|
348
|
+
payload?: string;
|
|
349
|
+
stakingParams?: unknown;
|
|
350
|
+
recipients?: ITransactionRecipient[];
|
|
351
|
+
};
|
|
135
352
|
export interface CustomSigningFunction {
|
|
136
353
|
(params: {
|
|
137
354
|
coin: IBaseCoin;
|
|
138
355
|
txPrebuild: TransactionPrebuild;
|
|
139
356
|
pubs?: string[];
|
|
140
357
|
derivationSeed?: string;
|
|
358
|
+
signingStep?: 'signerNonce' | 'signerSignature' | 'cosignerNonce';
|
|
141
359
|
}): Promise<SignedTransaction>;
|
|
142
360
|
}
|
|
361
|
+
export interface UpgradeUserKeyEncryptionOptions {
|
|
362
|
+
/** The wallet passphrase that decrypts the user key. */
|
|
363
|
+
walletPassphrase: string;
|
|
364
|
+
reqId?: IRequestTracer;
|
|
365
|
+
}
|
|
143
366
|
export interface WalletSignBaseOptions {
|
|
144
367
|
reqId?: IRequestTracer;
|
|
145
368
|
prv?: string;
|
|
@@ -148,8 +371,16 @@ export interface WalletSignBaseOptions {
|
|
|
148
371
|
cosignerPub?: string;
|
|
149
372
|
isLastSignature?: boolean;
|
|
150
373
|
customSigningFunction?: CustomSigningFunction;
|
|
374
|
+
bulk?: boolean;
|
|
375
|
+
/**
|
|
376
|
+
* Upgrade the stored encryption of your user key to the latest format after signing with your
|
|
377
|
+
* wallet passphrase. Defaults to the `upgradeEncryptionOnSign` setting.
|
|
378
|
+
*/
|
|
379
|
+
upgradeEncryption?: boolean;
|
|
151
380
|
}
|
|
152
381
|
export interface WalletSignTransactionOptions extends WalletSignBaseOptions {
|
|
382
|
+
/** Optional WebAuthn proof for the first TSS withdrawal-signing round; pass-through only. */
|
|
383
|
+
attestation?: AttestationPayload;
|
|
153
384
|
txPrebuild?: TransactionPrebuild;
|
|
154
385
|
customCommitmentGeneratingFunction?: CustomCommitmentGeneratingFunction;
|
|
155
386
|
customRShareGeneratingFunction?: CustomRShareGeneratingFunction;
|
|
@@ -158,10 +389,31 @@ export interface WalletSignTransactionOptions extends WalletSignBaseOptions {
|
|
|
158
389
|
customKShareGeneratingFunction?: CustomKShareGeneratingFunction;
|
|
159
390
|
customMuDeltaShareGeneratingFunction?: CustomMuDeltaShareGeneratingFunction;
|
|
160
391
|
customSShareGeneratingFunction?: CustomSShareGeneratingFunction;
|
|
392
|
+
customMPCv2SigningRound1GenerationFunction?: CustomMPCv2SigningRound1GeneratingFunction;
|
|
393
|
+
customMPCv2SigningRound2GenerationFunction?: CustomMPCv2SigningRound2GeneratingFunction;
|
|
394
|
+
customMPCv2SigningRound3GenerationFunction?: CustomMPCv2SigningRound3GeneratingFunction;
|
|
395
|
+
customEddsaMPCv2SigningRound1GenerationFunction?: CustomEddsaMPCv2SigningRound1GeneratingFunction;
|
|
396
|
+
customEddsaMPCv2SigningRound2GenerationFunction?: CustomEddsaMPCv2SigningRound2GeneratingFunction;
|
|
397
|
+
customEddsaMPCv2SigningRound3GenerationFunction?: CustomEddsaMPCv2SigningRound3GeneratingFunction;
|
|
161
398
|
apiVersion?: ApiVersion;
|
|
399
|
+
multisigTypeVersion?: 'MPCv2';
|
|
400
|
+
walletPassphrase?: string;
|
|
401
|
+
/**
|
|
402
|
+
* Optional transaction verification parameters. When provided, the transaction will be verified
|
|
403
|
+
* using verifyTransaction before signing.
|
|
404
|
+
*/
|
|
405
|
+
verifyTxParams?: {
|
|
406
|
+
txParams: TransactionParams;
|
|
407
|
+
verification?: VerificationOptions;
|
|
408
|
+
};
|
|
162
409
|
[index: string]: unknown;
|
|
163
410
|
}
|
|
164
411
|
interface WalletSignMessageBase extends WalletSignBaseOptions {
|
|
412
|
+
/**
|
|
413
|
+
* Identifies a new WalletConnect message signing request for classification, not authorization.
|
|
414
|
+
* When resuming an existing request by txRequestId, its original metadata is retained.
|
|
415
|
+
*/
|
|
416
|
+
isWalletConnectTx?: true;
|
|
165
417
|
walletPassphrase?: string;
|
|
166
418
|
custodianMessageId?: string;
|
|
167
419
|
customPaillierModulusGeneratingFunction?: CustomPaillierModulusGetterFunction;
|
|
@@ -175,6 +427,21 @@ export interface WalletSignMessageOptions extends WalletSignMessageBase {
|
|
|
175
427
|
export interface WalletSignTypedDataOptions extends WalletSignMessageBase {
|
|
176
428
|
typedData: TypedData;
|
|
177
429
|
}
|
|
430
|
+
export interface SignAndSendTxRequestOptions {
|
|
431
|
+
txRequestId: string;
|
|
432
|
+
walletPassphrase: string;
|
|
433
|
+
isTxRequestFull: boolean;
|
|
434
|
+
/**
|
|
435
|
+
* Optional WebAuthn proof from the current signer for the request's withdrawal intent;
|
|
436
|
+
* pass-through only. Sent on the first signing round only, never on the lite submit.
|
|
437
|
+
*/
|
|
438
|
+
attestation?: AttestationPayload;
|
|
439
|
+
}
|
|
440
|
+
export interface SignAndSendMessageTxRequestOptions {
|
|
441
|
+
txRequestId: string;
|
|
442
|
+
walletPassphrase: string;
|
|
443
|
+
reqId?: IRequestTracer;
|
|
444
|
+
}
|
|
178
445
|
export interface GetUserPrvOptions {
|
|
179
446
|
keychain?: Keychain;
|
|
180
447
|
key?: Keychain;
|
|
@@ -182,6 +449,21 @@ export interface GetUserPrvOptions {
|
|
|
182
449
|
coldDerivationSeed?: string;
|
|
183
450
|
walletPassphrase?: string;
|
|
184
451
|
}
|
|
452
|
+
export interface VerifyKeyOptions {
|
|
453
|
+
/**
|
|
454
|
+
* User TSS signing material: the same string that would be passed as `prv` when signing a
|
|
455
|
+
* transaction. TSS EdDSA (MPCv1) wallets only.
|
|
456
|
+
*/
|
|
457
|
+
prv: string;
|
|
458
|
+
reqId?: IRequestTracer;
|
|
459
|
+
}
|
|
460
|
+
export interface VerifyKeyResult {
|
|
461
|
+
/**
|
|
462
|
+
* Whether the signing material recombines to the wallet's commonKeychain. A consistency
|
|
463
|
+
* check, not proof of possession — never use it as an authorization signal.
|
|
464
|
+
*/
|
|
465
|
+
match: boolean;
|
|
466
|
+
}
|
|
185
467
|
export interface WalletCoinSpecific {
|
|
186
468
|
tokenFlushThresholds?: any;
|
|
187
469
|
addressVersion?: number;
|
|
@@ -191,13 +473,57 @@ export interface WalletCoinSpecific {
|
|
|
191
473
|
walletVersion?: number;
|
|
192
474
|
hashAlgorithm?: string;
|
|
193
475
|
pendingEcdsaTssInitialization?: boolean;
|
|
476
|
+
features?: string[];
|
|
477
|
+
freezeDepositsFromShielded?: boolean;
|
|
478
|
+
userKeySigningRequired?: boolean;
|
|
479
|
+
/**
|
|
480
|
+
* Lightning coin specific data starts
|
|
481
|
+
*/
|
|
482
|
+
keys?: string[];
|
|
483
|
+
encryptedSignerAdminMacaroon?: string | null;
|
|
484
|
+
encryptedSignerMacaroon?: string | null;
|
|
485
|
+
watchOnlyExternalIp?: string | null;
|
|
486
|
+
signerHost?: string | null;
|
|
487
|
+
encryptedSignerTlsKey?: string | null;
|
|
488
|
+
signerTlsCert?: string | null;
|
|
489
|
+
watchOnlyAccounts?: Record<string, unknown> | null;
|
|
490
|
+
signedUserAuthKey?: string;
|
|
194
491
|
}
|
|
195
492
|
export interface PaginationOptions {
|
|
493
|
+
page?: number;
|
|
196
494
|
prevId?: string;
|
|
197
495
|
limit?: number;
|
|
198
496
|
}
|
|
199
497
|
export interface GetTransactionOptions extends PaginationOptions {
|
|
200
498
|
txHash?: string;
|
|
499
|
+
includeRbf?: boolean;
|
|
500
|
+
}
|
|
501
|
+
export interface GetPotentialStuckTxsOptions {
|
|
502
|
+
/** Only return transactions unconfirmed longer than this many minutes. */
|
|
503
|
+
minUnconfirmedMinutes?: number;
|
|
504
|
+
/** Only return transactions unconfirmed longer than this many blocks. */
|
|
505
|
+
minUnconfirmedBlocks?: number;
|
|
506
|
+
expandSendTransferMetadata?: boolean;
|
|
507
|
+
txid?: string;
|
|
508
|
+
}
|
|
509
|
+
export interface GetPotentialStuckTxsResult {
|
|
510
|
+
txId?: string;
|
|
511
|
+
cause?: string;
|
|
512
|
+
message?: string;
|
|
513
|
+
nonce?: number;
|
|
514
|
+
txHex?: string;
|
|
515
|
+
txType?: string;
|
|
516
|
+
sendTransfer?: Record<string, unknown>;
|
|
517
|
+
gasAccelerationFee?: {
|
|
518
|
+
gasPrice?: string;
|
|
519
|
+
maxFeePerGas?: string;
|
|
520
|
+
maxPriorityFeePerGas?: string;
|
|
521
|
+
};
|
|
522
|
+
userActionDisabled?: boolean;
|
|
523
|
+
rbf?: boolean;
|
|
524
|
+
coin?: string;
|
|
525
|
+
wallet?: string;
|
|
526
|
+
isFeeAddress?: boolean;
|
|
201
527
|
}
|
|
202
528
|
export interface TransfersOptions extends PaginationOptions {
|
|
203
529
|
txHash?: string;
|
|
@@ -211,6 +537,7 @@ export interface TransfersOptions extends PaginationOptions {
|
|
|
211
537
|
includeHex?: boolean;
|
|
212
538
|
state?: string[] | string;
|
|
213
539
|
type?: string;
|
|
540
|
+
decorateUtxoSpecificFields?: boolean;
|
|
214
541
|
}
|
|
215
542
|
export interface GetTransferOptions {
|
|
216
543
|
id?: string;
|
|
@@ -226,6 +553,22 @@ export interface UnspentsOptions extends PaginationOptions {
|
|
|
226
553
|
target?: number | string;
|
|
227
554
|
segwit?: boolean;
|
|
228
555
|
chains?: number[];
|
|
556
|
+
unspentIds?: string[];
|
|
557
|
+
}
|
|
558
|
+
export interface ManageUnspentReservationOptions {
|
|
559
|
+
create?: {
|
|
560
|
+
unspentIds: string[];
|
|
561
|
+
expireTime: string;
|
|
562
|
+
};
|
|
563
|
+
modify?: {
|
|
564
|
+
unspentIds: string[];
|
|
565
|
+
changes: {
|
|
566
|
+
expireTime: string;
|
|
567
|
+
};
|
|
568
|
+
};
|
|
569
|
+
delete?: {
|
|
570
|
+
id: string;
|
|
571
|
+
};
|
|
229
572
|
}
|
|
230
573
|
export interface ConsolidateUnspentsOptions extends WalletSignTransactionOptions {
|
|
231
574
|
walletPassphrase?: string;
|
|
@@ -254,6 +597,7 @@ export interface FanoutUnspentsOptions extends WalletSignTransactionOptions {
|
|
|
254
597
|
maxValue?: number | string;
|
|
255
598
|
minHeight?: number;
|
|
256
599
|
maxNumInputsToUse?: number;
|
|
600
|
+
unspents?: string[];
|
|
257
601
|
numUnspentsToMake?: number;
|
|
258
602
|
minConfirms?: number;
|
|
259
603
|
enforceMinConfirmsForChange?: boolean;
|
|
@@ -296,6 +640,12 @@ export interface AddressesOptions extends PaginationOptions {
|
|
|
296
640
|
returnBalancesForToken?: string;
|
|
297
641
|
pendingDeployment?: boolean;
|
|
298
642
|
}
|
|
643
|
+
export interface AddressesByBalanceOptions extends PaginationOptions {
|
|
644
|
+
token?: string;
|
|
645
|
+
nftCollectionId?: string;
|
|
646
|
+
nftId?: string;
|
|
647
|
+
sort?: number;
|
|
648
|
+
}
|
|
299
649
|
export interface GetAddressOptions {
|
|
300
650
|
address?: string;
|
|
301
651
|
id?: string;
|
|
@@ -309,6 +659,9 @@ export interface FundForwardersOptions {
|
|
|
309
659
|
forwarderAddress: string;
|
|
310
660
|
amount?: string;
|
|
311
661
|
}
|
|
662
|
+
export interface FundForwarderParams {
|
|
663
|
+
forwarders: FundForwardersOptions[];
|
|
664
|
+
}
|
|
312
665
|
export interface FlushForwarderTokenOptions {
|
|
313
666
|
address?: string;
|
|
314
667
|
id?: string;
|
|
@@ -327,6 +680,62 @@ export interface ForwarderBalanceOptions {
|
|
|
327
680
|
minimumBalance?: number;
|
|
328
681
|
maximumBalance?: number;
|
|
329
682
|
}
|
|
683
|
+
export interface GetAccountResourcesOptions {
|
|
684
|
+
addresses: string[];
|
|
685
|
+
destinationAddress?: string;
|
|
686
|
+
}
|
|
687
|
+
export interface AccountResourceInfo {
|
|
688
|
+
address: string;
|
|
689
|
+
freeBandwidthAvailable: number;
|
|
690
|
+
freeBandwidthUsed: number;
|
|
691
|
+
stakedBandwidthAvailable: number;
|
|
692
|
+
stakedBandwidthUsed: number;
|
|
693
|
+
energyAvailable: number;
|
|
694
|
+
energyUsed: number;
|
|
695
|
+
resourceDeficitForAssetTransfer?: {
|
|
696
|
+
bandwidthDeficit: number;
|
|
697
|
+
bandwidthSunRequired: string;
|
|
698
|
+
energyDeficit?: number;
|
|
699
|
+
energySunRequired?: string;
|
|
700
|
+
};
|
|
701
|
+
maxResourcesDelegatable?: {
|
|
702
|
+
bandwidthSun: string;
|
|
703
|
+
energySun: string;
|
|
704
|
+
};
|
|
705
|
+
}
|
|
706
|
+
export interface FailedAddressInfo {
|
|
707
|
+
address: string;
|
|
708
|
+
error: string;
|
|
709
|
+
}
|
|
710
|
+
export interface GetAccountResourcesResponse {
|
|
711
|
+
resources: AccountResourceInfo[];
|
|
712
|
+
failedAddresses: FailedAddressInfo[];
|
|
713
|
+
}
|
|
714
|
+
export interface GetResourceDelegationsOptions {
|
|
715
|
+
type?: 'outgoing' | 'incoming';
|
|
716
|
+
resource?: string;
|
|
717
|
+
limit?: number;
|
|
718
|
+
nextBatchPrevId?: string;
|
|
719
|
+
}
|
|
720
|
+
export interface DelegationRecord {
|
|
721
|
+
id: string;
|
|
722
|
+
coin: string;
|
|
723
|
+
ownerAddress: string;
|
|
724
|
+
receiverAddress: string;
|
|
725
|
+
resource: 'ENERGY' | 'BANDWIDTH';
|
|
726
|
+
balance: string;
|
|
727
|
+
updatedAt: string;
|
|
728
|
+
}
|
|
729
|
+
export interface GetResourceDelegationsResponse {
|
|
730
|
+
address: string;
|
|
731
|
+
coin: string;
|
|
732
|
+
delegations: {
|
|
733
|
+
outgoing: DelegationRecord[];
|
|
734
|
+
incoming: DelegationRecord[];
|
|
735
|
+
nextBatchPrevId?: string;
|
|
736
|
+
};
|
|
737
|
+
}
|
|
738
|
+
export type CreateAddressFormat = 'base58' | 'cashaddr';
|
|
330
739
|
export interface CreateAddressOptions {
|
|
331
740
|
chain?: number;
|
|
332
741
|
gasPrice?: number | string;
|
|
@@ -334,17 +743,28 @@ export interface CreateAddressOptions {
|
|
|
334
743
|
label?: string;
|
|
335
744
|
lowPriority?: boolean;
|
|
336
745
|
forwarderVersion?: number;
|
|
337
|
-
format?:
|
|
746
|
+
format?: CreateAddressFormat;
|
|
338
747
|
baseAddress?: string;
|
|
339
748
|
allowSkipVerifyAddress?: boolean;
|
|
340
749
|
derivedAddress?: string;
|
|
341
750
|
index?: number;
|
|
342
751
|
onToken?: string;
|
|
752
|
+
evmKeyRingReferenceAddress?: string;
|
|
343
753
|
}
|
|
344
754
|
export interface UpdateAddressOptions {
|
|
345
755
|
label?: string;
|
|
346
756
|
address?: string;
|
|
347
757
|
}
|
|
758
|
+
export interface UpdateBuildDefaultOptions {
|
|
759
|
+
minFeeRate?: number;
|
|
760
|
+
changeAddressType?: string;
|
|
761
|
+
txFormat?: 'legacy' | 'psbt' | 'psbt-lite';
|
|
762
|
+
}
|
|
763
|
+
export interface UpdateWalletOptions {
|
|
764
|
+
coinSpecific?: WalletCoinSpecific;
|
|
765
|
+
buildDefaults?: UpdateBuildDefaultOptions;
|
|
766
|
+
label?: string;
|
|
767
|
+
}
|
|
348
768
|
export interface SimulateWebhookOptions {
|
|
349
769
|
webhookId?: string;
|
|
350
770
|
transferId?: string;
|
|
@@ -358,6 +778,13 @@ export interface GetPrvOptions {
|
|
|
358
778
|
prv?: string;
|
|
359
779
|
walletPassphrase?: string;
|
|
360
780
|
}
|
|
781
|
+
export interface SharedKeyChain {
|
|
782
|
+
pub?: string;
|
|
783
|
+
encryptedPrv?: string;
|
|
784
|
+
fromPubKey?: string;
|
|
785
|
+
toPubKey?: string;
|
|
786
|
+
path?: string;
|
|
787
|
+
}
|
|
361
788
|
export interface CreateShareOptions {
|
|
362
789
|
user?: string;
|
|
363
790
|
permissions?: string;
|
|
@@ -388,16 +815,83 @@ export interface ShareWalletOptions {
|
|
|
388
815
|
*/
|
|
389
816
|
skipKeychain?: boolean;
|
|
390
817
|
disableEmail?: boolean;
|
|
818
|
+
/** @deprecated Ignored because the shared key is high entropy. */
|
|
819
|
+
encryptionVersion?: EncryptionVersion;
|
|
820
|
+
/**
|
|
821
|
+
* Pre-decrypted wallet keychain. When supplied, shareWallet skips its internal
|
|
822
|
+
* getDecryptedKeychainForSharing call — useful when the caller is sharing the same wallet
|
|
823
|
+
* with many recipients under one walletPassphrase and wants to avoid N-1 redundant Argon2id
|
|
824
|
+
* decryptions of the user's wallet keychain.
|
|
825
|
+
*/
|
|
826
|
+
decryptedKeychain?: DecryptedKeychainData;
|
|
827
|
+
}
|
|
828
|
+
export interface BulkCreateShareOption {
|
|
829
|
+
user: string;
|
|
830
|
+
permissions: string[];
|
|
831
|
+
keychain: BulkWalletShareKeychain;
|
|
832
|
+
}
|
|
833
|
+
export interface BulkWalletShareOptions {
|
|
834
|
+
walletPassphrase: string;
|
|
835
|
+
keyShareOptions: Array<{
|
|
836
|
+
userId: string;
|
|
837
|
+
pubKey: string;
|
|
838
|
+
path: string;
|
|
839
|
+
permissions: string[];
|
|
840
|
+
}>;
|
|
841
|
+
/** @deprecated Ignored because the shared key is high entropy. */
|
|
842
|
+
encryptionVersion?: EncryptionVersion;
|
|
843
|
+
}
|
|
844
|
+
export type WalletShareState = 'active' | 'accepted' | 'canceled' | 'rejected' | 'pendingapproval';
|
|
845
|
+
export interface DecryptedKeychainData {
|
|
846
|
+
prv: string;
|
|
847
|
+
pub: string;
|
|
848
|
+
}
|
|
849
|
+
export interface BulkWalletShareKeychain {
|
|
850
|
+
pub: string;
|
|
851
|
+
encryptedPrv: string;
|
|
852
|
+
fromPubKey: string;
|
|
853
|
+
toPubKey: string;
|
|
854
|
+
path: string;
|
|
855
|
+
}
|
|
856
|
+
export interface WalletShare {
|
|
857
|
+
id: string;
|
|
858
|
+
coin: string;
|
|
859
|
+
wallet: string;
|
|
860
|
+
walletLabel?: string;
|
|
861
|
+
fromUser: string;
|
|
862
|
+
toUser: string;
|
|
863
|
+
permissions: string[];
|
|
864
|
+
state?: WalletShareState;
|
|
865
|
+
enterprise?: string;
|
|
866
|
+
message?: string;
|
|
867
|
+
pendingApprovalId?: string;
|
|
868
|
+
/**
|
|
869
|
+
* If true, the wallet share requires the user to provide a new keychain.
|
|
870
|
+
* When accepted, the wallet will be re-shared with all other spenders.
|
|
871
|
+
*/
|
|
872
|
+
keychainOverrideRequired?: boolean;
|
|
873
|
+
/**
|
|
874
|
+
* If true, the wallet share requires the user to to generate a new key-pair.
|
|
875
|
+
* In addition to the encrypted private key, the user must provide the public key.
|
|
876
|
+
* */
|
|
877
|
+
userMultiKeyRotationRequired?: boolean;
|
|
878
|
+
isUMSInitiated?: boolean;
|
|
879
|
+
keychain?: BulkWalletShareKeychain;
|
|
880
|
+
}
|
|
881
|
+
export interface CreateBulkWalletShareListResponse {
|
|
882
|
+
shares: WalletShare[];
|
|
391
883
|
}
|
|
392
884
|
export interface RemoveUserOptions {
|
|
393
885
|
userId?: string;
|
|
394
886
|
}
|
|
395
887
|
export interface AccelerateTransactionOptions {
|
|
396
888
|
cpfpTxIds?: string[];
|
|
889
|
+
rbfTxIds?: string[];
|
|
397
890
|
cpfpFeeRate?: number;
|
|
398
891
|
noCpfpFeeRate?: boolean;
|
|
399
892
|
maxFee?: number;
|
|
400
893
|
noMaxFee?: boolean;
|
|
894
|
+
feeMultiplier?: number;
|
|
401
895
|
recipients?: {
|
|
402
896
|
address: string;
|
|
403
897
|
amount: string;
|
|
@@ -415,6 +909,8 @@ export interface SubmitTransactionOptions {
|
|
|
415
909
|
};
|
|
416
910
|
comment?: string;
|
|
417
911
|
txRequestId?: string;
|
|
912
|
+
/** WebAuthn attestation for the withdrawal intent — pass-through only. */
|
|
913
|
+
attestation?: AttestationPayload;
|
|
418
914
|
}
|
|
419
915
|
export interface SendOptions {
|
|
420
916
|
address?: string;
|
|
@@ -424,6 +920,8 @@ export interface SendOptions {
|
|
|
424
920
|
message?: string;
|
|
425
921
|
walletPassphrase?: string;
|
|
426
922
|
prv?: string;
|
|
923
|
+
/** Optional WebAuthn proof for a withdrawal; pass-through only. */
|
|
924
|
+
attestation?: AttestationPayload;
|
|
427
925
|
minConfirms?: number;
|
|
428
926
|
enforceMinConfirmsForChange?: boolean;
|
|
429
927
|
custodianTransactionId?: string;
|
|
@@ -436,11 +934,13 @@ export interface SendManyOptions extends PrebuildAndSignTransactionOptions {
|
|
|
436
934
|
address: string;
|
|
437
935
|
amount: string | number;
|
|
438
936
|
feeLimit?: string;
|
|
439
|
-
data?: string;
|
|
937
|
+
data?: string | TokenTransferRecipientParams;
|
|
440
938
|
tokenName?: string;
|
|
939
|
+
tokenData?: TokenTransferRecipientParams;
|
|
441
940
|
}[];
|
|
442
941
|
numBlocks?: number;
|
|
443
942
|
feeRate?: number;
|
|
943
|
+
feeMultiplier?: number;
|
|
444
944
|
maxFeeRate?: number;
|
|
445
945
|
minConfirms?: number;
|
|
446
946
|
enforceMinConfirmsForChange?: boolean;
|
|
@@ -457,6 +957,7 @@ export interface SendManyOptions extends PrebuildAndSignTransactionOptions {
|
|
|
457
957
|
comment?: string;
|
|
458
958
|
otp?: string;
|
|
459
959
|
changeAddress?: string;
|
|
960
|
+
allowExternalChangeAddress?: boolean;
|
|
460
961
|
instant?: boolean;
|
|
461
962
|
memo?: Memo;
|
|
462
963
|
transferId?: number;
|
|
@@ -464,11 +965,31 @@ export interface SendManyOptions extends PrebuildAndSignTransactionOptions {
|
|
|
464
965
|
eip1559?: EIP1559;
|
|
465
966
|
gasLimit?: number;
|
|
466
967
|
custodianTransactionId?: string;
|
|
968
|
+
defiParams?: {
|
|
969
|
+
vaultId?: string;
|
|
970
|
+
amount?: string | number;
|
|
971
|
+
actionType?: string;
|
|
972
|
+
operationId?: string;
|
|
973
|
+
};
|
|
974
|
+
/**
|
|
975
|
+
* ERC-7984 wrap / wrapApprove parameters. WP builds approve/wrap calldata from these.
|
|
976
|
+
*/
|
|
977
|
+
wrapParams?: {
|
|
978
|
+
tokenName: string;
|
|
979
|
+
amount: string;
|
|
980
|
+
};
|
|
981
|
+
/**
|
|
982
|
+
* ERC-7984 unwrap (unshield) parameters. WP builds unwrap calldata from these.
|
|
983
|
+
*/
|
|
984
|
+
unwrapParams?: {
|
|
985
|
+
tokenName: string;
|
|
986
|
+
amount: string;
|
|
987
|
+
};
|
|
467
988
|
}
|
|
468
989
|
export interface FetchCrossChainUTXOsOptions {
|
|
469
990
|
sourceChain?: 'P' | 'C';
|
|
470
991
|
}
|
|
471
|
-
export
|
|
992
|
+
export type Unspent = {
|
|
472
993
|
outputID: number;
|
|
473
994
|
amount: string;
|
|
474
995
|
txid: string;
|
|
@@ -483,8 +1004,8 @@ export interface CrossChainUTXO {
|
|
|
483
1004
|
toWallet: string;
|
|
484
1005
|
toAddress: string;
|
|
485
1006
|
}
|
|
486
|
-
export
|
|
487
|
-
export
|
|
1007
|
+
export type WalletType = 'backing' | 'cold' | 'custodial' | 'custodialPaired' | 'hot' | 'trading' | 'advanced';
|
|
1008
|
+
export type SubWalletType = 'distributedCustody' | 'lightningCustody' | 'lightningSelfCustody' | 'onPrem';
|
|
488
1009
|
export interface WalletData {
|
|
489
1010
|
id: string;
|
|
490
1011
|
approvalsRequired: number;
|
|
@@ -497,9 +1018,13 @@ export interface WalletData {
|
|
|
497
1018
|
coin: string;
|
|
498
1019
|
label: string;
|
|
499
1020
|
keys: string[];
|
|
500
|
-
receiveAddress
|
|
1021
|
+
receiveAddress?: {
|
|
501
1022
|
address: string;
|
|
502
1023
|
};
|
|
1024
|
+
walletFlags?: {
|
|
1025
|
+
name: string;
|
|
1026
|
+
value: string;
|
|
1027
|
+
}[];
|
|
503
1028
|
migratedFrom?: string;
|
|
504
1029
|
coinSpecific: WalletCoinSpecific;
|
|
505
1030
|
pendingApprovals: PendingApprovalData[];
|
|
@@ -510,6 +1035,7 @@ export interface WalletData {
|
|
|
510
1035
|
bitgo?: string;
|
|
511
1036
|
};
|
|
512
1037
|
multisigType: 'onchain' | 'tss';
|
|
1038
|
+
multisigTypeVersion?: 'MPCv2';
|
|
513
1039
|
type?: WalletType;
|
|
514
1040
|
subType?: SubWalletType;
|
|
515
1041
|
tokens?: Record<string, any>[];
|
|
@@ -519,6 +1045,18 @@ export interface WalletData {
|
|
|
519
1045
|
unsupportedNfts?: {
|
|
520
1046
|
[contractAddress: string]: NftBalance;
|
|
521
1047
|
};
|
|
1048
|
+
users?: WalletUser[];
|
|
1049
|
+
evmKeyRingReferenceWalletId?: string;
|
|
1050
|
+
isParent?: boolean;
|
|
1051
|
+
enabledChildChains?: string[];
|
|
1052
|
+
/** @experimental Public id of the parent safe this wallet was minted in */
|
|
1053
|
+
safe?: string;
|
|
1054
|
+
/**
|
|
1055
|
+
* @deprecated Read from `coinSpecific.userKeySigningRequired` instead. Retained
|
|
1056
|
+
* temporarily as a fallback while the field migrates from the top level to the OFC
|
|
1057
|
+
* coinSpecific subdocument; will be removed in a follow-up major release.
|
|
1058
|
+
*/
|
|
1059
|
+
userKeySigningRequired?: boolean;
|
|
522
1060
|
}
|
|
523
1061
|
export interface RecoverTokenOptions {
|
|
524
1062
|
tokenContractAddress?: string;
|
|
@@ -536,6 +1074,29 @@ export interface ChangeFeeOptions {
|
|
|
536
1074
|
fee?: string;
|
|
537
1075
|
eip1559?: EIP1559;
|
|
538
1076
|
}
|
|
1077
|
+
/**
|
|
1078
|
+
* Response from the token approval build endpoint
|
|
1079
|
+
*/
|
|
1080
|
+
export interface BuildTokenApprovalResponse {
|
|
1081
|
+
txHex: string;
|
|
1082
|
+
txInfo: {
|
|
1083
|
+
amount: string;
|
|
1084
|
+
contractAddress: string;
|
|
1085
|
+
spender: string;
|
|
1086
|
+
};
|
|
1087
|
+
recipients: {
|
|
1088
|
+
address: string;
|
|
1089
|
+
amount: string;
|
|
1090
|
+
data: string;
|
|
1091
|
+
}[];
|
|
1092
|
+
eip1559?: {
|
|
1093
|
+
maxFeePerGas: string;
|
|
1094
|
+
maxPriorityFeePerGas: string;
|
|
1095
|
+
};
|
|
1096
|
+
nextContractSequenceId: number;
|
|
1097
|
+
coin: string;
|
|
1098
|
+
walletId: string;
|
|
1099
|
+
}
|
|
539
1100
|
export interface CreatePolicyRuleOptions {
|
|
540
1101
|
id?: string;
|
|
541
1102
|
type?: string;
|
|
@@ -547,6 +1108,48 @@ export interface RemovePolicyRuleOptions {
|
|
|
547
1108
|
id?: string;
|
|
548
1109
|
message?: string;
|
|
549
1110
|
}
|
|
1111
|
+
/**
|
|
1112
|
+
* Callback invoked by {@link IWallet.upgradeEncryption} to generate the regenerated keycard PDF.
|
|
1113
|
+
* The wallet method itself is agnostic to how the PDF is produced — callers wire in the PDF
|
|
1114
|
+
* generator (typically the one exported from `@bitgo-beta/key-card`) so `sdk-core` does not need
|
|
1115
|
+
* a browser/canvas dependency at build time.
|
|
1116
|
+
*/
|
|
1117
|
+
export type UpgradeEncryptionPdfGenerator = (params: {
|
|
1118
|
+
coinName: string;
|
|
1119
|
+
userKeychain: Keychain;
|
|
1120
|
+
backupKeychain: Keychain;
|
|
1121
|
+
bitgoKeychain: Keychain;
|
|
1122
|
+
passphrase: string;
|
|
1123
|
+
passcodeEncryptionCode: string;
|
|
1124
|
+
walletLabel: string;
|
|
1125
|
+
}) => Promise<unknown>;
|
|
1126
|
+
export interface UpgradeEncryptionOptions {
|
|
1127
|
+
/**
|
|
1128
|
+
* Current wallet passphrase. Omit when {@link boxD} is provided and the passphrase has never
|
|
1129
|
+
* been changed — the passphrase is derived by decrypting Box D with the PEC.
|
|
1130
|
+
*/
|
|
1131
|
+
passphrase?: string;
|
|
1132
|
+
otp?: string;
|
|
1133
|
+
/**
|
|
1134
|
+
* Box D ciphertext from the original keycard.
|
|
1135
|
+
* Required when {@link passphrase} is omitted (to derive it).
|
|
1136
|
+
* Also required when the passphrase was changed after wallet creation (to recover the original
|
|
1137
|
+
* passphrase for decrypting the backup key).
|
|
1138
|
+
*/
|
|
1139
|
+
boxD?: string;
|
|
1140
|
+
/** Box A ciphertext — required for MPCv2 wallets (user reducedEncryptedPrv). */
|
|
1141
|
+
boxA?: string;
|
|
1142
|
+
/** Box B ciphertext — required for MPCv2 wallets and older wallets without server-stored backup key. */
|
|
1143
|
+
boxB?: string;
|
|
1144
|
+
passcodeEncryptionCode?: string;
|
|
1145
|
+
dryRun?: boolean;
|
|
1146
|
+
/** Optional callback for regenerating the keycard PDF. When omitted, no PDF is produced. */
|
|
1147
|
+
generatePdf?: UpgradeEncryptionPdfGenerator;
|
|
1148
|
+
}
|
|
1149
|
+
export interface UpgradeEncryptionResult {
|
|
1150
|
+
doc: unknown;
|
|
1151
|
+
walletLabel: string;
|
|
1152
|
+
}
|
|
550
1153
|
export interface DownloadKeycardOptions {
|
|
551
1154
|
jsPDF?: any;
|
|
552
1155
|
QRCode?: any;
|
|
@@ -558,6 +1161,7 @@ export interface DownloadKeycardOptions {
|
|
|
558
1161
|
activationCode?: string;
|
|
559
1162
|
walletKeyID?: string;
|
|
560
1163
|
backupKeyID?: string;
|
|
1164
|
+
encryptionVersion?: EncryptionVersion;
|
|
561
1165
|
}
|
|
562
1166
|
export interface ChallengeVerifiers {
|
|
563
1167
|
verifiers: {
|
|
@@ -569,10 +1173,14 @@ export interface WalletEcdsaChallenges {
|
|
|
569
1173
|
bitgoChallenge: SerializedNtilde & ChallengeVerifiers;
|
|
570
1174
|
createdBy: string;
|
|
571
1175
|
}
|
|
572
|
-
export
|
|
573
|
-
export
|
|
1176
|
+
export type SendNFTOptions = Omit<SendManyOptions, 'recipients' | 'enableTokens' | 'tokenName' | 'txFormat' | 'receiveAddress'>;
|
|
1177
|
+
export type SendNFTResult = {
|
|
574
1178
|
pendingApproval: PendingApprovalData;
|
|
575
1179
|
};
|
|
1180
|
+
export type WalletInitResult = {
|
|
1181
|
+
success: PrebuildTransactionResult[];
|
|
1182
|
+
failure: Error[];
|
|
1183
|
+
};
|
|
576
1184
|
export interface IWallet {
|
|
577
1185
|
bitgo: BitGoBase;
|
|
578
1186
|
baseCoin: IBaseCoin;
|
|
@@ -590,17 +1198,22 @@ export interface IWallet {
|
|
|
590
1198
|
nftBalances(): NftBalance[] | undefined;
|
|
591
1199
|
unsupportedNftBalances(): NftBalance[] | undefined;
|
|
592
1200
|
coin(): string;
|
|
593
|
-
type(): WalletType
|
|
1201
|
+
type(): WalletType;
|
|
1202
|
+
subType(): SubWalletType | undefined;
|
|
594
1203
|
multisigType(): 'onchain' | 'tss';
|
|
1204
|
+
multisigTypeVersion(): 'MPCv2' | undefined;
|
|
1205
|
+
/** @experimental Public id of the parent safe this wallet was minted in */
|
|
1206
|
+
safeId(): string | undefined;
|
|
595
1207
|
label(): string;
|
|
596
1208
|
keyIds(): string[];
|
|
597
|
-
receiveAddress(): string;
|
|
1209
|
+
receiveAddress(): string | undefined;
|
|
598
1210
|
migratedFrom(): string | undefined;
|
|
599
1211
|
tokenFlushThresholds(): any;
|
|
600
1212
|
coinSpecific(): WalletCoinSpecific | undefined;
|
|
601
1213
|
pendingApprovals(): IPendingApproval[];
|
|
602
1214
|
refresh(params?: Record<string, never>): Promise<IWallet>;
|
|
603
1215
|
transactions(params?: PaginationOptions): Promise<any>;
|
|
1216
|
+
getPotentialStuckTxs(params?: GetPotentialStuckTxsOptions): Promise<GetPotentialStuckTxsResult[]>;
|
|
604
1217
|
getTransaction(params?: GetTransactionOptions): Promise<any>;
|
|
605
1218
|
transfers(params?: TransfersOptions): Promise<any>;
|
|
606
1219
|
getTransfer(params?: GetTransferOptions): Promise<any>;
|
|
@@ -617,25 +1230,29 @@ export interface IWallet {
|
|
|
617
1230
|
sweep(params?: SweepOptions): Promise<any>;
|
|
618
1231
|
freeze(params?: FreezeOptions): Promise<any>;
|
|
619
1232
|
transferComment(params?: TransferCommentOptions): Promise<any>;
|
|
620
|
-
addresses(params?: AddressesOptions): Promise<
|
|
1233
|
+
addresses(params?: AddressesOptions): Promise<AddressQueryResult>;
|
|
621
1234
|
getAddress(params?: GetAddressOptions): Promise<any>;
|
|
622
1235
|
createAddress(params?: CreateAddressOptions): Promise<any>;
|
|
623
1236
|
updateAddress(params?: UpdateAddressOptions): Promise<any>;
|
|
1237
|
+
getAccountResources(params: GetAccountResourcesOptions): Promise<GetAccountResourcesResponse>;
|
|
1238
|
+
getResourceDelegations(params?: GetResourceDelegationsOptions): Promise<GetResourceDelegationsResponse>;
|
|
624
1239
|
listWebhooks(params?: PaginationOptions): Promise<any>;
|
|
625
1240
|
simulateWebhook(params?: SimulateWebhookOptions): Promise<any>;
|
|
626
1241
|
addWebhook(params?: ModifyWebhookOptions): Promise<any>;
|
|
627
1242
|
removeWebhook(params?: ModifyWebhookOptions): Promise<any>;
|
|
628
|
-
getEncryptedUserKeychain(
|
|
629
|
-
encryptedPrv: string;
|
|
630
|
-
}>;
|
|
1243
|
+
getEncryptedUserKeychain(): Promise<KeychainWithEncryptedPrv>;
|
|
631
1244
|
getPrv(params?: GetPrvOptions): Promise<any>;
|
|
632
1245
|
createShare(params?: CreateShareOptions): Promise<any>;
|
|
633
1246
|
shareWallet(params?: ShareWalletOptions): Promise<any>;
|
|
1247
|
+
createBulkKeyShares(params?: BulkCreateShareOption[]): Promise<CreateBulkWalletShareListResponse>;
|
|
1248
|
+
createBulkWalletShare(params?: BulkWalletShareOptions): Promise<CreateBulkWalletShareListResponse>;
|
|
634
1249
|
removeUser(params?: RemoveUserOptions): Promise<any>;
|
|
635
1250
|
prebuildTransaction(params?: PrebuildTransactionOptions): Promise<PrebuildTransactionResult>;
|
|
636
1251
|
signTransaction(params?: WalletSignTransactionOptions): Promise<SignedTransaction>;
|
|
637
|
-
getUserPrv(params?: GetUserPrvOptions): string
|
|
1252
|
+
getUserPrv(params?: GetUserPrvOptions): Promise<string>;
|
|
1253
|
+
verifyKey(params: VerifyKeyOptions): Promise<VerifyKeyResult>;
|
|
638
1254
|
prebuildAndSignTransaction(params?: PrebuildAndSignTransactionOptions): Promise<SignedTransaction>;
|
|
1255
|
+
signAndSendTxRequest(params?: SignAndSendTxRequestOptions): Promise<SignedTransaction>;
|
|
639
1256
|
accelerateTransaction(params?: AccelerateTransactionOptions): Promise<any>;
|
|
640
1257
|
submitTransaction(params?: SubmitTransactionOptions): Promise<any>;
|
|
641
1258
|
send(params?: SendOptions): Promise<any>;
|
|
@@ -653,22 +1270,50 @@ export interface IWallet {
|
|
|
653
1270
|
removePolicyRule(params?: RemovePolicyRuleOptions): Promise<any>;
|
|
654
1271
|
remove(params?: Record<string, never>): Promise<any>;
|
|
655
1272
|
toJSON(): WalletData;
|
|
1273
|
+
createLightningInvoice(params: CreateLightningInvoiceParams): Promise<LightningInvoiceResponse>;
|
|
1274
|
+
readonly defi: IDefiVault;
|
|
656
1275
|
toTradingAccount(): ITradingAccount;
|
|
657
1276
|
toStakingWallet(): IStakingWallet;
|
|
1277
|
+
toGoStakingWallet(): IGoStakingWallet;
|
|
658
1278
|
toAddressBook(): IAddressBook;
|
|
659
|
-
downloadKeycard(params?: DownloadKeycardOptions): void
|
|
1279
|
+
downloadKeycard(params?: DownloadKeycardOptions): Promise<void>;
|
|
1280
|
+
upgradeEncryption(params: UpgradeEncryptionOptions): Promise<UpgradeEncryptionResult | undefined>;
|
|
1281
|
+
upgradeUserKeyEncryption(params: UpgradeUserKeyEncryptionOptions): Promise<KeyEncryptionUpgradeResult>;
|
|
660
1282
|
buildAccountConsolidations(params?: BuildConsolidationTransactionOptions): Promise<PrebuildTransactionResult[]>;
|
|
661
1283
|
sendAccountConsolidation(params?: PrebuildAndSignTransactionOptions): Promise<any>;
|
|
662
1284
|
sendAccountConsolidations(params?: BuildConsolidationTransactionOptions): Promise<any>;
|
|
1285
|
+
buildResourceDelegations(params: BuildResourceDelegationTransactionOptions): Promise<BuildResourceManagementTransactionResult>;
|
|
1286
|
+
sendResourceDelegation(params: PrebuildAndSignTransactionOptions): Promise<ResourceManagementSendResult>;
|
|
1287
|
+
sendResourceDelegations(params: BuildResourceDelegationTransactionOptions): Promise<{
|
|
1288
|
+
success: ResourceManagementSendResult[];
|
|
1289
|
+
failure: {
|
|
1290
|
+
message: string;
|
|
1291
|
+
receiverAddress?: string;
|
|
1292
|
+
}[];
|
|
1293
|
+
}>;
|
|
1294
|
+
buildResourceUndelegations(params: BuildResourceUndelegationTransactionOptions): Promise<BuildResourceManagementTransactionResult>;
|
|
1295
|
+
sendResourceUndelegation(params: PrebuildAndSignTransactionOptions): Promise<ResourceManagementSendResult>;
|
|
1296
|
+
sendResourceUndelegations(params: BuildResourceUndelegationTransactionOptions): Promise<{
|
|
1297
|
+
success: ResourceManagementSendResult[];
|
|
1298
|
+
failure: {
|
|
1299
|
+
message: string;
|
|
1300
|
+
receiverAddress?: string;
|
|
1301
|
+
}[];
|
|
1302
|
+
}>;
|
|
663
1303
|
buildTokenEnablements(params?: BuildTokenEnablementOptions): Promise<PrebuildTransactionResult[]>;
|
|
664
1304
|
sendTokenEnablement(params?: PrebuildAndSignTransactionOptions): Promise<any>;
|
|
665
1305
|
sendTokenEnablements(params?: BuildTokenEnablementOptions): Promise<any>;
|
|
666
|
-
|
|
1306
|
+
buildWalletInitialization(params?: PrebuildTransactionOptions): Promise<PrebuildTransactionResult>;
|
|
1307
|
+
sendWalletInitialization(params?: PrebuildTransactionOptions): Promise<WalletInitResult>;
|
|
667
1308
|
signMessage(params: WalletSignMessageOptions): Promise<SignedMessage>;
|
|
1309
|
+
buildSignMessageRequest(params: WalletSignMessageOptions): Promise<TxRequest>;
|
|
668
1310
|
signTypedData(params: WalletSignTypedDataOptions): Promise<SignedMessage>;
|
|
1311
|
+
signAndSendMessageTxRequest(params: SignAndSendMessageTxRequestOptions): Promise<SignedMessage>;
|
|
669
1312
|
fetchCrossChainUTXOs(params: FetchCrossChainUTXOsOptions): Promise<CrossChainUTXO[]>;
|
|
670
1313
|
getChallengesForEcdsaSigning(): Promise<WalletEcdsaChallenges>;
|
|
671
1314
|
getNftBalances(): Promise<NftBalance[]>;
|
|
1315
|
+
approveErc20Token(walletPassphrase: string, tokenName: string): Promise<SubmitTransactionResponse>;
|
|
1316
|
+
buildErc20TokenApproval(tokenName: string, walletPassphrase?: string): Promise<BuildTokenApprovalResponse | SubmitTransactionResponse>;
|
|
672
1317
|
}
|
|
673
1318
|
export {};
|
|
674
1319
|
//# sourceMappingURL=iWallet.d.ts.map
|