UNPKG

raiden-ts

Version:

Raiden Light Client Typescript/Javascript SDK

596 lines (592 loc) 10.8 kB
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { Contract, Signer, utils } from "ethers"; import type { Provider } from "@ethersproject/providers"; import type { ServiceRegistry, ServiceRegistryInterface, } from "../ServiceRegistry"; const _abi = [ { inputs: [ { internalType: "contract Token", name: "_token_for_registration", type: "address", }, { internalType: "address", name: "_controller", type: "address", }, { internalType: "uint256", name: "_initial_price", type: "uint256", }, { internalType: "uint256", name: "_price_bump_numerator", type: "uint256", }, { internalType: "uint256", name: "_price_bump_denominator", type: "uint256", }, { internalType: "uint256", name: "_decay_constant", type: "uint256", }, { internalType: "uint256", name: "_min_price", type: "uint256", }, { internalType: "uint256", name: "_registration_duration", type: "uint256", }, ], stateMutability: "nonpayable", type: "constructor", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "service", type: "address", }, { indexed: false, internalType: "uint256", name: "valid_till", type: "uint256", }, { indexed: false, internalType: "uint256", name: "deposit_amount", type: "uint256", }, { indexed: false, internalType: "contract Deposit", name: "deposit_contract", type: "address", }, ], name: "RegisteredService", type: "event", }, { inputs: [ { internalType: "address", name: "new_controller", type: "address", }, ], name: "changeController", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint256", name: "_price_bump_numerator", type: "uint256", }, { internalType: "uint256", name: "_price_bump_denominator", type: "uint256", }, { internalType: "uint256", name: "_decay_constant", type: "uint256", }, { internalType: "uint256", name: "_min_price", type: "uint256", }, { internalType: "uint256", name: "_registration_duration", type: "uint256", }, ], name: "changeParameters", outputs: [ { internalType: "bool", name: "_success", type: "bool", }, ], 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: [], name: "currentPrice", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "decay_constant", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "_set_price", type: "uint256", }, { internalType: "uint256", name: "_seconds_passed", type: "uint256", }, ], name: "decayedPrice", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "_limit_amount", type: "uint256", }, ], name: "deposit", outputs: [ { internalType: "bool", name: "_success", type: "bool", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "deprecated", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "everMadeDepositsLen", outputs: [ { internalType: "uint256", name: "_len", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], name: "ever_made_deposits", outputs: [ { internalType: "address", 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: "address", name: "_address", type: "address", }, ], name: "hasValidRegistration", outputs: [ { internalType: "bool", name: "_has_registration", type: "bool", }, ], stateMutability: "view", 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: "min_price", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "price_bump_denominator", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "price_bump_numerator", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "registration_duration", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "", type: "address", }, ], name: "service_valid_till", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "setDeprecationSwitch", outputs: [ { internalType: "bool", name: "_success", type: "bool", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "string", name: "new_url", type: "string", }, ], name: "setURL", outputs: [ { internalType: "bool", name: "_success", type: "bool", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "set_price", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "set_price_at", 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", outputs: [ { internalType: "contract Token", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "", type: "address", }, ], name: "urls", outputs: [ { internalType: "string", name: "", type: "string", }, ], stateMutability: "view", type: "function", }, ]; export class ServiceRegistry__factory { static readonly abi = _abi; static createInterface(): ServiceRegistryInterface { return new utils.Interface(_abi) as ServiceRegistryInterface; } static connect( address: string, signerOrProvider: Signer | Provider ): ServiceRegistry { return new Contract(address, _abi, signerOrProvider) as ServiceRegistry; } }