Skip to content

@lelantos-org/sdk / advanced / MASP_ABI

Variable: MASP_ABI ​

ts
const MASP_ABI: readonly [{
  inputs: readonly [{
     name: "id";
     type: "uint64";
  }];
  name: "asset";
  outputs: readonly [{
     components: readonly [{
        name: "token";
        type: "address";
      }, {
        name: "disabled";
        type: "bool";
      }, {
        name: "depositBps";
        type: "uint16";
      }, {
        name: "withdrawBps";
        type: "uint16";
      }, {
        name: "isYield";
        type: "bool";
      }, {
        name: "scale";
        type: "uint48";
     }];
     type: "tuple";
  }];
  stateMutability: "view";
  type: "function";
}, {
  inputs: readonly [{
     name: "id";
     type: "uint64";
  }];
  name: "assetFees";
  outputs: readonly [{
     name: "depositBps";
     type: "uint16";
   }, {
     name: "withdrawBps";
     type: "uint16";
  }];
  stateMutability: "view";
  type: "function";
}, {
  inputs: readonly [{
     name: "id";
     type: "uint64";
  }];
  name: "yieldState";
  outputs: readonly [{
     components: readonly [{
        name: "venue";
        type: "address";
      }, {
        name: "bufferBps";
        type: "uint16";
      }, {
        name: "perfBps";
        type: "uint16";
      }, {
        name: "halted";
        type: "bool";
      }, {
        name: "totalNormalized";
        type: "uint256";
      }, {
        name: "accruedFeeNormalized";
        type: "uint256";
      }, {
        name: "idle";
        type: "uint256";
      }, {
        name: "lastIdx";
        type: "uint256";
      }, {
        name: "index";
        type: "uint256";
     }];
     type: "tuple";
  }];
  stateMutability: "view";
  type: "function";
}, {
  inputs: readonly [];
  name: "treasury";
  outputs: readonly [{
     type: "address";
  }];
  stateMutability: "view";
  type: "function";
}, {
  inputs: readonly [];
  name: "cancelDelay";
  outputs: readonly [{
     type: "uint32";
  }];
  stateMutability: "view";
  type: "function";
}, {
  inputs: readonly [];
  name: "nextDepositId";
  outputs: readonly [{
     type: "uint256";
  }];
  stateMutability: "view";
  type: "function";
}, {
  inputs: readonly [{
     name: "id";
     type: "uint256";
  }];
  name: "escrowed";
  outputs: readonly [{
     name: "digest";
     type: "bytes32";
  }];
  stateMutability: "view";
  type: "function";
}, {
  inputs: readonly [{
     name: "root";
     type: "bytes32";
  }];
  name: "isKnownRoot";
  outputs: readonly [{
     type: "bool";
  }];
  stateMutability: "view";
  type: "function";
}, {
  inputs: readonly [{
     components: readonly [{
        name: "chainId";
        type: "uint256";
      }, {
        name: "publicAssetId";
        type: "uint64";
      }, {
        name: "publicIn";
        type: "uint64";
      }, {
        name: "payer";
        type: "address";
      }, {
        name: "recipient";
        type: "address";
      }, {
        name: "inner";
        type: "bytes32";
      }, {
        name: "feeAssetId";
        type: "uint64";
      }, {
        name: "feeIn";
        type: "uint64";
      }, {
        name: "feeInner";
        type: "bytes32";
     }];
     name: "d";
     type: "tuple";
   }, {
     components: readonly [{
        name: "nonce";
        type: "uint256";
      }, {
        name: "deadline";
        type: "uint256";
      }, {
        name: "maxTotal";
        type: "uint256";
      }, {
        name: "maxFee";
        type: "uint256";
      }, {
        name: "signature";
        type: "bytes";
     }];
     name: "sig";
     type: "tuple";
   }, {
     components: readonly [{
        name: "clueRx";
        type: "uint256";
      }, {
        name: "clueRy";
        type: "uint256";
      }, {
        name: "clueQx";
        type: "uint256";
      }, {
        name: "clueQy";
        type: "uint256";
      }, {
        name: "ephPubX";
        type: "uint256";
      }, {
        name: "ephPubY";
        type: "uint256";
      }, {
        name: "ciphertext";
        type: "bytes";
     }];
     name: "aux";
     type: "tuple";
   }, {
     components: readonly [{
        name: "clueRx";
        type: "uint256";
      }, {
        name: "clueRy";
        type: "uint256";
      }, {
        name: "clueQx";
        type: "uint256";
      }, {
        name: "clueQy";
        type: "uint256";
      }, {
        name: "ephPubX";
        type: "uint256";
      }, {
        name: "ephPubY";
        type: "uint256";
      }, {
        name: "ciphertext";
        type: "bytes";
     }];
     name: "feeAux";
     type: "tuple";
  }];
  name: "deposit";
  outputs: readonly [{
     name: "id";
     type: "uint256";
  }];
  stateMutability: "nonpayable";
  type: "function";
}, {
  inputs: readonly [{
     components: readonly [{
        name: "chainId";
        type: "uint256";
      }, {
        name: "publicAssetId";
        type: "uint64";
      }, {
        name: "publicIn";
        type: "uint64";
      }, {
        name: "payer";
        type: "address";
      }, {
        name: "recipient";
        type: "address";
      }, {
        name: "inner";
        type: "bytes32";
      }, {
        name: "feeAssetId";
        type: "uint64";
      }, {
        name: "feeIn";
        type: "uint64";
      }, {
        name: "feeInner";
        type: "bytes32";
     }];
     name: "d";
     type: "tuple";
   }, {
     components: readonly [{
        name: "clueRx";
        type: "uint256";
      }, {
        name: "clueRy";
        type: "uint256";
      }, {
        name: "clueQx";
        type: "uint256";
      }, {
        name: "clueQy";
        type: "uint256";
      }, {
        name: "ephPubX";
        type: "uint256";
      }, {
        name: "ephPubY";
        type: "uint256";
      }, {
        name: "ciphertext";
        type: "bytes";
     }];
     name: "aux";
     type: "tuple";
   }, {
     components: readonly [{
        name: "clueRx";
        type: "uint256";
      }, {
        name: "clueRy";
        type: "uint256";
      }, {
        name: "clueQx";
        type: "uint256";
      }, {
        name: "clueQy";
        type: "uint256";
      }, {
        name: "ephPubX";
        type: "uint256";
      }, {
        name: "ephPubY";
        type: "uint256";
      }, {
        name: "ciphertext";
        type: "bytes";
     }];
     name: "feeAux";
     type: "tuple";
  }];
  name: "depositAuthorized";
  outputs: readonly [{
     name: "id";
     type: "uint256";
  }];
  stateMutability: "nonpayable";
  type: "function";
}, {
  inputs: readonly [{
     name: "id";
     type: "uint256";
   }, {
     name: "publicIn";
     type: "uint48";
   }, {
     name: "inner";
     type: "bytes32";
   }, {
     name: "publicAssetId";
     type: "uint64";
   }, {
     name: "fbps";
     type: "uint16";
   }, {
     name: "payer";
     type: "address";
   }, {
     name: "submittedAt";
     type: "uint32";
   }, {
     components: readonly [{
        name: "feeIn";
        type: "uint48";
      }, {
        name: "feeAssetId";
        type: "uint64";
      }, {
        name: "feeInner";
        type: "bytes32";
     }];
     name: "feeNote";
     type: "tuple";
   }, {
     name: "pulled";
     type: "uint256";
  }];
  name: "cancelDeposit";
  outputs: readonly [{
     name: "total";
     type: "uint256";
   }, {
     name: "feeRefunded";
     type: "uint256";
  }];
  stateMutability: "nonpayable";
  type: "function";
}, {
  inputs: readonly [{
     indexed: true;
     name: "id";
     type: "uint256";
   }, {
     indexed: true;
     name: "payer";
     type: "address";
   }, {
     indexed: true;
     name: "recipient";
     type: "address";
   }, {
     name: "publicAssetId";
     type: "uint64";
   }, {
     name: "publicIn";
     type: "uint64";
   }, {
     name: "feeBpsAtSubmit";
     type: "uint16";
   }, {
     name: "inner";
     type: "bytes32";
   }, {
     name: "clueRx";
     type: "uint256";
   }, {
     name: "clueRy";
     type: "uint256";
   }, {
     name: "ephPubX";
     type: "uint256";
   }, {
     name: "ephPubY";
     type: "uint256";
   }, {
     name: "ciphertext";
     type: "bytes";
   }, {
     name: "feeAssetId";
     type: "uint64";
   }, {
     name: "feeIn";
     type: "uint64";
   }, {
     name: "feeInner";
     type: "bytes32";
   }, {
     name: "feeClueRx";
     type: "uint256";
   }, {
     name: "feeClueRy";
     type: "uint256";
   }, {
     name: "feeEphPubX";
     type: "uint256";
   }, {
     name: "feeEphPubY";
     type: "uint256";
   }, {
     name: "feeCiphertext";
     type: "bytes";
   }, {
     name: "pulled";
     type: "uint256";
  }];
  name: "DepositEscrowed";
  type: "event";
}, {
  inputs: readonly [{
     indexed: true;
     name: "id";
     type: "uint256";
   }, {
     indexed: true;
     name: "payer";
     type: "address";
   }, {
     name: "refunded";
     type: "uint256";
   }, {
     name: "feeAssetId";
     type: "uint64";
   }, {
     name: "feeRefunded";
     type: "uint256";
  }];
  name: "DepositCanceled";
  type: "event";
}, {
  inputs: readonly [{
     indexed: true;
     name: "cm";
     type: "bytes32";
   }, {
     name: "clueRx";
     type: "uint256";
   }, {
     name: "clueRy";
     type: "uint256";
   }, {
     name: "ephPubX";
     type: "uint256";
   }, {
     name: "ephPubY";
     type: "uint256";
   }, {
     name: "ciphertext";
     type: "bytes";
  }];
  name: "NotePayload";
  type: "event";
}];

Defined in: @lelantos-org/sdk/dist/chain/viem/abi.d.ts:1