Skip to content

@armada/sdk / tx / AdaptParamsEncoders

Interface: AdaptParamsEncoders

Defined in: src/tx/index.ts:115

adaptParams binding encoders matching the deployed contracts (fixes #399). Each is a one-way keccak256 commitment set on boundParams.adaptParams; the yield deposit vs redeem paths produce distinct commitments. See ./adapt-params for the implementations + verify* counterparts.

Methods

encodeCctpBinding()

encodeCctpBinding(recipient, destinationDomain, maxFee): `0x${string}`

Defined in: src/tx/index.ts:116

Parameters

recipient

string

destinationDomain

number

maxFee

bigint

Returns

`0x${string}`


encodeYieldDepositBinding()

encodeYieldDepositBinding(npk, encryptedBundle, shieldKey): `0x${string}`

Defined in: src/tx/index.ts:117

Parameters

npk

bigint

encryptedBundle

readonly [string, string, string]

shieldKey

string

Returns

`0x${string}`


encodeYieldRedeemBinding()

encodeYieldRedeemBinding(npk, encryptedBundle, shieldKey, feeNpk, feeEncryptedBundle, feeShieldKey, feeAmount): `0x${string}`

Defined in: src/tx/index.ts:122

Parameters

npk

bigint

encryptedBundle

readonly [string, string, string]

shieldKey

string

feeNpk

bigint

feeEncryptedBundle

readonly [string, string, string]

feeShieldKey

string

feeAmount

bigint

Returns

`0x${string}`