@bitgo/public-types 5.76.0 → 5.77.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 +3 -2
- package/dist/src/schema/transactionRequest/intents/cantonTransferAcknowledgeIntent.js +2 -2
- package/dist/src/schema/transactionRequest/intents/cantonTransferAcknowledgeIntent.js.map +1 -1
- 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/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 +1 -0
- package/dist/src/schema/transactionRequest/intents/index.js +1 -0
- package/dist/src/schema/transactionRequest/intents/index.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/intent.d.ts +179 -2
- package/dist/src/schema/transactionRequest/intents/intent.js +2 -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/irysPledgeIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/irysStakeIntent.d.ts +1 -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 +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/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/vetIncreaseStakeIntent.d.ts +67 -0
- package/dist/src/schema/transactionRequest/intents/vetIncreaseStakeIntent.js +41 -0
- package/dist/src/schema/transactionRequest/intents/vetIncreaseStakeIntent.js.map +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/intents/xdcUnstakingIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/transactionRequest.d.ts +358 -4
- package/package.json +1 -1
- package/src/schema/transactionRequest/intents/cantonTransferAcknowledgeIntent.ts +4 -4
- package/src/schema/transactionRequest/intents/index.ts +1 -0
- package/src/schema/transactionRequest/intents/intent.ts +2 -0
- package/src/schema/transactionRequest/intents/intentType.ts +1 -0
- package/src/schema/transactionRequest/intents/vetIncreaseStakeIntent.ts +25 -0
package/package.json
CHANGED
|
@@ -15,8 +15,8 @@ import { intentTypes } from "./intentType";
|
|
|
15
15
|
* @param {String} contractId - The contract id that needs to be acted on by the receiver
|
|
16
16
|
* @param {String} senderPartyId - The address (partyId) of the sender
|
|
17
17
|
* @param {String} updateId - The transaction id of the deposit
|
|
18
|
-
* @param {
|
|
19
|
-
* @param {Number
|
|
18
|
+
* @param {String} amount - The deposit amount (numeric string, decoded to number)
|
|
19
|
+
* @param {Number} expiry - The expiry epoch
|
|
20
20
|
* @param {String} [memoId] - The optional memoId
|
|
21
21
|
* @param {String} [token] - The optional token
|
|
22
22
|
*/
|
|
@@ -27,8 +27,8 @@ export const CantonTransferAcknowledgeIntent = t.intersection([
|
|
|
27
27
|
contractId: t.string,
|
|
28
28
|
senderPartyId: t.string,
|
|
29
29
|
updateId: t.string,
|
|
30
|
-
amount:
|
|
31
|
-
expiry: t.
|
|
30
|
+
amount: NumberFromString,
|
|
31
|
+
expiry: t.number,
|
|
32
32
|
}),
|
|
33
33
|
t.partial({
|
|
34
34
|
memoId: t.string,
|
|
@@ -168,6 +168,7 @@ export * from "./vetStakeClaimRewardsIntent";
|
|
|
168
168
|
export * from "./vetStakingIntent";
|
|
169
169
|
export * from "./vetUnstakingIntent";
|
|
170
170
|
export * from "./vetValidatorRegistrationIntent";
|
|
171
|
+
export * from "./vetIncreaseStakeIntent";
|
|
171
172
|
export * from "./voteDelegationIntent";
|
|
172
173
|
export * from "./walletRecoveryIntent";
|
|
173
174
|
export * from "./walrusStakingIntent";
|
|
@@ -102,6 +102,7 @@ import { VetStakingIntent } from "./vetStakingIntent";
|
|
|
102
102
|
import { VetDelegateIntent } from "./vetDelegateIntent";
|
|
103
103
|
import { VetStakeClaimRewardsIntent } from "./vetStakeClaimRewardsIntent";
|
|
104
104
|
import { VetValidatorRegistrationIntent } from "./vetValidatorRegistrationIntent";
|
|
105
|
+
import { VetIncreaseStakeIntent } from "./vetIncreaseStakeIntent";
|
|
105
106
|
import { CantonTransferAcceptIntent } from "./cantonTransferAcceptIntent";
|
|
106
107
|
import { CantonTransferAcknowledgeIntent } from "./cantonTransferAcknowledgeIntent";
|
|
107
108
|
import { CantonTransferOfferWithdrawnIntent } from "./cantonTransferOfferWithdrawnIntent";
|
|
@@ -212,6 +213,7 @@ export const TransactionIntent = t.union([
|
|
|
212
213
|
VetBurnNFTIntent,
|
|
213
214
|
VetStakeClaimRewardsIntent,
|
|
214
215
|
VetValidatorRegistrationIntent,
|
|
216
|
+
VetIncreaseStakeIntent,
|
|
215
217
|
WalletRecoveryIntent,
|
|
216
218
|
BaseStakeIntentWithCalldata,
|
|
217
219
|
CoreDaoDelegateIntent,
|
|
@@ -38,6 +38,7 @@ export const intentTypes = {
|
|
|
38
38
|
tokenApproval: t.literal("tokenApproval"),
|
|
39
39
|
transferStake: t.literal("transferStake"),
|
|
40
40
|
validatorRegistration: t.literal("validatorRegistration"),
|
|
41
|
+
increaseStake: t.literal("increaseStake"),
|
|
41
42
|
spotTransfer: t.literal("spotTransfer"),
|
|
42
43
|
bridgeFunds: t.literal("bridgeFunds"),
|
|
43
44
|
/**
|
|
@@ -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 Increase Stake Intent
|
|
9
|
+
*
|
|
10
|
+
* Intent for increasing the stake amount for an existing validator
|
|
11
|
+
* @param {Amount} amount - The amount of VET to add to 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 VetIncreaseStakeIntent = t.intersection([
|
|
16
|
+
BaseStakeIntent,
|
|
17
|
+
BaseIntentWithAmount,
|
|
18
|
+
t.type({
|
|
19
|
+
intentType: intentTypes.increaseStake,
|
|
20
|
+
validatorAddress: NonEmptyString,
|
|
21
|
+
stakingContractAddress: NonEmptyString,
|
|
22
|
+
}),
|
|
23
|
+
]);
|
|
24
|
+
|
|
25
|
+
export type VetIncreaseStakeIntent = t.TypeOf<typeof VetIncreaseStakeIntent>;
|