raiden-ts
Version:
Raiden Light Client Typescript/Javascript SDK
342 lines (338 loc) • 6.38 kB
text/typescript
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type { OneToN, OneToNInterface } from "../OneToN";
const _abi = [
{
inputs: [
{
internalType: "address",
name: "_deposit_contract",
type: "address",
},
{
internalType: "uint256",
name: "_chain_id",
type: "uint256",
},
{
internalType: "address",
name: "_service_registry_contract",
type: "address",
},
],
stateMutability: "nonpayable",
type: "constructor",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "sender",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "receiver",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "claimable_until",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "transferred",
type: "uint256",
},
],
name: "Claimed",
type: "event",
},
{
inputs: [
{
internalType: "address[]",
name: "senders",
type: "address[]",
},
{
internalType: "address[]",
name: "receivers",
type: "address[]",
},
{
internalType: "uint256[]",
name: "amounts",
type: "uint256[]",
},
{
internalType: "uint256[]",
name: "claimable_until_list",
type: "uint256[]",
},
{
internalType: "bytes",
name: "signatures",
type: "bytes",
},
],
name: "bulkClaim",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "chain_id",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "sender",
type: "address",
},
{
internalType: "address",
name: "receiver",
type: "address",
},
{
internalType: "uint256",
name: "amount",
type: "uint256",
},
{
internalType: "uint256",
name: "claimable_until",
type: "uint256",
},
{
internalType: "bytes",
name: "signature",
type: "bytes",
},
],
name: "claim",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "contract_address",
type: "address",
},
],
name: "contractExists",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "deposit_contract",
outputs: [
{
internalType: "contract UserDeposit",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "a",
type: "uint256",
},
{
internalType: "uint256",
name: "b",
type: "uint256",
},
],
name: "failsafe_addition",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "pure",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "a",
type: "uint256",
},
{
internalType: "uint256",
name: "b",
type: "uint256",
},
],
name: "failsafe_subtract",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "pure",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "a",
type: "uint256",
},
{
internalType: "uint256",
name: "b",
type: "uint256",
},
],
name: "max",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "pure",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "a",
type: "uint256",
},
{
internalType: "uint256",
name: "b",
type: "uint256",
},
],
name: "min",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "pure",
type: "function",
},
{
inputs: [],
name: "service_registry_contract",
outputs: [
{
internalType: "contract ServiceRegistry",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32",
},
],
name: "settled_sessions",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "signature_prefix",
outputs: [
{
internalType: "string",
name: "",
type: "string",
},
],
stateMutability: "view",
type: "function",
},
];
export class OneToN__factory {
static readonly abi = _abi;
static createInterface(): OneToNInterface {
return new utils.Interface(_abi) as OneToNInterface;
}
static connect(address: string, signerOrProvider: Signer | Provider): OneToN {
return new Contract(address, _abi, signerOrProvider) as OneToN;
}
}