Skip to main content

FeeProxy URI creation

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.

feeProxyPrepareCreateAtomsWithUrisTx​

Prepares a createAtomsWithUrisVia transaction routed through an affiliate: reads the live URI bounds and validates every atom's URI list against them, computes the affiliate's creation-fee value (so the caller can size msg.value and a FeeGuard cap correctly), and returns the calldata.

Source

function feeProxyPrepareCreateAtomsWithUrisTx(
configs: {
feeProxy: ReadConfig;
multiVault: ReadConfig;
},
inputs: {
affiliate: Address;
atomDatas: Hex[];
assets: bigint[];
uris: Hex[][];
feeGuard: FeeGuard;
},
deps?: FeeProxyCreateAtomsWithUrisDeps,
): Promise<FeeProxyPrepareCreateAtomsWithUrisTxResult>;
  • configs: feeProxy and multiVault read configs (both resolve against the same public client).
  • inputs: The affiliate, per-atom data/assets/URIs, and the caller's front-run guard.
  • deps: Injectable protocol/periphery read primitives.
  • returns: The createAtomsWithUrisVia calldata, args, gross value, and the fee/bounds quote it was built from.

Defaults: deps = defaultFeeProxyCreateAtomsWithUrisDeps. Dependency arguments are optional test/customization hooks; normal consumers use the built-in dependencies.

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
FeeGuardimport type { FeeGuard } from '@0xintuition/periphery'Source definition
feeProxyPreviewCreationFeeimport { feeProxyPreviewCreationFee } from '@0xintuition/periphery'Source definition
multiVaultGetAtomUriConfigimport { multiVaultGetAtomUriConfig } from '@0xintuition/protocol'Source definition
ReadConfigimport type { ReadConfig } from '@0xintuition/protocol'Source definition
Addressimport type { Address } from 'viem'Owned by the external package.
Heximport type { Hex } from 'viem'Owned by the external package.

Supporting input and result structures​

These declarations retain their owning source links. Internal supporting types describe accepted shapes but are not standalone public imports.

FeeGuard​

Source definition

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

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.

FeeProxyCreateAtomsWithUrisQuote​

Public export.

export type FeeProxyCreateAtomsWithUrisQuote = {
affiliate: Address;
totalGrossAssets: bigint;
previewedFee: bigint;
previewedForwarded: bigint;
maxUriCount: number;
maxUriLength: number;
};

FeeProxyPrepareCreateAtomsWithUrisTxResult​

Public export.

export type FeeProxyPrepareCreateAtomsWithUrisTxResult = {
args: readonly [Address, Hex[], bigint[], Hex[][], FeeGuard];
calldata: Hex;
value: bigint;
quote: FeeProxyCreateAtomsWithUrisQuote;
};

FeeProxyCreateAtomsWithUrisDeps​

Module-local helper; not a public export.

type FeeProxyCreateAtomsWithUrisDeps = {
previewCreationFee: typeof feeProxyPreviewCreationFee;
getAtomUriConfig: typeof multiVaultGetAtomUriConfig;
};

Applies to V2 · @0xintuition/sdk 4.1.0