PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@celo/contractkit/lib/generated
Просмотр файла: Escrow.js
"use strict";
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
Object.defineProperty(exports, "__esModule", { value: true });
exports.newEscrow = exports.ABI = void 0;
exports.ABI = [
{
inputs: [{ internalType: 'bool', name: 'test', type: 'bool' }],
payable: false,
stateMutability: 'nonpayable',
type: 'constructor',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'address',
name: 'trustedIssuer',
type: 'address',
},
],
name: 'DefaultTrustedIssuerAdded',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'address',
name: 'trustedIssuer',
type: 'address',
},
],
name: 'DefaultTrustedIssuerRemoved',
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: 'bytes32',
name: 'identifier',
type: 'bytes32',
},
{ indexed: true, internalType: 'address', name: 'by', type: 'address' },
{ indexed: true, internalType: 'address', name: 'token', type: 'address' },
{ indexed: false, internalType: 'uint256', name: 'value', type: 'uint256' },
{
indexed: false,
internalType: 'address',
name: 'paymentId',
type: 'address',
},
],
name: 'Revocation',
type: 'event',
},
{
anonymous: false,
inputs: [
{ indexed: true, internalType: 'address', name: 'from', type: 'address' },
{
indexed: true,
internalType: 'bytes32',
name: 'identifier',
type: 'bytes32',
},
{ indexed: true, internalType: 'address', name: 'token', type: 'address' },
{ indexed: false, internalType: 'uint256', name: 'value', type: 'uint256' },
{
indexed: false,
internalType: 'address',
name: 'paymentId',
type: 'address',
},
{
indexed: false,
internalType: 'uint256',
name: 'minAttestations',
type: 'uint256',
},
],
name: 'Transfer',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'address',
name: 'paymentId',
type: 'address',
},
{
indexed: false,
internalType: 'address[]',
name: 'trustedIssuers',
type: 'address[]',
},
],
name: 'TrustedIssuersSet',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'address',
name: 'paymentId',
type: 'address',
},
],
name: 'TrustedIssuersUnset',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'bytes32',
name: 'identifier',
type: 'bytes32',
},
{ indexed: true, internalType: 'address', name: 'to', type: 'address' },
{ indexed: true, internalType: 'address', name: 'token', type: 'address' },
{ indexed: false, internalType: 'uint256', name: 'value', type: 'uint256' },
{
indexed: false,
internalType: 'address',
name: 'paymentId',
type: 'address',
},
],
name: 'Withdrawal',
type: 'event',
},
{
constant: true,
inputs: [],
name: 'MAX_TRUSTED_ISSUERS_PER_PAYMENT',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
name: 'defaultTrustedIssuers',
outputs: [{ internalType: 'address', name: '', type: 'address' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [{ internalType: 'address', name: '', type: 'address' }],
name: 'escrowedPayments',
outputs: [
{ internalType: 'bytes32', name: 'recipientIdentifier', type: 'bytes32' },
{ internalType: 'address', name: 'sender', type: 'address' },
{ internalType: 'address', name: 'token', type: 'address' },
{ internalType: 'uint256', name: 'value', type: 'uint256' },
{ internalType: 'uint256', name: 'sentIndex', type: 'uint256' },
{ internalType: 'uint256', name: 'receivedIndex', type: 'uint256' },
{ internalType: 'uint256', name: 'timestamp', type: 'uint256' },
{ internalType: 'uint256', name: 'expirySeconds', type: 'uint256' },
{ internalType: 'uint256', name: 'minAttestations', 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: [],
name: 'isOwner',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
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: [
{ internalType: 'bytes32', name: '', type: 'bytes32' },
{ internalType: 'uint256', name: '', type: 'uint256' },
],
name: 'receivedPaymentIds',
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: true,
inputs: [],
name: 'registryContract',
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: true,
inputs: [
{ internalType: 'address', name: '', type: 'address' },
{ internalType: 'uint256', name: '', type: 'uint256' },
],
name: 'sentPaymentIds',
outputs: [{ internalType: 'address', name: '', type: 'address' }],
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: [
{ internalType: 'address', name: '', type: 'address' },
{ internalType: 'uint256', name: '', type: 'uint256' },
],
name: 'trustedIssuersPerPayment',
outputs: [{ internalType: 'address', name: '', type: 'address' }],
payable: false,
stateMutability: 'view',
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: [],
name: 'initialize',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [{ internalType: 'address', name: 'trustedIssuer', type: 'address' }],
name: 'addDefaultTrustedIssuer',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [
{ internalType: 'address', name: 'trustedIssuer', type: 'address' },
{ internalType: 'uint256', name: 'index', type: 'uint256' },
],
name: 'removeDefaultTrustedIssuer',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [
{ internalType: 'bytes32', name: 'identifier', type: 'bytes32' },
{ internalType: 'address', name: 'token', type: 'address' },
{ internalType: 'uint256', name: 'value', type: 'uint256' },
{ internalType: 'uint256', name: 'expirySeconds', type: 'uint256' },
{ internalType: 'address', name: 'paymentId', type: 'address' },
{ internalType: 'uint256', name: 'minAttestations', type: 'uint256' },
],
name: 'transfer',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [
{ internalType: 'bytes32', name: 'identifier', type: 'bytes32' },
{ internalType: 'address', name: 'token', type: 'address' },
{ internalType: 'uint256', name: 'value', type: 'uint256' },
{ internalType: 'uint256', name: 'expirySeconds', type: 'uint256' },
{ internalType: 'address', name: 'paymentId', type: 'address' },
{ internalType: 'uint256', name: 'minAttestations', type: 'uint256' },
{ internalType: 'address[]', name: 'trustedIssuers', type: 'address[]' },
],
name: 'transferWithTrustedIssuers',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [
{ internalType: 'address', name: 'paymentId', type: 'address' },
{ internalType: 'uint8', name: 'v', type: 'uint8' },
{ internalType: 'bytes32', name: 'r', type: 'bytes32' },
{ internalType: 'bytes32', name: 's', type: 'bytes32' },
],
name: 'withdraw',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [{ internalType: 'address', name: 'paymentId', type: 'address' }],
name: 'revoke',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: true,
inputs: [{ internalType: 'bytes32', name: 'identifier', type: 'bytes32' }],
name: 'getReceivedPaymentIds',
outputs: [{ internalType: 'address[]', name: '', type: 'address[]' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [{ internalType: 'address', name: 'sender', type: 'address' }],
name: 'getSentPaymentIds',
outputs: [{ internalType: 'address[]', name: '', type: 'address[]' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [{ internalType: 'address', name: 'paymentId', type: 'address' }],
name: 'getTrustedIssuersPerPayment',
outputs: [{ internalType: 'address[]', name: '', type: 'address[]' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'getDefaultTrustedIssuers',
outputs: [{ internalType: 'address[]', name: '', type: 'address[]' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
];
function newEscrow(web3, address) {
return new web3.eth.Contract(exports.ABI, address);
}
exports.newEscrow = newEscrow;
//# sourceMappingURL=Escrow.js.mapВыполнить команду
Для локальной разработки. Не используйте в интернете!