@lelantos-org/sdk / protocol / DepositRequest
Interface: DepositRequest
Defined in: @lelantos-org/sdk/dist/protocol/deposit-request.d.ts:14
PubInputs.DepositRequest mirror, with wire-side bigints/hex.
A deposit publishes inner, the owner half of each note, and never a leaf: the batch circuit builds the leaf from the escrowed amount as Poseidon(TAG_CM, asset · 2^64 + value, inner).
Properties
chainId
chainId: bigint;Defined in: @lelantos-org/sdk/dist/protocol/deposit-request.d.ts:16
Full-width uint256, matching Transact.chainId.
feeAssetId
feeAssetId: bigint;Defined in: @lelantos-org/sdk/dist/protocol/deposit-request.d.ts:37
Registry id of the asset the relayer's fee note is paid in.
0 exactly when feeIn is zero: a zero-value leaf's asset is canonically 0 in the circuit, and the pool reverts FeeAssetMustBeZero otherwise. A valued note names either publicAssetId (one pull of the deposit token) or another plain, enabled asset (a second pull, of that token); see isSameFeeAsset.
feeIn
feeIn: bigint;Defined in: @lelantos-org/sdk/dist/protocol/deposit-request.d.ts:44
The relayer's fee note value, in circuit units of feeAssetId.
A deposit mints two leaves: the depositor's note and this one. feeIn may be zero; the leaf is minted regardless.
feeInner
feeInner: string;Defined in: @lelantos-org/sdk/dist/protocol/deposit-request.d.ts:46
inner of the relayer's fee note. 0x-hex 32 B.
inner
inner: string;Defined in: @lelantos-org/sdk/dist/protocol/deposit-request.d.ts:27
Poseidon(TAG_INNER, pk, rho, rcm) of the depositor's note. 0x-hex 32 B.
One that is not of that form, or whose preimage the recipient never learns, escrows a deposit nobody can spend.
payer
payer: string;Defined in: @lelantos-org/sdk/dist/protocol/deposit-request.d.ts:19
publicAssetId
publicAssetId: bigint;Defined in: @lelantos-org/sdk/dist/protocol/deposit-request.d.ts:17
publicIn
publicIn: bigint;Defined in: @lelantos-org/sdk/dist/protocol/deposit-request.d.ts:18
recipient
recipient: string;Defined in: @lelantos-org/sdk/dist/protocol/deposit-request.d.ts:20