TrustBonding action envelopes
API for @0xintuition/sdk@4.1.0. Compatibility · Source.
Import from @0xintuition/sdk/actions.
Signatures show the exact accepted inputs and return types. Named input/output structures and dependency-injection types are listed below; viem and protocol types come from their respective packages. Preparation and quote functions can perform RPC reads. Envelope builders on the action-envelope pages use caller-supplied read context and perform no RPC reads or signing. feeProxyExecutePlan sends transactions; the other SDK actions on these pages prepare transactions or read data.
trustBondingClaimEnvelope
Build reward-claim steps from supplied epoch and claim state, without fetching or submitting.
function trustBondingClaimEnvelope(
inputs: BuildTrustBondingClaimPlanInputs,
): Promise<import('@0xintuition/sdk/actions').AgentActionEnvelope>;
trustBondingLockEnvelope
Build the applicable lock action from supplied lock state and time, without fetching or submitting.
function trustBondingLockEnvelope(
inputs: BuildTrustBondingLockPlanInputs,
): Promise<import('@0xintuition/sdk/actions').AgentActionEnvelope>;
trustBondingClaimAndRestakeEnvelope
Build ordered claim and restake steps from supplied reward and target-vault context.
function trustBondingClaimAndRestakeEnvelope(
inputs: BuildTrustBondingClaimAndRestakePlanInputs,
): Promise<import('@0xintuition/sdk/actions').AgentActionEnvelope>;
Imported type provenance
Public import locations and the definitions used by these signatures and helper types. Value imports appear where a dependency hook uses typeof.
| Name in this module | Public import | Definition |
|---|---|---|
Address | import type { Address } from 'viem' | Owned by the external package. |
Hex | import type { Hex } from 'viem' | Owned by the external package. |
MultiVaultDepositPlanReadContext | import type { MultiVaultDepositPlanReadContext } from '@0xintuition/sdk/actions' | MultiVaultDepositPlanReadContext |
Input and result types
Exported declarations are public imports from the SDK subpath above. Module-local helper aliases describe accepted shapes but are not public exports.
IntuitionCoreChainId
Module-local helper; not a public export.
type IntuitionCoreChainId = 1155 | 13579;
TrustBondingClaimPlanReadContext
Module-local helper; not a public export.
type TrustBondingClaimPlanReadContext = {
currentEpoch?: bigint;
previousEpoch?: bigint;
claimableRewards?: bigint;
hasClaimedPreviousEpochRewards?: boolean;
};
TrustBondingLockPlanReadContext
Module-local helper; not a public export.
type TrustBondingLockPlanReadContext = {
lockedAmount?: bigint;
lockEnd?: bigint;
};
TrustBondingRestakeTarget
Module-local helper; not a public export.
type TrustBondingRestakeTarget =
| {
kind: 'trust-bonding';
wrappedTrustAddress: Address;
beneficiary?: Address;
}
| {
kind: 'multivault';
multiVaultAddress: Address;
receiver?: Address;
termId: Hex;
curveId: bigint;
slippageBps?: bigint;
readContext?: Pick<MultiVaultDepositPlanReadContext, 'previewDeposit'>;
};
BuildTrustBondingClaimPlanInputs
Public export.
export type BuildTrustBondingClaimPlanInputs = {
chainId?: IntuitionCoreChainId;
trustBondingAddress: Address;
account: Address;
recipient?: string | null;
readContext?: TrustBondingClaimPlanReadContext;
};
BuildTrustBondingLockPlanInputs
Public export.
export type BuildTrustBondingLockPlanInputs = {
chainId?: IntuitionCoreChainId;
trustBondingAddress: Address;
account: Address;
amountDelta?: bigint;
unlockTime?: bigint;
nowTimestamp?: bigint;
readContext?: TrustBondingLockPlanReadContext;
};
BuildTrustBondingClaimAndRestakePlanInputs
Public export.
export type BuildTrustBondingClaimAndRestakePlanInputs = {
chainId?: IntuitionCoreChainId;
trustBondingAddress: Address;
account: Address;
recipient?: Address | null;
readContext?: TrustBondingClaimPlanReadContext;
target: TrustBondingRestakeTarget;
};
Applies to V2 · @0xintuition/sdk 4.1.0