@bitgo/public-types 6.5.2 → 6.7.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.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/accountBaseBuildOptions.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/accountBaseConsolidateIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/atomPaymentIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/atomStakeIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/atomUnstakeIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/atomWithdrawIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/baseBridgeFundsIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/baseIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/baseStakeIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/baseStakeIntentWithCalldata.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/claimIntent.d.ts +70 -0
- package/dist/src/schema/transactionRequest/intents/claimIntent.js +36 -0
- package/dist/src/schema/transactionRequest/intents/claimIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/cosmosContractCallIntent.d.ts +70 -0
- package/dist/src/schema/transactionRequest/intents/cosmosContractCallIntent.js +41 -0
- package/dist/src/schema/transactionRequest/intents/cosmosContractCallIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/cosmosPaymentIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/cosmosStakeClaimRewardsIntent.d.ts +71 -0
- package/dist/src/schema/transactionRequest/intents/cosmosStakeClaimRewardsIntent.js +37 -0
- package/dist/src/schema/transactionRequest/intents/cosmosStakeClaimRewardsIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/cosmosStakeIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/cosmosSwitchValidatorIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/cosmosUnstakeIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/cosmosWithdrawIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/delegateIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/ethAccelerationIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/ethBuildOptions.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/ethConsolidateIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/ethConsolidateTokenIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/ethFillNonceIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/ethPaymentIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/ethStakingIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/ethTransferTokenIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/fillNonceIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/hypeevmBridgeFundsIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/hypeevmSpotTransferIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/index.d.ts +5 -0
- package/dist/src/schema/transactionRequest/intents/index.js +5 -0
- package/dist/src/schema/transactionRequest/intents/index.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/intent.d.ts +717 -265
- package/dist/src/schema/transactionRequest/intents/intent.js +18 -4
- package/dist/src/schema/transactionRequest/intents/intent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/paymentIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/stakeClaimRewardsIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/stakeIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/stakeSwitchValidatorIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/stakeWithCallDataIntent.d.ts +72 -0
- package/dist/src/schema/transactionRequest/intents/stakeWithCallDataIntent.js +36 -0
- package/dist/src/schema/transactionRequest/intents/stakeWithCallDataIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/switchValidatorWithCallDataIntent.d.ts +72 -0
- package/dist/src/schema/transactionRequest/intents/switchValidatorWithCallDataIntent.js +36 -0
- package/dist/src/schema/transactionRequest/intents/switchValidatorWithCallDataIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/tokenApprovalIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/transferTokenIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/undelegateIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/transactionRequest.d.ts +1434 -530
- package/package.json +1 -1
- package/src/schema/transactionRequest/intents/accelerationIntent.ts +7 -0
- package/src/schema/transactionRequest/intents/accountBaseBuildOptions.ts +1 -0
- package/src/schema/transactionRequest/intents/accountBaseConsolidateIntent.ts +6 -0
- package/src/schema/transactionRequest/intents/atomPaymentIntent.ts +5 -0
- package/src/schema/transactionRequest/intents/atomStakeIntent.ts +6 -0
- package/src/schema/transactionRequest/intents/atomUnstakeIntent.ts +6 -0
- package/src/schema/transactionRequest/intents/atomWithdrawIntent.ts +6 -0
- package/src/schema/transactionRequest/intents/baseBridgeFundsIntent.ts +4 -5
- package/src/schema/transactionRequest/intents/baseIntent.ts +9 -0
- package/src/schema/transactionRequest/intents/baseStakeIntent.ts +2 -0
- package/src/schema/transactionRequest/intents/baseStakeIntentWithCalldata.ts +1 -0
- package/src/schema/transactionRequest/intents/claimIntent.ts +20 -0
- package/src/schema/transactionRequest/intents/cosmosContractCallIntent.ts +30 -0
- package/src/schema/transactionRequest/intents/cosmosPaymentIntent.ts +5 -0
- package/src/schema/transactionRequest/intents/cosmosStakeClaimRewardsIntent.ts +23 -0
- package/src/schema/transactionRequest/intents/cosmosStakeIntent.ts +6 -0
- package/src/schema/transactionRequest/intents/cosmosSwitchValidatorIntent.ts +4 -0
- package/src/schema/transactionRequest/intents/cosmosUnstakeIntent.ts +7 -0
- package/src/schema/transactionRequest/intents/cosmosWithdrawIntent.ts +6 -0
- package/src/schema/transactionRequest/intents/delegateIntent.ts +6 -0
- package/src/schema/transactionRequest/intents/ethAccelerationIntent.ts +5 -0
- package/src/schema/transactionRequest/intents/ethBuildOptions.ts +10 -0
- package/src/schema/transactionRequest/intents/ethConsolidateIntent.ts +4 -0
- package/src/schema/transactionRequest/intents/ethConsolidateTokenIntent.ts +8 -0
- package/src/schema/transactionRequest/intents/ethFillNonceIntent.ts +4 -0
- package/src/schema/transactionRequest/intents/ethPaymentIntent.ts +5 -0
- package/src/schema/transactionRequest/intents/ethStakingIntent.ts +9 -0
- package/src/schema/transactionRequest/intents/ethTransferTokenIntent.ts +4 -0
- package/src/schema/transactionRequest/intents/fillNonceIntent.ts +8 -0
- package/src/schema/transactionRequest/intents/hypeevmBridgeFundsIntent.ts +4 -4
- package/src/schema/transactionRequest/intents/hypeevmSpotTransferIntent.ts +4 -0
- package/src/schema/transactionRequest/intents/index.ts +5 -0
- package/src/schema/transactionRequest/intents/intent.ts +18 -4
- package/src/schema/transactionRequest/intents/paymentIntent.ts +3 -0
- package/src/schema/transactionRequest/intents/stakeClaimRewardsIntent.ts +6 -0
- package/src/schema/transactionRequest/intents/stakeIntent.ts +1 -0
- package/src/schema/transactionRequest/intents/stakeSwitchValidatorIntent.ts +2 -0
- package/src/schema/transactionRequest/intents/stakeWithCallDataIntent.ts +20 -0
- package/src/schema/transactionRequest/intents/switchValidatorWithCallDataIntent.ts +22 -0
- package/src/schema/transactionRequest/intents/tokenApprovalIntent.ts +5 -1
- package/src/schema/transactionRequest/intents/transferTokenIntent.ts +1 -0
- package/src/schema/transactionRequest/intents/undelegateIntent.ts +6 -0
|
@@ -38,11 +38,14 @@ export * from "./cantonTransferAcceptIntent";
|
|
|
38
38
|
export * from "./cantonTransferAcknowledgeIntent";
|
|
39
39
|
export * from "./cantonTransferOfferWithdrawnIntent";
|
|
40
40
|
export * from "./cantonTransferRejectIntent";
|
|
41
|
+
export * from "./claimIntent";
|
|
41
42
|
export * from "./consolidateTokenIntent";
|
|
42
43
|
export * from "./coredaoClaimIntent";
|
|
43
44
|
export * from "./coredaoDelegateIntent";
|
|
44
45
|
export * from "./coredaoUndelegateIntent";
|
|
46
|
+
export * from "./cosmosContractCallIntent";
|
|
45
47
|
export * from "./cosmosPaymentIntent";
|
|
48
|
+
export * from "./cosmosStakeClaimRewardsIntent";
|
|
46
49
|
export * from "./cosmosStakeIntent";
|
|
47
50
|
export * from "./cosmosSwitchValidatorIntent";
|
|
48
51
|
export * from "./cosmosUnstakeIntent";
|
|
@@ -128,6 +131,8 @@ export * from "./solVersionedCustomTxIntent";
|
|
|
128
131
|
export * from "./stakeClaimRewardsIntent";
|
|
129
132
|
export * from "./stakeIntent";
|
|
130
133
|
export * from "./stakeSwitchValidatorIntent";
|
|
134
|
+
export * from "./stakeWithCallDataIntent";
|
|
135
|
+
export * from "./switchValidatorWithCallDataIntent";
|
|
131
136
|
export * from "./stakingRequestSource";
|
|
132
137
|
export * from "./substrateAccountBaseBuildOptions";
|
|
133
138
|
export * from "./substrateBaseIntent";
|
|
@@ -7,23 +7,24 @@ import { AptCustomTxIntent } from "./aptCustomTxIntent";
|
|
|
7
7
|
import { AtomPaymentIntent } from "./atomPaymentIntent";
|
|
8
8
|
import { AtomStakeIntent } from "./atomStakeIntent";
|
|
9
9
|
import { AtomUnstakeIntent } from "./atomUnstakeIntent";
|
|
10
|
-
import { AtomWithdrawIntent } from "./atomWithdrawIntent";
|
|
11
10
|
import { BabyCreateBtcDelegationIntent } from "./babyCreateBtcDelegationIntent";
|
|
12
11
|
import { BabyWithdrawRewardIntent } from "./babyWithdrawRewardIntent";
|
|
13
12
|
import { BscDelegateIntent } from "./bscDelegateIntent";
|
|
14
13
|
import { BscUnDelegateIntent } from "./bscUndelegateIntent";
|
|
15
14
|
import { BscWithdrawUndelegateIntent } from "./bscWithdrawUndelegateIntent";
|
|
15
|
+
import { ClaimIntent } from "./claimIntent";
|
|
16
16
|
import {
|
|
17
17
|
VetExitDelegationIntent,
|
|
18
18
|
VetBurnNFTIntent,
|
|
19
19
|
} from "./vetUnstakingIntent";
|
|
20
20
|
import { DefiDepositIntent } from "./defiDepositIntent";
|
|
21
21
|
import { DefiRedeemIntent } from "./defiRedeemIntent";
|
|
22
|
+
import { CosmosContractCallIntent } from "./cosmosContractCallIntent";
|
|
22
23
|
import { CosmosPaymentIntent } from "./cosmosPaymentIntent";
|
|
24
|
+
import { CosmosStakeClaimRewardsIntent } from "./cosmosStakeClaimRewardsIntent";
|
|
23
25
|
import { CosmosStakeIntent } from "./cosmosStakeIntent";
|
|
24
26
|
import { CosmosSwitchValidatorIntent } from "./cosmosSwitchValidatorIntent";
|
|
25
27
|
import { CosmosUnstakeIntent } from "./cosmosUnstakeIntent";
|
|
26
|
-
import { CosmosWithdrawIntent } from "./cosmosWithdrawIntent";
|
|
27
28
|
import { DotCreateAccountIntent } from "./dotCreateAccountIntent";
|
|
28
29
|
import { DotPaymentIntent } from "./dotPaymentIntent";
|
|
29
30
|
import { DotStakingIntent } from "./dotStakingIntent";
|
|
@@ -91,6 +92,8 @@ import { BaseIntent } from "./baseIntent";
|
|
|
91
92
|
import { DotConsolidateIntent } from "./dotConsolidateIntent";
|
|
92
93
|
import { SolCloseAssociatedTokenAccountIntent } from "./solCloseAssociatedTokenAccountIntent";
|
|
93
94
|
import { BaseStakeIntentWithCalldata } from "./baseStakeIntentWithCalldata";
|
|
95
|
+
import { StakeWithCallDataIntent } from "./stakeWithCallDataIntent";
|
|
96
|
+
import { SwitchValidatorWithCallDataIntent } from "./switchValidatorWithCallDataIntent";
|
|
94
97
|
import { CoreDaoDelegateIntent } from "./coredaoDelegateIntent";
|
|
95
98
|
import { CoreDaoUndelegateIntent } from "./coredaoUndelegateIntent";
|
|
96
99
|
import { CoreDaoClaimIntent } from "./coredaoClaimIntent";
|
|
@@ -127,8 +130,12 @@ import { XdcUploadKycIntent } from "./xdcStakingIntent";
|
|
|
127
130
|
import { XdcProposeIntent } from "./xdcStakingIntent";
|
|
128
131
|
import { XdcResignIntent } from "./xdcUnstakingIntent";
|
|
129
132
|
import { XdcWithdrawIntent } from "./xdcUnstakingIntent";
|
|
133
|
+
import { FillNonceIntent } from "./fillNonceIntent";
|
|
130
134
|
import { HypeevmBridgeFundsIntent } from "./hypeevmBridgeFundsIntent";
|
|
131
135
|
import { HypeevmEnableBridgingIntent } from "./hypeevmEnableBridgingIntent";
|
|
136
|
+
import { DelegateIntent } from "./delegateIntent";
|
|
137
|
+
import { UndelegateIntent } from "./undelegateIntent";
|
|
138
|
+
import { StakeClaimRewardsIntent } from "./stakeClaimRewardsIntent";
|
|
132
139
|
|
|
133
140
|
export const TransactionIntent = t.union([
|
|
134
141
|
AdaConsolidateIntent,
|
|
@@ -141,7 +148,6 @@ export const TransactionIntent = t.union([
|
|
|
141
148
|
AtomPaymentIntent,
|
|
142
149
|
AtomStakeIntent,
|
|
143
150
|
AtomUnstakeIntent,
|
|
144
|
-
AtomWithdrawIntent,
|
|
145
151
|
BabyCreateBtcDelegationIntent,
|
|
146
152
|
BabyWithdrawRewardIntent,
|
|
147
153
|
BscDelegateIntent,
|
|
@@ -152,11 +158,13 @@ export const TransactionIntent = t.union([
|
|
|
152
158
|
CantonTransferAcknowledgeIntent,
|
|
153
159
|
CantonTransferOfferWithdrawnIntent,
|
|
154
160
|
CantonTransferRejectIntent,
|
|
161
|
+
ClaimIntent,
|
|
162
|
+
CosmosContractCallIntent,
|
|
155
163
|
CosmosPaymentIntent,
|
|
164
|
+
CosmosStakeClaimRewardsIntent,
|
|
156
165
|
CosmosStakeIntent,
|
|
157
166
|
CosmosSwitchValidatorIntent,
|
|
158
167
|
CosmosUnstakeIntent,
|
|
159
|
-
CosmosWithdrawIntent,
|
|
160
168
|
DefiDepositIntent,
|
|
161
169
|
DefiRedeemIntent,
|
|
162
170
|
DotConsolidateIntent,
|
|
@@ -165,13 +173,17 @@ export const TransactionIntent = t.union([
|
|
|
165
173
|
DotStakingIntent,
|
|
166
174
|
DotUnstakingIntent,
|
|
167
175
|
DotWithdrawStakeIntent,
|
|
176
|
+
DelegateIntent,
|
|
168
177
|
EthAccelerationIntent,
|
|
169
178
|
EthConsolidateIntent,
|
|
170
179
|
EthConsolidateTokenIntent,
|
|
171
180
|
EthFillNonceIntent,
|
|
181
|
+
FillNonceIntent,
|
|
172
182
|
EthPaymentIntent,
|
|
173
183
|
EthStakingIntent,
|
|
174
184
|
EthTransferTokenIntent,
|
|
185
|
+
StakeClaimRewardsIntent,
|
|
186
|
+
UndelegateIntent,
|
|
175
187
|
FeeAddressTransferIntent,
|
|
176
188
|
HbarUpdateAccountIntent,
|
|
177
189
|
HypeevmBridgeFundsIntent,
|
|
@@ -246,6 +258,8 @@ export const TransactionIntent = t.union([
|
|
|
246
258
|
VetWithdrawStakeIntent,
|
|
247
259
|
WalletRecoveryIntent,
|
|
248
260
|
BaseStakeIntentWithCalldata,
|
|
261
|
+
StakeWithCallDataIntent,
|
|
262
|
+
SwitchValidatorWithCallDataIntent,
|
|
249
263
|
CoreDaoDelegateIntent,
|
|
250
264
|
CoreDaoUndelegateIntent,
|
|
251
265
|
CoreDaoClaimIntent,
|
|
@@ -7,10 +7,13 @@ export const PaymentIntent = t.intersection([
|
|
|
7
7
|
BaseIntentWithRecipients,
|
|
8
8
|
t.union([
|
|
9
9
|
t.type({
|
|
10
|
+
/** Must be "payment". */
|
|
10
11
|
intentType: intentTypes.payment,
|
|
11
12
|
}),
|
|
12
13
|
t.type({
|
|
14
|
+
/** Must be "payment". */
|
|
13
15
|
intentType: intentTypes.payment,
|
|
16
|
+
/** When true, marks this as a test transaction (not broadcast to the network). */
|
|
14
17
|
isTestTransaction: t.boolean,
|
|
15
18
|
}),
|
|
16
19
|
]),
|
|
@@ -3,10 +3,16 @@ import { intentTypes } from "./intentType";
|
|
|
3
3
|
import { BaseStakeIntent } from "./baseStakeIntent";
|
|
4
4
|
import { BaseIntentWithAmount } from "./baseIntent";
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* Claim accumulated staking rewards on EVM-compatible chains. Specify the
|
|
8
|
+
* amount of rewards to claim. Requires a staking request ID from the BitGo
|
|
9
|
+
* staking service.
|
|
10
|
+
*/
|
|
6
11
|
export const StakeClaimRewardsIntent = t.intersection([
|
|
7
12
|
BaseStakeIntent,
|
|
8
13
|
BaseIntentWithAmount,
|
|
9
14
|
t.type({
|
|
15
|
+
/** Must be "stakeClaimRewards". */
|
|
10
16
|
intentType: intentTypes.stakeClaimRewards,
|
|
11
17
|
}),
|
|
12
18
|
]);
|
|
@@ -8,7 +8,9 @@ export const StakeSwitchValidatorIntent = t.intersection([
|
|
|
8
8
|
BaseIntentWithAmount,
|
|
9
9
|
t.type({
|
|
10
10
|
intentType: intentTypes.switchValidator,
|
|
11
|
+
/** Bech32 source validator address to redelegate from (e.g. cosmosvaloper1...). */
|
|
11
12
|
validatorAddress: t.string,
|
|
13
|
+
/** Bech32 destination validator address to redelegate to (e.g. cosmosvaloper1...). */
|
|
12
14
|
destValidatorAddress: t.string,
|
|
13
15
|
}),
|
|
14
16
|
]);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
import { BaseStakeIntentWithCalldata } from "./baseStakeIntentWithCalldata";
|
|
3
|
+
import { intentTypes } from "./intentType";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Submit an EVM staking transaction using pre-computed calldata provided by
|
|
7
|
+
* the BitGo staking service. Used when the staking protocol requires custom
|
|
8
|
+
* calldata that cannot be derived from standard deposit parameters.
|
|
9
|
+
*
|
|
10
|
+
* @title Stake With CallData Intent
|
|
11
|
+
*/
|
|
12
|
+
export const StakeWithCallDataIntent = t.intersection([
|
|
13
|
+
BaseStakeIntentWithCalldata,
|
|
14
|
+
t.type({
|
|
15
|
+
/** Must be "stakeWithCallData". */
|
|
16
|
+
intentType: intentTypes.stakeWithCallData,
|
|
17
|
+
}),
|
|
18
|
+
]);
|
|
19
|
+
|
|
20
|
+
export type StakeWithCallDataIntent = t.TypeOf<typeof StakeWithCallDataIntent>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
import { BaseStakeIntentWithCalldata } from "./baseStakeIntentWithCalldata";
|
|
3
|
+
import { intentTypes } from "./intentType";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Switch validators on EVM-compatible chains using pre-computed calldata.
|
|
7
|
+
* Supply the staking service's stakingRequestId and the pre-computed calldata
|
|
8
|
+
* for the validator switch.
|
|
9
|
+
*
|
|
10
|
+
* @title Switch Validator With CallData Intent
|
|
11
|
+
*/
|
|
12
|
+
export const SwitchValidatorWithCallDataIntent = t.intersection([
|
|
13
|
+
BaseStakeIntentWithCalldata,
|
|
14
|
+
t.type({
|
|
15
|
+
/** Must be "switchValidatorWithCallData". */
|
|
16
|
+
intentType: intentTypes.switchValidatorWithCallData,
|
|
17
|
+
}),
|
|
18
|
+
]);
|
|
19
|
+
|
|
20
|
+
export type SwitchValidatorWithCallDataIntent = t.TypeOf<
|
|
21
|
+
typeof SwitchValidatorWithCallDataIntent
|
|
22
|
+
>;
|
|
@@ -3,13 +3,17 @@ import { BaseIntent, BaseIntentWithTokenName } from "./baseIntent";
|
|
|
3
3
|
import { intentTypes } from "./intentType";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
+
* Approve an ERC-20 token for spending by the BitGo batcher contract on
|
|
7
|
+
* EVM-compatible chains. Required before sending a token that has not been
|
|
8
|
+
* previously approved. Provide tokenName to identify the token.
|
|
9
|
+
*
|
|
6
10
|
* @title Intent for approving tokens for spending by a batcher contract
|
|
7
|
-
* The server will determine the spender address and approval amount
|
|
8
11
|
*/
|
|
9
12
|
export const TokenApprovalIntent = t.intersection([
|
|
10
13
|
BaseIntent,
|
|
11
14
|
BaseIntentWithTokenName,
|
|
12
15
|
t.type({
|
|
16
|
+
/** Must be "tokenApproval". */
|
|
13
17
|
intentType: intentTypes.tokenApproval,
|
|
14
18
|
}),
|
|
15
19
|
]);
|
|
@@ -2,9 +2,15 @@ import * as t from "io-ts";
|
|
|
2
2
|
import { BaseStakeIntent } from "./baseStakeIntent";
|
|
3
3
|
import { intentTypes } from "./intentType";
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* Remove delegation of staked assets from a validator on EVM-compatible chains.
|
|
7
|
+
* Initiates the unbonding period. Requires a staking request ID from the BitGo
|
|
8
|
+
* staking service.
|
|
9
|
+
*/
|
|
5
10
|
export const UndelegateIntent = t.intersection([
|
|
6
11
|
BaseStakeIntent,
|
|
7
12
|
t.type({
|
|
13
|
+
/** Must be "undelegate". */
|
|
8
14
|
intentType: intentTypes.undelegate,
|
|
9
15
|
}),
|
|
10
16
|
]);
|