mirror of
https://github.com/lux-tel/websites.git
synced 2026-10-30 20:31:36 +00:00
330 lines
5.8 KiB
TypeScript
330 lines
5.8 KiB
TypeScript
// This file is generated by the generate-abis script. Do not modify it manually.
|
|
|
|
/**
|
|
* Generated ABI for the TokenConverter contract.
|
|
*/
|
|
export const TokenConverterAbi = [
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: 'address',
|
|
name: '_tokenA',
|
|
type: 'address',
|
|
},
|
|
{
|
|
internalType: 'address',
|
|
name: '_tokenB',
|
|
type: 'address',
|
|
},
|
|
{
|
|
internalType: 'uint256',
|
|
name: '_initialNumerator',
|
|
type: 'uint256',
|
|
},
|
|
{
|
|
internalType: 'uint256',
|
|
name: '_initialDenominator',
|
|
type: 'uint256',
|
|
},
|
|
],
|
|
stateMutability: 'nonpayable',
|
|
type: 'constructor',
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: 'address',
|
|
name: 'target',
|
|
type: 'address',
|
|
},
|
|
],
|
|
name: 'AddressEmptyCode',
|
|
type: 'error',
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: 'address',
|
|
name: 'account',
|
|
type: 'address',
|
|
},
|
|
],
|
|
name: 'AddressInsufficientBalance',
|
|
type: 'error',
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: 'FailedInnerCall',
|
|
type: 'error',
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: 'address',
|
|
name: 'owner',
|
|
type: 'address',
|
|
},
|
|
],
|
|
name: 'OwnableInvalidOwner',
|
|
type: 'error',
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: 'address',
|
|
name: 'account',
|
|
type: 'address',
|
|
},
|
|
],
|
|
name: 'OwnableUnauthorizedAccount',
|
|
type: 'error',
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: 'ReentrancyGuardReentrantCall',
|
|
type: 'error',
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: 'address',
|
|
name: 'token',
|
|
type: 'address',
|
|
},
|
|
],
|
|
name: 'SafeERC20FailedOperation',
|
|
type: 'error',
|
|
},
|
|
{
|
|
anonymous: false,
|
|
inputs: [
|
|
{
|
|
indexed: true,
|
|
internalType: 'address',
|
|
name: 'user',
|
|
type: 'address',
|
|
},
|
|
{
|
|
indexed: false,
|
|
internalType: 'uint256',
|
|
name: 'amountA',
|
|
type: 'uint256',
|
|
},
|
|
{
|
|
indexed: false,
|
|
internalType: 'uint256',
|
|
name: 'amountB',
|
|
type: 'uint256',
|
|
},
|
|
],
|
|
name: 'Conversion',
|
|
type: 'event',
|
|
},
|
|
{
|
|
anonymous: false,
|
|
inputs: [
|
|
{
|
|
indexed: true,
|
|
internalType: 'address',
|
|
name: 'previousOwner',
|
|
type: 'address',
|
|
},
|
|
{
|
|
indexed: true,
|
|
internalType: 'address',
|
|
name: 'newOwner',
|
|
type: 'address',
|
|
},
|
|
],
|
|
name: 'OwnershipTransferred',
|
|
type: 'event',
|
|
},
|
|
{
|
|
anonymous: false,
|
|
inputs: [
|
|
{
|
|
indexed: false,
|
|
internalType: 'uint256',
|
|
name: 'numerator',
|
|
type: 'uint256',
|
|
},
|
|
{
|
|
indexed: false,
|
|
internalType: 'uint256',
|
|
name: 'denominator',
|
|
type: 'uint256',
|
|
},
|
|
],
|
|
name: 'RateUpdated',
|
|
type: 'event',
|
|
},
|
|
{
|
|
anonymous: false,
|
|
inputs: [
|
|
{
|
|
indexed: false,
|
|
internalType: 'uint256',
|
|
name: 'amount',
|
|
type: 'uint256',
|
|
},
|
|
],
|
|
name: 'TokenBDeposited',
|
|
type: 'event',
|
|
},
|
|
{
|
|
anonymous: false,
|
|
inputs: [
|
|
{
|
|
indexed: false,
|
|
internalType: 'uint256',
|
|
name: 'amount',
|
|
type: 'uint256',
|
|
},
|
|
],
|
|
name: 'TokenBWithdrawn',
|
|
type: 'event',
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: 'conversionRateDenominator',
|
|
outputs: [
|
|
{
|
|
internalType: 'uint256',
|
|
name: '',
|
|
type: 'uint256',
|
|
},
|
|
],
|
|
stateMutability: 'view',
|
|
type: 'function',
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: 'conversionRateNumerator',
|
|
outputs: [
|
|
{
|
|
internalType: 'uint256',
|
|
name: '',
|
|
type: 'uint256',
|
|
},
|
|
],
|
|
stateMutability: 'view',
|
|
type: 'function',
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: 'uint256',
|
|
name: '_amountA',
|
|
type: 'uint256',
|
|
},
|
|
],
|
|
name: 'convertTokens',
|
|
outputs: [],
|
|
stateMutability: 'nonpayable',
|
|
type: 'function',
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: 'uint256',
|
|
name: '_amount',
|
|
type: 'uint256',
|
|
},
|
|
],
|
|
name: 'depositTokenB',
|
|
outputs: [],
|
|
stateMutability: 'nonpayable',
|
|
type: 'function',
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: 'owner',
|
|
outputs: [
|
|
{
|
|
internalType: 'address',
|
|
name: '',
|
|
type: 'address',
|
|
},
|
|
],
|
|
stateMutability: 'view',
|
|
type: 'function',
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: 'renounceOwnership',
|
|
outputs: [],
|
|
stateMutability: 'nonpayable',
|
|
type: 'function',
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: 'tokenA',
|
|
outputs: [
|
|
{
|
|
internalType: 'contract IERC20',
|
|
name: '',
|
|
type: 'address',
|
|
},
|
|
],
|
|
stateMutability: 'view',
|
|
type: 'function',
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: 'tokenB',
|
|
outputs: [
|
|
{
|
|
internalType: 'contract IERC20',
|
|
name: '',
|
|
type: 'address',
|
|
},
|
|
],
|
|
stateMutability: 'view',
|
|
type: 'function',
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: 'address',
|
|
name: 'newOwner',
|
|
type: 'address',
|
|
},
|
|
],
|
|
name: 'transferOwnership',
|
|
outputs: [],
|
|
stateMutability: 'nonpayable',
|
|
type: 'function',
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: 'uint256',
|
|
name: '_newNumerator',
|
|
type: 'uint256',
|
|
},
|
|
{
|
|
internalType: 'uint256',
|
|
name: '_newDenominator',
|
|
type: 'uint256',
|
|
},
|
|
],
|
|
name: 'updateConversionRate',
|
|
outputs: [],
|
|
stateMutability: 'nonpayable',
|
|
type: 'function',
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: 'uint256',
|
|
name: '_amount',
|
|
type: 'uint256',
|
|
},
|
|
],
|
|
name: 'withdrawTokenB',
|
|
outputs: [],
|
|
stateMutability: 'nonpayable',
|
|
type: 'function',
|
|
},
|
|
] as const;
|