@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 โ
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 โ
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 โ
feeCm: string;Defined in: @lelantos-org/sdk/dist/protocol/deposit-request.d.ts:48
feeCvDep โ
feeCvDep: [bigint, bigint];Defined in: @lelantos-org/sdk/dist/protocol/deposit-request.d.ts:49
feeIn โ
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 โ
feeRcv: bigint;Defined in: @lelantos-org/sdk/dist/protocol/deposit-request.d.ts:50
outCm โ
outCm: string;Defined in: @lelantos-org/sdk/dist/protocol/deposit-request.d.ts:26
Output commitment. 0x-hex 32 B.
payer โ
payer: string;Defined in: @lelantos-org/sdk/dist/protocol/deposit-request.d.ts:23
publicAssetId โ
publicAssetId: bigint;Defined in: @lelantos-org/sdk/dist/protocol/deposit-request.d.ts:21
publicIn โ
publicIn: bigint;Defined in: @lelantos-org/sdk/dist/protocol/deposit-request.d.ts:22
rcv โ
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 โ
recipient: string;Defined in: @lelantos-org/sdk/dist/protocol/deposit-request.d.ts:24