UNPKG

raiden-ts

Version:

Raiden Light Client Typescript/Javascript SDK

589 lines 14 kB
"use strict"; /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ Object.defineProperty(exports, "__esModule", { value: true }); exports.ServiceRegistry__factory = void 0; const ethers_1 = require("ethers"); 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", }, ]; class ServiceRegistry__factory { static createInterface() { return new ethers_1.utils.Interface(_abi); } static connect(address, signerOrProvider) { return new ethers_1.Contract(address, _abi, signerOrProvider); } } exports.ServiceRegistry__factory = ServiceRegistry__factory; ServiceRegistry__factory.abi = _abi; //# sourceMappingURL=ServiceRegistry__factory.js.map