@bitgo/public-types 6.62.0 → 6.64.0
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/schema/mpcv2/keyGen/keygenRound.d.ts +43 -0
- package/dist/src/schema/mpcv2/keyGen/keygenRound.js +22 -1
- package/dist/src/schema/mpcv2/keyGen/keygenRound.js.map +1 -1
- package/dist/src/schema/mpcv2/smc/index.d.ts +2 -0
- package/dist/src/schema/mpcv2/smc/index.js +2 -0
- package/dist/src/schema/mpcv2/smc/index.js.map +1 -1
- package/dist/src/schema/mpcv2/smc/redpallasKeygenRound.d.ts +175 -0
- package/dist/src/schema/mpcv2/smc/redpallasKeygenRound.js +93 -0
- package/dist/src/schema/mpcv2/smc/redpallasKeygenRound.js.map +1 -0
- package/dist/src/schema/mpcv2/smc/redpallasKeygenState.d.ts +15 -0
- package/dist/src/schema/mpcv2/smc/redpallasKeygenState.js +53 -0
- package/dist/src/schema/mpcv2/smc/redpallasKeygenState.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/accelerationIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/accountBaseCreateAccountIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/accountBaseUpdateAccountIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/adaCancelIntent.d.ts +97 -0
- package/dist/src/schema/transactionRequest/intents/adaCancelIntent.js +40 -0
- package/dist/src/schema/transactionRequest/intents/adaCancelIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/adaPaymentIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/adaPledgeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/adaStakeClaimRewardsIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/adaStakeIntent.d.ts +104 -0
- package/dist/src/schema/transactionRequest/intents/adaStakeIntent.js +15 -1
- package/dist/src/schema/transactionRequest/intents/adaStakeIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/adaStakingType.d.ts +7 -0
- package/dist/src/schema/transactionRequest/intents/adaStakingType.js +34 -0
- package/dist/src/schema/transactionRequest/intents/adaStakingType.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/adaUnstakeIntent.d.ts +103 -0
- package/dist/src/schema/transactionRequest/intents/adaUnstakeIntent.js +13 -1
- package/dist/src/schema/transactionRequest/intents/adaUnstakeIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/adaVoteDelegationIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/aptCustomTxIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/aptStakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/aptUnstakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/aptWithdrawStakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/atomPaymentIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/atomStakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/atomUnstakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/atomWithdrawIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/babyCreateBtcDelegationIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/babyWithdrawRewardIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/baseBridgeFundsIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/baseGoStakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/baseIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/baseStakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/baseStakeIntentWithCalldata.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/beraDelegateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/bscDelegateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/bscStakeClaimRewardsIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/bscUndelegateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/bscWithdrawUndelegateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cantonAllocationAllocateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cantonAllocationOfferWithdrawnIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cantonAllocationRejectIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cantonAllocationRequestIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cantonCommandIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cantonCosignDelegationAcceptIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cantonCosignDelegationProposalIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cantonEndInvestorOnboardingAcceptIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cantonEndInvestorOnboardingOfferIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cantonEndInvestorOnboardingRejectIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cantonParticipantOnboardingRequestIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cantonPaymentIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cantonTransferAcceptIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cantonTransferAcknowledgeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cantonTransferOfferWithdrawnIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cantonTransferRejectIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/claimIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/consolidateTokenIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/coredaoClaimIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/coredaoDelegateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/coredaoUndelegateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cosmosContractCallIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cosmosPaymentIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cosmosStakeClaimRewardsIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cosmosStakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cosmosSwitchValidatorIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cosmosUnstakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cosmosWithdrawIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/defiApproveIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/defiDepositIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/defiRedeemIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/defiWithdrawIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/delegateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/dotBaseIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/dotCreateAccountIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/dotPaymentIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/dotStakingIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/dotUnstakingIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/dotWithdrawStakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/enableTokenIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/ethAccelerationIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/ethConsolidateTokenIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/ethFillNonceIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/ethLikeStakeIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/ethPaymentIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/ethStakingIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/ethTransferTokenIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/feeAddressTransferIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/fillNonceIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/goUnstakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/hbarUpdateAccountIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/hypeevmBridgeFundsIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/hypeevmEnableBridgingIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/hypeevmSpotTransferIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/icpPaymentIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/index.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/index.js +2 -0
- package/dist/src/schema/transactionRequest/intents/index.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/intent.d.ts +451 -0
- package/dist/src/schema/transactionRequest/intents/intent.js +4 -0
- package/dist/src/schema/transactionRequest/intents/intent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/intentType.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/intentType.js +1 -0
- package/dist/src/schema/transactionRequest/intents/intentType.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/iotaBuildOptions.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/iotaConsolidateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/iotaPaymentIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/lightningPaymentIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/mmiSignMessageIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/mmiSignTransactionIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/nearStakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/nearUnstakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/nearWithdrawIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/paymentIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/polyxBaseIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/polyxCreateAccountIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/polyxPreApproveAssetIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/polyxStakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/polyxSwitchValidatorIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/polyxUnstakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/polyxWithdrawIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/signMessageIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/solAuthorizeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/solClaimIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/solCloseAssociatedTokenAccountIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/solCreateAssociatedTokenAccountIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/solCustomTxIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/solDeactivateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/solDelegateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/solGoUnstakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/solPaymentIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/solStakeIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/solUnstakeIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/solVersionedCustomTxIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/stakeClaimRewardsIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/stakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/stakeSwitchValidatorIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/stakeWithCallDataIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/substrateBaseIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/substratePaymentIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/suiBuildOptions.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/suiConsolidateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/suiCustomTxIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/suiGoUnstakeIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/suiPaymentIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/suiStakingIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/suiUnstakingIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/switchValidatorWithCallDataIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/taoClaimRootIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/taoStakeIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/taoStakingBaseIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/taoSwitchValidatorIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/taoTransferStakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/taoUnstakeIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/tokenApprovalIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/tonDelegateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/tonMultiNominatorDelegateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/tonMultiNominatorUndelegateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/tonPaymentIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/tonSingleNominatorDelegateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/tonSingleNominatorUndelegateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/tonUndelegateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/tonWhalesDelegateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/tonWhalesUndelegateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/transferTokenIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/trxClaimRewardsIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/trxCreateAccountIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/trxDelegateResourceIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/trxFreezeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/trxUndelegateResourceIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/trxUnfreezeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/trxVoteIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/trxWithdrawExpireUnfreezeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/undelegateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/unstakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/unwrapNativeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/validatorRegistrationIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/vetDecreaseStakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/vetDelegateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/vetIncreaseStakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/vetSignalExitIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/vetStakeClaimRewardsIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/vetStakingIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/vetUnstakingIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/vetValidatorRegistrationIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/vetWithdrawStakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/voteDelegationIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/walletRecoveryIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/walrusStakingIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/walrusUndelegateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/walrusWithdrawIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/withdrawIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/wrapApproveIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/wrapNativeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/xdcStakingIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/xdcUnstakingIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/transactionRequest.d.ts +1257 -355
- package/package.json +1 -1
- package/src/schema/mpcv2/keyGen/keygenRound.ts +40 -0
- package/src/schema/mpcv2/smc/index.ts +2 -0
- package/src/schema/mpcv2/smc/redpallasKeygenRound.ts +101 -0
- package/src/schema/mpcv2/smc/redpallasKeygenState.ts +31 -0
- package/src/schema/transactionRequest/intents/adaCancelIntent.ts +26 -0
- package/src/schema/transactionRequest/intents/adaStakeIntent.ts +28 -1
- package/src/schema/transactionRequest/intents/adaStakingType.ts +11 -0
- package/src/schema/transactionRequest/intents/adaUnstakeIntent.ts +27 -0
- package/src/schema/transactionRequest/intents/index.ts +2 -0
- package/src/schema/transactionRequest/intents/intent.ts +6 -2
- package/src/schema/transactionRequest/intents/intentType.ts +2 -0
package/package.json
CHANGED
|
@@ -111,3 +111,43 @@ export const EddsaMPCv2KeyGenRound2Response = t.type({
|
|
|
111
111
|
export type EddsaMPCv2KeyGenRound2Response = t.TypeOf<
|
|
112
112
|
typeof EddsaMPCv2KeyGenRound2Response
|
|
113
113
|
>;
|
|
114
|
+
|
|
115
|
+
// RedPallas MPCv2 (2-round) keygen codecs
|
|
116
|
+
|
|
117
|
+
export const RedpallasMPCv2KeyGenRound1Request = t.type({
|
|
118
|
+
userGpgPublicKey: NonEmptyString,
|
|
119
|
+
backupGpgPublicKey: NonEmptyString,
|
|
120
|
+
userMsg1: EddsaMPCv2SignedMessage,
|
|
121
|
+
backupMsg1: EddsaMPCv2SignedMessage,
|
|
122
|
+
});
|
|
123
|
+
export type RedpallasMPCv2KeyGenRound1Request = t.TypeOf<
|
|
124
|
+
typeof RedpallasMPCv2KeyGenRound1Request
|
|
125
|
+
>;
|
|
126
|
+
|
|
127
|
+
export const RedpallasMPCv2KeyGenRound1Response = t.type({
|
|
128
|
+
sessionId: NonEmptyString,
|
|
129
|
+
bitgoMsg1: EddsaMPCv2SignedMessage,
|
|
130
|
+
});
|
|
131
|
+
export type RedpallasMPCv2KeyGenRound1Response = t.TypeOf<
|
|
132
|
+
typeof RedpallasMPCv2KeyGenRound1Response
|
|
133
|
+
>;
|
|
134
|
+
|
|
135
|
+
export const RedpallasMPCv2KeyGenRound2Request = t.type({
|
|
136
|
+
sessionId: NonEmptyString,
|
|
137
|
+
userMsg2: EddsaMPCv2SignedMessage,
|
|
138
|
+
backupMsg2: EddsaMPCv2SignedMessage,
|
|
139
|
+
// hex-encoded 32-byte seed; must be identical across user/backup/BitGo DKG parties.
|
|
140
|
+
derivationSeed: t.string,
|
|
141
|
+
});
|
|
142
|
+
export type RedpallasMPCv2KeyGenRound2Request = t.TypeOf<
|
|
143
|
+
typeof RedpallasMPCv2KeyGenRound2Request
|
|
144
|
+
>;
|
|
145
|
+
|
|
146
|
+
export const RedpallasMPCv2KeyGenRound2Response = t.type({
|
|
147
|
+
sessionId: NonEmptyString,
|
|
148
|
+
commonPublicKeychain: NonEmptyString,
|
|
149
|
+
bitgoMsg2: EddsaMPCv2SignedMessage,
|
|
150
|
+
});
|
|
151
|
+
export type RedpallasMPCv2KeyGenRound2Response = t.TypeOf<
|
|
152
|
+
typeof RedpallasMPCv2KeyGenRound2Response
|
|
153
|
+
>;
|
|
@@ -2,5 +2,7 @@ export * from "./keygenRound";
|
|
|
2
2
|
export * from "./keygenState";
|
|
3
3
|
export * from "./eddsaKeygenRound";
|
|
4
4
|
export * from "./eddsaKeygenState";
|
|
5
|
+
export * from "./redpallasKeygenRound";
|
|
6
|
+
export * from "./redpallasKeygenState";
|
|
5
7
|
export * from "./walletType";
|
|
6
8
|
export * from "./dsgType";
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
import { NonEmptyString } from "io-ts-types";
|
|
3
|
+
|
|
4
|
+
import { EddsaMPCv2SignedMessage } from "../common";
|
|
5
|
+
import { RedpallasKeyCreationMPCv2State } from "./redpallasKeygenState";
|
|
6
|
+
import { OVCIndexEnum } from "./keygenRound";
|
|
7
|
+
import { WalletType } from "./walletType";
|
|
8
|
+
|
|
9
|
+
const BaseRoundPayload = t.type({
|
|
10
|
+
state: RedpallasKeyCreationMPCv2State,
|
|
11
|
+
tssVersion: NonEmptyString,
|
|
12
|
+
walletType: WalletType,
|
|
13
|
+
coin: NonEmptyString,
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
type BaseRoundPayload = t.TypeOf<typeof BaseRoundPayload>;
|
|
17
|
+
|
|
18
|
+
export const RedpallasOVC1ToBitgoRound1Payload = t.intersection([
|
|
19
|
+
BaseRoundPayload,
|
|
20
|
+
t.type({
|
|
21
|
+
ovc: t.type({
|
|
22
|
+
[OVCIndexEnum.ONE]: t.type({
|
|
23
|
+
gpgPubKey: NonEmptyString,
|
|
24
|
+
ovcMsg1: EddsaMPCv2SignedMessage,
|
|
25
|
+
}),
|
|
26
|
+
[OVCIndexEnum.TWO]: t.type({
|
|
27
|
+
gpgPubKey: NonEmptyString,
|
|
28
|
+
ovcMsg1: EddsaMPCv2SignedMessage,
|
|
29
|
+
}),
|
|
30
|
+
}),
|
|
31
|
+
}),
|
|
32
|
+
]);
|
|
33
|
+
|
|
34
|
+
export type RedpallasOVC1ToBitgoRound1Payload = t.TypeOf<
|
|
35
|
+
typeof RedpallasOVC1ToBitgoRound1Payload
|
|
36
|
+
>;
|
|
37
|
+
|
|
38
|
+
export const RedpallasPlatformRound1Payload = t.type({
|
|
39
|
+
sessionId: NonEmptyString,
|
|
40
|
+
bitgoMsg1: EddsaMPCv2SignedMessage,
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
export type RedpallasPlatformRound1Payload = t.TypeOf<
|
|
44
|
+
typeof RedpallasPlatformRound1Payload
|
|
45
|
+
>;
|
|
46
|
+
|
|
47
|
+
export const RedpallasBitgoToOVC1Round1Response = t.intersection([
|
|
48
|
+
RedpallasOVC1ToBitgoRound1Payload,
|
|
49
|
+
t.type({ platform: RedpallasPlatformRound1Payload }),
|
|
50
|
+
]);
|
|
51
|
+
|
|
52
|
+
export type RedpallasBitgoToOVC1Round1Response = t.TypeOf<
|
|
53
|
+
typeof RedpallasBitgoToOVC1Round1Response
|
|
54
|
+
>;
|
|
55
|
+
|
|
56
|
+
export const RedpallasOVC2ToBitgoRound2Payload = t.intersection([
|
|
57
|
+
BaseRoundPayload,
|
|
58
|
+
t.type({
|
|
59
|
+
ovc: t.type({
|
|
60
|
+
[OVCIndexEnum.ONE]: t.type({
|
|
61
|
+
gpgPubKey: NonEmptyString,
|
|
62
|
+
ovcMsg1: EddsaMPCv2SignedMessage,
|
|
63
|
+
ovcMsg2: EddsaMPCv2SignedMessage,
|
|
64
|
+
}),
|
|
65
|
+
[OVCIndexEnum.TWO]: t.type({
|
|
66
|
+
gpgPubKey: NonEmptyString,
|
|
67
|
+
ovcMsg1: EddsaMPCv2SignedMessage,
|
|
68
|
+
ovcMsg2: EddsaMPCv2SignedMessage,
|
|
69
|
+
}),
|
|
70
|
+
}),
|
|
71
|
+
platform: RedpallasPlatformRound1Payload,
|
|
72
|
+
// hex-encoded 32-byte seed; must be identical across user/backup/BitGo DKG parties.
|
|
73
|
+
derivationSeed: t.string,
|
|
74
|
+
}),
|
|
75
|
+
]);
|
|
76
|
+
|
|
77
|
+
export type RedpallasOVC2ToBitgoRound2Payload = t.TypeOf<
|
|
78
|
+
typeof RedpallasOVC2ToBitgoRound2Payload
|
|
79
|
+
>;
|
|
80
|
+
|
|
81
|
+
export const RedpallasPlatformRound2Payload = t.intersection([
|
|
82
|
+
RedpallasPlatformRound1Payload,
|
|
83
|
+
t.type({
|
|
84
|
+
commonPublicKeychain: NonEmptyString,
|
|
85
|
+
bitgoMsg2: EddsaMPCv2SignedMessage,
|
|
86
|
+
}),
|
|
87
|
+
]);
|
|
88
|
+
|
|
89
|
+
export type RedpallasPlatformRound2Payload = t.TypeOf<
|
|
90
|
+
typeof RedpallasPlatformRound2Payload
|
|
91
|
+
>;
|
|
92
|
+
|
|
93
|
+
export const RedpallasBitgoToOVC1Round2Response = t.intersection([
|
|
94
|
+
t.type({ bitGoKeyId: NonEmptyString }),
|
|
95
|
+
RedpallasOVC2ToBitgoRound2Payload,
|
|
96
|
+
t.type({ platform: RedpallasPlatformRound2Payload }),
|
|
97
|
+
]);
|
|
98
|
+
|
|
99
|
+
export type RedpallasBitgoToOVC1Round2Response = t.TypeOf<
|
|
100
|
+
typeof RedpallasBitgoToOVC1Round2Response
|
|
101
|
+
>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
|
|
3
|
+
export enum RedpallasKeyCreationMPCv2StateEnum {
|
|
4
|
+
WaitingForOVC1Round0Data = -1,
|
|
5
|
+
WaitingForOVC2Round1Data,
|
|
6
|
+
WaitingForOVC1Round1Data,
|
|
7
|
+
WaitingForBitgoRound1Data,
|
|
8
|
+
WaitingForOVC1Round2Data,
|
|
9
|
+
WaitingForOVC2Round2Data,
|
|
10
|
+
WaitingForBitgoRound2Data,
|
|
11
|
+
WaitingForOVC1GenerateKey,
|
|
12
|
+
WaitingForOVC2GenerateKey,
|
|
13
|
+
KeyGenerationComplete,
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const RedpallasKeyCreationMPCv2State = t.union([
|
|
17
|
+
t.literal(RedpallasKeyCreationMPCv2StateEnum.WaitingForOVC1Round0Data),
|
|
18
|
+
t.literal(RedpallasKeyCreationMPCv2StateEnum.WaitingForOVC1Round1Data),
|
|
19
|
+
t.literal(RedpallasKeyCreationMPCv2StateEnum.WaitingForOVC2Round1Data),
|
|
20
|
+
t.literal(RedpallasKeyCreationMPCv2StateEnum.WaitingForBitgoRound1Data),
|
|
21
|
+
t.literal(RedpallasKeyCreationMPCv2StateEnum.WaitingForOVC1Round2Data),
|
|
22
|
+
t.literal(RedpallasKeyCreationMPCv2StateEnum.WaitingForOVC2Round2Data),
|
|
23
|
+
t.literal(RedpallasKeyCreationMPCv2StateEnum.WaitingForBitgoRound2Data),
|
|
24
|
+
t.literal(RedpallasKeyCreationMPCv2StateEnum.WaitingForOVC1GenerateKey),
|
|
25
|
+
t.literal(RedpallasKeyCreationMPCv2StateEnum.WaitingForOVC2GenerateKey),
|
|
26
|
+
t.literal(RedpallasKeyCreationMPCv2StateEnum.KeyGenerationComplete),
|
|
27
|
+
]);
|
|
28
|
+
|
|
29
|
+
export type RedpallasKeyCreationMPCv2State = t.TypeOf<
|
|
30
|
+
typeof RedpallasKeyCreationMPCv2State
|
|
31
|
+
>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
import { BaseStakeIntent } from "./baseStakeIntent";
|
|
3
|
+
import { intentTypes } from "./intentType";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @title ADA RealFi sUSDr Cancel Intent
|
|
7
|
+
*
|
|
8
|
+
* @description Cancel a pending RealFi order (`intentType: cancel`, `stakingType: REALFI_SUSDR`).
|
|
9
|
+
* Lives in this coin-level file so a native ADA cancel can be added later.
|
|
10
|
+
*
|
|
11
|
+
* @param {string} orderTxHash Order output transaction hash
|
|
12
|
+
* @param {number} orderOutputIndex Order UTxO output index
|
|
13
|
+
* @param {string} destinationAddress Address that receives reclaimed funds
|
|
14
|
+
*/
|
|
15
|
+
export const AdaRealFiCancelIntent = t.intersection([
|
|
16
|
+
BaseStakeIntent,
|
|
17
|
+
t.type({
|
|
18
|
+
intentType: intentTypes.cancel,
|
|
19
|
+
stakingType: t.literal("REALFI_SUSDR"),
|
|
20
|
+
orderTxHash: t.string,
|
|
21
|
+
orderOutputIndex: t.number,
|
|
22
|
+
destinationAddress: t.string,
|
|
23
|
+
}),
|
|
24
|
+
]);
|
|
25
|
+
|
|
26
|
+
export type AdaRealFiCancelIntent = t.TypeOf<typeof AdaRealFiCancelIntent>;
|
|
@@ -2,11 +2,13 @@ import * as t from "io-ts";
|
|
|
2
2
|
import { StakeIntent } from "./stakeIntent";
|
|
3
3
|
import { Amount } from "./amount";
|
|
4
4
|
import { Optional } from "../../../utils";
|
|
5
|
+
import { AdaStakingType } from "./adaStakingType";
|
|
6
|
+
import { BaseIntentWithAmount } from "./baseIntent";
|
|
5
7
|
|
|
6
8
|
/**
|
|
7
9
|
* @title ADA Stake Intent
|
|
8
10
|
*
|
|
9
|
-
* @description The intent to stake ADA
|
|
11
|
+
* @description The intent to stake ADA. Omit `stakingType` or set `NATIVE` for pool + dRep.
|
|
10
12
|
*
|
|
11
13
|
* @param {string} poolKeyHash The key hash for the staking pool
|
|
12
14
|
* @param {string} dRepId The identifier for a DRep
|
|
@@ -20,7 +22,32 @@ export const AdaStakeIntent = t.intersection([
|
|
|
20
22
|
}),
|
|
21
23
|
t.partial({
|
|
22
24
|
amount: Optional(Amount),
|
|
25
|
+
stakingType: Optional(AdaStakingType),
|
|
23
26
|
}),
|
|
24
27
|
]);
|
|
25
28
|
|
|
26
29
|
export type AdaStakeIntent = t.TypeOf<typeof AdaStakeIntent>;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @title ADA RealFi sUSDr Stake Intent
|
|
33
|
+
*
|
|
34
|
+
* @description Stake USDr into RealFi sUSDr (`intentType: stake`, `stakingType: REALFI_SUSDR`).
|
|
35
|
+
* Extends `StakeIntent` (not `AdaStakeIntent`) — RealFi has no `poolKeyHash` / `dRepId`.
|
|
36
|
+
*
|
|
37
|
+
* @param {Amount} amount USDr amount (`ada:usdr`)
|
|
38
|
+
* @param {string} destinationAddress Order output address
|
|
39
|
+
* @param {number} slippageToleranceBps Optional; staking-service default 50
|
|
40
|
+
*/
|
|
41
|
+
export const AdaRealFiStakeIntent = t.intersection([
|
|
42
|
+
StakeIntent,
|
|
43
|
+
BaseIntentWithAmount,
|
|
44
|
+
t.type({
|
|
45
|
+
stakingType: t.literal("REALFI_SUSDR"),
|
|
46
|
+
destinationAddress: t.string,
|
|
47
|
+
}),
|
|
48
|
+
t.partial({
|
|
49
|
+
slippageToleranceBps: Optional(t.number),
|
|
50
|
+
}),
|
|
51
|
+
]);
|
|
52
|
+
|
|
53
|
+
export type AdaRealFiStakeIntent = t.TypeOf<typeof AdaRealFiStakeIntent>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
|
|
3
|
+
/** Cardano staking provider. Omit/`NATIVE` = pool + dRep; `REALFI_SUSDR` = RealFi sUSDr. */
|
|
4
|
+
export enum AdaStakingTypeEnum {
|
|
5
|
+
NATIVE = "NATIVE",
|
|
6
|
+
REALFI_SUSDR = "REALFI_SUSDR",
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export const AdaStakingType = t.keyof(AdaStakingTypeEnum);
|
|
10
|
+
|
|
11
|
+
export type AdaStakingType = t.TypeOf<typeof AdaStakingType>;
|
|
@@ -2,9 +2,13 @@ import * as t from "io-ts";
|
|
|
2
2
|
import { Amount } from "./amount";
|
|
3
3
|
import { Optional } from "../../../utils";
|
|
4
4
|
import { UnstakeIntent } from "./unstakeIntent";
|
|
5
|
+
import { AdaStakingType } from "./adaStakingType";
|
|
6
|
+
import { BaseIntentWithAmount } from "./baseIntent";
|
|
5
7
|
|
|
6
8
|
/**
|
|
7
9
|
* @title ADA Unstake Intent
|
|
10
|
+
*
|
|
11
|
+
* @description Native ADA unstake. Omit `stakingType` or set `NATIVE`.
|
|
8
12
|
*/
|
|
9
13
|
export const AdaUnstakeIntent = t.intersection([
|
|
10
14
|
UnstakeIntent,
|
|
@@ -13,7 +17,30 @@ export const AdaUnstakeIntent = t.intersection([
|
|
|
13
17
|
}),
|
|
14
18
|
t.partial({
|
|
15
19
|
amount: Optional(Amount),
|
|
20
|
+
stakingType: Optional(AdaStakingType),
|
|
16
21
|
}),
|
|
17
22
|
]);
|
|
18
23
|
|
|
19
24
|
export type AdaUnstakeIntent = t.TypeOf<typeof AdaUnstakeIntent>;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @title ADA RealFi sUSDr Unstake Intent
|
|
28
|
+
*
|
|
29
|
+
* @description Unstake sUSDr (`intentType: unstake`, `stakingType: REALFI_SUSDR`).
|
|
30
|
+
* Extends `UnstakeIntent` (not `AdaUnstakeIntent`) — RealFi has no `poolKeyHash`.
|
|
31
|
+
*
|
|
32
|
+
* @param {Amount} amount sUSDr amount (`ada:susdr`)
|
|
33
|
+
* @param {string} destinationAddress Wallet address that receives funds
|
|
34
|
+
* @param {string} unlockSlot Slot after which funds can be claimed (decimal string; WP/SDK use bigint)
|
|
35
|
+
*/
|
|
36
|
+
export const AdaRealFiUnstakeIntent = t.intersection([
|
|
37
|
+
UnstakeIntent,
|
|
38
|
+
BaseIntentWithAmount,
|
|
39
|
+
t.type({
|
|
40
|
+
stakingType: t.literal("REALFI_SUSDR"),
|
|
41
|
+
destinationAddress: t.string,
|
|
42
|
+
unlockSlot: t.string,
|
|
43
|
+
}),
|
|
44
|
+
]);
|
|
45
|
+
|
|
46
|
+
export type AdaRealFiUnstakeIntent = t.TypeOf<typeof AdaRealFiUnstakeIntent>;
|
|
@@ -3,11 +3,13 @@ export * from "./accountBaseBuildOptions";
|
|
|
3
3
|
export * from "./accountBaseConsolidateIntent";
|
|
4
4
|
export * from "./accountBaseCreateAccountIntent";
|
|
5
5
|
export * from "./accountBaseUpdateAccountIntent";
|
|
6
|
+
export * from "./adaCancelIntent";
|
|
6
7
|
export * from "./adaConsolidateIntent";
|
|
7
8
|
export * from "./adaPaymentIntent";
|
|
8
9
|
export * from "./adaPledgeIntent";
|
|
9
10
|
export * from "./adaStakeClaimRewardsIntent";
|
|
10
11
|
export * from "./adaStakeIntent";
|
|
12
|
+
export * from "./adaStakingType";
|
|
11
13
|
export * from "./adaUnstakeIntent";
|
|
12
14
|
export * from "./adaVoteDelegationIntent";
|
|
13
15
|
export * from "./address";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as t from "io-ts";
|
|
2
2
|
import { AdaConsolidateIntent } from "./adaConsolidateIntent";
|
|
3
3
|
import { AdaPaymentIntent } from "./adaPaymentIntent";
|
|
4
|
-
import { AdaStakeIntent } from "./adaStakeIntent";
|
|
4
|
+
import { AdaRealFiStakeIntent, AdaStakeIntent } from "./adaStakeIntent";
|
|
5
|
+
import { AdaRealFiCancelIntent } from "./adaCancelIntent";
|
|
5
6
|
import { AdaVoteDelegationIntent } from "./adaVoteDelegationIntent";
|
|
6
7
|
import { AptCustomTxIntent } from "./aptCustomTxIntent";
|
|
7
8
|
import { AtomPaymentIntent } from "./atomPaymentIntent";
|
|
@@ -88,7 +89,7 @@ import { WalletRecoveryIntent } from "./walletRecoveryIntent";
|
|
|
88
89
|
import { SolConsolidateIntent } from "./solConsolidateIntent";
|
|
89
90
|
import { TonConsolidateIntent } from "./tonConsolidateIntent";
|
|
90
91
|
import { AdaStakeClaimRewardsIntent } from "./adaStakeClaimRewardsIntent";
|
|
91
|
-
import { AdaUnstakeIntent } from "./adaUnstakeIntent";
|
|
92
|
+
import { AdaRealFiUnstakeIntent, AdaUnstakeIntent } from "./adaUnstakeIntent";
|
|
92
93
|
import { SuiPaymentIntent } from "./suiPaymentIntent";
|
|
93
94
|
import { SuiConsolidateIntent } from "./suiConsolidateIntent";
|
|
94
95
|
import { MmiSignTransactionIntent } from "./mmiSignTransactionIntent";
|
|
@@ -159,8 +160,11 @@ export const TransactionIntent = t.union([
|
|
|
159
160
|
AdaConsolidateIntent,
|
|
160
161
|
AdaPaymentIntent,
|
|
161
162
|
AdaStakeClaimRewardsIntent,
|
|
163
|
+
AdaRealFiStakeIntent,
|
|
162
164
|
AdaStakeIntent,
|
|
165
|
+
AdaRealFiUnstakeIntent,
|
|
163
166
|
AdaUnstakeIntent,
|
|
167
|
+
AdaRealFiCancelIntent,
|
|
164
168
|
AdaVoteDelegationIntent,
|
|
165
169
|
AptCustomTxIntent,
|
|
166
170
|
AtomPaymentIntent,
|
|
@@ -8,6 +8,8 @@ export const intentTypes = {
|
|
|
8
8
|
fanout: t.literal("fanout"),
|
|
9
9
|
stake: t.literal("stake"),
|
|
10
10
|
unstake: t.literal("unstake"),
|
|
11
|
+
/** Cancel a pending staking order; pair with stakingType (e.g. REALFI_SUSDR). */
|
|
12
|
+
cancel: t.literal("cancel"),
|
|
11
13
|
delegate: t.literal("delegate"),
|
|
12
14
|
undelegate: t.literal("undelegate"),
|
|
13
15
|
switchValidator: t.literal("switchValidator"),
|