olympus-protocol-connector
Version:
Module made by Olympus Labs for easier access to the Olympus protocol through Javascript/Typescript
606 lines • 13.1 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ASYNC_WITHDRAW_ABI = [
{
constant: false,
inputs: [
{
name: '_newMode',
type: 'uint8',
},
],
name: 'adjustFeeMode',
outputs: [
{
name: 'success',
type: 'bool',
},
],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'name',
outputs: [
{
name: '',
type: 'string',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: false,
inputs: [
{
name: '_newPercentage',
type: 'uint256',
},
],
name: 'adjustFeePercentage',
outputs: [
{
name: 'success',
type: 'bool',
},
],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [
{
name: '_newWallet',
type: 'address',
},
],
name: 'setWalletId',
outputs: [
{
name: 'success',
type: 'bool',
},
],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'version',
outputs: [
{
name: '',
type: 'string',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [
{
name: '',
type: 'address',
},
],
name: 'contracts',
outputs: [
{
name: 'price',
type: 'uint256',
},
{
name: 'pendingTotalWithdrawAmount',
type: 'uint256',
},
{
name: 'pendingTotalETHAmount',
type: 'uint256',
},
{
name: 'totalWithdrawAmount',
type: 'uint256',
},
{
name: 'withdrawRequestLock',
type: 'bool',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'feeAmount',
outputs: [
{
name: '',
type: 'uint256',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: false,
inputs: [],
name: 'renounceOwnership',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'description',
outputs: [
{
name: '',
type: 'string',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'owner',
outputs: [
{
name: '',
type: 'address',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: false,
inputs: [
{
name: '_newAmount',
type: 'uint256',
},
],
name: 'adjustFeeAmount',
outputs: [
{
name: 'success',
type: 'bool',
},
],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: true,
inputs: [
{
name: '_amount',
type: 'uint256',
},
],
name: 'calculateFee',
outputs: [
{
name: 'amount',
type: 'uint256',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'feePercentage',
outputs: [
{
name: '',
type: 'uint256',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'feeMode',
outputs: [
{
name: '',
type: 'uint8',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'FEE_CHARGER_DENOMINATOR',
outputs: [
{
name: '',
type: 'uint256',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'MOT',
outputs: [
{
name: '',
type: 'address',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: false,
inputs: [
{
name: '_motAddress',
type: 'address',
},
],
name: 'setMotAddress',
outputs: [
{
name: 'success',
type: 'bool',
},
],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'category',
outputs: [
{
name: '',
type: 'string',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: false,
inputs: [
{
name: '_newOwner',
type: 'address',
},
],
name: 'transferOwnership',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
anonymous: false,
inputs: [
{
indexed: false,
name: '_requester',
type: 'address',
},
{
indexed: false,
name: 'amountOfToken',
type: 'uint256',
},
],
name: 'WithdrawRequest',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: false,
name: '_requester',
type: 'address',
},
{
indexed: false,
name: 'amountOfToken',
type: 'uint256',
},
{
indexed: false,
name: 'amountOfEther',
type: 'uint256',
},
],
name: 'Withdrawed',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
name: 'previousOwner',
type: 'address',
},
],
name: 'OwnershipRenounced',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
name: 'previousOwner',
type: 'address',
},
{
indexed: true,
name: 'newOwner',
type: 'address',
},
],
name: 'OwnershipTransferred',
type: 'event',
},
{
constant: true,
inputs: [],
name: 'getUserRequests',
outputs: [
{
name: '',
type: 'address[]',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'isInProgress',
outputs: [
{
name: '',
type: 'bool',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: false,
inputs: [
{
name: '_investor',
type: 'address',
},
{
name: '_amount',
type: 'uint256',
},
],
name: 'request',
outputs: [
{
name: '',
type: 'bool',
},
],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [
{
name: '_investor',
type: 'address',
},
],
name: 'withdraw',
outputs: [
{
name: '_eth',
type: 'uint256',
},
{
name: '_tokens',
type: 'uint256',
},
],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [],
name: 'freeze',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [],
name: 'finalize',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: true,
inputs: [
{
name: '_contract',
type: 'address',
},
],
name: 'getContractInfo',
outputs: [
{
name: 'price',
type: 'uint256',
},
{
name: 'userRequests',
type: 'address[]',
},
{
name: 'totalWithdrawAmount',
type: 'uint256',
},
{
name: 'withdrawRequestLock',
type: 'bool',
},
{
name: 'pendingTotalETHAmount',
type: 'uint256',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [
{
name: '_contract',
type: 'address',
},
],
name: 'getPendingTotalETHAmount',
outputs: [
{
name: '',
type: 'uint256',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [
{
name: '_contract',
type: 'address',
},
],
name: 'getWithdrawBalance',
outputs: [
{
name: '',
type: 'uint256',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [
{
name: '_contract',
type: 'address',
},
{
name: '_investor',
type: 'address',
},
],
name: 'getUserWithdrawBalance',
outputs: [
{
name: '',
type: 'uint256',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'getTotalWithdrawAmount',
outputs: [
{
name: '',
type: 'uint256',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [
{
name: '_contract',
type: 'address',
},
],
name: 'getTotalWithdrawAmount',
outputs: [
{
name: '',
type: 'uint256',
},
],
payable: false,
stateMutability: 'view',
type: 'function',
},
];
//# sourceMappingURL=AsyncWithdraw.js.map