raiden-ts
Version:
Raiden Light Client Typescript/Javascript SDK
362 lines (358 loc) • 6.75 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 {
TokenNetworkRegistry,
TokenNetworkRegistryInterface,
} from "../TokenNetworkRegistry";
const _abi = [
{
inputs: [
{
internalType: "address",
name: "_secret_registry_address",
type: "address",
},
{
internalType: "uint256",
name: "_settle_timeout",
type: "uint256",
},
{
internalType: "uint256",
name: "_max_token_networks",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "constructor",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "token_address",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "token_network_address",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "settle_timeout",
type: "uint256",
},
],
name: "TokenNetworkCreated",
type: "event",
},
{
inputs: [
{
internalType: "address",
name: "new_controller",
type: "address",
},
],
name: "changeController",
outputs: [],
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: "controller",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_token_address",
type: "address",
},
{
internalType: "uint256",
name: "_channel_participant_deposit_limit",
type: "uint256",
},
{
internalType: "uint256",
name: "_token_network_deposit_limit",
type: "uint256",
},
],
name: "createERC20TokenNetwork",
outputs: [
{
internalType: "address",
name: "token_network_address",
type: "address",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_token_address",
type: "address",
},
],
name: "createERC20TokenNetworkWithoutLimits",
outputs: [
{
internalType: "address",
name: "token_network_address",
type: "address",
},
],
stateMutability: "nonpayable",
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: [],
name: "max_token_networks",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
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: "removeLimits",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "secret_registry_address",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "settle_timeout",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "signature_prefix",
outputs: [
{
internalType: "string",
name: "",
type: "string",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "token_network_created",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
name: "token_to_token_networks",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
];
export class TokenNetworkRegistry__factory {
static readonly abi = _abi;
static createInterface(): TokenNetworkRegistryInterface {
return new utils.Interface(_abi) as TokenNetworkRegistryInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): TokenNetworkRegistry {
return new Contract(
address,
_abi,
signerOrProvider
) as TokenNetworkRegistry;
}
}