PHP WebShell
Текущая директория: /opt/BitGoJS/node_modules/@celo/contractkit/lib/generated
Просмотр файла: Reserve.js
"use strict";
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
Object.defineProperty(exports, "__esModule", { value: true });
exports.newReserve = exports.ABI = void 0;
exports.ABI = [
{
inputs: [{ internalType: 'bool', name: 'test', type: 'bool' }],
payable: false,
stateMutability: 'nonpayable',
type: 'constructor',
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: 'bytes32[]',
name: 'symbols',
type: 'bytes32[]',
},
{
indexed: false,
internalType: 'uint256[]',
name: 'weights',
type: 'uint256[]',
},
],
name: 'AssetAllocationSet',
type: 'event',
},
{
anonymous: false,
inputs: [{ indexed: false, internalType: 'uint256', name: 'ratio', type: 'uint256' }],
name: 'DailySpendingRatioSet',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'address',
name: 'exchangeSpender',
type: 'address',
},
],
name: 'ExchangeSpenderAdded',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'address',
name: 'exchangeSpender',
type: 'address',
},
],
name: 'ExchangeSpenderRemoved',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'address',
name: 'otherReserveAddress',
type: 'address',
},
],
name: 'OtherReserveAddressAdded',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'address',
name: 'otherReserveAddress',
type: 'address',
},
{ indexed: false, internalType: 'uint256', name: 'index', type: 'uint256' },
],
name: 'OtherReserveAddressRemoved',
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: true,
internalType: 'address',
name: 'registryAddress',
type: 'address',
},
],
name: 'RegistrySet',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'address',
name: 'spender',
type: 'address',
},
{ indexed: true, internalType: 'address', name: 'to', type: 'address' },
{ indexed: false, internalType: 'uint256', name: 'value', type: 'uint256' },
],
name: 'ReserveGoldTransferred',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'address',
name: 'spender',
type: 'address',
},
],
name: 'SpenderAdded',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'address',
name: 'spender',
type: 'address',
},
],
name: 'SpenderRemoved',
type: 'event',
},
{
anonymous: false,
inputs: [{ indexed: false, internalType: 'uint256', name: 'value', type: 'uint256' }],
name: 'TobinTaxReserveRatioSet',
type: 'event',
},
{
anonymous: false,
inputs: [{ indexed: false, internalType: 'uint256', name: 'value', type: 'uint256' }],
name: 'TobinTaxSet',
type: 'event',
},
{
anonymous: false,
inputs: [{ indexed: false, internalType: 'uint256', name: 'value', type: 'uint256' }],
name: 'TobinTaxStalenessThresholdSet',
type: 'event',
},
{
anonymous: false,
inputs: [{ indexed: true, internalType: 'address', name: 'token', type: 'address' }],
name: 'TokenAdded',
type: 'event',
},
{
anonymous: false,
inputs: [
{ indexed: true, internalType: 'address', name: 'token', type: 'address' },
{ indexed: false, internalType: 'uint256', name: 'index', type: 'uint256' },
],
name: 'TokenRemoved',
type: 'event',
},
{ payable: true, stateMutability: 'payable', type: 'fallback' },
{
constant: true,
inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
name: 'assetAllocationSymbols',
outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
name: 'assetAllocationWeights',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
name: 'exchangeSpenderAddresses',
outputs: [{ internalType: 'address', name: '', type: 'address' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'frozenReserveGoldDays',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'frozenReserveGoldStartBalance',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'frozenReserveGoldStartDay',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'initialized',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [{ internalType: 'address', name: '', type: 'address' }],
name: 'isExchangeSpender',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [{ internalType: 'address', name: '', type: 'address' }],
name: 'isOtherReserveAddress',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'isOwner',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [{ internalType: 'address', name: '', type: 'address' }],
name: 'isSpender',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [{ internalType: 'address', name: '', type: 'address' }],
name: 'isToken',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'lastSpendingDay',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
name: 'otherReserveAddresses',
outputs: [{ internalType: 'address', name: '', type: 'address' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'owner',
outputs: [{ internalType: 'address', name: '', type: 'address' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'registry',
outputs: [{ internalType: 'contract IRegistry', name: '', type: 'address' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: false,
inputs: [],
name: 'renounceOwnership',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [{ internalType: 'address', name: 'registryAddress', type: 'address' }],
name: 'setRegistry',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'spendingLimit',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'tobinTax',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'tobinTaxCache',
outputs: [
{ internalType: 'uint128', name: 'numerator', type: 'uint128' },
{ internalType: 'uint128', name: 'timestamp', type: 'uint128' },
],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'tobinTaxReserveRatio',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'tobinTaxStalenessThreshold',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: false,
inputs: [{ internalType: 'address', name: 'newOwner', type: 'address' }],
name: 'transferOwnership',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'getVersionNumber',
outputs: [
{ internalType: 'uint256', name: '', type: 'uint256' },
{ internalType: 'uint256', name: '', type: 'uint256' },
{ internalType: 'uint256', name: '', type: 'uint256' },
{ internalType: 'uint256', name: '', type: 'uint256' },
],
payable: false,
stateMutability: 'pure',
type: 'function',
},
{
constant: false,
inputs: [
{ internalType: 'address', name: 'registryAddress', type: 'address' },
{
internalType: 'uint256',
name: '_tobinTaxStalenessThreshold',
type: 'uint256',
},
{ internalType: 'uint256', name: '_spendingRatio', type: 'uint256' },
{ internalType: 'uint256', name: '_frozenGold', type: 'uint256' },
{ internalType: 'uint256', name: '_frozenDays', type: 'uint256' },
{
internalType: 'bytes32[]',
name: '_assetAllocationSymbols',
type: 'bytes32[]',
},
{
internalType: 'uint256[]',
name: '_assetAllocationWeights',
type: 'uint256[]',
},
{ internalType: 'uint256', name: '_tobinTax', type: 'uint256' },
{ internalType: 'uint256', name: '_tobinTaxReserveRatio', type: 'uint256' },
],
name: 'initialize',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [{ internalType: 'uint256', name: 'value', type: 'uint256' }],
name: 'setTobinTaxStalenessThreshold',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [{ internalType: 'uint256', name: 'value', type: 'uint256' }],
name: 'setTobinTax',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [{ internalType: 'uint256', name: 'value', type: 'uint256' }],
name: 'setTobinTaxReserveRatio',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [{ internalType: 'uint256', name: 'ratio', type: 'uint256' }],
name: 'setDailySpendingRatio',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'getDailySpendingRatio',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: false,
inputs: [
{ internalType: 'uint256', name: 'frozenGold', type: 'uint256' },
{ internalType: 'uint256', name: 'frozenDays', type: 'uint256' },
],
name: 'setFrozenGold',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [
{ internalType: 'bytes32[]', name: 'symbols', type: 'bytes32[]' },
{ internalType: 'uint256[]', name: 'weights', type: 'uint256[]' },
],
name: 'setAssetAllocations',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [{ internalType: 'address', name: 'token', type: 'address' }],
name: 'addToken',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [
{ internalType: 'address', name: 'token', type: 'address' },
{ internalType: 'uint256', name: 'index', type: 'uint256' },
],
name: 'removeToken',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [{ internalType: 'address', name: 'reserveAddress', type: 'address' }],
name: 'addOtherReserveAddress',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [
{ internalType: 'address', name: 'reserveAddress', type: 'address' },
{ internalType: 'uint256', name: 'index', type: 'uint256' },
],
name: 'removeOtherReserveAddress',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [{ internalType: 'address', name: 'spender', type: 'address' }],
name: 'addSpender',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [{ internalType: 'address', name: 'spender', type: 'address' }],
name: 'removeSpender',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [{ internalType: 'address', name: 'spender', type: 'address' }],
name: 'addExchangeSpender',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [
{ internalType: 'address', name: 'spender', type: 'address' },
{ internalType: 'uint256', name: 'index', type: 'uint256' },
],
name: 'removeExchangeSpender',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'getExchangeSpenders',
outputs: [{ internalType: 'address[]', name: '', type: 'address[]' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: false,
inputs: [
{ internalType: 'address payable', name: 'to', type: 'address' },
{ internalType: 'uint256', name: 'value', type: 'uint256' },
],
name: 'transferGold',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [
{ internalType: 'address payable', name: 'to', type: 'address' },
{ internalType: 'uint256', name: 'value', type: 'uint256' },
],
name: 'transferExchangeGold',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [],
name: 'getOrComputeTobinTax',
outputs: [
{ internalType: 'uint256', name: '', type: 'uint256' },
{ internalType: 'uint256', name: '', type: 'uint256' },
],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'getTokens',
outputs: [{ internalType: 'address[]', name: '', type: 'address[]' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'getOtherReserveAddresses',
outputs: [{ internalType: 'address[]', name: '', type: 'address[]' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'getAssetAllocationSymbols',
outputs: [{ internalType: 'bytes32[]', name: '', type: 'bytes32[]' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'getAssetAllocationWeights',
outputs: [{ internalType: 'uint256[]', name: '', type: 'uint256[]' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'getUnfrozenBalance',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'getReserveGoldBalance',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'getOtherReserveAddressesGoldBalance',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'getUnfrozenReserveGoldBalance',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'getFrozenReserveGoldBalance',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'getReserveRatio',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
];
function newReserve(web3, address) {
return new web3.eth.Contract(exports.ABI, address);
}
exports.newReserve = newReserve;
//# sourceMappingURL=Reserve.js.mapВыполнить команду
Для локальной разработки. Не используйте в интернете!