@bitgo/public-types 5.78.1 → 5.80.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 +3 -0
- package/dist/src/schema/transactionRequest/intents/accountBaseCreateAccountIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/accountBaseUpdateAccountIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/adaPaymentIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/adaPledgeIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/adaStakeClaimRewardsIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/adaStakeIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/adaUnstakeIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/adaVoteDelegationIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/aptCustomTxIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/aptStakeIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/aptUnstakeIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/aptWithdrawStakeIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/atomPaymentIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/atomStakeIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/atomUnstakeIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/atomWithdrawIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/babyCreateBtcDelegationIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/babyWithdrawRewardIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/baseBridgeFundsIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/baseGoStakeIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/baseIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/baseStakeIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/baseStakeIntentWithCalldata.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/beraDelegateIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/bscDelegateIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/bscStakeClaimRewardsIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/bscUndelegateIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/bscWithdrawUndelegateIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/cantonTransferAcceptIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/cantonTransferAcknowledgeIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/cantonTransferOfferWithdrawnIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/cantonTransferRejectIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/consolidateTokenIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/coredaoClaimIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/coredaoDelegateIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/coredaoUndelegateIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/cosmosPaymentIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/cosmosStakeIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/cosmosSwitchValidatorIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/cosmosUnstakeIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/cosmosWithdrawIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/defiDepositIntent.d.ts +63 -0
- package/dist/src/schema/transactionRequest/intents/defiDepositIntent.js +38 -0
- package/dist/src/schema/transactionRequest/intents/defiDepositIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/defiRedeemIntent.d.ts +63 -0
- package/dist/src/schema/transactionRequest/intents/defiRedeemIntent.js +38 -0
- package/dist/src/schema/transactionRequest/intents/defiRedeemIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/delegateIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/dotBaseIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/dotCreateAccountIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/dotPaymentIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/dotStakingIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/dotUnstakingIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/dotWithdrawStakeIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/enableTokenIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/ethAccelerationIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/ethConsolidateTokenIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/ethFillNonceIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/ethLikeStakeIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/ethPaymentIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/ethStakingIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/ethTransferTokenIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/feeAddressTransferIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/fillNonceIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/goUnstakeIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/hypeevmBridgeFundsIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/hypeevmSpotTransferIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/icpPaymentIntent.d.ts +3 -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 +529 -24
- 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 +6 -0
- package/dist/src/schema/transactionRequest/intents/intentType.js +3 -0
- package/dist/src/schema/transactionRequest/intents/intentType.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/iotaBuildOptions.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/iotaConsolidateIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/iotaPaymentIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/irysPledgeIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/irysStakeIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/lightningPaymentIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/mmiSignMessageIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/mmiSignTransactionIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/nearStakeIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/nearUnstakeIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/nearWithdrawIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/paymentIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/polyxBaseIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/polyxCreateAccountIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/polyxPreApproveAssetIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/polyxStakeIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/polyxUnstakeIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/polyxWithdrawIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/signMessageIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/solAuthorizeIntent.d.ts +3 -2
- package/dist/src/schema/transactionRequest/intents/solBuildOptions.d.ts +0 -2
- package/dist/src/schema/transactionRequest/intents/solBuildOptions.js +0 -3
- package/dist/src/schema/transactionRequest/intents/solBuildOptions.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/solClaimIntent.d.ts +3 -2
- package/dist/src/schema/transactionRequest/intents/solCloseAssociatedTokenAccountIntent.d.ts +3 -2
- package/dist/src/schema/transactionRequest/intents/solCreateAssociatedTokenAccountIntent.d.ts +3 -2
- package/dist/src/schema/transactionRequest/intents/solCustomTxIntent.d.ts +3 -2
- package/dist/src/schema/transactionRequest/intents/solDeactivateIntent.d.ts +3 -2
- package/dist/src/schema/transactionRequest/intents/solDelegateIntent.d.ts +3 -2
- package/dist/src/schema/transactionRequest/intents/solGoUnstakeIntent.d.ts +3 -2
- package/dist/src/schema/transactionRequest/intents/solPaymentIntent.d.ts +3 -2
- package/dist/src/schema/transactionRequest/intents/solStakeIntent.d.ts +6 -4
- package/dist/src/schema/transactionRequest/intents/solUnstakeIntent.d.ts +6 -4
- package/dist/src/schema/transactionRequest/intents/solVersionedCustomTxIntent.d.ts +3 -2
- package/dist/src/schema/transactionRequest/intents/stakeClaimRewardsIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/stakeIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/stakeSwitchValidatorIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/substrateBaseIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/substratePaymentIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/suiBuildOptions.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/suiConsolidateIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/suiCustomTxIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/suiGoUnstakeIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/suiPaymentIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/suiStakingIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/suiUnstakingIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/taoStakeIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/taoStakingBaseIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/taoSwitchValidatorIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/taoTransferStakeIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/taoUnstakeIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/tokenApprovalIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/tonDelegateIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/tonMultiNominatorDelegateIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/tonMultiNominatorUndelegateIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/tonPaymentIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/tonSingleNominatorDelegateIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/tonSingleNominatorUndelegateIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/tonUndelegateIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/tonWhalesDelegateIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/tonWhalesUndelegateIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/transferTokenIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/undelegateIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/unstakeIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/validatorRegistrationIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/vetDecreaseStakeIntent.d.ts +70 -0
- package/dist/src/schema/transactionRequest/intents/vetDecreaseStakeIntent.js +41 -0
- package/dist/src/schema/transactionRequest/intents/vetDecreaseStakeIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/vetDelegateIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/vetIncreaseStakeIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/vetStakeClaimRewardsIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/vetStakingIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/vetUnstakingIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/vetValidatorRegistrationIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/voteDelegationIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/walletRecoveryIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/walrusStakingIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/walrusUndelegateIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/walrusWithdrawIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/withdrawIntent.d.ts +3 -0
- package/dist/src/schema/transactionRequest/intents/xdcStakingIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/intents/xdcUnstakingIntent.d.ts +6 -0
- package/dist/src/schema/transactionRequest/transactionRequest.d.ts +1058 -48
- package/package.json +1 -1
- package/src/schema/transactionRequest/intents/defiDepositIntent.ts +15 -0
- package/src/schema/transactionRequest/intents/defiRedeemIntent.ts +15 -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 +9 -0
- package/src/schema/transactionRequest/intents/solBuildOptions.ts +0 -3
- package/src/schema/transactionRequest/intents/vetDecreaseStakeIntent.ts +25 -0
package/package.json
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
import { BaseIntent } from "./baseIntent";
|
|
3
|
+
import { intentTypes } from "./intentType";
|
|
4
|
+
|
|
5
|
+
export const DefiDepositIntent = t.intersection([
|
|
6
|
+
BaseIntent,
|
|
7
|
+
t.type({
|
|
8
|
+
intentType: intentTypes["defi-deposit"],
|
|
9
|
+
protocol: t.string,
|
|
10
|
+
// Raw amount string in base units (wei). Asset is identified by protocol, not amount.symbol.
|
|
11
|
+
amount: t.string,
|
|
12
|
+
}),
|
|
13
|
+
]);
|
|
14
|
+
|
|
15
|
+
export type DefiDepositIntent = t.TypeOf<typeof DefiDepositIntent>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
import { BaseIntent } from "./baseIntent";
|
|
3
|
+
import { intentTypes } from "./intentType";
|
|
4
|
+
|
|
5
|
+
export const DefiRedeemIntent = t.intersection([
|
|
6
|
+
BaseIntent,
|
|
7
|
+
t.type({
|
|
8
|
+
intentType: intentTypes["defi-redeem"],
|
|
9
|
+
protocol: t.string,
|
|
10
|
+
// Raw amount string in base units (wei). Asset is identified by protocol, not amount.symbol.
|
|
11
|
+
amount: t.string,
|
|
12
|
+
}),
|
|
13
|
+
]);
|
|
14
|
+
|
|
15
|
+
export type DefiRedeemIntent = t.TypeOf<typeof DefiRedeemIntent>;
|
|
@@ -46,6 +46,8 @@ export * from "./cosmosStakeIntent";
|
|
|
46
46
|
export * from "./cosmosSwitchValidatorIntent";
|
|
47
47
|
export * from "./cosmosUnstakeIntent";
|
|
48
48
|
export * from "./cosmosWithdrawIntent";
|
|
49
|
+
export * from "./defiDepositIntent";
|
|
50
|
+
export * from "./defiRedeemIntent";
|
|
49
51
|
export * from "./dotAccountBaseBuildOptions";
|
|
50
52
|
export * from "./dotBaseIntent";
|
|
51
53
|
export * from "./dotConsolidateIntent";
|
|
@@ -169,6 +171,7 @@ export * from "./vetStakingIntent";
|
|
|
169
171
|
export * from "./vetUnstakingIntent";
|
|
170
172
|
export * from "./vetValidatorRegistrationIntent";
|
|
171
173
|
export * from "./vetIncreaseStakeIntent";
|
|
174
|
+
export * from "./vetDecreaseStakeIntent";
|
|
172
175
|
export * from "./voteDelegationIntent";
|
|
173
176
|
export * from "./walletRecoveryIntent";
|
|
174
177
|
export * from "./walrusStakingIntent";
|
|
@@ -17,6 +17,8 @@ import {
|
|
|
17
17
|
VetExitDelegationIntent,
|
|
18
18
|
VetBurnNFTIntent,
|
|
19
19
|
} from "./vetUnstakingIntent";
|
|
20
|
+
import { DefiDepositIntent } from "./defiDepositIntent";
|
|
21
|
+
import { DefiRedeemIntent } from "./defiRedeemIntent";
|
|
20
22
|
import { CosmosPaymentIntent } from "./cosmosPaymentIntent";
|
|
21
23
|
import { CosmosStakeIntent } from "./cosmosStakeIntent";
|
|
22
24
|
import { CosmosSwitchValidatorIntent } from "./cosmosSwitchValidatorIntent";
|
|
@@ -103,6 +105,7 @@ import { VetDelegateIntent } from "./vetDelegateIntent";
|
|
|
103
105
|
import { VetStakeClaimRewardsIntent } from "./vetStakeClaimRewardsIntent";
|
|
104
106
|
import { VetValidatorRegistrationIntent } from "./vetValidatorRegistrationIntent";
|
|
105
107
|
import { VetIncreaseStakeIntent } from "./vetIncreaseStakeIntent";
|
|
108
|
+
import { VetDecreaseStakeIntent } from "./vetDecreaseStakeIntent";
|
|
106
109
|
import { CantonTransferAcceptIntent } from "./cantonTransferAcceptIntent";
|
|
107
110
|
import { CantonTransferAcknowledgeIntent } from "./cantonTransferAcknowledgeIntent";
|
|
108
111
|
import { CantonTransferOfferWithdrawnIntent } from "./cantonTransferOfferWithdrawnIntent";
|
|
@@ -141,6 +144,8 @@ export const TransactionIntent = t.union([
|
|
|
141
144
|
CosmosSwitchValidatorIntent,
|
|
142
145
|
CosmosUnstakeIntent,
|
|
143
146
|
CosmosWithdrawIntent,
|
|
147
|
+
DefiDepositIntent,
|
|
148
|
+
DefiRedeemIntent,
|
|
144
149
|
DotConsolidateIntent,
|
|
145
150
|
DotCreateAccountIntent,
|
|
146
151
|
DotPaymentIntent,
|
|
@@ -214,6 +219,7 @@ export const TransactionIntent = t.union([
|
|
|
214
219
|
VetStakeClaimRewardsIntent,
|
|
215
220
|
VetValidatorRegistrationIntent,
|
|
216
221
|
VetIncreaseStakeIntent,
|
|
222
|
+
VetDecreaseStakeIntent,
|
|
217
223
|
WalletRecoveryIntent,
|
|
218
224
|
BaseStakeIntentWithCalldata,
|
|
219
225
|
CoreDaoDelegateIntent,
|
|
@@ -39,6 +39,7 @@ export const intentTypes = {
|
|
|
39
39
|
transferStake: t.literal("transferStake"),
|
|
40
40
|
validatorRegistration: t.literal("validatorRegistration"),
|
|
41
41
|
increaseStake: t.literal("increaseStake"),
|
|
42
|
+
decreaseStake: t.literal("decreaseStake"),
|
|
42
43
|
spotTransfer: t.literal("spotTransfer"),
|
|
43
44
|
bridgeFunds: t.literal("bridgeFunds"),
|
|
44
45
|
/**
|
|
@@ -53,6 +54,14 @@ export const intentTypes = {
|
|
|
53
54
|
transferReject: t.literal("transferReject"),
|
|
54
55
|
transferAcknowledge: t.literal("transferAcknowledge"),
|
|
55
56
|
transferOfferWithdrawn: t.literal("transferOfferWithdrawn"),
|
|
57
|
+
/**
|
|
58
|
+
* Deposit assets into a DeFi protocol vault (e.g. Concrete USD1 → ctUSD1cx).
|
|
59
|
+
*/
|
|
60
|
+
"defi-deposit": t.literal("defi-deposit"),
|
|
61
|
+
/**
|
|
62
|
+
* Redeem vault shares from a DeFi protocol vault (e.g. ctUSD1cx → USD1).
|
|
63
|
+
*/
|
|
64
|
+
"defi-redeem": t.literal("defi-redeem"),
|
|
56
65
|
};
|
|
57
66
|
|
|
58
67
|
export const IntentType = t.keyof(intentTypes);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
import { BaseStakeIntent } from "./baseStakeIntent";
|
|
3
|
+
import { NonEmptyString } from "io-ts-types";
|
|
4
|
+
import { BaseIntentWithAmount } from "./baseIntent";
|
|
5
|
+
import { intentTypes } from "./intentType";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @title VET Decrease Stake Intent
|
|
9
|
+
*
|
|
10
|
+
* Intent for decreasing (partially unstaking) the stake amount for an existing validator
|
|
11
|
+
* @param {Amount} amount - The amount of VET to remove from the existing stake
|
|
12
|
+
* @param {string} validatorAddress - The address of the validator
|
|
13
|
+
* @param {string} stakingContractAddress - The address of the staking contract
|
|
14
|
+
*/
|
|
15
|
+
export const VetDecreaseStakeIntent = t.intersection([
|
|
16
|
+
BaseStakeIntent,
|
|
17
|
+
BaseIntentWithAmount,
|
|
18
|
+
t.type({
|
|
19
|
+
intentType: intentTypes.decreaseStake,
|
|
20
|
+
validatorAddress: NonEmptyString,
|
|
21
|
+
stakingContractAddress: NonEmptyString,
|
|
22
|
+
}),
|
|
23
|
+
]);
|
|
24
|
+
|
|
25
|
+
export type VetDecreaseStakeIntent = t.TypeOf<typeof VetDecreaseStakeIntent>;
|