@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
|
@@ -149,3 +149,46 @@ export declare const EddsaMPCv2KeyGenRound2Response: t.TypeC<{
|
|
|
149
149
|
}>;
|
|
150
150
|
}>;
|
|
151
151
|
export type EddsaMPCv2KeyGenRound2Response = t.TypeOf<typeof EddsaMPCv2KeyGenRound2Response>;
|
|
152
|
+
export declare const RedpallasMPCv2KeyGenRound1Request: t.TypeC<{
|
|
153
|
+
userGpgPublicKey: import("io-ts-types").NonEmptyStringC;
|
|
154
|
+
backupGpgPublicKey: import("io-ts-types").NonEmptyStringC;
|
|
155
|
+
userMsg1: t.TypeC<{
|
|
156
|
+
message: t.StringC;
|
|
157
|
+
signature: t.StringC;
|
|
158
|
+
}>;
|
|
159
|
+
backupMsg1: t.TypeC<{
|
|
160
|
+
message: t.StringC;
|
|
161
|
+
signature: t.StringC;
|
|
162
|
+
}>;
|
|
163
|
+
}>;
|
|
164
|
+
export type RedpallasMPCv2KeyGenRound1Request = t.TypeOf<typeof RedpallasMPCv2KeyGenRound1Request>;
|
|
165
|
+
export declare const RedpallasMPCv2KeyGenRound1Response: t.TypeC<{
|
|
166
|
+
sessionId: import("io-ts-types").NonEmptyStringC;
|
|
167
|
+
bitgoMsg1: t.TypeC<{
|
|
168
|
+
message: t.StringC;
|
|
169
|
+
signature: t.StringC;
|
|
170
|
+
}>;
|
|
171
|
+
}>;
|
|
172
|
+
export type RedpallasMPCv2KeyGenRound1Response = t.TypeOf<typeof RedpallasMPCv2KeyGenRound1Response>;
|
|
173
|
+
export declare const RedpallasMPCv2KeyGenRound2Request: t.TypeC<{
|
|
174
|
+
sessionId: import("io-ts-types").NonEmptyStringC;
|
|
175
|
+
userMsg2: t.TypeC<{
|
|
176
|
+
message: t.StringC;
|
|
177
|
+
signature: t.StringC;
|
|
178
|
+
}>;
|
|
179
|
+
backupMsg2: t.TypeC<{
|
|
180
|
+
message: t.StringC;
|
|
181
|
+
signature: t.StringC;
|
|
182
|
+
}>;
|
|
183
|
+
derivationSeed: t.StringC;
|
|
184
|
+
}>;
|
|
185
|
+
export type RedpallasMPCv2KeyGenRound2Request = t.TypeOf<typeof RedpallasMPCv2KeyGenRound2Request>;
|
|
186
|
+
export declare const RedpallasMPCv2KeyGenRound2Response: t.TypeC<{
|
|
187
|
+
sessionId: import("io-ts-types").NonEmptyStringC;
|
|
188
|
+
commonPublicKeychain: import("io-ts-types").NonEmptyStringC;
|
|
189
|
+
bitgoMsg2: t.TypeC<{
|
|
190
|
+
message: t.StringC;
|
|
191
|
+
signature: t.StringC;
|
|
192
|
+
}>;
|
|
193
|
+
}>;
|
|
194
|
+
export type RedpallasMPCv2KeyGenRound2Response = t.TypeOf<typeof RedpallasMPCv2KeyGenRound2Response>;
|
|
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.EddsaMPCv2KeyGenRound2Response = exports.EddsaMPCv2KeyGenRound2Request = exports.EddsaMPCv2KeyGenRound1Response = exports.EddsaMPCv2KeyGenRound1Request = exports.MPCv2KeyGenRound3Response = exports.MPCv2KeyGenRound3Request = exports.MPCv2KeyGenRound2Response = exports.MPCv2KeyGenRound2Request = exports.MPCv2KeyGenRound1Response = exports.MPCv2KeyGenRound1Request = void 0;
|
|
26
|
+
exports.RedpallasMPCv2KeyGenRound2Response = exports.RedpallasMPCv2KeyGenRound2Request = exports.RedpallasMPCv2KeyGenRound1Response = exports.RedpallasMPCv2KeyGenRound1Request = exports.EddsaMPCv2KeyGenRound2Response = exports.EddsaMPCv2KeyGenRound2Request = exports.EddsaMPCv2KeyGenRound1Response = exports.EddsaMPCv2KeyGenRound1Request = exports.MPCv2KeyGenRound3Response = exports.MPCv2KeyGenRound3Request = exports.MPCv2KeyGenRound2Response = exports.MPCv2KeyGenRound2Request = exports.MPCv2KeyGenRound1Response = exports.MPCv2KeyGenRound1Request = void 0;
|
|
27
27
|
const t = __importStar(require("io-ts"));
|
|
28
28
|
const io_ts_types_1 = require("io-ts-types");
|
|
29
29
|
const common_1 = require("../common");
|
|
@@ -85,4 +85,25 @@ exports.EddsaMPCv2KeyGenRound2Response = t.type({
|
|
|
85
85
|
commonPublicKeychain: io_ts_types_1.NonEmptyString,
|
|
86
86
|
bitgoMsg2: common_1.EddsaMPCv2SignedMessage,
|
|
87
87
|
});
|
|
88
|
+
exports.RedpallasMPCv2KeyGenRound1Request = t.type({
|
|
89
|
+
userGpgPublicKey: io_ts_types_1.NonEmptyString,
|
|
90
|
+
backupGpgPublicKey: io_ts_types_1.NonEmptyString,
|
|
91
|
+
userMsg1: common_1.EddsaMPCv2SignedMessage,
|
|
92
|
+
backupMsg1: common_1.EddsaMPCv2SignedMessage,
|
|
93
|
+
});
|
|
94
|
+
exports.RedpallasMPCv2KeyGenRound1Response = t.type({
|
|
95
|
+
sessionId: io_ts_types_1.NonEmptyString,
|
|
96
|
+
bitgoMsg1: common_1.EddsaMPCv2SignedMessage,
|
|
97
|
+
});
|
|
98
|
+
exports.RedpallasMPCv2KeyGenRound2Request = t.type({
|
|
99
|
+
sessionId: io_ts_types_1.NonEmptyString,
|
|
100
|
+
userMsg2: common_1.EddsaMPCv2SignedMessage,
|
|
101
|
+
backupMsg2: common_1.EddsaMPCv2SignedMessage,
|
|
102
|
+
derivationSeed: t.string,
|
|
103
|
+
});
|
|
104
|
+
exports.RedpallasMPCv2KeyGenRound2Response = t.type({
|
|
105
|
+
sessionId: io_ts_types_1.NonEmptyString,
|
|
106
|
+
commonPublicKeychain: io_ts_types_1.NonEmptyString,
|
|
107
|
+
bitgoMsg2: common_1.EddsaMPCv2SignedMessage,
|
|
108
|
+
});
|
|
88
109
|
//# sourceMappingURL=keygenRound.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keygenRound.js","sourceRoot":"","sources":["../../../../../src/schema/mpcv2/keyGen/keygenRound.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA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kB,EAAE,4BAAc;IAClC,QAAQ,EAAE,gCAAuB;IACjC,UAAU,EAAE,gCAAuB;CACpC,CAAC,CAAC;AAKU,QAAA,kCAAkC,GAAG,CAAC,CAAC,IAAI,CAAC;IACvD,SAAS,EAAE,4BAAc;IACzB,SAAS,EAAE,gCAAuB;CACnC,CAAC,CAAC;AAKU,QAAA,iCAAiC,GAAG,CAAC,CAAC,IAAI,CAAC;IACtD,SAAS,EAAE,4BAAc;IACzB,QAAQ,EAAE,gCAAuB;IACjC,UAAU,EAAE,gCAAuB;IAEnC,cAAc,EAAE,CAAC,CAAC,MAAM;CACzB,CAAC,CAAC;AAKU,QAAA,kCAAkC,GAAG,CAAC,CAAC,IAAI,CAAC;IACvD,SAAS,EAAE,4BAAc;IACzB,oBAAoB,EAAE,4BAAc;IACpC,SAAS,EAAE,gCAAuB;CACnC,CAAC,CAAC"}
|
|
@@ -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";
|
|
@@ -18,6 +18,8 @@ __exportStar(require("./keygenRound"), exports);
|
|
|
18
18
|
__exportStar(require("./keygenState"), exports);
|
|
19
19
|
__exportStar(require("./eddsaKeygenRound"), exports);
|
|
20
20
|
__exportStar(require("./eddsaKeygenState"), exports);
|
|
21
|
+
__exportStar(require("./redpallasKeygenRound"), exports);
|
|
22
|
+
__exportStar(require("./redpallasKeygenState"), exports);
|
|
21
23
|
__exportStar(require("./walletType"), exports);
|
|
22
24
|
__exportStar(require("./dsgType"), exports);
|
|
23
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/schema/mpcv2/smc/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,gDAA8B;AAC9B,qDAAmC;AACnC,qDAAmC;AACnC,+CAA6B;AAC7B,4CAA0B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/schema/mpcv2/smc/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,gDAA8B;AAC9B,qDAAmC;AACnC,qDAAmC;AACnC,yDAAuC;AACvC,yDAAuC;AACvC,+CAA6B;AAC7B,4CAA0B"}
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
export declare const RedpallasOVC1ToBitgoRound1Payload: t.IntersectionC<[t.TypeC<{
|
|
3
|
+
state: t.UnionC<[t.LiteralC<import("./redpallasKeygenState").RedpallasKeyCreationMPCv2StateEnum.WaitingForOVC1Round0Data>, t.LiteralC<import("./redpallasKeygenState").RedpallasKeyCreationMPCv2StateEnum.WaitingForOVC1Round1Data>, t.LiteralC<import("./redpallasKeygenState").RedpallasKeyCreationMPCv2StateEnum.WaitingForOVC2Round1Data>, t.LiteralC<import("./redpallasKeygenState").RedpallasKeyCreationMPCv2StateEnum.WaitingForBitgoRound1Data>, t.LiteralC<import("./redpallasKeygenState").RedpallasKeyCreationMPCv2StateEnum.WaitingForOVC1Round2Data>, t.LiteralC<import("./redpallasKeygenState").RedpallasKeyCreationMPCv2StateEnum.WaitingForOVC2Round2Data>, t.LiteralC<import("./redpallasKeygenState").RedpallasKeyCreationMPCv2StateEnum.WaitingForBitgoRound2Data>, t.LiteralC<import("./redpallasKeygenState").RedpallasKeyCreationMPCv2StateEnum.WaitingForOVC1GenerateKey>, t.LiteralC<import("./redpallasKeygenState").RedpallasKeyCreationMPCv2StateEnum.WaitingForOVC2GenerateKey>, t.LiteralC<import("./redpallasKeygenState").RedpallasKeyCreationMPCv2StateEnum.KeyGenerationComplete>]>;
|
|
4
|
+
tssVersion: import("io-ts-types").NonEmptyStringC;
|
|
5
|
+
walletType: t.KeyofC<typeof import("./walletType").WalletTypeEnum>;
|
|
6
|
+
coin: import("io-ts-types").NonEmptyStringC;
|
|
7
|
+
}>, t.TypeC<{
|
|
8
|
+
ovc: t.TypeC<{
|
|
9
|
+
1: t.TypeC<{
|
|
10
|
+
gpgPubKey: import("io-ts-types").NonEmptyStringC;
|
|
11
|
+
ovcMsg1: t.TypeC<{
|
|
12
|
+
message: t.StringC;
|
|
13
|
+
signature: t.StringC;
|
|
14
|
+
}>;
|
|
15
|
+
}>;
|
|
16
|
+
2: t.TypeC<{
|
|
17
|
+
gpgPubKey: import("io-ts-types").NonEmptyStringC;
|
|
18
|
+
ovcMsg1: t.TypeC<{
|
|
19
|
+
message: t.StringC;
|
|
20
|
+
signature: t.StringC;
|
|
21
|
+
}>;
|
|
22
|
+
}>;
|
|
23
|
+
}>;
|
|
24
|
+
}>]>;
|
|
25
|
+
export type RedpallasOVC1ToBitgoRound1Payload = t.TypeOf<typeof RedpallasOVC1ToBitgoRound1Payload>;
|
|
26
|
+
export declare const RedpallasPlatformRound1Payload: t.TypeC<{
|
|
27
|
+
sessionId: import("io-ts-types").NonEmptyStringC;
|
|
28
|
+
bitgoMsg1: t.TypeC<{
|
|
29
|
+
message: t.StringC;
|
|
30
|
+
signature: t.StringC;
|
|
31
|
+
}>;
|
|
32
|
+
}>;
|
|
33
|
+
export type RedpallasPlatformRound1Payload = t.TypeOf<typeof RedpallasPlatformRound1Payload>;
|
|
34
|
+
export declare const RedpallasBitgoToOVC1Round1Response: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
35
|
+
state: t.UnionC<[t.LiteralC<import("./redpallasKeygenState").RedpallasKeyCreationMPCv2StateEnum.WaitingForOVC1Round0Data>, t.LiteralC<import("./redpallasKeygenState").RedpallasKeyCreationMPCv2StateEnum.WaitingForOVC1Round1Data>, t.LiteralC<import("./redpallasKeygenState").RedpallasKeyCreationMPCv2StateEnum.WaitingForOVC2Round1Data>, t.LiteralC<import("./redpallasKeygenState").RedpallasKeyCreationMPCv2StateEnum.WaitingForBitgoRound1Data>, t.LiteralC<import("./redpallasKeygenState").RedpallasKeyCreationMPCv2StateEnum.WaitingForOVC1Round2Data>, t.LiteralC<import("./redpallasKeygenState").RedpallasKeyCreationMPCv2StateEnum.WaitingForOVC2Round2Data>, t.LiteralC<import("./redpallasKeygenState").RedpallasKeyCreationMPCv2StateEnum.WaitingForBitgoRound2Data>, t.LiteralC<import("./redpallasKeygenState").RedpallasKeyCreationMPCv2StateEnum.WaitingForOVC1GenerateKey>, t.LiteralC<import("./redpallasKeygenState").RedpallasKeyCreationMPCv2StateEnum.WaitingForOVC2GenerateKey>, t.LiteralC<import("./redpallasKeygenState").RedpallasKeyCreationMPCv2StateEnum.KeyGenerationComplete>]>;
|
|
36
|
+
tssVersion: import("io-ts-types").NonEmptyStringC;
|
|
37
|
+
walletType: t.KeyofC<typeof import("./walletType").WalletTypeEnum>;
|
|
38
|
+
coin: import("io-ts-types").NonEmptyStringC;
|
|
39
|
+
}>, t.TypeC<{
|
|
40
|
+
ovc: t.TypeC<{
|
|
41
|
+
1: t.TypeC<{
|
|
42
|
+
gpgPubKey: import("io-ts-types").NonEmptyStringC;
|
|
43
|
+
ovcMsg1: t.TypeC<{
|
|
44
|
+
message: t.StringC;
|
|
45
|
+
signature: t.StringC;
|
|
46
|
+
}>;
|
|
47
|
+
}>;
|
|
48
|
+
2: t.TypeC<{
|
|
49
|
+
gpgPubKey: import("io-ts-types").NonEmptyStringC;
|
|
50
|
+
ovcMsg1: t.TypeC<{
|
|
51
|
+
message: t.StringC;
|
|
52
|
+
signature: t.StringC;
|
|
53
|
+
}>;
|
|
54
|
+
}>;
|
|
55
|
+
}>;
|
|
56
|
+
}>]>, t.TypeC<{
|
|
57
|
+
platform: t.TypeC<{
|
|
58
|
+
sessionId: import("io-ts-types").NonEmptyStringC;
|
|
59
|
+
bitgoMsg1: t.TypeC<{
|
|
60
|
+
message: t.StringC;
|
|
61
|
+
signature: t.StringC;
|
|
62
|
+
}>;
|
|
63
|
+
}>;
|
|
64
|
+
}>]>;
|
|
65
|
+
export type RedpallasBitgoToOVC1Round1Response = t.TypeOf<typeof RedpallasBitgoToOVC1Round1Response>;
|
|
66
|
+
export declare const RedpallasOVC2ToBitgoRound2Payload: t.IntersectionC<[t.TypeC<{
|
|
67
|
+
state: t.UnionC<[t.LiteralC<import("./redpallasKeygenState").RedpallasKeyCreationMPCv2StateEnum.WaitingForOVC1Round0Data>, t.LiteralC<import("./redpallasKeygenState").RedpallasKeyCreationMPCv2StateEnum.WaitingForOVC1Round1Data>, t.LiteralC<import("./redpallasKeygenState").RedpallasKeyCreationMPCv2StateEnum.WaitingForOVC2Round1Data>, t.LiteralC<import("./redpallasKeygenState").RedpallasKeyCreationMPCv2StateEnum.WaitingForBitgoRound1Data>, t.LiteralC<import("./redpallasKeygenState").RedpallasKeyCreationMPCv2StateEnum.WaitingForOVC1Round2Data>, t.LiteralC<import("./redpallasKeygenState").RedpallasKeyCreationMPCv2StateEnum.WaitingForOVC2Round2Data>, t.LiteralC<import("./redpallasKeygenState").RedpallasKeyCreationMPCv2StateEnum.WaitingForBitgoRound2Data>, t.LiteralC<import("./redpallasKeygenState").RedpallasKeyCreationMPCv2StateEnum.WaitingForOVC1GenerateKey>, t.LiteralC<import("./redpallasKeygenState").RedpallasKeyCreationMPCv2StateEnum.WaitingForOVC2GenerateKey>, t.LiteralC<import("./redpallasKeygenState").RedpallasKeyCreationMPCv2StateEnum.KeyGenerationComplete>]>;
|
|
68
|
+
tssVersion: import("io-ts-types").NonEmptyStringC;
|
|
69
|
+
walletType: t.KeyofC<typeof import("./walletType").WalletTypeEnum>;
|
|
70
|
+
coin: import("io-ts-types").NonEmptyStringC;
|
|
71
|
+
}>, t.TypeC<{
|
|
72
|
+
ovc: t.TypeC<{
|
|
73
|
+
1: t.TypeC<{
|
|
74
|
+
gpgPubKey: import("io-ts-types").NonEmptyStringC;
|
|
75
|
+
ovcMsg1: t.TypeC<{
|
|
76
|
+
message: t.StringC;
|
|
77
|
+
signature: t.StringC;
|
|
78
|
+
}>;
|
|
79
|
+
ovcMsg2: t.TypeC<{
|
|
80
|
+
message: t.StringC;
|
|
81
|
+
signature: t.StringC;
|
|
82
|
+
}>;
|
|
83
|
+
}>;
|
|
84
|
+
2: t.TypeC<{
|
|
85
|
+
gpgPubKey: import("io-ts-types").NonEmptyStringC;
|
|
86
|
+
ovcMsg1: t.TypeC<{
|
|
87
|
+
message: t.StringC;
|
|
88
|
+
signature: t.StringC;
|
|
89
|
+
}>;
|
|
90
|
+
ovcMsg2: t.TypeC<{
|
|
91
|
+
message: t.StringC;
|
|
92
|
+
signature: t.StringC;
|
|
93
|
+
}>;
|
|
94
|
+
}>;
|
|
95
|
+
}>;
|
|
96
|
+
platform: t.TypeC<{
|
|
97
|
+
sessionId: import("io-ts-types").NonEmptyStringC;
|
|
98
|
+
bitgoMsg1: t.TypeC<{
|
|
99
|
+
message: t.StringC;
|
|
100
|
+
signature: t.StringC;
|
|
101
|
+
}>;
|
|
102
|
+
}>;
|
|
103
|
+
derivationSeed: t.StringC;
|
|
104
|
+
}>]>;
|
|
105
|
+
export type RedpallasOVC2ToBitgoRound2Payload = t.TypeOf<typeof RedpallasOVC2ToBitgoRound2Payload>;
|
|
106
|
+
export declare const RedpallasPlatformRound2Payload: t.IntersectionC<[t.TypeC<{
|
|
107
|
+
sessionId: import("io-ts-types").NonEmptyStringC;
|
|
108
|
+
bitgoMsg1: t.TypeC<{
|
|
109
|
+
message: t.StringC;
|
|
110
|
+
signature: t.StringC;
|
|
111
|
+
}>;
|
|
112
|
+
}>, t.TypeC<{
|
|
113
|
+
commonPublicKeychain: import("io-ts-types").NonEmptyStringC;
|
|
114
|
+
bitgoMsg2: t.TypeC<{
|
|
115
|
+
message: t.StringC;
|
|
116
|
+
signature: t.StringC;
|
|
117
|
+
}>;
|
|
118
|
+
}>]>;
|
|
119
|
+
export type RedpallasPlatformRound2Payload = t.TypeOf<typeof RedpallasPlatformRound2Payload>;
|
|
120
|
+
export declare const RedpallasBitgoToOVC1Round2Response: t.IntersectionC<[t.TypeC<{
|
|
121
|
+
bitGoKeyId: import("io-ts-types").NonEmptyStringC;
|
|
122
|
+
}>, t.IntersectionC<[t.TypeC<{
|
|
123
|
+
state: t.UnionC<[t.LiteralC<import("./redpallasKeygenState").RedpallasKeyCreationMPCv2StateEnum.WaitingForOVC1Round0Data>, t.LiteralC<import("./redpallasKeygenState").RedpallasKeyCreationMPCv2StateEnum.WaitingForOVC1Round1Data>, t.LiteralC<import("./redpallasKeygenState").RedpallasKeyCreationMPCv2StateEnum.WaitingForOVC2Round1Data>, t.LiteralC<import("./redpallasKeygenState").RedpallasKeyCreationMPCv2StateEnum.WaitingForBitgoRound1Data>, t.LiteralC<import("./redpallasKeygenState").RedpallasKeyCreationMPCv2StateEnum.WaitingForOVC1Round2Data>, t.LiteralC<import("./redpallasKeygenState").RedpallasKeyCreationMPCv2StateEnum.WaitingForOVC2Round2Data>, t.LiteralC<import("./redpallasKeygenState").RedpallasKeyCreationMPCv2StateEnum.WaitingForBitgoRound2Data>, t.LiteralC<import("./redpallasKeygenState").RedpallasKeyCreationMPCv2StateEnum.WaitingForOVC1GenerateKey>, t.LiteralC<import("./redpallasKeygenState").RedpallasKeyCreationMPCv2StateEnum.WaitingForOVC2GenerateKey>, t.LiteralC<import("./redpallasKeygenState").RedpallasKeyCreationMPCv2StateEnum.KeyGenerationComplete>]>;
|
|
124
|
+
tssVersion: import("io-ts-types").NonEmptyStringC;
|
|
125
|
+
walletType: t.KeyofC<typeof import("./walletType").WalletTypeEnum>;
|
|
126
|
+
coin: import("io-ts-types").NonEmptyStringC;
|
|
127
|
+
}>, t.TypeC<{
|
|
128
|
+
ovc: t.TypeC<{
|
|
129
|
+
1: t.TypeC<{
|
|
130
|
+
gpgPubKey: import("io-ts-types").NonEmptyStringC;
|
|
131
|
+
ovcMsg1: t.TypeC<{
|
|
132
|
+
message: t.StringC;
|
|
133
|
+
signature: t.StringC;
|
|
134
|
+
}>;
|
|
135
|
+
ovcMsg2: t.TypeC<{
|
|
136
|
+
message: t.StringC;
|
|
137
|
+
signature: t.StringC;
|
|
138
|
+
}>;
|
|
139
|
+
}>;
|
|
140
|
+
2: t.TypeC<{
|
|
141
|
+
gpgPubKey: import("io-ts-types").NonEmptyStringC;
|
|
142
|
+
ovcMsg1: t.TypeC<{
|
|
143
|
+
message: t.StringC;
|
|
144
|
+
signature: t.StringC;
|
|
145
|
+
}>;
|
|
146
|
+
ovcMsg2: t.TypeC<{
|
|
147
|
+
message: t.StringC;
|
|
148
|
+
signature: t.StringC;
|
|
149
|
+
}>;
|
|
150
|
+
}>;
|
|
151
|
+
}>;
|
|
152
|
+
platform: t.TypeC<{
|
|
153
|
+
sessionId: import("io-ts-types").NonEmptyStringC;
|
|
154
|
+
bitgoMsg1: t.TypeC<{
|
|
155
|
+
message: t.StringC;
|
|
156
|
+
signature: t.StringC;
|
|
157
|
+
}>;
|
|
158
|
+
}>;
|
|
159
|
+
derivationSeed: t.StringC;
|
|
160
|
+
}>]>, t.TypeC<{
|
|
161
|
+
platform: t.IntersectionC<[t.TypeC<{
|
|
162
|
+
sessionId: import("io-ts-types").NonEmptyStringC;
|
|
163
|
+
bitgoMsg1: t.TypeC<{
|
|
164
|
+
message: t.StringC;
|
|
165
|
+
signature: t.StringC;
|
|
166
|
+
}>;
|
|
167
|
+
}>, t.TypeC<{
|
|
168
|
+
commonPublicKeychain: import("io-ts-types").NonEmptyStringC;
|
|
169
|
+
bitgoMsg2: t.TypeC<{
|
|
170
|
+
message: t.StringC;
|
|
171
|
+
signature: t.StringC;
|
|
172
|
+
}>;
|
|
173
|
+
}>]>;
|
|
174
|
+
}>]>;
|
|
175
|
+
export type RedpallasBitgoToOVC1Round2Response = t.TypeOf<typeof RedpallasBitgoToOVC1Round2Response>;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.RedpallasBitgoToOVC1Round2Response = exports.RedpallasPlatformRound2Payload = exports.RedpallasOVC2ToBitgoRound2Payload = exports.RedpallasBitgoToOVC1Round1Response = exports.RedpallasPlatformRound1Payload = exports.RedpallasOVC1ToBitgoRound1Payload = void 0;
|
|
27
|
+
const t = __importStar(require("io-ts"));
|
|
28
|
+
const io_ts_types_1 = require("io-ts-types");
|
|
29
|
+
const common_1 = require("../common");
|
|
30
|
+
const redpallasKeygenState_1 = require("./redpallasKeygenState");
|
|
31
|
+
const keygenRound_1 = require("./keygenRound");
|
|
32
|
+
const walletType_1 = require("./walletType");
|
|
33
|
+
const BaseRoundPayload = t.type({
|
|
34
|
+
state: redpallasKeygenState_1.RedpallasKeyCreationMPCv2State,
|
|
35
|
+
tssVersion: io_ts_types_1.NonEmptyString,
|
|
36
|
+
walletType: walletType_1.WalletType,
|
|
37
|
+
coin: io_ts_types_1.NonEmptyString,
|
|
38
|
+
});
|
|
39
|
+
exports.RedpallasOVC1ToBitgoRound1Payload = t.intersection([
|
|
40
|
+
BaseRoundPayload,
|
|
41
|
+
t.type({
|
|
42
|
+
ovc: t.type({
|
|
43
|
+
[keygenRound_1.OVCIndexEnum.ONE]: t.type({
|
|
44
|
+
gpgPubKey: io_ts_types_1.NonEmptyString,
|
|
45
|
+
ovcMsg1: common_1.EddsaMPCv2SignedMessage,
|
|
46
|
+
}),
|
|
47
|
+
[keygenRound_1.OVCIndexEnum.TWO]: t.type({
|
|
48
|
+
gpgPubKey: io_ts_types_1.NonEmptyString,
|
|
49
|
+
ovcMsg1: common_1.EddsaMPCv2SignedMessage,
|
|
50
|
+
}),
|
|
51
|
+
}),
|
|
52
|
+
}),
|
|
53
|
+
]);
|
|
54
|
+
exports.RedpallasPlatformRound1Payload = t.type({
|
|
55
|
+
sessionId: io_ts_types_1.NonEmptyString,
|
|
56
|
+
bitgoMsg1: common_1.EddsaMPCv2SignedMessage,
|
|
57
|
+
});
|
|
58
|
+
exports.RedpallasBitgoToOVC1Round1Response = t.intersection([
|
|
59
|
+
exports.RedpallasOVC1ToBitgoRound1Payload,
|
|
60
|
+
t.type({ platform: exports.RedpallasPlatformRound1Payload }),
|
|
61
|
+
]);
|
|
62
|
+
exports.RedpallasOVC2ToBitgoRound2Payload = t.intersection([
|
|
63
|
+
BaseRoundPayload,
|
|
64
|
+
t.type({
|
|
65
|
+
ovc: t.type({
|
|
66
|
+
[keygenRound_1.OVCIndexEnum.ONE]: t.type({
|
|
67
|
+
gpgPubKey: io_ts_types_1.NonEmptyString,
|
|
68
|
+
ovcMsg1: common_1.EddsaMPCv2SignedMessage,
|
|
69
|
+
ovcMsg2: common_1.EddsaMPCv2SignedMessage,
|
|
70
|
+
}),
|
|
71
|
+
[keygenRound_1.OVCIndexEnum.TWO]: t.type({
|
|
72
|
+
gpgPubKey: io_ts_types_1.NonEmptyString,
|
|
73
|
+
ovcMsg1: common_1.EddsaMPCv2SignedMessage,
|
|
74
|
+
ovcMsg2: common_1.EddsaMPCv2SignedMessage,
|
|
75
|
+
}),
|
|
76
|
+
}),
|
|
77
|
+
platform: exports.RedpallasPlatformRound1Payload,
|
|
78
|
+
derivationSeed: t.string,
|
|
79
|
+
}),
|
|
80
|
+
]);
|
|
81
|
+
exports.RedpallasPlatformRound2Payload = t.intersection([
|
|
82
|
+
exports.RedpallasPlatformRound1Payload,
|
|
83
|
+
t.type({
|
|
84
|
+
commonPublicKeychain: io_ts_types_1.NonEmptyString,
|
|
85
|
+
bitgoMsg2: common_1.EddsaMPCv2SignedMessage,
|
|
86
|
+
}),
|
|
87
|
+
]);
|
|
88
|
+
exports.RedpallasBitgoToOVC1Round2Response = t.intersection([
|
|
89
|
+
t.type({ bitGoKeyId: io_ts_types_1.NonEmptyString }),
|
|
90
|
+
exports.RedpallasOVC2ToBitgoRound2Payload,
|
|
91
|
+
t.type({ platform: exports.RedpallasPlatformRound2Payload }),
|
|
92
|
+
]);
|
|
93
|
+
//# sourceMappingURL=redpallasKeygenRound.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"redpallasKeygenRound.js","sourceRoot":"","sources":["../../../../../src/schema/mpcv2/smc/redpallasKeygenRound.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA6C;AAE7C,sCAAoD;AACpD,iEAAwE;AACxE,+CAA6C;AAC7C,6CAA0C;AAE1C,MAAM,gBAAgB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC9B,KAAK,EAAE,qDAA8B;IACrC,UAAU,EAAE,4BAAc;IAC1B,UAAU,EAAE,uBAAU;IACtB,IAAI,EAAE,4BAAc;CACr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Ac,EAAE,CAAC,CAAC,MAAM;KACzB,CAAC;CACH,CAAC,CAAC;AAMU,QAAA,8BAA8B,GAAG,CAAC,CAAC,YAAY,CAAC;IAC3D,sCAA8B;IAC9B,CAAC,CAAC,IAAI,CAAC;QACL,oBAAoB,EAAE,4BAAc;QACpC,SAAS,EAAE,gCAAuB;KACnC,CAAC;CACH,CAAC,CAAC;AAMU,QAAA,kCAAkC,GAAG,CAAC,CAAC,YAAY,CAAC;IAC/D,CAAC,CAAC,IAAI,CAAC,EAAE,UAAU,EAAE,4BAAc,EAAE,CAAC;IACtC,yCAAiC;IACjC,CAAC,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,sCAA8B,EAAE,CAAC;CACrD,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
export declare enum RedpallasKeyCreationMPCv2StateEnum {
|
|
3
|
+
WaitingForOVC1Round0Data = -1,
|
|
4
|
+
WaitingForOVC2Round1Data = 0,
|
|
5
|
+
WaitingForOVC1Round1Data = 1,
|
|
6
|
+
WaitingForBitgoRound1Data = 2,
|
|
7
|
+
WaitingForOVC1Round2Data = 3,
|
|
8
|
+
WaitingForOVC2Round2Data = 4,
|
|
9
|
+
WaitingForBitgoRound2Data = 5,
|
|
10
|
+
WaitingForOVC1GenerateKey = 6,
|
|
11
|
+
WaitingForOVC2GenerateKey = 7,
|
|
12
|
+
KeyGenerationComplete = 8
|
|
13
|
+
}
|
|
14
|
+
export declare const RedpallasKeyCreationMPCv2State: t.UnionC<[t.LiteralC<RedpallasKeyCreationMPCv2StateEnum.WaitingForOVC1Round0Data>, t.LiteralC<RedpallasKeyCreationMPCv2StateEnum.WaitingForOVC1Round1Data>, t.LiteralC<RedpallasKeyCreationMPCv2StateEnum.WaitingForOVC2Round1Data>, t.LiteralC<RedpallasKeyCreationMPCv2StateEnum.WaitingForBitgoRound1Data>, t.LiteralC<RedpallasKeyCreationMPCv2StateEnum.WaitingForOVC1Round2Data>, t.LiteralC<RedpallasKeyCreationMPCv2StateEnum.WaitingForOVC2Round2Data>, t.LiteralC<RedpallasKeyCreationMPCv2StateEnum.WaitingForBitgoRound2Data>, t.LiteralC<RedpallasKeyCreationMPCv2StateEnum.WaitingForOVC1GenerateKey>, t.LiteralC<RedpallasKeyCreationMPCv2StateEnum.WaitingForOVC2GenerateKey>, t.LiteralC<RedpallasKeyCreationMPCv2StateEnum.KeyGenerationComplete>]>;
|
|
15
|
+
export type RedpallasKeyCreationMPCv2State = t.TypeOf<typeof RedpallasKeyCreationMPCv2State>;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.RedpallasKeyCreationMPCv2State = exports.RedpallasKeyCreationMPCv2StateEnum = void 0;
|
|
27
|
+
const t = __importStar(require("io-ts"));
|
|
28
|
+
var RedpallasKeyCreationMPCv2StateEnum;
|
|
29
|
+
(function (RedpallasKeyCreationMPCv2StateEnum) {
|
|
30
|
+
RedpallasKeyCreationMPCv2StateEnum[RedpallasKeyCreationMPCv2StateEnum["WaitingForOVC1Round0Data"] = -1] = "WaitingForOVC1Round0Data";
|
|
31
|
+
RedpallasKeyCreationMPCv2StateEnum[RedpallasKeyCreationMPCv2StateEnum["WaitingForOVC2Round1Data"] = 0] = "WaitingForOVC2Round1Data";
|
|
32
|
+
RedpallasKeyCreationMPCv2StateEnum[RedpallasKeyCreationMPCv2StateEnum["WaitingForOVC1Round1Data"] = 1] = "WaitingForOVC1Round1Data";
|
|
33
|
+
RedpallasKeyCreationMPCv2StateEnum[RedpallasKeyCreationMPCv2StateEnum["WaitingForBitgoRound1Data"] = 2] = "WaitingForBitgoRound1Data";
|
|
34
|
+
RedpallasKeyCreationMPCv2StateEnum[RedpallasKeyCreationMPCv2StateEnum["WaitingForOVC1Round2Data"] = 3] = "WaitingForOVC1Round2Data";
|
|
35
|
+
RedpallasKeyCreationMPCv2StateEnum[RedpallasKeyCreationMPCv2StateEnum["WaitingForOVC2Round2Data"] = 4] = "WaitingForOVC2Round2Data";
|
|
36
|
+
RedpallasKeyCreationMPCv2StateEnum[RedpallasKeyCreationMPCv2StateEnum["WaitingForBitgoRound2Data"] = 5] = "WaitingForBitgoRound2Data";
|
|
37
|
+
RedpallasKeyCreationMPCv2StateEnum[RedpallasKeyCreationMPCv2StateEnum["WaitingForOVC1GenerateKey"] = 6] = "WaitingForOVC1GenerateKey";
|
|
38
|
+
RedpallasKeyCreationMPCv2StateEnum[RedpallasKeyCreationMPCv2StateEnum["WaitingForOVC2GenerateKey"] = 7] = "WaitingForOVC2GenerateKey";
|
|
39
|
+
RedpallasKeyCreationMPCv2StateEnum[RedpallasKeyCreationMPCv2StateEnum["KeyGenerationComplete"] = 8] = "KeyGenerationComplete";
|
|
40
|
+
})(RedpallasKeyCreationMPCv2StateEnum || (exports.RedpallasKeyCreationMPCv2StateEnum = RedpallasKeyCreationMPCv2StateEnum = {}));
|
|
41
|
+
exports.RedpallasKeyCreationMPCv2State = t.union([
|
|
42
|
+
t.literal(RedpallasKeyCreationMPCv2StateEnum.WaitingForOVC1Round0Data),
|
|
43
|
+
t.literal(RedpallasKeyCreationMPCv2StateEnum.WaitingForOVC1Round1Data),
|
|
44
|
+
t.literal(RedpallasKeyCreationMPCv2StateEnum.WaitingForOVC2Round1Data),
|
|
45
|
+
t.literal(RedpallasKeyCreationMPCv2StateEnum.WaitingForBitgoRound1Data),
|
|
46
|
+
t.literal(RedpallasKeyCreationMPCv2StateEnum.WaitingForOVC1Round2Data),
|
|
47
|
+
t.literal(RedpallasKeyCreationMPCv2StateEnum.WaitingForOVC2Round2Data),
|
|
48
|
+
t.literal(RedpallasKeyCreationMPCv2StateEnum.WaitingForBitgoRound2Data),
|
|
49
|
+
t.literal(RedpallasKeyCreationMPCv2StateEnum.WaitingForOVC1GenerateKey),
|
|
50
|
+
t.literal(RedpallasKeyCreationMPCv2StateEnum.WaitingForOVC2GenerateKey),
|
|
51
|
+
t.literal(RedpallasKeyCreationMPCv2StateEnum.KeyGenerationComplete),
|
|
52
|
+
]);
|
|
53
|
+
//# sourceMappingURL=redpallasKeygenState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"redpallasKeygenState.js","sourceRoot":"","sources":["../../../../../src/schema/mpcv2/smc/redpallasKeygenState.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAE3B,IAAY,kCAWX;AAXD,WAAY,kCAAkC;IAC5C,oIAA6B,CAAA;IAC7B,mIAAwB,CAAA;IACxB,mIAAwB,CAAA;IACxB,qIAAyB,CAAA;IACzB,mIAAwB,CAAA;IACxB,mIAAwB,CAAA;IACxB,qIAAyB,CAAA;IACzB,qIAAyB,CAAA;IACzB,qIAAyB,CAAA;IACzB,6HAAqB,CAAA;AACvB,CAAC,EAXW,kCAAkC,kDAAlC,kCAAkC,QAW7C;AAEY,QAAA,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC;IACpD,CAAC,CAAC,OAAO,CAAC,kCAAkC,CAAC,wBAAwB,CAAC;IACtE,CAAC,CAAC,OAAO,CAAC,kCAAkC,CAAC,wBAAwB,CAAC;IACtE,CAAC,CAAC,OAAO,CAAC,kCAAkC,CAAC,wBAAwB,CAAC;IACtE,CAAC,CAAC,OAAO,CAAC,kCAAkC,CAAC,yBAAyB,CAAC;IACvE,CAAC,CAAC,OAAO,CAAC,kCAAkC,CAAC,wBAAwB,CAAC;IACtE,CAAC,CAAC,OAAO,CAAC,kCAAkC,CAAC,wBAAwB,CAAC;IACtE,CAAC,CAAC,OAAO,CAAC,kCAAkC,CAAC,yBAAyB,CAAC;IACvE,CAAC,CAAC,OAAO,CAAC,kCAAkC,CAAC,yBAAyB,CAAC;IACvE,CAAC,CAAC,OAAO,CAAC,kCAAkC,CAAC,yBAAyB,CAAC;IACvE,CAAC,CAAC,OAAO,CAAC,kCAAkC,CAAC,qBAAqB,CAAC;CACpE,CAAC,CAAC"}
|
|
@@ -8,6 +8,7 @@ export declare const AccelerationIntent: t.IntersectionC<[t.IntersectionC<[t.Typ
|
|
|
8
8
|
fanout: t.LiteralC<"fanout">;
|
|
9
9
|
stake: t.LiteralC<"stake">;
|
|
10
10
|
unstake: t.LiteralC<"unstake">;
|
|
11
|
+
cancel: t.LiteralC<"cancel">;
|
|
11
12
|
delegate: t.LiteralC<"delegate">;
|
|
12
13
|
undelegate: t.LiteralC<"undelegate">;
|
|
13
14
|
switchValidator: t.LiteralC<"switchValidator">;
|
|
@@ -8,6 +8,7 @@ export declare const AccountBaseCreateAccountIntent: t.IntersectionC<[t.Intersec
|
|
|
8
8
|
fanout: t.LiteralC<"fanout">;
|
|
9
9
|
stake: t.LiteralC<"stake">;
|
|
10
10
|
unstake: t.LiteralC<"unstake">;
|
|
11
|
+
cancel: t.LiteralC<"cancel">;
|
|
11
12
|
delegate: t.LiteralC<"delegate">;
|
|
12
13
|
undelegate: t.LiteralC<"undelegate">;
|
|
13
14
|
switchValidator: t.LiteralC<"switchValidator">;
|
|
@@ -8,6 +8,7 @@ export declare const AccountBaseUpdateAccountIntent: t.IntersectionC<[t.Intersec
|
|
|
8
8
|
fanout: t.LiteralC<"fanout">;
|
|
9
9
|
stake: t.LiteralC<"stake">;
|
|
10
10
|
unstake: t.LiteralC<"unstake">;
|
|
11
|
+
cancel: t.LiteralC<"cancel">;
|
|
11
12
|
delegate: t.LiteralC<"delegate">;
|
|
12
13
|
undelegate: t.LiteralC<"undelegate">;
|
|
13
14
|
switchValidator: t.LiteralC<"switchValidator">;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
export declare const AdaRealFiCancelIntent: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
3
|
+
intentType: t.KeyofC<{
|
|
4
|
+
payment: t.LiteralC<"payment">;
|
|
5
|
+
transferToken: t.LiteralC<"transferToken">;
|
|
6
|
+
consolidate: t.LiteralC<"consolidate">;
|
|
7
|
+
consolidateToken: t.LiteralC<"consolidateToken">;
|
|
8
|
+
fanout: t.LiteralC<"fanout">;
|
|
9
|
+
stake: t.LiteralC<"stake">;
|
|
10
|
+
unstake: t.LiteralC<"unstake">;
|
|
11
|
+
cancel: t.LiteralC<"cancel">;
|
|
12
|
+
delegate: t.LiteralC<"delegate">;
|
|
13
|
+
undelegate: t.LiteralC<"undelegate">;
|
|
14
|
+
switchValidator: t.LiteralC<"switchValidator">;
|
|
15
|
+
claim: t.LiteralC<"claim">;
|
|
16
|
+
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
|
17
|
+
pledge: t.LiteralC<"pledge">;
|
|
18
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
|
19
|
+
vote: t.LiteralC<"vote">;
|
|
20
|
+
createAccount: t.LiteralC<"createAccount">;
|
|
21
|
+
updateAccount: t.LiteralC<"updateAccount">;
|
|
22
|
+
addTrustLine: t.LiteralC<"addTrustLine">;
|
|
23
|
+
removeTrustLine: t.LiteralC<"removeTrustLine">;
|
|
24
|
+
signMessage: t.LiteralC<"signMessage">;
|
|
25
|
+
signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
|
|
26
|
+
enableToken: t.LiteralC<"enableToken">;
|
|
27
|
+
authorize: t.LiteralC<"authorize">;
|
|
28
|
+
acceleration: t.LiteralC<"acceleration">;
|
|
29
|
+
fillNonce: t.LiteralC<"fillNonce">;
|
|
30
|
+
walletRecovery: t.LiteralC<"walletRecovery">;
|
|
31
|
+
contractCall: t.LiteralC<"contractCall">;
|
|
32
|
+
deactivate: t.LiteralC<"deactivate">;
|
|
33
|
+
customTx: t.LiteralC<"customTx">;
|
|
34
|
+
closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
|
|
35
|
+
stakeWithCallData: t.LiteralC<"stakeWithCallData">;
|
|
36
|
+
unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
|
|
37
|
+
switchValidatorWithCallData: t.LiteralC<"switchValidatorWithCallData">;
|
|
38
|
+
feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
|
|
39
|
+
tokenApproval: t.LiteralC<"tokenApproval">;
|
|
40
|
+
transferStake: t.LiteralC<"transferStake">;
|
|
41
|
+
validatorRegistration: t.LiteralC<"validatorRegistration">;
|
|
42
|
+
increaseStake: t.LiteralC<"increaseStake">;
|
|
43
|
+
decreaseStake: t.LiteralC<"decreaseStake">;
|
|
44
|
+
signalExit: t.LiteralC<"signalExit">;
|
|
45
|
+
withdrawStake: t.LiteralC<"withdrawStake">;
|
|
46
|
+
spotTransfer: t.LiteralC<"spotTransfer">;
|
|
47
|
+
bridgeFunds: t.LiteralC<"bridgeFunds">;
|
|
48
|
+
enableBridging: t.LiteralC<"enableBridging">;
|
|
49
|
+
goUnstake: t.LiteralC<"goUnstake">;
|
|
50
|
+
createBtcDelegation: t.LiteralC<"createBtcDelegation">;
|
|
51
|
+
transferAccept: t.LiteralC<"transferAccept">;
|
|
52
|
+
transferReject: t.LiteralC<"transferReject">;
|
|
53
|
+
transferAcknowledge: t.LiteralC<"transferAcknowledge">;
|
|
54
|
+
transferOfferWithdrawn: t.LiteralC<"transferOfferWithdrawn">;
|
|
55
|
+
cosignDelegationProposal: t.LiteralC<"cosignDelegationProposal">;
|
|
56
|
+
cosignDelegationAccept: t.LiteralC<"cosignDelegationAccept">;
|
|
57
|
+
allocationRequest: t.LiteralC<"allocationRequest">;
|
|
58
|
+
cantonCommand: t.LiteralC<"cantonCommand">;
|
|
59
|
+
allocationAllocate: t.LiteralC<"allocationAllocate">;
|
|
60
|
+
allocationOfferWithdrawn: t.LiteralC<"allocationOfferWithdrawn">;
|
|
61
|
+
allocationReject: t.LiteralC<"allocationReject">;
|
|
62
|
+
cantonEndInvestorOnboardingOffer: t.LiteralC<"cantonEndInvestorOnboardingOffer">;
|
|
63
|
+
cantonEndInvestorOnboardingAccept: t.LiteralC<"cantonEndInvestorOnboardingAccept">;
|
|
64
|
+
cantonEndInvestorOnboardingReject: t.LiteralC<"cantonEndInvestorOnboardingReject">;
|
|
65
|
+
cantonParticipantOnboardingRequest: t.LiteralC<"cantonParticipantOnboardingRequest">;
|
|
66
|
+
"defi-deposit": t.LiteralC<"defi-deposit">;
|
|
67
|
+
"defi-redeem": t.LiteralC<"defi-redeem">;
|
|
68
|
+
"defi-approve": t.LiteralC<"defi-approve">;
|
|
69
|
+
"defi-withdraw": t.LiteralC<"defi-withdraw">;
|
|
70
|
+
"wrap-native": t.LiteralC<"wrap-native">;
|
|
71
|
+
"unwrap-native": t.LiteralC<"unwrap-native">;
|
|
72
|
+
wrapApprove: t.LiteralC<"wrapApprove">;
|
|
73
|
+
wrap: t.LiteralC<"wrap">;
|
|
74
|
+
unwrap: t.LiteralC<"unwrap">;
|
|
75
|
+
finalizeUnwrap: t.LiteralC<"finalizeUnwrap">;
|
|
76
|
+
delegateResource: t.LiteralC<"delegateResource">;
|
|
77
|
+
undelegateResource: t.LiteralC<"undelegateResource">;
|
|
78
|
+
export: t.LiteralC<"export">;
|
|
79
|
+
import: t.LiteralC<"import">;
|
|
80
|
+
importtoc: t.LiteralC<"importtoc">;
|
|
81
|
+
}>;
|
|
82
|
+
}>, t.PartialC<{
|
|
83
|
+
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
84
|
+
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
85
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
86
|
+
}>]>, t.TypeC<{
|
|
87
|
+
stakingRequestId: t.StringC;
|
|
88
|
+
}>, t.PartialC<{
|
|
89
|
+
source: t.KeyofC<typeof import("./stakingRequestSource").StakingRequestSourceEnum>;
|
|
90
|
+
}>]>, t.TypeC<{
|
|
91
|
+
intentType: t.LiteralC<"cancel">;
|
|
92
|
+
stakingType: t.LiteralC<"REALFI_SUSDR">;
|
|
93
|
+
orderTxHash: t.StringC;
|
|
94
|
+
orderOutputIndex: t.NumberC;
|
|
95
|
+
destinationAddress: t.StringC;
|
|
96
|
+
}>]>;
|
|
97
|
+
export type AdaRealFiCancelIntent = t.TypeOf<typeof AdaRealFiCancelIntent>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.AdaRealFiCancelIntent = void 0;
|
|
27
|
+
const t = __importStar(require("io-ts"));
|
|
28
|
+
const baseStakeIntent_1 = require("./baseStakeIntent");
|
|
29
|
+
const intentType_1 = require("./intentType");
|
|
30
|
+
exports.AdaRealFiCancelIntent = t.intersection([
|
|
31
|
+
baseStakeIntent_1.BaseStakeIntent,
|
|
32
|
+
t.type({
|
|
33
|
+
intentType: intentType_1.intentTypes.cancel,
|
|
34
|
+
stakingType: t.literal("REALFI_SUSDR"),
|
|
35
|
+
orderTxHash: t.string,
|
|
36
|
+
orderOutputIndex: t.number,
|
|
37
|
+
destinationAddress: t.string,
|
|
38
|
+
}),
|
|
39
|
+
]);
|
|
40
|
+
//# sourceMappingURL=adaCancelIntent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adaCancelIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/adaCancelIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,6CAA2C;AAY9B,QAAA,qBAAqB,GAAG,CAAC,CAAC,YAAY,CAAC;IAClD,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,MAAM;QAC9B,WAAW,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC;QACtC,WAAW,EAAE,CAAC,CAAC,MAAM;QACrB,gBAAgB,EAAE,CAAC,CAAC,MAAM;QAC1B,kBAAkB,EAAE,CAAC,CAAC,MAAM;KAC7B,CAAC;CACH,CAAC,CAAC"}
|