@bitgo/public-types 6.59.0 → 6.61.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/transactionRequest/intents/accelerationIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/accountBaseCreateAccountIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/accountBaseUpdateAccountIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/adaPaymentIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/adaPledgeIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/adaStakeClaimRewardsIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/adaStakeIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/adaUnstakeIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/adaVoteDelegationIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/aptCustomTxIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/aptStakeIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/aptUnstakeIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/aptWithdrawStakeIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/atomPaymentIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/atomStakeIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/atomUnstakeIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/atomWithdrawIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/babyCreateBtcDelegationIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/babyWithdrawRewardIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/baseBridgeFundsIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/baseGoStakeIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/baseIntent.d.ts +12 -0
- package/dist/src/schema/transactionRequest/intents/baseIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/baseStakeIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/baseStakeIntentWithCalldata.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/beraDelegateIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/bscDelegateIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/bscStakeClaimRewardsIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/bscUndelegateIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/bscWithdrawUndelegateIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/cantonAllocationAllocateIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/cantonAllocationOfferWithdrawnIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/cantonAllocationRejectIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/cantonAllocationRequestIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/cantonCommandIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/cantonCosignDelegationAcceptIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/cantonCosignDelegationProposalIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/cantonEndInvestorOnboardingAcceptIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/cantonEndInvestorOnboardingOfferIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/cantonEndInvestorOnboardingRejectIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/cantonParticipantOnboardingRequestIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/cantonPaymentIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/cantonTransferAcceptIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/cantonTransferAcknowledgeIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/cantonTransferOfferWithdrawnIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/cantonTransferRejectIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/claimIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/consolidateTokenIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/coredaoClaimIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/coredaoDelegateIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/coredaoUndelegateIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/cosmosContractCallIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/cosmosPaymentIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/cosmosStakeClaimRewardsIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/cosmosStakeIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/cosmosSwitchValidatorIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/cosmosUnstakeIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/cosmosWithdrawIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/defiApproveIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/defiDepositIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/defiRedeemIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/defiWithdrawIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/delegateIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/dotBaseIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/dotCreateAccountIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/dotPaymentIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/dotStakingIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/dotUnstakingIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/dotWithdrawStakeIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/enableTokenIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/ethAccelerationIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/ethConsolidateTokenIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/ethFillNonceIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/ethLikeStakeIntent.d.ts +12 -0
- package/dist/src/schema/transactionRequest/intents/ethPaymentIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/ethStakingIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/ethTransferTokenIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/feeAddressTransferIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/fillNonceIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/goUnstakeIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/hbarUpdateAccountIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/hypeevmBridgeFundsIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/hypeevmEnableBridgingIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/hypeevmSpotTransferIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/icpPaymentIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/index.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/index.js +3 -0
- package/dist/src/schema/transactionRequest/intents/index.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/intent.d.ts +1180 -0
- package/dist/src/schema/transactionRequest/intents/intent.js +6 -0
- package/dist/src/schema/transactionRequest/intents/intent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/intentType.d.ts +12 -0
- package/dist/src/schema/transactionRequest/intents/intentType.js +6 -0
- package/dist/src/schema/transactionRequest/intents/intentType.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/iotaBuildOptions.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/iotaConsolidateIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/iotaPaymentIntent.d.ts +12 -0
- package/dist/src/schema/transactionRequest/intents/lightningPaymentIntent.d.ts +12 -0
- package/dist/src/schema/transactionRequest/intents/mmiSignMessageIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/mmiSignTransactionIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/nearStakeIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/nearUnstakeIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/nearWithdrawIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/paymentIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/polyxBaseIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/polyxCreateAccountIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/polyxPreApproveAssetIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/polyxStakeIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/polyxSwitchValidatorIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/polyxUnstakeIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/polyxWithdrawIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/signMessageIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/solAuthorizeIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/solClaimIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/solCloseAssociatedTokenAccountIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/solCreateAssociatedTokenAccountIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/solCustomTxIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/solDeactivateIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/solDelegateIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/solGoUnstakeIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/solPaymentIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/solStakeIntent.d.ts +12 -0
- package/dist/src/schema/transactionRequest/intents/solUnstakeIntent.d.ts +12 -0
- package/dist/src/schema/transactionRequest/intents/solVersionedCustomTxIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/stakeClaimRewardsIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/stakeIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/stakeSwitchValidatorIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/stakeWithCallDataIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/substrateBaseIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/substratePaymentIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/suiBuildOptions.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/suiConsolidateIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/suiCustomTxIntent.d.ts +12 -0
- package/dist/src/schema/transactionRequest/intents/suiGoUnstakeIntent.d.ts +18 -0
- package/dist/src/schema/transactionRequest/intents/suiPaymentIntent.d.ts +12 -0
- package/dist/src/schema/transactionRequest/intents/suiStakingIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/suiUnstakingIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/switchValidatorWithCallDataIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/taoClaimRootIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/taoStakeIntent.d.ts +12 -0
- package/dist/src/schema/transactionRequest/intents/taoStakingBaseIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/taoSwitchValidatorIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/taoTransferStakeIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/taoUnstakeIntent.d.ts +12 -0
- package/dist/src/schema/transactionRequest/intents/tokenApprovalIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/tonDelegateIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/tonMultiNominatorDelegateIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/tonMultiNominatorUndelegateIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/tonPaymentIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/tonSingleNominatorDelegateIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/tonSingleNominatorUndelegateIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/tonUndelegateIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/tonWhalesDelegateIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/tonWhalesUndelegateIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/transferTokenIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/trxClaimRewardsIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/trxCreateAccountIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/trxDelegateResourceIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/trxFreezeIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/trxUndelegateResourceIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/trxUnfreezeIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/trxVoteIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/trxWithdrawExpireUnfreezeIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/undelegateIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/unstakeIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/unwrapNativeIntent.d.ts +90 -0
- package/dist/src/schema/transactionRequest/intents/unwrapNativeIntent.js +37 -0
- package/dist/src/schema/transactionRequest/intents/unwrapNativeIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/validatorRegistrationIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/vetDecreaseStakeIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/vetDelegateIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/vetIncreaseStakeIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/vetSignalExitIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/vetStakeClaimRewardsIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/vetStakingIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/vetUnstakingIntent.d.ts +12 -0
- package/dist/src/schema/transactionRequest/intents/vetValidatorRegistrationIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/vetWithdrawStakeIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/voteDelegationIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/walletRecoveryIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/walrusStakingIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/walrusUndelegateIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/walrusWithdrawIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/withdrawIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/wrapApproveIntent.d.ts +91 -0
- package/dist/src/schema/transactionRequest/intents/wrapApproveIntent.js +38 -0
- package/dist/src/schema/transactionRequest/intents/wrapApproveIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/wrapNativeIntent.d.ts +90 -0
- package/dist/src/schema/transactionRequest/intents/wrapNativeIntent.js +37 -0
- package/dist/src/schema/transactionRequest/intents/wrapNativeIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/xdcStakingIntent.d.ts +12 -0
- package/dist/src/schema/transactionRequest/intents/xdcUnstakingIntent.d.ts +12 -0
- package/dist/src/schema/transactionRequest/transactionRequest.d.ts +2360 -0
- package/package.json +1 -1
- package/src/schema/transactionRequest/intents/baseIntent.ts +1 -0
- package/src/schema/transactionRequest/intents/index.ts +3 -0
- package/src/schema/transactionRequest/intents/intent.ts +6 -0
- package/src/schema/transactionRequest/intents/intentType.ts +25 -0
- package/src/schema/transactionRequest/intents/unwrapNativeIntent.ts +14 -0
- package/src/schema/transactionRequest/intents/wrapApproveIntent.ts +24 -0
- package/src/schema/transactionRequest/intents/wrapNativeIntent.ts +14 -0
package/package.json
CHANGED
|
@@ -65,6 +65,9 @@ export * from "./defiDepositIntent";
|
|
|
65
65
|
export * from "./defiRedeemIntent";
|
|
66
66
|
export * from "./defiApproveIntent";
|
|
67
67
|
export * from "./defiWithdrawIntent";
|
|
68
|
+
export * from "./wrapNativeIntent";
|
|
69
|
+
export * from "./unwrapNativeIntent";
|
|
70
|
+
export * from "./wrapApproveIntent";
|
|
68
71
|
export * from "./dotAccountBaseBuildOptions";
|
|
69
72
|
export * from "./dotBaseIntent";
|
|
70
73
|
export * from "./dotConsolidateIntent";
|
|
@@ -21,6 +21,9 @@ import { DefiApproveIntent } from "./defiApproveIntent";
|
|
|
21
21
|
import { DefiDepositIntent } from "./defiDepositIntent";
|
|
22
22
|
import { DefiRedeemIntent } from "./defiRedeemIntent";
|
|
23
23
|
import { DefiWithdrawIntent } from "./defiWithdrawIntent";
|
|
24
|
+
import { WrapNativeIntent } from "./wrapNativeIntent";
|
|
25
|
+
import { UnwrapNativeIntent } from "./unwrapNativeIntent";
|
|
26
|
+
import { WrapApproveIntent } from "./wrapApproveIntent";
|
|
24
27
|
import { CosmosContractCallIntent } from "./cosmosContractCallIntent";
|
|
25
28
|
import { CosmosPaymentIntent } from "./cosmosPaymentIntent";
|
|
26
29
|
import { CosmosStakeClaimRewardsIntent } from "./cosmosStakeClaimRewardsIntent";
|
|
@@ -195,6 +198,9 @@ export const TransactionIntent = t.union([
|
|
|
195
198
|
DefiDepositIntent,
|
|
196
199
|
DefiRedeemIntent,
|
|
197
200
|
DefiWithdrawIntent,
|
|
201
|
+
WrapNativeIntent,
|
|
202
|
+
UnwrapNativeIntent,
|
|
203
|
+
WrapApproveIntent,
|
|
198
204
|
DotConsolidateIntent,
|
|
199
205
|
DotCreateAccountIntent,
|
|
200
206
|
DotPaymentIntent,
|
|
@@ -95,6 +95,31 @@ export const intentTypes = {
|
|
|
95
95
|
* protocol-keyed flow (vaultInternal.ts).
|
|
96
96
|
*/
|
|
97
97
|
"defi-withdraw": t.literal("defi-withdraw"),
|
|
98
|
+
/**
|
|
99
|
+
* Wrap native currency into its canonical wrapped-native ERC-20 (e.g. ETH → WETH via WETH9 `deposit()`).
|
|
100
|
+
*/
|
|
101
|
+
"wrap-native": t.literal("wrap-native"),
|
|
102
|
+
/**
|
|
103
|
+
* Unwrap the canonical wrapped-native ERC-20 back to native currency (e.g. WETH → ETH via WETH9 `withdraw(uint256)`).
|
|
104
|
+
*/
|
|
105
|
+
"unwrap-native": t.literal("unwrap-native"),
|
|
106
|
+
/**
|
|
107
|
+
* ERC-20 approve for an ERC-7984 confidential wrapper (shield phase-1, client-created).
|
|
108
|
+
* Distinct from `tokenApproval` (batcher) and `defi-approve` (vault).
|
|
109
|
+
*/
|
|
110
|
+
wrapApprove: t.literal("wrapApprove"),
|
|
111
|
+
/**
|
|
112
|
+
* Wrap (shield) underlying ERC-20 into an ERC-7984 confidential token (WP-created after approve confirm).
|
|
113
|
+
*/
|
|
114
|
+
wrap: t.literal("wrap"),
|
|
115
|
+
/**
|
|
116
|
+
* Unwrap (unshield phase-1) an ERC-7984 confidential token (client-created).
|
|
117
|
+
*/
|
|
118
|
+
unwrap: t.literal("unwrap"),
|
|
119
|
+
/**
|
|
120
|
+
* Finalize unwrap (unshield phase-2) after oracle decryption (WP-created).
|
|
121
|
+
*/
|
|
122
|
+
finalizeUnwrap: t.literal("finalizeUnwrap"),
|
|
98
123
|
delegateResource: t.literal("delegateResource"),
|
|
99
124
|
undelegateResource: t.literal("undelegateResource"),
|
|
100
125
|
/**
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
import { BaseIntent } from "./baseIntent";
|
|
3
|
+
|
|
4
|
+
export const UnwrapNativeIntent = t.intersection([
|
|
5
|
+
BaseIntent,
|
|
6
|
+
t.type({
|
|
7
|
+
intentType: t.literal("unwrap-native"),
|
|
8
|
+
vaultId: t.string,
|
|
9
|
+
// Raw amount string in base units of the wrapped-native token (also 18dp for WETH).
|
|
10
|
+
amount: t.string,
|
|
11
|
+
}),
|
|
12
|
+
]);
|
|
13
|
+
|
|
14
|
+
export type UnwrapNativeIntent = t.TypeOf<typeof UnwrapNativeIntent>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
import { BaseIntent, BaseIntentWithTokenName } from "./baseIntent";
|
|
3
|
+
import { intentTypes } from "./intentType";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Approve an underlying ERC-20 for an ERC-7984 confidential wrapper (shield phase-1).
|
|
7
|
+
* Client-created; WP mints wrapLinkId / wrapLinkExpiresAt on the txnReq.
|
|
8
|
+
*
|
|
9
|
+
* `tokenName` is the confidential wrapper (e.g. `hteth:cusdt`), not the underlying.
|
|
10
|
+
*
|
|
11
|
+
* @title Intent for ERC-7984 wrapApprove (shield allowance)
|
|
12
|
+
*/
|
|
13
|
+
export const WrapApproveIntent = t.intersection([
|
|
14
|
+
BaseIntent,
|
|
15
|
+
BaseIntentWithTokenName,
|
|
16
|
+
t.type({
|
|
17
|
+
/** Must be "wrapApprove". */
|
|
18
|
+
intentType: intentTypes.wrapApprove,
|
|
19
|
+
/** Exact approve amount in underlying base units (positive integer string). */
|
|
20
|
+
amount: t.string,
|
|
21
|
+
}),
|
|
22
|
+
]);
|
|
23
|
+
|
|
24
|
+
export type WrapApproveIntent = t.TypeOf<typeof WrapApproveIntent>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
import { BaseIntent } from "./baseIntent";
|
|
3
|
+
|
|
4
|
+
export const WrapNativeIntent = t.intersection([
|
|
5
|
+
BaseIntent,
|
|
6
|
+
t.type({
|
|
7
|
+
intentType: t.literal("wrap-native"),
|
|
8
|
+
vaultId: t.string,
|
|
9
|
+
// Raw amount string in base units of the NATIVE coin (18dp for ETH).
|
|
10
|
+
amount: t.string,
|
|
11
|
+
}),
|
|
12
|
+
]);
|
|
13
|
+
|
|
14
|
+
export type WrapNativeIntent = t.TypeOf<typeof WrapNativeIntent>;
|