Skip to content

@lelantos-org/sdk / protocol / DepositRequest

Interface: DepositRequest โ€‹

Defined in: @lelantos-org/sdk/dist/protocol/deposit-request.d.ts:15

PubInputs.DepositRequest mirror โ€” wire-side bigints/hex.

One output: the contract collapses the deposit to a single leaf rather than padding it to the two-leaf shape of a spend. There is correspondingly no rcvTotal or rcvDepPad, which would only have pinned a pad leaf's value to zero.

Properties โ€‹

chainId โ€‹

ts
chainId: bigint;

Defined in: @lelantos-org/sdk/dist/protocol/deposit-request.d.ts:20

Full-width, matching Transact.chainId. Encodes to the same ABI word as the uint64 it replaced, so the Permit2 witness preimage is unchanged.


cvDep โ€‹

ts
cvDep: [bigint, bigint];

Defined in: @lelantos-org/sdk/dist/protocol/deposit-request.d.ts:32

Pedersen value commitment cv_dep = value ยท V^asset + rcv_dep ยท H. Anchors (asset_id, value) into the Merkle leaf via leaf = Poseidon(TAG_LEAF, cm, cv_dep_x, cv_dep_y).


feeCm โ€‹

ts
feeCm: string;

Defined in: @lelantos-org/sdk/dist/protocol/deposit-request.d.ts:48


feeCvDep โ€‹

ts
feeCvDep: [bigint, bigint];

Defined in: @lelantos-org/sdk/dist/protocol/deposit-request.d.ts:49


feeIn โ€‹

ts
feeIn: bigint;

Defined in: @lelantos-org/sdk/dist/protocol/deposit-request.d.ts:47

The relayer's fee note, in the deposit's own asset.

A deposit mints two leaves: the depositor's note and this one. feeIn may be zero โ€” a chain that subsidises deposits still mints the leaf, so there is one code path rather than two.


feeRcv โ€‹

ts
feeRcv: bigint;

Defined in: @lelantos-org/sdk/dist/protocol/deposit-request.d.ts:50


outCm โ€‹

ts
outCm: string;

Defined in: @lelantos-org/sdk/dist/protocol/deposit-request.d.ts:26

Output commitment. 0x-hex 32 B.


payer โ€‹

ts
payer: string;

Defined in: @lelantos-org/sdk/dist/protocol/deposit-request.d.ts:23


publicAssetId โ€‹

ts
publicAssetId: bigint;

Defined in: @lelantos-org/sdk/dist/protocol/deposit-request.d.ts:21


publicIn โ€‹

ts
publicIn: bigint;

Defined in: @lelantos-org/sdk/dist/protocol/deposit-request.d.ts:22


rcv โ€‹

ts
rcv: bigint;

Defined in: @lelantos-org/sdk/dist/protocol/deposit-request.d.ts:39

The output's rcv_dep. Published in the DepositEscrowed event so the relayer can build the tree_update_batch witness without learning recipient pk/rho/rcm. A Pedersen blinder is information-theoretically independent of value/asset/identity, so it leaks nothing useful.


recipient โ€‹

ts
recipient: string;

Defined in: @lelantos-org/sdk/dist/protocol/deposit-request.d.ts:24

Lelantosno cookies ๐Ÿช ยท no tracking ๐Ÿ‘๏ธ ยท no accounts ๐Ÿ‘คwalletexplorer4536080GitHub