raiden-ts
Version:
Raiden Light Client Typescript/Javascript SDK
96 lines • 2.42 kB
JavaScript
;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });
exports.SecretRegistry__factory = void 0;
const ethers_1 = require("ethers");
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "bytes32",
name: "secrethash",
type: "bytes32",
},
{
indexed: false,
internalType: "bytes32",
name: "secret",
type: "bytes32",
},
],
name: "SecretRevealed",
type: "event",
},
{
inputs: [
{
internalType: "bytes32",
name: "secrethash",
type: "bytes32",
},
],
name: "getSecretRevealBlockTime",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "bytes32",
name: "secret",
type: "bytes32",
},
],
name: "registerSecret",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "bytes32[]",
name: "secrets",
type: "bytes32[]",
},
],
name: "registerSecretBatch",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "nonpayable",
type: "function",
},
];
class SecretRegistry__factory {
static createInterface() {
return new ethers_1.utils.Interface(_abi);
}
static connect(address, signerOrProvider) {
return new ethers_1.Contract(address, _abi, signerOrProvider);
}
}
exports.SecretRegistry__factory = SecretRegistry__factory;
SecretRegistry__factory.abi = _abi;
//# sourceMappingURL=SecretRegistry__factory.js.map