SHIELD_ABI: readonly [
{
name: "shield";
type: "function";
stateMutability: "nonpayable";
outputs: readonly [];
inputs: readonly [
{
name: "_shieldRequests";
type: "tuple[]";
components: readonly [
{
name: "preimage";
type: "tuple";
components: readonly [
{ name: "npk"; type: "bytes32" },
{
name: "token";
type: "tuple";
components: readonly [
{ name: "tokenType"; type: "uint8" },
{ name: "tokenAddress"; type: "address" },
{ name: "tokenSubID"; type: "uint256" },
];
},
{ name: "value"; type: "uint120" },
];
},
{
name: "ciphertext";
type: "tuple";
components: readonly [
{ name: "encryptedBundle"; type: "bytes32[3]" },
{ name: "shieldKey"; type: "bytes32" },
];
},
];
},
];
},
] = ...
Minimal ABI fragment for
shield(ShieldRequest[]).A ShieldRequest pairs a plaintext
preimagewith theciphertextthat lets the receiver detect and decrypt the resulting note.