@bitgo/public-types 6.6.0 → 6.8.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 +2 -0
- package/dist/src/schema/transactionRequest/intents/accountBaseCreateAccountIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/accountBaseUpdateAccountIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/adaPaymentIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/adaPledgeIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/adaStakeClaimRewardsIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/adaStakeIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/adaUnstakeIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/adaVoteDelegationIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/aptCustomTxIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/aptStakeIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/aptUnstakeIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/aptWithdrawStakeIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/atomPaymentIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/atomPaymentIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/atomStakeIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/atomStakeIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/atomUnstakeIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/atomUnstakeIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/atomWithdrawIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/atomWithdrawIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/babyCreateBtcDelegationIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/babyWithdrawRewardIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/baseBridgeFundsIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/baseGoStakeIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/baseIntent.d.ts +4 -0
- package/dist/src/schema/transactionRequest/intents/baseStakeIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/baseStakeIntentWithCalldata.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/beraDelegateIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/bscDelegateIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/bscStakeClaimRewardsIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/bscUndelegateIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/bscWithdrawUndelegateIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/cantonCosignDelegationAcceptIntent.d.ts +69 -0
- package/dist/src/schema/transactionRequest/intents/cantonCosignDelegationAcceptIntent.js +37 -0
- package/dist/src/schema/transactionRequest/intents/cantonCosignDelegationAcceptIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/cantonCosignDelegationProposalIntent.d.ts +72 -0
- package/dist/src/schema/transactionRequest/intents/cantonCosignDelegationProposalIntent.js +41 -0
- package/dist/src/schema/transactionRequest/intents/cantonCosignDelegationProposalIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/cantonPaymentIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/cantonTransferAcceptIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/cantonTransferAcknowledgeIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/cantonTransferOfferWithdrawnIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/cantonTransferRejectIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/claimIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/consolidateTokenIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/coredaoClaimIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/coredaoDelegateIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/coredaoUndelegateIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/cosmosContractCallIntent.d.ts +72 -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.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/cosmosPaymentIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/cosmosStakeClaimRewardsIntent.d.ts +73 -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.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/cosmosStakeIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/cosmosSwitchValidatorIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/cosmosSwitchValidatorIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/cosmosUnstakeIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/cosmosUnstakeIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/cosmosWithdrawIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/cosmosWithdrawIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/defiDepositIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/defiRedeemIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/delegateIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/dotBaseIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/dotCreateAccountIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/dotPaymentIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/dotStakingIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/dotUnstakingIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/dotWithdrawStakeIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/enableTokenIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/ethAccelerationIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/ethConsolidateTokenIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/ethFillNonceIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/ethLikeStakeIntent.d.ts +4 -0
- package/dist/src/schema/transactionRequest/intents/ethPaymentIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/ethStakingIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/ethTransferTokenIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/feeAddressTransferIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/fillNonceIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/goUnstakeIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/hbarUpdateAccountIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/hypeevmBridgeFundsIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/hypeevmEnableBridgingIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/hypeevmSpotTransferIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/icpPaymentIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/index.d.ts +4 -0
- package/dist/src/schema/transactionRequest/intents/index.js +4 -0
- package/dist/src/schema/transactionRequest/intents/index.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/intent.d.ts +570 -122
- package/dist/src/schema/transactionRequest/intents/intent.js +10 -4
- package/dist/src/schema/transactionRequest/intents/intent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/intentType.d.ts +4 -0
- package/dist/src/schema/transactionRequest/intents/intentType.js +2 -0
- package/dist/src/schema/transactionRequest/intents/intentType.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/iotaBuildOptions.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/iotaConsolidateIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/iotaPaymentIntent.d.ts +4 -0
- package/dist/src/schema/transactionRequest/intents/irysPledgeIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/irysStakeIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/lightningPaymentIntent.d.ts +4 -0
- package/dist/src/schema/transactionRequest/intents/mmiSignMessageIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/mmiSignTransactionIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/nearStakeIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/nearUnstakeIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/nearWithdrawIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/paymentIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/polyxBaseIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/polyxCreateAccountIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/polyxPreApproveAssetIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/polyxStakeIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/polyxUnstakeIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/polyxWithdrawIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/signMessageIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/solAuthorizeIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/solClaimIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/solCloseAssociatedTokenAccountIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/solCreateAssociatedTokenAccountIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/solCustomTxIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/solDeactivateIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/solDelegateIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/solGoUnstakeIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/solPaymentIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/solStakeIntent.d.ts +4 -0
- package/dist/src/schema/transactionRequest/intents/solUnstakeIntent.d.ts +4 -0
- package/dist/src/schema/transactionRequest/intents/solVersionedCustomTxIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/stakeClaimRewardsIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/stakeIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/stakeSwitchValidatorIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/stakeSwitchValidatorIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/stakeWithCallDataIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/substrateBaseIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/substratePaymentIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/suiBuildOptions.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/suiConsolidateIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/suiCustomTxIntent.d.ts +4 -0
- package/dist/src/schema/transactionRequest/intents/suiGoUnstakeIntent.d.ts +4 -0
- package/dist/src/schema/transactionRequest/intents/suiPaymentIntent.d.ts +4 -0
- package/dist/src/schema/transactionRequest/intents/suiStakingIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/suiUnstakingIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/switchValidatorWithCallDataIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/taoStakeIntent.d.ts +4 -0
- package/dist/src/schema/transactionRequest/intents/taoStakingBaseIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/taoSwitchValidatorIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/taoTransferStakeIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/taoUnstakeIntent.d.ts +4 -0
- package/dist/src/schema/transactionRequest/intents/tokenApprovalIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/tonDelegateIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/tonMultiNominatorDelegateIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/tonMultiNominatorUndelegateIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/tonPaymentIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/tonSingleNominatorDelegateIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/tonSingleNominatorUndelegateIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/tonUndelegateIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/tonWhalesDelegateIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/tonWhalesUndelegateIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/transferTokenIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/trxClaimRewardsIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/trxDelegateResourceIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/trxFreezeIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/trxUndelegateResourceIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/trxUnfreezeIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/trxVoteIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/trxWithdrawExpireUnfreezeIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/undelegateIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/unstakeIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/validatorRegistrationIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/vetDecreaseStakeIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/vetDelegateIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/vetIncreaseStakeIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/vetSignalExitIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/vetStakeClaimRewardsIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/vetStakingIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/vetUnstakingIntent.d.ts +4 -0
- package/dist/src/schema/transactionRequest/intents/vetValidatorRegistrationIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/vetWithdrawStakeIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/voteDelegationIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/walletRecoveryIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/walrusStakingIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/walrusUndelegateIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/walrusWithdrawIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/withdrawIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/xdcStakingIntent.d.ts +4 -0
- package/dist/src/schema/transactionRequest/intents/xdcUnstakingIntent.d.ts +4 -0
- package/dist/src/schema/transactionRequest/transactionRequest.d.ts +1219 -323
- package/package.json +1 -1
- 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/cantonCosignDelegationAcceptIntent.ts +23 -0
- package/src/schema/transactionRequest/intents/cantonCosignDelegationProposalIntent.ts +29 -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/index.ts +4 -0
- package/src/schema/transactionRequest/intents/intent.ts +10 -4
- package/src/schema/transactionRequest/intents/intentType.ts +2 -0
- package/src/schema/transactionRequest/intents/stakeSwitchValidatorIntent.ts +2 -0
package/package.json
CHANGED
|
@@ -3,11 +3,16 @@ import { optionalString } from "../../../utils";
|
|
|
3
3
|
import { PaymentIntent } from "./paymentIntent";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
+
* Transfer tokens from a Cosmos-family wallet to one or more recipient
|
|
7
|
+
* addresses. Supported on all Cosmos-family chains. An optional memo may
|
|
8
|
+
* be included for exchange routing or identification.
|
|
9
|
+
*
|
|
6
10
|
* @title Atom Payment Intent
|
|
7
11
|
*/
|
|
8
12
|
export const AtomPaymentIntent = t.intersection([
|
|
9
13
|
PaymentIntent,
|
|
10
14
|
t.type({
|
|
15
|
+
/** Optional memo string attached to the transaction, used for routing or identification by exchanges. */
|
|
11
16
|
memo: optionalString,
|
|
12
17
|
}),
|
|
13
18
|
]);
|
|
@@ -5,15 +5,21 @@ import { StakeIntent } from "./stakeIntent";
|
|
|
5
5
|
import { BaseIntentWithAmount } from "./baseIntent";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
+
* Delegate (stake) tokens to one or more validators on ATOM. Use
|
|
9
|
+
* `validatorAddress` and `amount` for a single validator, or `recipients`
|
|
10
|
+
* for multi-validator delegation.
|
|
11
|
+
*
|
|
8
12
|
* @title Atom Stake Intent
|
|
9
13
|
*/
|
|
10
14
|
export const AtomStakeIntent = t.intersection([
|
|
11
15
|
StakeIntent,
|
|
12
16
|
BaseIntentWithAmount,
|
|
13
17
|
t.type({
|
|
18
|
+
/** Bech32 validator address to delegate tokens to (e.g. cosmosvaloper1...). */
|
|
14
19
|
validatorAddress: t.string,
|
|
15
20
|
}),
|
|
16
21
|
t.partial({
|
|
22
|
+
/** Optional list of validator–amount pairs for multi-validator delegation. When provided, overrides validatorAddress and amount. */
|
|
17
23
|
recipients: Optional(t.array(RecipientEntry)),
|
|
18
24
|
}),
|
|
19
25
|
]);
|
|
@@ -5,15 +5,21 @@ import { RecipientEntry } from "./recipientEntry";
|
|
|
5
5
|
import { Optional } from "../../../utils";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
+
* Undelegate (unstake) tokens from one or more validators on ATOM. Tokens
|
|
9
|
+
* enter the unbonding period. Use `validatorAddress` and `amount` for
|
|
10
|
+
* single validator or `recipients` for multi-validator.
|
|
11
|
+
*
|
|
8
12
|
* @title Atom Unstake Intent
|
|
9
13
|
*/
|
|
10
14
|
export const AtomUnstakeIntent = t.intersection([
|
|
11
15
|
UnstakeIntent,
|
|
12
16
|
BaseIntentWithAmount,
|
|
13
17
|
t.type({
|
|
18
|
+
/** Bech32 validator address to undelegate tokens from (e.g. cosmosvaloper1...). */
|
|
14
19
|
validatorAddress: t.string,
|
|
15
20
|
}),
|
|
16
21
|
t.partial({
|
|
22
|
+
/** Optional list of validator–amount pairs for multi-validator undelegation. When provided, overrides validatorAddress and amount. */
|
|
17
23
|
recipients: Optional(t.array(RecipientEntry)),
|
|
18
24
|
}),
|
|
19
25
|
]);
|
|
@@ -3,7 +3,13 @@ import { WithdrawIntent } from "./withdrawIntent";
|
|
|
3
3
|
import { BaseIntentWithAmount } from "./baseIntent";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
+
* Internal codec for ATOM staking reward claims. The `claim` intentType
|
|
7
|
+
* discriminant is not dispatched by the server — do not use directly. Use
|
|
8
|
+
* `CosmosStakeClaimRewardsIntent` with `intentType: stakeClaimRewards`
|
|
9
|
+
* instead.
|
|
10
|
+
*
|
|
6
11
|
* @title Atom Withdraw Intent
|
|
12
|
+
* @deprecated
|
|
7
13
|
*/
|
|
8
14
|
export const AtomWithdrawIntent = t.intersection([
|
|
9
15
|
WithdrawIntent,
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
import { BaseIntent } from "./baseIntent";
|
|
3
|
+
import { intentTypes } from "./intentType";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @title Canton Cosign Delegation Accept Intent
|
|
7
|
+
*
|
|
8
|
+
* Intent for accepting a cosign delegation on the `Canton` chain.
|
|
9
|
+
*
|
|
10
|
+
* @param {String} intentType - The type of intent (always set to cosignDelegationAccept)
|
|
11
|
+
* @param {String} txRequestId - The cosignDelegationProposal txRequestId
|
|
12
|
+
*/
|
|
13
|
+
export const CantonCosignDelegationAcceptIntent = t.intersection([
|
|
14
|
+
BaseIntent,
|
|
15
|
+
t.type({
|
|
16
|
+
intentType: intentTypes.cosignDelegationAccept,
|
|
17
|
+
txRequestId: t.string,
|
|
18
|
+
}),
|
|
19
|
+
]);
|
|
20
|
+
|
|
21
|
+
export type CantonCosignDelegationAcceptIntent = t.TypeOf<
|
|
22
|
+
typeof CantonCosignDelegationAcceptIntent
|
|
23
|
+
>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
import { BaseIntent } from "./baseIntent";
|
|
3
|
+
import { intentTypes } from "./intentType";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @title Canton Cosign Delegation Proposal Intent
|
|
7
|
+
*
|
|
8
|
+
* Intent for cosigning a delegation proposal on the `Canton` chain.
|
|
9
|
+
*
|
|
10
|
+
* @param {String} intentType - The type of intent (always set to cosignDelegationProposal)
|
|
11
|
+
* @param {String} contractId - The contract id of the delegation proposal to cosign
|
|
12
|
+
* @param {String} operatorId - The operator id associated with the delegation proposal
|
|
13
|
+
* @param {String} [packageName] - The optional package name
|
|
14
|
+
*/
|
|
15
|
+
export const CantonCosignDelegationProposalIntent = t.intersection([
|
|
16
|
+
BaseIntent,
|
|
17
|
+
t.type({
|
|
18
|
+
intentType: intentTypes.cosignDelegationProposal,
|
|
19
|
+
contractId: t.string,
|
|
20
|
+
operatorId: t.string,
|
|
21
|
+
}),
|
|
22
|
+
t.partial({
|
|
23
|
+
packageName: t.string,
|
|
24
|
+
}),
|
|
25
|
+
]);
|
|
26
|
+
|
|
27
|
+
export type CantonCosignDelegationProposalIntent = t.TypeOf<
|
|
28
|
+
typeof CantonCosignDelegationProposalIntent
|
|
29
|
+
>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
import { BaseIntent } from "./baseIntent";
|
|
3
|
+
import { intentTypes } from "./intentType";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Execute a Wasm smart contract on a Cosmos-family chain. Supported on all
|
|
7
|
+
* Cosmos-family chains. The hash chain additionally supports fee-grant via
|
|
8
|
+
* the optional feeGranter field.
|
|
9
|
+
*
|
|
10
|
+
* @title Cosmos Contract Call Intent
|
|
11
|
+
*/
|
|
12
|
+
export const CosmosContractCallIntent = t.intersection([
|
|
13
|
+
BaseIntent,
|
|
14
|
+
t.type({
|
|
15
|
+
/** Must be "contractCall" */
|
|
16
|
+
intentType: intentTypes.contractCall,
|
|
17
|
+
/** Bech32 contract address to execute */
|
|
18
|
+
contract: t.string,
|
|
19
|
+
/** Hex-encoded binary message to pass to the contract Execute entrypoint */
|
|
20
|
+
msgHex: t.string,
|
|
21
|
+
}),
|
|
22
|
+
t.partial({
|
|
23
|
+
/** Optional Bech32 address paying transaction fees on behalf of the submitter (fee-grant). Supported on hash chain; passed through for any chain. */
|
|
24
|
+
feeGranter: t.string,
|
|
25
|
+
}),
|
|
26
|
+
]);
|
|
27
|
+
|
|
28
|
+
export type CosmosContractCallIntent = t.TypeOf<
|
|
29
|
+
typeof CosmosContractCallIntent
|
|
30
|
+
>;
|
|
@@ -3,11 +3,16 @@ import { PaymentIntent } from "./paymentIntent";
|
|
|
3
3
|
import { optionalString } from "../../../utils";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
+
* Transfer tokens from a Cosmos-family wallet to one or more recipient
|
|
7
|
+
* addresses. Supported on all Cosmos-family chains. An optional memo may
|
|
8
|
+
* be included for exchange routing or identification.
|
|
9
|
+
*
|
|
6
10
|
* @title Cosmos Payment Intent
|
|
7
11
|
*/
|
|
8
12
|
export const CosmosPaymentIntent = t.intersection([
|
|
9
13
|
PaymentIntent,
|
|
10
14
|
t.type({
|
|
15
|
+
/** Optional memo string attached to the transaction, used for routing or identification by exchanges. */
|
|
11
16
|
memo: optionalString,
|
|
12
17
|
}),
|
|
13
18
|
]);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
import { BaseStakeIntent } from "./baseStakeIntent";
|
|
3
|
+
import { intentTypes } from "./intentType";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Claim accumulated staking rewards from a validator on a Cosmos-family chain.
|
|
7
|
+
* Supported on all Cosmos-family chains. Submit with intentType stakeClaimRewards.
|
|
8
|
+
*
|
|
9
|
+
* @title Cosmos Stake Claim Rewards Intent
|
|
10
|
+
*/
|
|
11
|
+
export const CosmosStakeClaimRewardsIntent = t.intersection([
|
|
12
|
+
BaseStakeIntent,
|
|
13
|
+
t.type({
|
|
14
|
+
/** Must be "stakeClaimRewards" */
|
|
15
|
+
intentType: intentTypes.stakeClaimRewards,
|
|
16
|
+
/** Bech32 validator address to withdraw accumulated staking rewards from (e.g. cosmosvaloper1...) */
|
|
17
|
+
validatorAddress: t.string,
|
|
18
|
+
}),
|
|
19
|
+
]);
|
|
20
|
+
|
|
21
|
+
export type CosmosStakeClaimRewardsIntent = t.TypeOf<
|
|
22
|
+
typeof CosmosStakeClaimRewardsIntent
|
|
23
|
+
>;
|
|
@@ -6,6 +6,10 @@ import { RecipientEntry } from "./recipientEntry";
|
|
|
6
6
|
import { Optional } from "../../../utils";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
+
* Delegate (stake) tokens to one or more validators on a Cosmos-family
|
|
10
|
+
* chain. Use `validatorAddress` and `amount` for a single validator, or
|
|
11
|
+
* `recipients` for multi-validator delegation in a single transaction.
|
|
12
|
+
*
|
|
9
13
|
* @title Cosmos Stake Intent
|
|
10
14
|
*/
|
|
11
15
|
export const CosmosStakeIntent = t.intersection([
|
|
@@ -13,9 +17,11 @@ export const CosmosStakeIntent = t.intersection([
|
|
|
13
17
|
BaseIntentWithAmount,
|
|
14
18
|
t.type({
|
|
15
19
|
intentType: intentTypes.delegate,
|
|
20
|
+
/** Bech32 validator address to delegate tokens to (e.g. cosmosvaloper1...). */
|
|
16
21
|
validatorAddress: t.string,
|
|
17
22
|
}),
|
|
18
23
|
t.partial({
|
|
24
|
+
/** Optional list of validator–amount pairs for multi-validator delegation. When provided, overrides validatorAddress and amount. */
|
|
19
25
|
recipients: Optional(t.array(RecipientEntry)),
|
|
20
26
|
}),
|
|
21
27
|
]);
|
|
@@ -2,6 +2,10 @@ import * as t from "io-ts";
|
|
|
2
2
|
import { StakeSwitchValidatorIntent } from "./stakeSwitchValidatorIntent";
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
+
* Atomically move a delegation from one validator to another (redelegate)
|
|
6
|
+
* on a Cosmos-family chain. The redelegation is subject to the chain's
|
|
7
|
+
* redelegation cooldown rules.
|
|
8
|
+
*
|
|
5
9
|
* @title Cosmos Switch Validator Intent
|
|
6
10
|
*/
|
|
7
11
|
export const CosmosSwitchValidatorIntent = StakeSwitchValidatorIntent;
|
|
@@ -6,6 +6,11 @@ import { RecipientEntry } from "./recipientEntry";
|
|
|
6
6
|
import { Optional } from "../../../utils";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
+
* Undelegate (unstake) tokens from one or more validators on a
|
|
10
|
+
* Cosmos-family chain. Tokens enter the chain's unbonding period and are
|
|
11
|
+
* not immediately available. Use `validatorAddress` and `amount` for a
|
|
12
|
+
* single validator, or `recipients` for multi-validator undelegation.
|
|
13
|
+
*
|
|
9
14
|
* @title Cosmos Unstake Intent
|
|
10
15
|
*/
|
|
11
16
|
export const CosmosUnstakeIntent = t.intersection([
|
|
@@ -13,9 +18,11 @@ export const CosmosUnstakeIntent = t.intersection([
|
|
|
13
18
|
BaseIntentWithAmount,
|
|
14
19
|
t.type({
|
|
15
20
|
intentType: intentTypes.undelegate,
|
|
21
|
+
/** Bech32 validator address to undelegate tokens from (e.g. cosmosvaloper1...). */
|
|
16
22
|
validatorAddress: t.string,
|
|
17
23
|
}),
|
|
18
24
|
t.partial({
|
|
25
|
+
/** Optional list of validator–amount pairs for multi-validator undelegation. When provided, overrides validatorAddress and amount. */
|
|
19
26
|
recipients: Optional(t.array(RecipientEntry)),
|
|
20
27
|
}),
|
|
21
28
|
]);
|
|
@@ -2,7 +2,13 @@ import * as t from "io-ts";
|
|
|
2
2
|
import { WithdrawIntent } from "./withdrawIntent";
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
+
* Internal codec for cosmos-family staking reward claims. The `claim`
|
|
6
|
+
* intentType discriminant is not dispatched by the server — do not use
|
|
7
|
+
* directly. Use `CosmosStakeClaimRewardsIntent` with
|
|
8
|
+
* `intentType: stakeClaimRewards` instead.
|
|
9
|
+
*
|
|
5
10
|
* @title Cosmos Withdraw Intent
|
|
11
|
+
* @deprecated
|
|
6
12
|
*/
|
|
7
13
|
export const CosmosWithdrawIntent = t.intersection([
|
|
8
14
|
WithdrawIntent,
|
|
@@ -33,6 +33,8 @@ export * from "./bscDelegateIntent";
|
|
|
33
33
|
export * from "./bscStakeClaimRewardsIntent";
|
|
34
34
|
export * from "./bscUndelegateIntent";
|
|
35
35
|
export * from "./bscWithdrawUndelegateIntent";
|
|
36
|
+
export * from "./cantonCosignDelegationAcceptIntent";
|
|
37
|
+
export * from "./cantonCosignDelegationProposalIntent";
|
|
36
38
|
export * from "./cantonPaymentIntent";
|
|
37
39
|
export * from "./cantonTransferAcceptIntent";
|
|
38
40
|
export * from "./cantonTransferAcknowledgeIntent";
|
|
@@ -43,7 +45,9 @@ export * from "./consolidateTokenIntent";
|
|
|
43
45
|
export * from "./coredaoClaimIntent";
|
|
44
46
|
export * from "./coredaoDelegateIntent";
|
|
45
47
|
export * from "./coredaoUndelegateIntent";
|
|
48
|
+
export * from "./cosmosContractCallIntent";
|
|
46
49
|
export * from "./cosmosPaymentIntent";
|
|
50
|
+
export * from "./cosmosStakeClaimRewardsIntent";
|
|
47
51
|
export * from "./cosmosStakeIntent";
|
|
48
52
|
export * from "./cosmosSwitchValidatorIntent";
|
|
49
53
|
export * from "./cosmosUnstakeIntent";
|
|
@@ -7,7 +7,6 @@ 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";
|
|
@@ -20,11 +19,12 @@ import {
|
|
|
20
19
|
} from "./vetUnstakingIntent";
|
|
21
20
|
import { DefiDepositIntent } from "./defiDepositIntent";
|
|
22
21
|
import { DefiRedeemIntent } from "./defiRedeemIntent";
|
|
22
|
+
import { CosmosContractCallIntent } from "./cosmosContractCallIntent";
|
|
23
23
|
import { CosmosPaymentIntent } from "./cosmosPaymentIntent";
|
|
24
|
+
import { CosmosStakeClaimRewardsIntent } from "./cosmosStakeClaimRewardsIntent";
|
|
24
25
|
import { CosmosStakeIntent } from "./cosmosStakeIntent";
|
|
25
26
|
import { CosmosSwitchValidatorIntent } from "./cosmosSwitchValidatorIntent";
|
|
26
27
|
import { CosmosUnstakeIntent } from "./cosmosUnstakeIntent";
|
|
27
|
-
import { CosmosWithdrawIntent } from "./cosmosWithdrawIntent";
|
|
28
28
|
import { DotCreateAccountIntent } from "./dotCreateAccountIntent";
|
|
29
29
|
import { DotPaymentIntent } from "./dotPaymentIntent";
|
|
30
30
|
import { DotStakingIntent } from "./dotStakingIntent";
|
|
@@ -112,6 +112,8 @@ import { VetIncreaseStakeIntent } from "./vetIncreaseStakeIntent";
|
|
|
112
112
|
import { VetDecreaseStakeIntent } from "./vetDecreaseStakeIntent";
|
|
113
113
|
import { VetSignalExitIntent } from "./vetSignalExitIntent";
|
|
114
114
|
import { VetWithdrawStakeIntent } from "./vetWithdrawStakeIntent";
|
|
115
|
+
import { CantonCosignDelegationAcceptIntent } from "./cantonCosignDelegationAcceptIntent";
|
|
116
|
+
import { CantonCosignDelegationProposalIntent } from "./cantonCosignDelegationProposalIntent";
|
|
115
117
|
import { CantonPaymentIntent } from "./cantonPaymentIntent";
|
|
116
118
|
import { CantonTransferAcceptIntent } from "./cantonTransferAcceptIntent";
|
|
117
119
|
import { CantonTransferAcknowledgeIntent } from "./cantonTransferAcknowledgeIntent";
|
|
@@ -130,6 +132,7 @@ import { XdcUploadKycIntent } from "./xdcStakingIntent";
|
|
|
130
132
|
import { XdcProposeIntent } from "./xdcStakingIntent";
|
|
131
133
|
import { XdcResignIntent } from "./xdcUnstakingIntent";
|
|
132
134
|
import { XdcWithdrawIntent } from "./xdcUnstakingIntent";
|
|
135
|
+
import { FillNonceIntent } from "./fillNonceIntent";
|
|
133
136
|
import { HypeevmBridgeFundsIntent } from "./hypeevmBridgeFundsIntent";
|
|
134
137
|
import { HypeevmEnableBridgingIntent } from "./hypeevmEnableBridgingIntent";
|
|
135
138
|
import { DelegateIntent } from "./delegateIntent";
|
|
@@ -147,23 +150,25 @@ export const TransactionIntent = t.union([
|
|
|
147
150
|
AtomPaymentIntent,
|
|
148
151
|
AtomStakeIntent,
|
|
149
152
|
AtomUnstakeIntent,
|
|
150
|
-
AtomWithdrawIntent,
|
|
151
153
|
BabyCreateBtcDelegationIntent,
|
|
152
154
|
BabyWithdrawRewardIntent,
|
|
153
155
|
BscDelegateIntent,
|
|
154
156
|
BscUnDelegateIntent,
|
|
155
157
|
BscWithdrawUndelegateIntent,
|
|
158
|
+
CantonCosignDelegationAcceptIntent,
|
|
159
|
+
CantonCosignDelegationProposalIntent,
|
|
156
160
|
CantonPaymentIntent,
|
|
157
161
|
CantonTransferAcceptIntent,
|
|
158
162
|
CantonTransferAcknowledgeIntent,
|
|
159
163
|
CantonTransferOfferWithdrawnIntent,
|
|
160
164
|
CantonTransferRejectIntent,
|
|
161
165
|
ClaimIntent,
|
|
166
|
+
CosmosContractCallIntent,
|
|
162
167
|
CosmosPaymentIntent,
|
|
168
|
+
CosmosStakeClaimRewardsIntent,
|
|
163
169
|
CosmosStakeIntent,
|
|
164
170
|
CosmosSwitchValidatorIntent,
|
|
165
171
|
CosmosUnstakeIntent,
|
|
166
|
-
CosmosWithdrawIntent,
|
|
167
172
|
DefiDepositIntent,
|
|
168
173
|
DefiRedeemIntent,
|
|
169
174
|
DotConsolidateIntent,
|
|
@@ -177,6 +182,7 @@ export const TransactionIntent = t.union([
|
|
|
177
182
|
EthConsolidateIntent,
|
|
178
183
|
EthConsolidateTokenIntent,
|
|
179
184
|
EthFillNonceIntent,
|
|
185
|
+
FillNonceIntent,
|
|
180
186
|
EthPaymentIntent,
|
|
181
187
|
EthStakingIntent,
|
|
182
188
|
EthTransferTokenIntent,
|
|
@@ -57,6 +57,8 @@ export const intentTypes = {
|
|
|
57
57
|
transferReject: t.literal("transferReject"),
|
|
58
58
|
transferAcknowledge: t.literal("transferAcknowledge"),
|
|
59
59
|
transferOfferWithdrawn: t.literal("transferOfferWithdrawn"),
|
|
60
|
+
cosignDelegationProposal: t.literal("cosignDelegationProposal"),
|
|
61
|
+
cosignDelegationAccept: t.literal("cosignDelegationAccept"),
|
|
60
62
|
/**
|
|
61
63
|
* Deposit assets into a DeFi protocol vault (e.g. Concrete USD1 → ctUSD1cx).
|
|
62
64
|
*/
|
|
@@ -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
|
]);
|