@bitgo/public-types 5.72.0 → 5.74.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 +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/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 +1 -0
- package/dist/src/schema/transactionRequest/intents/adaUnstakeIntent.d.ts +1 -0
- 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/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 +60 -0
- package/dist/src/schema/transactionRequest/intents/cantonTransferOfferWithdrawnIntent.js +40 -0
- package/dist/src/schema/transactionRequest/intents/cantonTransferOfferWithdrawnIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/cantonTransferRejectIntent.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/cosmosPaymentIntent.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/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/hypeevmBridgeFundsIntent.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 +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 +401 -0
- package/dist/src/schema/transactionRequest/intents/intent.js +11 -1
- 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/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/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 +2 -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/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 +65 -0
- package/dist/src/schema/transactionRequest/intents/tonMultiNominatorDelegateIntent.js +40 -0
- package/dist/src/schema/transactionRequest/intents/tonMultiNominatorDelegateIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/tonMultiNominatorUndelegateIntent.d.ts +60 -0
- package/dist/src/schema/transactionRequest/intents/tonMultiNominatorUndelegateIntent.js +39 -0
- package/dist/src/schema/transactionRequest/intents/tonMultiNominatorUndelegateIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/tonPaymentIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/tonSingleNominatorDelegateIntent.d.ts +66 -0
- package/dist/src/schema/transactionRequest/intents/tonSingleNominatorDelegateIntent.js +41 -0
- package/dist/src/schema/transactionRequest/intents/tonSingleNominatorDelegateIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/tonSingleNominatorUndelegateIntent.d.ts +65 -0
- package/dist/src/schema/transactionRequest/intents/tonSingleNominatorUndelegateIntent.js +40 -0
- package/dist/src/schema/transactionRequest/intents/tonSingleNominatorUndelegateIntent.js.map +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/undelegateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/unstakeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/validatorRegistrationIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/vetDelegateIntent.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/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/xdcStakingIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/transactionRequest.d.ts +917 -115
- package/package.json +1 -1
- package/src/schema/transactionRequest/intents/cantonTransferOfferWithdrawnIntent.ts +28 -0
- package/src/schema/transactionRequest/intents/index.ts +5 -0
- package/src/schema/transactionRequest/intents/intent.ts +11 -1
- package/src/schema/transactionRequest/intents/intentType.ts +1 -0
- package/src/schema/transactionRequest/intents/tonMultiNominatorDelegateIntent.ts +27 -0
- package/src/schema/transactionRequest/intents/tonMultiNominatorUndelegateIntent.ts +26 -0
- package/src/schema/transactionRequest/intents/tonSingleNominatorDelegateIntent.ts +29 -0
- package/src/schema/transactionRequest/intents/tonSingleNominatorUndelegateIntent.ts +27 -0
package/package.json
CHANGED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
import { BaseIntent } from "./baseIntent";
|
|
3
|
+
import { intentTypes } from "./intentType";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @title Canton Transfer Offer Withdrawn Intent
|
|
7
|
+
*
|
|
8
|
+
* Intent for cancelling the 2-step offer that was sent out
|
|
9
|
+
* In canton, the `offer` can be withdrawn by doing a cancellation of offer transaction
|
|
10
|
+
*
|
|
11
|
+
* @param {String} intentType - The type of intent (always set to transferOfferWithdrawn)
|
|
12
|
+
* @param {string} contractId - The offer contractId that needs to be cancelled
|
|
13
|
+
* @param {String} [token] - The optional token
|
|
14
|
+
*/
|
|
15
|
+
export const CantonTransferOfferWithdrawnIntent = t.intersection([
|
|
16
|
+
BaseIntent,
|
|
17
|
+
t.type({
|
|
18
|
+
intentType: intentTypes.transferOfferWithdrawn,
|
|
19
|
+
contractId: t.string,
|
|
20
|
+
}),
|
|
21
|
+
t.partial({
|
|
22
|
+
token: t.string,
|
|
23
|
+
}),
|
|
24
|
+
]);
|
|
25
|
+
|
|
26
|
+
export type CantonTransferOfferWithdrawnIntent = t.TypeOf<
|
|
27
|
+
typeof CantonTransferOfferWithdrawnIntent
|
|
28
|
+
>;
|
|
@@ -35,6 +35,7 @@ export * from "./bscUndelegateIntent";
|
|
|
35
35
|
export * from "./bscWithdrawUndelegateIntent";
|
|
36
36
|
export * from "./cantonTransferAcceptIntent";
|
|
37
37
|
export * from "./cantonTransferAcknowledgeIntent";
|
|
38
|
+
export * from "./cantonTransferOfferWithdrawnIntent";
|
|
38
39
|
export * from "./cantonTransferRejectIntent";
|
|
39
40
|
export * from "./consolidateTokenIntent";
|
|
40
41
|
export * from "./coredaoClaimIntent";
|
|
@@ -147,7 +148,11 @@ export * from "./tokenRecipientEntry";
|
|
|
147
148
|
export * from "./tokenRecipientEntryItem";
|
|
148
149
|
export * from "./tonConsolidateIntent";
|
|
149
150
|
export * from "./tonDelegateIntent";
|
|
151
|
+
export * from "./tonMultiNominatorDelegateIntent";
|
|
152
|
+
export * from "./tonMultiNominatorUndelegateIntent";
|
|
150
153
|
export * from "./tonPaymentIntent";
|
|
154
|
+
export * from "./tonSingleNominatorDelegateIntent";
|
|
155
|
+
export * from "./tonSingleNominatorUndelegateIntent";
|
|
151
156
|
export * from "./tonStakingType";
|
|
152
157
|
export * from "./tonUndelegateIntent";
|
|
153
158
|
export * from "./tonWhalesDelegateIntent";
|
|
@@ -65,7 +65,11 @@ import { TaoTransferStakeIntent } from "./taoTransferStakeIntent";
|
|
|
65
65
|
import { TaoUnstakeIntent } from "./taoUnstakeIntent";
|
|
66
66
|
import { TokenApprovalIntent } from "./tokenApprovalIntent";
|
|
67
67
|
import { TonDelegateIntent } from "./tonDelegateIntent";
|
|
68
|
+
import { TonMultiNominatorDelegateIntent } from "./tonMultiNominatorDelegateIntent";
|
|
69
|
+
import { TonMultiNominatorUndelegateIntent } from "./tonMultiNominatorUndelegateIntent";
|
|
68
70
|
import { TonPaymentIntent } from "./tonPaymentIntent";
|
|
71
|
+
import { TonSingleNominatorDelegateIntent } from "./tonSingleNominatorDelegateIntent";
|
|
72
|
+
import { TonSingleNominatorUndelegateIntent } from "./tonSingleNominatorUndelegateIntent";
|
|
69
73
|
import { TonUndelegateIntent } from "./tonUndelegateIntent";
|
|
70
74
|
import { WalletRecoveryIntent } from "./walletRecoveryIntent";
|
|
71
75
|
import { SolConsolidateIntent } from "./solConsolidateIntent";
|
|
@@ -97,8 +101,9 @@ import { VetDelegateIntent } from "./vetDelegateIntent";
|
|
|
97
101
|
import { VetStakeClaimRewardsIntent } from "./vetStakeClaimRewardsIntent";
|
|
98
102
|
import { VetValidatorRegistrationIntent } from "./vetValidatorRegistrationIntent";
|
|
99
103
|
import { CantonTransferAcceptIntent } from "./cantonTransferAcceptIntent";
|
|
100
|
-
import { CantonTransferRejectIntent } from "./cantonTransferRejectIntent";
|
|
101
104
|
import { CantonTransferAcknowledgeIntent } from "./cantonTransferAcknowledgeIntent";
|
|
105
|
+
import { CantonTransferOfferWithdrawnIntent } from "./cantonTransferOfferWithdrawnIntent";
|
|
106
|
+
import { CantonTransferRejectIntent } from "./cantonTransferRejectIntent";
|
|
102
107
|
import { TonWhalesDelegateIntent } from "./tonWhalesDelegateIntent";
|
|
103
108
|
import { TonWhalesUndelegateIntent } from "./tonWhalesUndelegateIntent";
|
|
104
109
|
import { XdcUploadKycIntent } from "./xdcStakingIntent";
|
|
@@ -124,6 +129,7 @@ export const TransactionIntent = t.union([
|
|
|
124
129
|
BscWithdrawUndelegateIntent,
|
|
125
130
|
CantonTransferAcceptIntent,
|
|
126
131
|
CantonTransferAcknowledgeIntent,
|
|
132
|
+
CantonTransferOfferWithdrawnIntent,
|
|
127
133
|
CantonTransferRejectIntent,
|
|
128
134
|
CosmosPaymentIntent,
|
|
129
135
|
CosmosStakeIntent,
|
|
@@ -186,7 +192,11 @@ export const TransactionIntent = t.union([
|
|
|
186
192
|
TokenApprovalIntent,
|
|
187
193
|
TonConsolidateIntent,
|
|
188
194
|
TonDelegateIntent,
|
|
195
|
+
TonMultiNominatorDelegateIntent,
|
|
196
|
+
TonMultiNominatorUndelegateIntent,
|
|
189
197
|
TonPaymentIntent,
|
|
198
|
+
TonSingleNominatorDelegateIntent,
|
|
199
|
+
TonSingleNominatorUndelegateIntent,
|
|
190
200
|
TonUndelegateIntent,
|
|
191
201
|
TonWhalesDelegateIntent,
|
|
192
202
|
TonWhalesUndelegateIntent,
|
|
@@ -51,6 +51,7 @@ export const intentTypes = {
|
|
|
51
51
|
transferAccept: t.literal("transferAccept"),
|
|
52
52
|
transferReject: t.literal("transferReject"),
|
|
53
53
|
transferAcknowledge: t.literal("transferAcknowledge"),
|
|
54
|
+
transferOfferWithdrawn: t.literal("transferOfferWithdrawn"),
|
|
54
55
|
};
|
|
55
56
|
|
|
56
57
|
export const IntentType = t.keyof(intentTypes);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
import { intentTypes } from "./intentType";
|
|
3
|
+
import { TonStakingTypeEnum } from "./tonStakingType";
|
|
4
|
+
import { BaseIntent, BaseIntentWithAmount } from "./baseIntent";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @title TON Multi Nominator Delegate Intent
|
|
8
|
+
*
|
|
9
|
+
* @description The intent for delegate/stake requests to TON Multi-Nominator pools
|
|
10
|
+
*
|
|
11
|
+
* @param {string} intentType The type of intent (always set to delegate)
|
|
12
|
+
* @param {string} validatorAddress The address of the validator
|
|
13
|
+
* @param {string} tonStakingType The type of TON staking (always set to MULTI_NOMINATOR)
|
|
14
|
+
*/
|
|
15
|
+
export const TonMultiNominatorDelegateIntent = t.intersection([
|
|
16
|
+
BaseIntent,
|
|
17
|
+
BaseIntentWithAmount,
|
|
18
|
+
t.type({
|
|
19
|
+
intentType: intentTypes.delegate,
|
|
20
|
+
validatorAddress: t.string,
|
|
21
|
+
tonStakingType: t.literal(TonStakingTypeEnum.MULTI_NOMINATOR),
|
|
22
|
+
}),
|
|
23
|
+
]);
|
|
24
|
+
|
|
25
|
+
export type TonMultiNominatorDelegateIntent = t.TypeOf<
|
|
26
|
+
typeof TonMultiNominatorDelegateIntent
|
|
27
|
+
>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
import { intentTypes } from "./intentType";
|
|
3
|
+
import { TonStakingTypeEnum } from "./tonStakingType";
|
|
4
|
+
import { BaseIntent } from "./baseIntent";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @title TON Multi Nominator Undelegate Intent
|
|
8
|
+
*
|
|
9
|
+
* @description The intent for undelegate/unstake requests from TON Multi-Nominator pools
|
|
10
|
+
*
|
|
11
|
+
* @param {string} intentType The type of intent (always set to undelegate)
|
|
12
|
+
* @param {string} validatorAddress The address of the validator
|
|
13
|
+
* @param {string} tonStakingType The type of TON staking (always set to MULTI_NOMINATOR)
|
|
14
|
+
*/
|
|
15
|
+
export const TonMultiNominatorUndelegateIntent = t.intersection([
|
|
16
|
+
BaseIntent,
|
|
17
|
+
t.type({
|
|
18
|
+
intentType: intentTypes.undelegate,
|
|
19
|
+
validatorAddress: t.string,
|
|
20
|
+
tonStakingType: t.literal(TonStakingTypeEnum.MULTI_NOMINATOR),
|
|
21
|
+
}),
|
|
22
|
+
]);
|
|
23
|
+
|
|
24
|
+
export type TonMultiNominatorUndelegateIntent = t.TypeOf<
|
|
25
|
+
typeof TonMultiNominatorUndelegateIntent
|
|
26
|
+
>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
import { intentTypes } from "./intentType";
|
|
3
|
+
import { TonStakingTypeEnum } from "./tonStakingType";
|
|
4
|
+
import { BaseIntent, BaseIntentWithAmount } from "./baseIntent";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @title TON Single Nominator Delegate Intent
|
|
8
|
+
*
|
|
9
|
+
* @description The intent for delegate/stake requests to TON Single Nominator pools
|
|
10
|
+
*
|
|
11
|
+
* @param {string} intentType The type of intent (always set to delegate)
|
|
12
|
+
* @param {string} validatorAddress The address of the validator
|
|
13
|
+
* @param {string} ownerAddress The owner wallet address of the single nominator pool
|
|
14
|
+
* @param {string} tonStakingType The type of TON staking (always set to SINGLE_NOMINATOR)
|
|
15
|
+
*/
|
|
16
|
+
export const TonSingleNominatorDelegateIntent = t.intersection([
|
|
17
|
+
BaseIntent,
|
|
18
|
+
BaseIntentWithAmount,
|
|
19
|
+
t.type({
|
|
20
|
+
intentType: intentTypes.delegate,
|
|
21
|
+
validatorAddress: t.string,
|
|
22
|
+
ownerAddress: t.string,
|
|
23
|
+
tonStakingType: t.literal(TonStakingTypeEnum.SINGLE_NOMINATOR),
|
|
24
|
+
}),
|
|
25
|
+
]);
|
|
26
|
+
|
|
27
|
+
export type TonSingleNominatorDelegateIntent = t.TypeOf<
|
|
28
|
+
typeof TonSingleNominatorDelegateIntent
|
|
29
|
+
>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
import { intentTypes } from "./intentType";
|
|
3
|
+
import { TonStakingTypeEnum } from "./tonStakingType";
|
|
4
|
+
import { BaseIntent, BaseIntentWithAmount } from "./baseIntent";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @title TON Single Nominator Undelegate Intent
|
|
8
|
+
*
|
|
9
|
+
* @description The intent for undelegate/unstake requests from TON Single Nominator pools
|
|
10
|
+
*
|
|
11
|
+
* @param {string} intentType The type of intent (always set to undelegate)
|
|
12
|
+
* @param {string} validatorAddress The address of the validator
|
|
13
|
+
* @param {string} tonStakingType The type of TON staking (always set to SINGLE_NOMINATOR)
|
|
14
|
+
*/
|
|
15
|
+
export const TonSingleNominatorUndelegateIntent = t.intersection([
|
|
16
|
+
BaseIntent,
|
|
17
|
+
BaseIntentWithAmount,
|
|
18
|
+
t.type({
|
|
19
|
+
intentType: intentTypes.undelegate,
|
|
20
|
+
validatorAddress: t.string,
|
|
21
|
+
tonStakingType: t.literal(TonStakingTypeEnum.SINGLE_NOMINATOR),
|
|
22
|
+
}),
|
|
23
|
+
]);
|
|
24
|
+
|
|
25
|
+
export type TonSingleNominatorUndelegateIntent = t.TypeOf<
|
|
26
|
+
typeof TonSingleNominatorUndelegateIntent
|
|
27
|
+
>;
|