Skip to main content

FeeProxy action envelopes

Version: V2
View Markdown

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.

feeProxyCreateAtomsWithUrisEnvelope​

Builds a createAtomsWithUrisVia plan routed through an affiliate: validates every atom's URI list against the live URI bounds, quotes the affiliate's creation fee, and returns the calldata.

Source

function feeProxyCreateAtomsWithUrisEnvelope(
inputs: BuildFeeProxyCreateAtomsWithUrisPlanInputs,
): Promise<import('@0xintuition/sdk/actions').AgentActionEnvelope>;
  • inputs: Chain, contract addresses, the affiliate, per-atom data/assets/URIs, the caller's fee guard, and precomputed read values.
  • returns: An agent-action envelope with the creation step and the fee/bounds quote it was built from.

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 modulePublic importDefinition
Addressimport type { Address } from 'viem'Owned by the external package.
Heximport type { Hex } from 'viem'Owned by the external package.

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;

FeeProxyFeeGuardPlanInput​

Public export.

export type FeeProxyFeeGuardPlanInput = {
maxFeeBps: bigint;
maxFixedFee: bigint;
};

FeeProxyCreateAtomsWithUrisPlanReadContext​

Public export.

export type FeeProxyCreateAtomsWithUrisPlanReadContext = {
previewCreationFee?: readonly [bigint, bigint];
atomUriConfig?: readonly [number, number];
};

BuildFeeProxyCreateAtomsWithUrisPlanInputs​

Public export.

export type BuildFeeProxyCreateAtomsWithUrisPlanInputs = {
chainId?: IntuitionCoreChainId;
feeProxyAddress: Address;
multiVaultAddress: Address;
affiliate: Address;
atomDatas: Hex[];
assets: bigint[];
uris: Hex[][];
feeGuard: FeeProxyFeeGuardPlanInput;
readContext?: FeeProxyCreateAtomsWithUrisPlanReadContext;
};

Applies to V2 · @0xintuition/sdk 4.1.0