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