Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@railgun-community/deployments

Package Overview
Dependencies
Maintainers
2
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@railgun-community/deployments - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

dist/abi/governorRewardsImplementation.d.ts

2

dist/abi/delegator.d.ts
import type { ABIFragment } from '../types';
declare const abi: ABIFragment[];
export { abi, };
export { abi };
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.abi = void 0;
const abi = [{ inputs: [{ internalType: 'address', name: '_admin', type: 'address' }], stateMutability: 'nonpayable', type: 'constructor' }, {
const abi = [
{
inputs: [{ internalType: 'address', name: '_admin', type: 'address' }],
stateMutability: 'nonpayable',
type: 'constructor',
},
{
anonymous: false,
inputs: [{
indexed: true, internalType: 'address', name: 'caller', type: 'address',
}, {
indexed: true, internalType: 'address', name: 'contractAddress', type: 'address',
}, {
indexed: true, internalType: 'bytes4', name: 'selector', type: 'bytes4',
}],
inputs: [
{
indexed: true,
internalType: 'address',
name: 'caller',
type: 'address',
},
{
indexed: true,
internalType: 'address',
name: 'contractAddress',
type: 'address',
},
{
indexed: true,
internalType: 'bytes4',
name: 'selector',
type: 'bytes4',
},
],
name: 'GrantPermission',
type: 'event',
}, {
},
{
anonymous: false,
inputs: [{
indexed: true, internalType: 'address', name: 'previousOwner', type: 'address',
}, {
indexed: true, internalType: 'address', name: 'newOwner', type: 'address',
}],
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: 'caller', type: 'address',
}, {
indexed: true, internalType: 'address', name: 'contractAddress', type: 'address',
}, {
indexed: true, internalType: 'bytes4', name: 'selector', type: 'bytes4',
}],
inputs: [
{
indexed: true,
internalType: 'address',
name: 'caller',
type: 'address',
},
{
indexed: true,
internalType: 'address',
name: 'contractAddress',
type: 'address',
},
{
indexed: true,
internalType: 'bytes4',
name: 'selector',
type: 'bytes4',
},
],
name: 'RevokePermission',
type: 'event',
}, {
inputs: [{ internalType: 'address', name: '_contract', type: 'address' }, { internalType: 'bytes', name: '_data', type: 'bytes' }, { internalType: 'uint256', name: '_value', type: 'uint256' }], name: 'callContract', outputs: [{ internalType: 'bool', name: 'success', type: 'bool' }, { internalType: 'bytes', name: 'returnData', type: 'bytes' }], stateMutability: 'nonpayable', type: 'function',
}, {
inputs: [{ internalType: 'address', name: '_caller', type: 'address' }, { internalType: 'address', name: '_contract', type: 'address' }, { internalType: 'bytes4', name: '_selector', type: 'bytes4' }], name: 'checkPermission', outputs: [{ internalType: 'bool', name: '', type: 'bool' }], stateMutability: 'view', type: 'function',
}, {
inputs: [], name: 'owner', outputs: [{ internalType: 'address', name: '', type: 'address' }], stateMutability: 'view', type: 'function',
}, {
inputs: [{ internalType: 'address', name: '', type: 'address' }, { internalType: 'address', name: '', type: 'address' }, { internalType: 'bytes4', name: '', type: 'bytes4' }], name: 'permissions', outputs: [{ internalType: 'bool', name: '', type: 'bool' }], stateMutability: 'view', type: 'function',
}, {
inputs: [], name: 'renounceOwnership', outputs: [], stateMutability: 'nonpayable', type: 'function',
}, {
inputs: [{ internalType: 'address', name: '_caller', type: 'address' }, { internalType: 'address', name: '_contract', type: 'address' }, { internalType: 'bytes4', name: '_selector', type: 'bytes4' }, { internalType: 'bool', name: '_permission', type: 'bool' }], name: 'setPermission', outputs: [], stateMutability: 'nonpayable', type: 'function',
}, {
inputs: [{ internalType: 'address', name: 'newOwner', type: 'address' }], name: 'transferOwnership', outputs: [], stateMutability: 'nonpayable', type: 'function',
}];
},
{
inputs: [
{ internalType: 'address', name: '_contract', type: 'address' },
{ internalType: 'bytes', name: '_data', type: 'bytes' },
{ internalType: 'uint256', name: '_value', type: 'uint256' },
],
name: 'callContract',
outputs: [
{ internalType: 'bool', name: 'success', type: 'bool' },
{ internalType: 'bytes', name: 'returnData', type: 'bytes' },
],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{ internalType: 'address', name: '_caller', type: 'address' },
{ internalType: 'address', name: '_contract', type: 'address' },
{ internalType: 'bytes4', name: '_selector', type: 'bytes4' },
],
name: 'checkPermission',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'owner',
outputs: [{ internalType: 'address', name: '', type: 'address' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{ internalType: 'address', name: '', type: 'address' },
{ internalType: 'address', name: '', type: 'address' },
{ internalType: 'bytes4', name: '', type: 'bytes4' },
],
name: 'permissions',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'renounceOwnership',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{ internalType: 'address', name: '_caller', type: 'address' },
{ internalType: 'address', name: '_contract', type: 'address' },
{ internalType: 'bytes4', name: '_selector', type: 'bytes4' },
{ internalType: 'bool', name: '_permission', type: 'bool' },
],
name: 'setPermission',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [{ internalType: 'address', name: 'newOwner', type: 'address' }],
name: 'transferOwnership',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
];
exports.abi = abi;
import type { ABIFragment } from '../types';
declare const abi: ABIFragment[];
export { abi, };
export { abi };
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.abi = void 0;
const abi = [{
const abi = [
{
anonymous: false,
inputs: [{
indexed: true, internalType: 'address', name: 'token', type: 'address',
}],
inputs: [
{
indexed: true,
internalType: 'address',
name: 'token',
type: 'address',
},
],
name: 'AddToBlacklist',
type: 'event',
}, {
},
{
anonymous: false,
inputs: [{
indexed: false, internalType: 'uint256', name: 'treeNumber', type: 'uint256',
}, {
indexed: false, internalType: 'uint256', name: 'startPosition', type: 'uint256',
}, {
indexed: false, internalType: 'uint256[]', name: 'hash', type: 'uint256[]',
}, {
components: [{ internalType: 'uint256[4]', name: 'ciphertext', type: 'uint256[4]' }, { internalType: 'uint256[2]', name: 'ephemeralKeys', type: 'uint256[2]' }, { internalType: 'uint256[]', name: 'memo', type: 'uint256[]' }], indexed: false, internalType: 'struct CommitmentCiphertext[]', name: 'ciphertext', type: 'tuple[]',
}],
inputs: [
{
indexed: false,
internalType: 'uint256',
name: 'treeNumber',
type: 'uint256',
},
{
indexed: false,
internalType: 'uint256',
name: 'startPosition',
type: 'uint256',
},
{
indexed: false,
internalType: 'uint256[]',
name: 'hash',
type: 'uint256[]',
},
{
components: [
{
internalType: 'uint256[4]',
name: 'ciphertext',
type: 'uint256[4]',
},
{
internalType: 'uint256[2]',
name: 'ephemeralKeys',
type: 'uint256[2]',
},
{ internalType: 'uint256[]', name: 'memo', type: 'uint256[]' },
],
indexed: false,
internalType: 'struct CommitmentCiphertext[]',
name: 'ciphertext',
type: 'tuple[]',
},
],
name: 'CommitmentBatch',
type: 'event',
}, {
},
{
anonymous: false,
inputs: [{
indexed: false, internalType: 'uint256', name: 'depositFee', type: 'uint256',
}, {
indexed: false, internalType: 'uint256', name: 'withdrawFee', type: 'uint256',
}, {
indexed: false, internalType: 'uint256', name: 'nftFee', type: 'uint256',
}],
inputs: [
{
indexed: false,
internalType: 'uint256',
name: 'depositFee',
type: 'uint256',
},
{
indexed: false,
internalType: 'uint256',
name: 'withdrawFee',
type: 'uint256',
},
{
indexed: false,
internalType: 'uint256',
name: 'nftFee',
type: 'uint256',
},
],
name: 'FeeChange',
type: 'event',
}, {
},
{
anonymous: false,
inputs: [{
indexed: false, internalType: 'uint256', name: 'treeNumber', type: 'uint256',
}, {
indexed: false, internalType: 'uint256', name: 'startPosition', type: 'uint256',
}, {
components: [{ internalType: 'uint256', name: 'npk', type: 'uint256' }, {
components: [{ internalType: 'enum TokenType', name: 'tokenType', type: 'uint8' }, { internalType: 'address', name: 'tokenAddress', type: 'address' }, { internalType: 'uint256', name: 'tokenSubID', type: 'uint256' }], internalType: 'struct TokenData', name: 'token', type: 'tuple',
}, { internalType: 'uint120', name: 'value', type: 'uint120' }],
inputs: [
{
indexed: false,
internalType: 'uint256',
name: 'treeNumber',
type: 'uint256',
},
{
indexed: false,
internalType: 'uint256',
name: 'startPosition',
type: 'uint256',
},
{
components: [
{ internalType: 'uint256', name: 'npk', type: 'uint256' },
{
components: [
{
internalType: 'enum TokenType',
name: 'tokenType',
type: 'uint8',
},
{
internalType: 'address',
name: 'tokenAddress',
type: 'address',
},
{ internalType: 'uint256', name: 'tokenSubID', type: 'uint256' },
],
internalType: 'struct TokenData',
name: 'token',
type: 'tuple',
},
{ internalType: 'uint120', name: 'value', type: 'uint120' },
],
indexed: false,
internalType: 'struct CommitmentPreimage[]',
name: 'commitments',
type: 'tuple[]',
}, {
indexed: false, internalType: 'uint256[2][]', name: 'encryptedRandom', type: 'uint256[2][]',
}],
},
{
indexed: false,
internalType: 'uint256[2][]',
name: 'encryptedRandom',
type: 'uint256[2][]',
},
],
name: 'GeneratedCommitmentBatch',
type: 'event',
}, {
},
{
anonymous: false,
inputs: [{
indexed: false, internalType: 'uint256', name: 'treeNumber', type: 'uint256',
}, {
indexed: false, internalType: 'uint256[]', name: 'nullifier', type: 'uint256[]',
}],
inputs: [
{
indexed: false,
internalType: 'uint256',
name: 'treeNumber',
type: 'uint256',
},
{
indexed: false,
internalType: 'uint256[]',
name: 'nullifier',
type: 'uint256[]',
},
],
name: 'Nullifiers',
type: 'event',
}, {
},
{
anonymous: false,
inputs: [{
indexed: true, internalType: 'address', name: 'previousOwner', type: 'address',
}, {
indexed: true, internalType: 'address', name: 'newOwner', type: 'address',
}],
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: 'token', type: 'address',
}],
inputs: [
{
indexed: true,
internalType: 'address',
name: 'token',
type: 'address',
},
],
name: 'RemoveFromBlacklist',
type: 'event',
}, {
},
{
anonymous: false,
inputs: [{
indexed: false, internalType: 'address', name: 'treasury', type: 'address',
}],
inputs: [
{
indexed: false,
internalType: 'address',
name: 'treasury',
type: 'address',
},
],
name: 'TreasuryChange',
type: 'event',
}, {
},
{
anonymous: false,
inputs: [{
indexed: false, internalType: 'uint256', name: 'nullifiers', type: 'uint256',
}, {
indexed: false, internalType: 'uint256', name: 'commitments', type: 'uint256',
}, {
components: [{ internalType: 'string', name: 'artifactsIPFSHash', type: 'string' }, {
components: [{ internalType: 'uint256', name: 'x', type: 'uint256' }, { internalType: 'uint256', name: 'y', type: 'uint256' }], internalType: 'struct G1Point', name: 'alpha1', type: 'tuple',
}, {
components: [{ internalType: 'uint256[2]', name: 'x', type: 'uint256[2]' }, { internalType: 'uint256[2]', name: 'y', type: 'uint256[2]' }], internalType: 'struct G2Point', name: 'beta2', type: 'tuple',
}, {
components: [{ internalType: 'uint256[2]', name: 'x', type: 'uint256[2]' }, { internalType: 'uint256[2]', name: 'y', type: 'uint256[2]' }], internalType: 'struct G2Point', name: 'gamma2', type: 'tuple',
}, {
components: [{ internalType: 'uint256[2]', name: 'x', type: 'uint256[2]' }, { internalType: 'uint256[2]', name: 'y', type: 'uint256[2]' }], internalType: 'struct G2Point', name: 'delta2', type: 'tuple',
}, {
components: [{ internalType: 'uint256', name: 'x', type: 'uint256' }, { internalType: 'uint256', name: 'y', type: 'uint256' }], internalType: 'struct G1Point[]', name: 'ic', type: 'tuple[]',
}],
inputs: [
{
indexed: false,
internalType: 'uint256',
name: 'nullifiers',
type: 'uint256',
},
{
indexed: false,
internalType: 'uint256',
name: 'commitments',
type: 'uint256',
},
{
components: [
{ internalType: 'string', name: 'artifactsIPFSHash', type: 'string' },
{
components: [
{ internalType: 'uint256', name: 'x', type: 'uint256' },
{ internalType: 'uint256', name: 'y', type: 'uint256' },
],
internalType: 'struct G1Point',
name: 'alpha1',
type: 'tuple',
},
{
components: [
{ internalType: 'uint256[2]', name: 'x', type: 'uint256[2]' },
{ internalType: 'uint256[2]', name: 'y', type: 'uint256[2]' },
],
internalType: 'struct G2Point',
name: 'beta2',
type: 'tuple',
},
{
components: [
{ internalType: 'uint256[2]', name: 'x', type: 'uint256[2]' },
{ internalType: 'uint256[2]', name: 'y', type: 'uint256[2]' },
],
internalType: 'struct G2Point',
name: 'gamma2',
type: 'tuple',
},
{
components: [
{ internalType: 'uint256[2]', name: 'x', type: 'uint256[2]' },
{ internalType: 'uint256[2]', name: 'y', type: 'uint256[2]' },
],
internalType: 'struct G2Point',
name: 'delta2',
type: 'tuple',
},
{
components: [
{ internalType: 'uint256', name: 'x', type: 'uint256' },
{ internalType: 'uint256', name: 'y', type: 'uint256' },
],
internalType: 'struct G1Point[]',
name: 'ic',
type: 'tuple[]',
},
],
indexed: false,
internalType: 'struct VerifyingKey',
name: 'verifyingKey',
type: 'tuple',
}],
},
],
name: 'VerifyingKeySet',
type: 'event',
}, {
inputs: [], name: 'SNARK_BYPASS', outputs: [{ internalType: 'address', name: '', type: 'address' }], stateMutability: 'view', type: 'function',
}, {
inputs: [], name: 'ZERO_VALUE', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function',
}, {
inputs: [{ internalType: 'address[]', name: '_tokens', type: 'address[]' }], name: 'addToBlacklist', outputs: [], stateMutability: 'nonpayable', type: 'function',
}, {
inputs: [{ internalType: 'uint256', name: 'vector', type: 'uint256' }], name: 'addVector', outputs: [], stateMutability: 'nonpayable', type: 'function',
}, {
inputs: [{ internalType: 'uint120', name: '_depositFee', type: 'uint120' }, { internalType: 'uint120', name: '_withdrawFee', type: 'uint120' }, { internalType: 'uint256', name: '_nftFee', type: 'uint256' }], name: 'changeFee', outputs: [], stateMutability: 'nonpayable', type: 'function',
}, {
inputs: [{ internalType: 'address payable', name: '_treasury', type: 'address' }], name: 'changeTreasury', outputs: [], stateMutability: 'nonpayable', type: 'function',
}, {
inputs: [], name: 'checkSafetyVectors', outputs: [], stateMutability: 'nonpayable', type: 'function',
}, {
inputs: [], name: 'depositFee', outputs: [{ internalType: 'uint120', name: '', type: 'uint120' }], stateMutability: 'view', type: 'function',
}, {
inputs: [{
components: [{ internalType: 'uint256', name: 'npk', type: 'uint256' }, {
components: [{ internalType: 'enum TokenType', name: 'tokenType', type: 'uint8' }, { internalType: 'address', name: 'tokenAddress', type: 'address' }, { internalType: 'uint256', name: 'tokenSubID', type: 'uint256' }], internalType: 'struct TokenData', name: 'token', type: 'tuple',
}, { internalType: 'uint120', name: 'value', type: 'uint120' }],
},
{
inputs: [],
name: 'SNARK_BYPASS',
outputs: [{ internalType: 'address', name: '', type: 'address' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'ZERO_VALUE',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [{ internalType: 'address[]', name: '_tokens', type: 'address[]' }],
name: 'addToBlacklist',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [{ internalType: 'uint256', name: 'vector', type: 'uint256' }],
name: 'addVector',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{ internalType: 'uint120', name: '_depositFee', type: 'uint120' },
{ internalType: 'uint120', name: '_withdrawFee', type: 'uint120' },
{ internalType: 'uint256', name: '_nftFee', type: 'uint256' },
],
name: 'changeFee',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{ internalType: 'address payable', name: '_treasury', type: 'address' },
],
name: 'changeTreasury',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [],
name: 'checkSafetyVectors',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [],
name: 'depositFee',
outputs: [{ internalType: 'uint120', name: '', type: 'uint120' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
components: [
{ internalType: 'uint256', name: 'npk', type: 'uint256' },
{
components: [
{
internalType: 'enum TokenType',
name: 'tokenType',
type: 'uint8',
},
{
internalType: 'address',
name: 'tokenAddress',
type: 'address',
},
{ internalType: 'uint256', name: 'tokenSubID', type: 'uint256' },
],
internalType: 'struct TokenData',
name: 'token',
type: 'tuple',
},
{ internalType: 'uint120', name: 'value', type: 'uint120' },
],
internalType: 'struct CommitmentPreimage[]',
name: '_notes',
type: 'tuple[]',
}, { internalType: 'uint256[2][]', name: '_encryptedRandom', type: 'uint256[2][]' }],
},
{
internalType: 'uint256[2][]',
name: '_encryptedRandom',
type: 'uint256[2][]',
},
],
name: 'generateDeposit',

@@ -140,8 +378,30 @@ outputs: [],

type: 'function',
}, {
inputs: [{ internalType: 'uint136', name: '_amount', type: 'uint136' }, { internalType: 'bool', name: '_isInclusive', type: 'bool' }, { internalType: 'uint120', name: '_feeBP', type: 'uint120' }], name: 'getFee', outputs: [{ internalType: 'uint120', name: '', type: 'uint120' }, { internalType: 'uint120', name: '', type: 'uint120' }], stateMutability: 'pure', type: 'function',
}, {
inputs: [{
components: [{ internalType: 'enum TokenType', name: 'tokenType', type: 'uint8' }, { internalType: 'address', name: 'tokenAddress', type: 'address' }, { internalType: 'uint256', name: 'tokenSubID', type: 'uint256' }], internalType: 'struct TokenData', name: '_tokenData', type: 'tuple',
}],
},
{
inputs: [
{ internalType: 'uint136', name: '_amount', type: 'uint136' },
{ internalType: 'bool', name: '_isInclusive', type: 'bool' },
{ internalType: 'uint120', name: '_feeBP', type: 'uint120' },
],
name: 'getFee',
outputs: [
{ internalType: 'uint120', name: '', type: 'uint120' },
{ internalType: 'uint120', name: '', type: 'uint120' },
],
stateMutability: 'pure',
type: 'function',
},
{
inputs: [
{
components: [
{ internalType: 'enum TokenType', name: 'tokenType', type: 'uint8' },
{ internalType: 'address', name: 'tokenAddress', type: 'address' },
{ internalType: 'uint256', name: 'tokenSubID', type: 'uint256' },
],
internalType: 'struct TokenData',
name: '_tokenData',
type: 'tuple',
},
],
name: 'getTokenField',

@@ -151,32 +411,103 @@ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],

type: 'function',
}, {
inputs: [{ internalType: 'uint256', name: '_nullifiers', type: 'uint256' }, { internalType: 'uint256', name: '_commitments', type: 'uint256' }],
},
{
inputs: [
{ internalType: 'uint256', name: '_nullifiers', type: 'uint256' },
{ internalType: 'uint256', name: '_commitments', type: 'uint256' },
],
name: 'getVerificationKey',
outputs: [{
components: [{ internalType: 'string', name: 'artifactsIPFSHash', type: 'string' }, {
components: [{ internalType: 'uint256', name: 'x', type: 'uint256' }, { internalType: 'uint256', name: 'y', type: 'uint256' }], internalType: 'struct G1Point', name: 'alpha1', type: 'tuple',
}, {
components: [{ internalType: 'uint256[2]', name: 'x', type: 'uint256[2]' }, { internalType: 'uint256[2]', name: 'y', type: 'uint256[2]' }], internalType: 'struct G2Point', name: 'beta2', type: 'tuple',
}, {
components: [{ internalType: 'uint256[2]', name: 'x', type: 'uint256[2]' }, { internalType: 'uint256[2]', name: 'y', type: 'uint256[2]' }], internalType: 'struct G2Point', name: 'gamma2', type: 'tuple',
}, {
components: [{ internalType: 'uint256[2]', name: 'x', type: 'uint256[2]' }, { internalType: 'uint256[2]', name: 'y', type: 'uint256[2]' }], internalType: 'struct G2Point', name: 'delta2', type: 'tuple',
}, {
components: [{ internalType: 'uint256', name: 'x', type: 'uint256' }, { internalType: 'uint256', name: 'y', type: 'uint256' }], internalType: 'struct G1Point[]', name: 'ic', type: 'tuple[]',
}],
outputs: [
{
components: [
{ internalType: 'string', name: 'artifactsIPFSHash', type: 'string' },
{
components: [
{ internalType: 'uint256', name: 'x', type: 'uint256' },
{ internalType: 'uint256', name: 'y', type: 'uint256' },
],
internalType: 'struct G1Point',
name: 'alpha1',
type: 'tuple',
},
{
components: [
{ internalType: 'uint256[2]', name: 'x', type: 'uint256[2]' },
{ internalType: 'uint256[2]', name: 'y', type: 'uint256[2]' },
],
internalType: 'struct G2Point',
name: 'beta2',
type: 'tuple',
},
{
components: [
{ internalType: 'uint256[2]', name: 'x', type: 'uint256[2]' },
{ internalType: 'uint256[2]', name: 'y', type: 'uint256[2]' },
],
internalType: 'struct G2Point',
name: 'gamma2',
type: 'tuple',
},
{
components: [
{ internalType: 'uint256[2]', name: 'x', type: 'uint256[2]' },
{ internalType: 'uint256[2]', name: 'y', type: 'uint256[2]' },
],
internalType: 'struct G2Point',
name: 'delta2',
type: 'tuple',
},
{
components: [
{ internalType: 'uint256', name: 'x', type: 'uint256' },
{ internalType: 'uint256', name: 'y', type: 'uint256' },
],
internalType: 'struct G1Point[]',
name: 'ic',
type: 'tuple[]',
},
],
internalType: 'struct VerifyingKey',
name: '',
type: 'tuple',
}],
},
],
stateMutability: 'view',
type: 'function',
}, {
inputs: [{
components: [{ internalType: 'uint16', name: 'treeNumber', type: 'uint16' }, { internalType: 'enum WithdrawType', name: 'withdraw', type: 'uint8' }, { internalType: 'address', name: 'adaptContract', type: 'address' }, { internalType: 'bytes32', name: 'adaptParams', type: 'bytes32' }, {
components: [{ internalType: 'uint256[4]', name: 'ciphertext', type: 'uint256[4]' }, { internalType: 'uint256[2]', name: 'ephemeralKeys', type: 'uint256[2]' }, { internalType: 'uint256[]', name: 'memo', type: 'uint256[]' }], internalType: 'struct CommitmentCiphertext[]', name: 'commitmentCiphertext', type: 'tuple[]',
}],
},
{
inputs: [
{
components: [
{ internalType: 'uint16', name: 'treeNumber', type: 'uint16' },
{
internalType: 'enum WithdrawType',
name: 'withdraw',
type: 'uint8',
},
{ internalType: 'address', name: 'adaptContract', type: 'address' },
{ internalType: 'bytes32', name: 'adaptParams', type: 'bytes32' },
{
components: [
{
internalType: 'uint256[4]',
name: 'ciphertext',
type: 'uint256[4]',
},
{
internalType: 'uint256[2]',
name: 'ephemeralKeys',
type: 'uint256[2]',
},
{ internalType: 'uint256[]', name: 'memo', type: 'uint256[]' },
],
internalType: 'struct CommitmentCiphertext[]',
name: 'commitmentCiphertext',
type: 'tuple[]',
},
],
internalType: 'struct BoundParams',
name: '_boundParams',
type: 'tuple',
}],
},
],
name: 'hashBoundParams',

@@ -186,11 +517,33 @@ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],

type: 'function',
}, {
inputs: [{
components: [{ internalType: 'uint256', name: 'npk', type: 'uint256' }, {
components: [{ internalType: 'enum TokenType', name: 'tokenType', type: 'uint8' }, { internalType: 'address', name: 'tokenAddress', type: 'address' }, { internalType: 'uint256', name: 'tokenSubID', type: 'uint256' }], internalType: 'struct TokenData', name: 'token', type: 'tuple',
}, { internalType: 'uint120', name: 'value', type: 'uint120' }],
},
{
inputs: [
{
components: [
{ internalType: 'uint256', name: 'npk', type: 'uint256' },
{
components: [
{
internalType: 'enum TokenType',
name: 'tokenType',
type: 'uint8',
},
{
internalType: 'address',
name: 'tokenAddress',
type: 'address',
},
{ internalType: 'uint256', name: 'tokenSubID', type: 'uint256' },
],
internalType: 'struct TokenData',
name: 'token',
type: 'tuple',
},
{ internalType: 'uint120', name: 'value', type: 'uint120' },
],
internalType: 'struct CommitmentPreimage',
name: '_commitmentPreimage',
type: 'tuple',
}],
},
],
name: 'hashCommitment',

@@ -200,39 +553,146 @@ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],

type: 'function',
}, {
inputs: [{ internalType: 'uint256', name: '_left', type: 'uint256' }, { internalType: 'uint256', name: '_right', type: 'uint256' }], name: 'hashLeftRight', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'pure', type: 'function',
}, {
inputs: [{ internalType: 'address payable', name: '_treasury', type: 'address' }, { internalType: 'uint120', name: '_depositFee', type: 'uint120' }, { internalType: 'uint120', name: '_withdrawFee', type: 'uint120' }, { internalType: 'uint256', name: '_nftFee', type: 'uint256' }, { internalType: 'address', name: '_owner', type: 'address' }], name: 'initializeRailgunLogic', outputs: [], stateMutability: 'nonpayable', type: 'function',
}, {
inputs: [], name: 'merkleRoot', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function',
}, {
inputs: [], name: 'nftFee', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function',
}, {
inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }, { internalType: 'uint256', name: '', type: 'uint256' }], name: 'nullifiers', outputs: [{ internalType: 'bool', name: '', type: 'bool' }], stateMutability: 'view', type: 'function',
}, {
inputs: [], name: 'owner', outputs: [{ internalType: 'address', name: '', type: 'address' }], stateMutability: 'view', type: 'function',
}, {
inputs: [{ internalType: 'address[]', name: '_tokens', type: 'address[]' }], name: 'removeFromBlacklist', outputs: [], stateMutability: 'nonpayable', type: 'function',
}, {
inputs: [{ internalType: 'uint256', name: 'vector', type: 'uint256' }], name: 'removeVector', outputs: [], stateMutability: 'nonpayable', type: 'function',
}, {
inputs: [], name: 'renounceOwnership', outputs: [], stateMutability: 'nonpayable', type: 'function',
}, {
inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }, { internalType: 'uint256', name: '', type: 'uint256' }], name: 'rootHistory', outputs: [{ internalType: 'bool', name: '', type: 'bool' }], stateMutability: 'view', type: 'function',
}, {
inputs: [{ internalType: 'uint256', name: '_nullifiers', type: 'uint256' }, { internalType: 'uint256', name: '_commitments', type: 'uint256' }, {
components: [{ internalType: 'string', name: 'artifactsIPFSHash', type: 'string' }, {
components: [{ internalType: 'uint256', name: 'x', type: 'uint256' }, { internalType: 'uint256', name: 'y', type: 'uint256' }], internalType: 'struct G1Point', name: 'alpha1', type: 'tuple',
}, {
components: [{ internalType: 'uint256[2]', name: 'x', type: 'uint256[2]' }, { internalType: 'uint256[2]', name: 'y', type: 'uint256[2]' }], internalType: 'struct G2Point', name: 'beta2', type: 'tuple',
}, {
components: [{ internalType: 'uint256[2]', name: 'x', type: 'uint256[2]' }, { internalType: 'uint256[2]', name: 'y', type: 'uint256[2]' }], internalType: 'struct G2Point', name: 'gamma2', type: 'tuple',
}, {
components: [{ internalType: 'uint256[2]', name: 'x', type: 'uint256[2]' }, { internalType: 'uint256[2]', name: 'y', type: 'uint256[2]' }], internalType: 'struct G2Point', name: 'delta2', type: 'tuple',
}, {
components: [{ internalType: 'uint256', name: 'x', type: 'uint256' }, { internalType: 'uint256', name: 'y', type: 'uint256' }], internalType: 'struct G1Point[]', name: 'ic', type: 'tuple[]',
}],
},
{
inputs: [
{ internalType: 'uint256', name: '_left', type: 'uint256' },
{ internalType: 'uint256', name: '_right', type: 'uint256' },
],
name: 'hashLeftRight',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'pure',
type: 'function',
},
{
inputs: [
{ internalType: 'address payable', name: '_treasury', type: 'address' },
{ internalType: 'uint120', name: '_depositFee', type: 'uint120' },
{ internalType: 'uint120', name: '_withdrawFee', type: 'uint120' },
{ internalType: 'uint256', name: '_nftFee', type: 'uint256' },
{ internalType: 'address', name: '_owner', type: 'address' },
],
name: 'initializeRailgunLogic',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [],
name: 'merkleRoot',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'nftFee',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{ internalType: 'uint256', name: '', type: 'uint256' },
{ internalType: 'uint256', name: '', type: 'uint256' },
],
name: 'nullifiers',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'owner',
outputs: [{ internalType: 'address', name: '', type: 'address' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [{ internalType: 'address[]', name: '_tokens', type: 'address[]' }],
name: 'removeFromBlacklist',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [{ internalType: 'uint256', name: 'vector', type: 'uint256' }],
name: 'removeVector',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [],
name: 'renounceOwnership',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{ internalType: 'uint256', name: '', type: 'uint256' },
{ internalType: 'uint256', name: '', type: 'uint256' },
],
name: 'rootHistory',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{ internalType: 'uint256', name: '_nullifiers', type: 'uint256' },
{ internalType: 'uint256', name: '_commitments', type: 'uint256' },
{
components: [
{ internalType: 'string', name: 'artifactsIPFSHash', type: 'string' },
{
components: [
{ internalType: 'uint256', name: 'x', type: 'uint256' },
{ internalType: 'uint256', name: 'y', type: 'uint256' },
],
internalType: 'struct G1Point',
name: 'alpha1',
type: 'tuple',
},
{
components: [
{ internalType: 'uint256[2]', name: 'x', type: 'uint256[2]' },
{ internalType: 'uint256[2]', name: 'y', type: 'uint256[2]' },
],
internalType: 'struct G2Point',
name: 'beta2',
type: 'tuple',
},
{
components: [
{ internalType: 'uint256[2]', name: 'x', type: 'uint256[2]' },
{ internalType: 'uint256[2]', name: 'y', type: 'uint256[2]' },
],
internalType: 'struct G2Point',
name: 'gamma2',
type: 'tuple',
},
{
components: [
{ internalType: 'uint256[2]', name: 'x', type: 'uint256[2]' },
{ internalType: 'uint256[2]', name: 'y', type: 'uint256[2]' },
],
internalType: 'struct G2Point',
name: 'delta2',
type: 'tuple',
},
{
components: [
{ internalType: 'uint256', name: 'x', type: 'uint256' },
{ internalType: 'uint256', name: 'y', type: 'uint256' },
],
internalType: 'struct G1Point[]',
name: 'ic',
type: 'tuple[]',
},
],
internalType: 'struct VerifyingKey',
name: '_verifyingKey',
type: 'tuple',
}],
},
],
name: 'setVerificationKey',

@@ -242,38 +702,137 @@ outputs: [],

type: 'function',
}, {
inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], name: 'snarkSafetyVector', outputs: [{ internalType: 'bool', name: '', type: 'bool' }], stateMutability: 'view', type: 'function',
}, {
inputs: [{ internalType: 'address', name: '', type: 'address' }], name: 'tokenBlacklist', outputs: [{ internalType: 'bool', name: '', type: 'bool' }], stateMutability: 'view', type: 'function',
}, {
inputs: [{
components: [{
components: [{
components: [{ internalType: 'uint256', name: 'x', type: 'uint256' }, { internalType: 'uint256', name: 'y', type: 'uint256' }], internalType: 'struct G1Point', name: 'a', type: 'tuple',
}, {
components: [{ internalType: 'uint256[2]', name: 'x', type: 'uint256[2]' }, { internalType: 'uint256[2]', name: 'y', type: 'uint256[2]' }], internalType: 'struct G2Point', name: 'b', type: 'tuple',
}, {
components: [{ internalType: 'uint256', name: 'x', type: 'uint256' }, { internalType: 'uint256', name: 'y', type: 'uint256' }], internalType: 'struct G1Point', name: 'c', type: 'tuple',
}],
},
{
inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
name: 'snarkSafetyVector',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [{ internalType: 'address', name: '', type: 'address' }],
name: 'tokenBlacklist',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
components: [
{
components: [
{
components: [
{ internalType: 'uint256', name: 'x', type: 'uint256' },
{ internalType: 'uint256', name: 'y', type: 'uint256' },
],
internalType: 'struct G1Point',
name: 'a',
type: 'tuple',
},
{
components: [
{ internalType: 'uint256[2]', name: 'x', type: 'uint256[2]' },
{ internalType: 'uint256[2]', name: 'y', type: 'uint256[2]' },
],
internalType: 'struct G2Point',
name: 'b',
type: 'tuple',
},
{
components: [
{ internalType: 'uint256', name: 'x', type: 'uint256' },
{ internalType: 'uint256', name: 'y', type: 'uint256' },
],
internalType: 'struct G1Point',
name: 'c',
type: 'tuple',
},
],
internalType: 'struct SnarkProof',
name: 'proof',
type: 'tuple',
}, { internalType: 'uint256', name: 'merkleRoot', type: 'uint256' }, { internalType: 'uint256[]', name: 'nullifiers', type: 'uint256[]' }, { internalType: 'uint256[]', name: 'commitments', type: 'uint256[]' }, {
components: [{ internalType: 'uint16', name: 'treeNumber', type: 'uint16' }, { internalType: 'enum WithdrawType', name: 'withdraw', type: 'uint8' }, { internalType: 'address', name: 'adaptContract', type: 'address' }, { internalType: 'bytes32', name: 'adaptParams', type: 'bytes32' }, {
components: [{ internalType: 'uint256[4]', name: 'ciphertext', type: 'uint256[4]' }, { internalType: 'uint256[2]', name: 'ephemeralKeys', type: 'uint256[2]' }, { internalType: 'uint256[]', name: 'memo', type: 'uint256[]' }], internalType: 'struct CommitmentCiphertext[]', name: 'commitmentCiphertext', type: 'tuple[]',
}],
},
{ internalType: 'uint256', name: 'merkleRoot', type: 'uint256' },
{ internalType: 'uint256[]', name: 'nullifiers', type: 'uint256[]' },
{ internalType: 'uint256[]', name: 'commitments', type: 'uint256[]' },
{
components: [
{ internalType: 'uint16', name: 'treeNumber', type: 'uint16' },
{
internalType: 'enum WithdrawType',
name: 'withdraw',
type: 'uint8',
},
{
internalType: 'address',
name: 'adaptContract',
type: 'address',
},
{ internalType: 'bytes32', name: 'adaptParams', type: 'bytes32' },
{
components: [
{
internalType: 'uint256[4]',
name: 'ciphertext',
type: 'uint256[4]',
},
{
internalType: 'uint256[2]',
name: 'ephemeralKeys',
type: 'uint256[2]',
},
{
internalType: 'uint256[]',
name: 'memo',
type: 'uint256[]',
},
],
internalType: 'struct CommitmentCiphertext[]',
name: 'commitmentCiphertext',
type: 'tuple[]',
},
],
internalType: 'struct BoundParams',
name: 'boundParams',
type: 'tuple',
}, {
components: [{ internalType: 'uint256', name: 'npk', type: 'uint256' }, {
components: [{ internalType: 'enum TokenType', name: 'tokenType', type: 'uint8' }, { internalType: 'address', name: 'tokenAddress', type: 'address' }, { internalType: 'uint256', name: 'tokenSubID', type: 'uint256' }], internalType: 'struct TokenData', name: 'token', type: 'tuple',
}, { internalType: 'uint120', name: 'value', type: 'uint120' }],
},
{
components: [
{ internalType: 'uint256', name: 'npk', type: 'uint256' },
{
components: [
{
internalType: 'enum TokenType',
name: 'tokenType',
type: 'uint8',
},
{
internalType: 'address',
name: 'tokenAddress',
type: 'address',
},
{
internalType: 'uint256',
name: 'tokenSubID',
type: 'uint256',
},
],
internalType: 'struct TokenData',
name: 'token',
type: 'tuple',
},
{ internalType: 'uint120', name: 'value', type: 'uint120' },
],
internalType: 'struct CommitmentPreimage',
name: 'withdrawPreimage',
type: 'tuple',
}, { internalType: 'address', name: 'overrideOutput', type: 'address' }],
},
{ internalType: 'address', name: 'overrideOutput', type: 'address' },
],
internalType: 'struct Transaction[]',
name: '_transactions',
type: 'tuple[]',
}],
},
],
name: 'transact',

@@ -283,40 +842,144 @@ outputs: [],

type: 'function',
}, {
inputs: [{ internalType: 'address', name: 'newOwner', type: 'address' }], name: 'transferOwnership', outputs: [], stateMutability: 'nonpayable', type: 'function',
}, {
inputs: [], name: 'treasury', outputs: [{ internalType: 'address payable', name: '', type: 'address' }], stateMutability: 'view', type: 'function',
}, {
inputs: [], name: 'treeNumber', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function',
}, {
inputs: [{
components: [{
components: [{
components: [{ internalType: 'uint256', name: 'x', type: 'uint256' }, { internalType: 'uint256', name: 'y', type: 'uint256' }], internalType: 'struct G1Point', name: 'a', type: 'tuple',
}, {
components: [{ internalType: 'uint256[2]', name: 'x', type: 'uint256[2]' }, { internalType: 'uint256[2]', name: 'y', type: 'uint256[2]' }], internalType: 'struct G2Point', name: 'b', type: 'tuple',
}, {
components: [{ internalType: 'uint256', name: 'x', type: 'uint256' }, { internalType: 'uint256', name: 'y', type: 'uint256' }], internalType: 'struct G1Point', name: 'c', type: 'tuple',
}],
},
{
inputs: [{ internalType: 'address', name: 'newOwner', type: 'address' }],
name: 'transferOwnership',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [],
name: 'treasury',
outputs: [{ internalType: 'address payable', name: '', type: 'address' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'treeNumber',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
components: [
{
components: [
{
components: [
{ internalType: 'uint256', name: 'x', type: 'uint256' },
{ internalType: 'uint256', name: 'y', type: 'uint256' },
],
internalType: 'struct G1Point',
name: 'a',
type: 'tuple',
},
{
components: [
{ internalType: 'uint256[2]', name: 'x', type: 'uint256[2]' },
{ internalType: 'uint256[2]', name: 'y', type: 'uint256[2]' },
],
internalType: 'struct G2Point',
name: 'b',
type: 'tuple',
},
{
components: [
{ internalType: 'uint256', name: 'x', type: 'uint256' },
{ internalType: 'uint256', name: 'y', type: 'uint256' },
],
internalType: 'struct G1Point',
name: 'c',
type: 'tuple',
},
],
internalType: 'struct SnarkProof',
name: 'proof',
type: 'tuple',
}, { internalType: 'uint256', name: 'merkleRoot', type: 'uint256' }, { internalType: 'uint256[]', name: 'nullifiers', type: 'uint256[]' }, { internalType: 'uint256[]', name: 'commitments', type: 'uint256[]' }, {
components: [{ internalType: 'uint16', name: 'treeNumber', type: 'uint16' }, { internalType: 'enum WithdrawType', name: 'withdraw', type: 'uint8' }, { internalType: 'address', name: 'adaptContract', type: 'address' }, { internalType: 'bytes32', name: 'adaptParams', type: 'bytes32' }, {
components: [{ internalType: 'uint256[4]', name: 'ciphertext', type: 'uint256[4]' }, { internalType: 'uint256[2]', name: 'ephemeralKeys', type: 'uint256[2]' }, { internalType: 'uint256[]', name: 'memo', type: 'uint256[]' }], internalType: 'struct CommitmentCiphertext[]', name: 'commitmentCiphertext', type: 'tuple[]',
}],
},
{ internalType: 'uint256', name: 'merkleRoot', type: 'uint256' },
{ internalType: 'uint256[]', name: 'nullifiers', type: 'uint256[]' },
{ internalType: 'uint256[]', name: 'commitments', type: 'uint256[]' },
{
components: [
{ internalType: 'uint16', name: 'treeNumber', type: 'uint16' },
{
internalType: 'enum WithdrawType',
name: 'withdraw',
type: 'uint8',
},
{
internalType: 'address',
name: 'adaptContract',
type: 'address',
},
{ internalType: 'bytes32', name: 'adaptParams', type: 'bytes32' },
{
components: [
{
internalType: 'uint256[4]',
name: 'ciphertext',
type: 'uint256[4]',
},
{
internalType: 'uint256[2]',
name: 'ephemeralKeys',
type: 'uint256[2]',
},
{
internalType: 'uint256[]',
name: 'memo',
type: 'uint256[]',
},
],
internalType: 'struct CommitmentCiphertext[]',
name: 'commitmentCiphertext',
type: 'tuple[]',
},
],
internalType: 'struct BoundParams',
name: 'boundParams',
type: 'tuple',
}, {
components: [{ internalType: 'uint256', name: 'npk', type: 'uint256' }, {
components: [{ internalType: 'enum TokenType', name: 'tokenType', type: 'uint8' }, { internalType: 'address', name: 'tokenAddress', type: 'address' }, { internalType: 'uint256', name: 'tokenSubID', type: 'uint256' }], internalType: 'struct TokenData', name: 'token', type: 'tuple',
}, { internalType: 'uint120', name: 'value', type: 'uint120' }],
},
{
components: [
{ internalType: 'uint256', name: 'npk', type: 'uint256' },
{
components: [
{
internalType: 'enum TokenType',
name: 'tokenType',
type: 'uint8',
},
{
internalType: 'address',
name: 'tokenAddress',
type: 'address',
},
{
internalType: 'uint256',
name: 'tokenSubID',
type: 'uint256',
},
],
internalType: 'struct TokenData',
name: 'token',
type: 'tuple',
},
{ internalType: 'uint120', name: 'value', type: 'uint120' },
],
internalType: 'struct CommitmentPreimage',
name: 'withdrawPreimage',
type: 'tuple',
}, { internalType: 'address', name: 'overrideOutput', type: 'address' }],
},
{ internalType: 'address', name: 'overrideOutput', type: 'address' },
],
internalType: 'struct Transaction',
name: '_transaction',
type: 'tuple',
}],
},
],
name: 'verify',

@@ -326,30 +989,94 @@ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],

type: 'function',
}, {
inputs: [{
components: [{ internalType: 'string', name: 'artifactsIPFSHash', type: 'string' }, {
components: [{ internalType: 'uint256', name: 'x', type: 'uint256' }, { internalType: 'uint256', name: 'y', type: 'uint256' }], internalType: 'struct G1Point', name: 'alpha1', type: 'tuple',
}, {
components: [{ internalType: 'uint256[2]', name: 'x', type: 'uint256[2]' }, { internalType: 'uint256[2]', name: 'y', type: 'uint256[2]' }], internalType: 'struct G2Point', name: 'beta2', type: 'tuple',
}, {
components: [{ internalType: 'uint256[2]', name: 'x', type: 'uint256[2]' }, { internalType: 'uint256[2]', name: 'y', type: 'uint256[2]' }], internalType: 'struct G2Point', name: 'gamma2', type: 'tuple',
}, {
components: [{ internalType: 'uint256[2]', name: 'x', type: 'uint256[2]' }, { internalType: 'uint256[2]', name: 'y', type: 'uint256[2]' }], internalType: 'struct G2Point', name: 'delta2', type: 'tuple',
}, {
components: [{ internalType: 'uint256', name: 'x', type: 'uint256' }, { internalType: 'uint256', name: 'y', type: 'uint256' }], internalType: 'struct G1Point[]', name: 'ic', type: 'tuple[]',
}],
},
{
inputs: [
{
components: [
{ internalType: 'string', name: 'artifactsIPFSHash', type: 'string' },
{
components: [
{ internalType: 'uint256', name: 'x', type: 'uint256' },
{ internalType: 'uint256', name: 'y', type: 'uint256' },
],
internalType: 'struct G1Point',
name: 'alpha1',
type: 'tuple',
},
{
components: [
{ internalType: 'uint256[2]', name: 'x', type: 'uint256[2]' },
{ internalType: 'uint256[2]', name: 'y', type: 'uint256[2]' },
],
internalType: 'struct G2Point',
name: 'beta2',
type: 'tuple',
},
{
components: [
{ internalType: 'uint256[2]', name: 'x', type: 'uint256[2]' },
{ internalType: 'uint256[2]', name: 'y', type: 'uint256[2]' },
],
internalType: 'struct G2Point',
name: 'gamma2',
type: 'tuple',
},
{
components: [
{ internalType: 'uint256[2]', name: 'x', type: 'uint256[2]' },
{ internalType: 'uint256[2]', name: 'y', type: 'uint256[2]' },
],
internalType: 'struct G2Point',
name: 'delta2',
type: 'tuple',
},
{
components: [
{ internalType: 'uint256', name: 'x', type: 'uint256' },
{ internalType: 'uint256', name: 'y', type: 'uint256' },
],
internalType: 'struct G1Point[]',
name: 'ic',
type: 'tuple[]',
},
],
internalType: 'struct VerifyingKey',
name: '_verifyingKey',
type: 'tuple',
}, {
components: [{
components: [{ internalType: 'uint256', name: 'x', type: 'uint256' }, { internalType: 'uint256', name: 'y', type: 'uint256' }], internalType: 'struct G1Point', name: 'a', type: 'tuple',
}, {
components: [{ internalType: 'uint256[2]', name: 'x', type: 'uint256[2]' }, { internalType: 'uint256[2]', name: 'y', type: 'uint256[2]' }], internalType: 'struct G2Point', name: 'b', type: 'tuple',
}, {
components: [{ internalType: 'uint256', name: 'x', type: 'uint256' }, { internalType: 'uint256', name: 'y', type: 'uint256' }], internalType: 'struct G1Point', name: 'c', type: 'tuple',
}],
},
{
components: [
{
components: [
{ internalType: 'uint256', name: 'x', type: 'uint256' },
{ internalType: 'uint256', name: 'y', type: 'uint256' },
],
internalType: 'struct G1Point',
name: 'a',
type: 'tuple',
},
{
components: [
{ internalType: 'uint256[2]', name: 'x', type: 'uint256[2]' },
{ internalType: 'uint256[2]', name: 'y', type: 'uint256[2]' },
],
internalType: 'struct G2Point',
name: 'b',
type: 'tuple',
},
{
components: [
{ internalType: 'uint256', name: 'x', type: 'uint256' },
{ internalType: 'uint256', name: 'y', type: 'uint256' },
],
internalType: 'struct G1Point',
name: 'c',
type: 'tuple',
},
],
internalType: 'struct SnarkProof',
name: '_proof',
type: 'tuple',
}, { internalType: 'uint256[]', name: '_inputs', type: 'uint256[]' }],
},
{ internalType: 'uint256[]', name: '_inputs', type: 'uint256[]' },
],
name: 'verifyProof',

@@ -359,7 +1086,18 @@ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],

type: 'function',
}, {
inputs: [], name: 'withdrawFee', outputs: [{ internalType: 'uint120', name: '', type: 'uint120' }], stateMutability: 'view', type: 'function',
}, {
inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], name: 'zeros', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function',
}];
},
{
inputs: [],
name: 'withdrawFee',
outputs: [{ internalType: 'uint120', name: '', type: 'uint120' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
name: 'zeros',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
];
exports.abi = abi;
import type { ABIFragment } from '../types';
declare const abi: ABIFragment[];
export { abi, };
export { abi };
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.abi = void 0;
const abi = [{ inputs: [{ internalType: 'address', name: '_admin', type: 'address' }], stateMutability: 'nonpayable', type: 'constructor' }, {
const abi = [
{
inputs: [{ internalType: 'address', name: '_admin', type: 'address' }],
stateMutability: 'nonpayable',
type: 'constructor',
},
{
anonymous: false,
inputs: [{
indexed: false, internalType: 'address', name: 'previousOwner', type: 'address',
}, {
indexed: false, internalType: 'address', name: 'newOwner', type: 'address',
}],
inputs: [
{
indexed: false,
internalType: 'address',
name: 'previousOwner',
type: 'address',
},
{
indexed: false,
internalType: 'address',
name: 'newOwner',
type: 'address',
},
],
name: 'ProxyOwnershipTransfer',
type: 'event',
}, {
anonymous: false, inputs: [], name: 'ProxyPause', type: 'event',
}, {
anonymous: false, inputs: [], name: 'ProxyUnpause', type: 'event',
}, {
},
{
anonymous: false,
inputs: [{
indexed: false, internalType: 'address', name: 'previousImplementation', type: 'address',
}, {
indexed: false, internalType: 'address', name: 'newImplementation', type: 'address',
}],
inputs: [],
name: 'ProxyPause',
type: 'event',
},
{
anonymous: false,
inputs: [],
name: 'ProxyUnpause',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: 'address',
name: 'previousImplementation',
type: 'address',
},
{
indexed: false,
internalType: 'address',
name: 'newImplementation',
type: 'address',
},
],
name: 'ProxyUpgrade',
type: 'event',
}, { stateMutability: 'payable', type: 'fallback' }, {
inputs: [], name: 'pause', outputs: [], stateMutability: 'nonpayable', type: 'function',
}, {
inputs: [{ internalType: 'address', name: '_newOwner', type: 'address' }], name: 'transferOwnership', outputs: [], stateMutability: 'nonpayable', type: 'function',
}, {
inputs: [], name: 'unpause', outputs: [], stateMutability: 'nonpayable', type: 'function',
}, {
inputs: [{ internalType: 'address', name: '_newImplementation', type: 'address' }], name: 'upgrade', outputs: [], stateMutability: 'nonpayable', type: 'function',
}, { stateMutability: 'payable', type: 'receive' }];
},
{ stateMutability: 'payable', type: 'fallback' },
{
inputs: [],
name: 'pause',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [{ internalType: 'address', name: '_newOwner', type: 'address' }],
name: 'transferOwnership',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [],
name: 'unpause',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{ internalType: 'address', name: '_newImplementation', type: 'address' },
],
name: 'upgrade',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{ stateMutability: 'payable', type: 'receive' },
];
exports.abi = abi;
import type { ABIFragment } from '../types';
declare const abi: ABIFragment[];
export { abi, };
export { abi };
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.abi = void 0;
const abi = [{ inputs: [{ internalType: 'address', name: '_admin', type: 'address' }], stateMutability: 'nonpayable', type: 'constructor' }, {
const abi = [
{
inputs: [{ internalType: 'address', name: '_admin', type: 'address' }],
stateMutability: 'nonpayable',
type: 'constructor',
},
{
anonymous: false,
inputs: [{
indexed: true, internalType: 'address', name: 'previousOwner', type: 'address',
}, {
indexed: true, internalType: 'address', name: 'newOwner', type: 'address',
}],
inputs: [
{
indexed: true,
internalType: 'address',
name: 'previousOwner',
type: 'address',
},
{
indexed: true,
internalType: 'address',
name: 'newOwner',
type: 'address',
},
],
name: 'OwnershipTransferred',
type: 'event',
}, {
inputs: [], name: 'owner', outputs: [{ internalType: 'address', name: '', type: 'address' }], stateMutability: 'view', type: 'function',
}, {
inputs: [{ internalType: 'contract PausableUpgradableProxy', name: '_proxy', type: 'address' }], name: 'pause', outputs: [], stateMutability: 'nonpayable', type: 'function',
}, {
inputs: [], name: 'renounceOwnership', outputs: [], stateMutability: 'nonpayable', type: 'function',
}, {
inputs: [{ internalType: 'address', name: 'newOwner', type: 'address' }], name: 'transferOwnership', outputs: [], stateMutability: 'nonpayable', type: 'function',
}, {
inputs: [{ internalType: 'contract PausableUpgradableProxy', name: '_proxy', type: 'address' }, { internalType: 'address', name: '_newOwner', type: 'address' }], name: 'transferProxyOwnership', outputs: [], stateMutability: 'nonpayable', type: 'function',
}, {
inputs: [{ internalType: 'contract PausableUpgradableProxy', name: '_proxy', type: 'address' }], name: 'unpause', outputs: [], stateMutability: 'nonpayable', type: 'function',
}, {
inputs: [{ internalType: 'contract PausableUpgradableProxy', name: '_proxy', type: 'address' }, { internalType: 'address', name: '_newImplementation', type: 'address' }], name: 'upgrade', outputs: [], stateMutability: 'nonpayable', type: 'function',
}];
},
{
inputs: [],
name: 'owner',
outputs: [{ internalType: 'address', name: '', type: 'address' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'contract PausableUpgradableProxy',
name: '_proxy',
type: 'address',
},
],
name: 'pause',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [],
name: 'renounceOwnership',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [{ internalType: 'address', name: 'newOwner', type: 'address' }],
name: 'transferOwnership',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
internalType: 'contract PausableUpgradableProxy',
name: '_proxy',
type: 'address',
},
{ internalType: 'address', name: '_newOwner', type: 'address' },
],
name: 'transferProxyOwnership',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
internalType: 'contract PausableUpgradableProxy',
name: '_proxy',
type: 'address',
},
],
name: 'unpause',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
internalType: 'contract PausableUpgradableProxy',
name: '_proxy',
type: 'address',
},
{ internalType: 'address', name: '_newImplementation', type: 'address' },
],
name: 'upgrade',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
];
exports.abi = abi;
import type { ABIFragment } from '../types';
declare const abi: ABIFragment[];
export { abi, };
export { abi };
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.abi = void 0;
const abi = [{ inputs: [{ internalType: 'address', name: '_initialHolder', type: 'address' }, { internalType: 'uint256', name: '_initialSupply', type: 'uint256' }, { internalType: 'uint256', name: '_cap', type: 'uint256' }, { internalType: 'address', name: '_owner', type: 'address' }, { internalType: 'address[]', name: '_lps', type: 'address[]' }], stateMutability: 'nonpayable', type: 'constructor' }, {
const abi = [
{
inputs: [
{ internalType: 'address', name: '_initialHolder', type: 'address' },
{ internalType: 'uint256', name: '_initialSupply', type: 'uint256' },
{ internalType: 'uint256', name: '_cap', type: 'uint256' },
{ internalType: 'address', name: '_owner', type: 'address' },
{ internalType: 'address[]', name: '_lps', type: 'address[]' },
],
stateMutability: 'nonpayable',
type: 'constructor',
},
{
anonymous: false,
inputs: [{
indexed: true, internalType: 'address', name: 'owner', type: 'address',
}, {
indexed: true, internalType: 'address', name: 'spender', type: 'address',
}, {
indexed: false, internalType: 'uint256', name: 'value', type: 'uint256',
}],
inputs: [
{
indexed: true,
internalType: 'address',
name: 'owner',
type: 'address',
},
{
indexed: true,
internalType: 'address',
name: 'spender',
type: 'address',
},
{
indexed: false,
internalType: 'uint256',
name: 'value',
type: 'uint256',
},
],
name: 'Approval',
type: 'event',
}, {
},
{
anonymous: false,
inputs: [{
indexed: true, internalType: 'address', name: 'previousOwner', type: 'address',
}, {
indexed: true, internalType: 'address', name: 'newOwner', type: 'address',
}],
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: 'from', type: 'address',
}, {
indexed: true, internalType: 'address', name: 'to', type: 'address',
}, {
indexed: false, internalType: 'uint256', name: 'value', type: 'uint256',
}],
inputs: [
{
indexed: true,
internalType: 'address',
name: 'from',
type: 'address',
},
{
indexed: true,
internalType: 'address',
name: 'to',
type: 'address',
},
{
indexed: false,
internalType: 'uint256',
name: 'value',
type: 'uint256',
},
],
name: 'Transfer',
type: 'event',
}, {
inputs: [], name: 'DEPLOY_TIME', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function',
}, {
inputs: [{ internalType: 'address', name: 'owner', type: 'address' }, { internalType: 'address', name: 'spender', type: 'address' }], name: 'allowance', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function',
}, {
inputs: [{ internalType: 'address', name: 'spender', type: 'address' }, { internalType: 'uint256', name: 'amount', type: 'uint256' }], name: 'approve', outputs: [{ internalType: 'bool', name: '', type: 'bool' }], stateMutability: 'nonpayable', type: 'function',
}, {
inputs: [{ internalType: 'address', name: 'account', type: 'address' }], name: 'balanceOf', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function',
}, {
inputs: [], name: 'cap', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function',
}, {
inputs: [], name: 'decimals', outputs: [{ internalType: 'uint8', name: '', type: 'uint8' }], stateMutability: 'view', type: 'function',
}, {
inputs: [{ internalType: 'address', name: 'spender', type: 'address' }, { internalType: 'uint256', name: 'subtractedValue', type: 'uint256' }], name: 'decreaseAllowance', outputs: [{ internalType: 'bool', name: '', type: 'bool' }], stateMutability: 'nonpayable', type: 'function',
}, {
inputs: [{ internalType: 'address', name: '_account', type: 'address' }, { internalType: 'uint256', name: '_amount', type: 'uint256' }], name: 'governanceMint', outputs: [{ internalType: 'bool', name: 'success', type: 'bool' }], stateMutability: 'nonpayable', type: 'function',
}, {
inputs: [{ internalType: 'address', name: 'spender', type: 'address' }, { internalType: 'uint256', name: 'addedValue', type: 'uint256' }], name: 'increaseAllowance', outputs: [{ internalType: 'bool', name: '', type: 'bool' }], stateMutability: 'nonpayable', type: 'function',
}, {
inputs: [], name: 'name', outputs: [{ internalType: 'string', name: '', type: 'string' }], stateMutability: 'view', 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: 'symbol', outputs: [{ internalType: 'string', name: '', type: 'string' }], stateMutability: 'view', type: 'function',
}, {
inputs: [], name: 'totalSupply', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function',
}, {
inputs: [{ internalType: 'address', name: '_recipient', type: 'address' }, { internalType: 'uint256', name: '_amount', type: 'uint256' }], name: 'transfer', outputs: [{ internalType: 'bool', name: '', type: 'bool' }], stateMutability: 'nonpayable', type: 'function',
}, {
inputs: [{ internalType: 'address', name: 'sender', type: 'address' }, { internalType: 'address', name: 'recipient', type: 'address' }, { internalType: 'uint256', name: 'amount', type: 'uint256' }], name: 'transferFrom', outputs: [{ internalType: 'bool', name: '', type: 'bool' }], stateMutability: 'nonpayable', type: 'function',
}, {
inputs: [{ internalType: 'address', name: 'newOwner', type: 'address' }], name: 'transferOwnership', outputs: [], stateMutability: 'nonpayable', type: 'function',
}];
},
{
inputs: [],
name: 'DEPLOY_TIME',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{ internalType: 'address', name: 'owner', type: 'address' },
{ internalType: 'address', name: 'spender', type: 'address' },
],
name: 'allowance',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{ internalType: 'address', name: 'spender', type: 'address' },
{ internalType: 'uint256', name: 'amount', type: 'uint256' },
],
name: 'approve',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
name: 'balanceOf',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'cap',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'decimals',
outputs: [{ internalType: 'uint8', name: '', type: 'uint8' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{ internalType: 'address', name: 'spender', type: 'address' },
{ internalType: 'uint256', name: 'subtractedValue', type: 'uint256' },
],
name: 'decreaseAllowance',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{ internalType: 'address', name: '_account', type: 'address' },
{ internalType: 'uint256', name: '_amount', type: 'uint256' },
],
name: 'governanceMint',
outputs: [{ internalType: 'bool', name: 'success', type: 'bool' }],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{ internalType: 'address', name: 'spender', type: 'address' },
{ internalType: 'uint256', name: 'addedValue', type: 'uint256' },
],
name: 'increaseAllowance',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [],
name: 'name',
outputs: [{ internalType: 'string', name: '', type: 'string' }],
stateMutability: 'view',
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: 'symbol',
outputs: [{ internalType: 'string', name: '', type: 'string' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'totalSupply',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{ internalType: 'address', name: '_recipient', type: 'address' },
{ internalType: 'uint256', name: '_amount', type: 'uint256' },
],
name: 'transfer',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{ internalType: 'address', name: 'sender', type: 'address' },
{ internalType: 'address', name: 'recipient', type: 'address' },
{ internalType: 'uint256', name: 'amount', type: 'uint256' },
],
name: 'transferFrom',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [{ internalType: 'address', name: 'newOwner', type: 'address' }],
name: 'transferOwnership',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
];
exports.abi = abi;
import type { ABIFragment } from '../types';
declare const abi: ABIFragment[];
export { abi, };
export { abi };
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.abi = void 0;
const abi = [{ inputs: [{ internalType: 'contract IERC20', name: '_stakingToken', type: 'address' }], stateMutability: 'nonpayable', type: 'constructor' }, {
const abi = [
{
inputs: [
{
internalType: 'contract IERC20',
name: '_stakingToken',
type: 'address',
},
],
stateMutability: 'nonpayable',
type: 'constructor',
},
{
anonymous: false,
inputs: [{
indexed: true, internalType: 'address', name: 'account', type: 'address',
}, {
indexed: true, internalType: 'uint256', name: 'stakeID', type: 'uint256',
}],
inputs: [
{
indexed: true,
internalType: 'address',
name: 'account',
type: 'address',
},
{
indexed: true,
internalType: 'uint256',
name: 'stakeID',
type: 'uint256',
},
],
name: 'Claim',
type: 'event',
}, {
},
{
anonymous: false,
inputs: [{
indexed: true, internalType: 'address', name: 'owner', type: 'address',
}, {
indexed: true, internalType: 'address', name: '_from', type: 'address',
}, {
indexed: true, internalType: 'address', name: 'to', type: 'address',
}, {
indexed: false, internalType: 'uint256', name: 'stakeID', type: 'uint256',
}, {
indexed: false, internalType: 'uint256', name: 'amount', type: 'uint256',
}],
inputs: [
{
indexed: true,
internalType: 'address',
name: 'owner',
type: 'address',
},
{
indexed: true,
internalType: 'address',
name: '_from',
type: 'address',
},
{
indexed: true,
internalType: 'address',
name: 'to',
type: 'address',
},
{
indexed: false,
internalType: 'uint256',
name: 'stakeID',
type: 'uint256',
},
{
indexed: false,
internalType: 'uint256',
name: 'amount',
type: 'uint256',
},
],
name: 'Delegate',
type: 'event',
}, {
},
{
anonymous: false,
inputs: [{
indexed: true, internalType: 'address', name: 'account', type: 'address',
}, {
indexed: true, internalType: 'uint256', name: 'stakeID', type: 'uint256',
}, {
indexed: false, internalType: 'uint256', name: 'amount', type: 'uint256',
}],
inputs: [
{
indexed: true,
internalType: 'address',
name: 'account',
type: 'address',
},
{
indexed: true,
internalType: 'uint256',
name: 'stakeID',
type: 'uint256',
},
{
indexed: false,
internalType: 'uint256',
name: 'amount',
type: 'uint256',
},
],
name: 'Stake',
type: 'event',
}, {
},
{
anonymous: false,
inputs: [{
indexed: true, internalType: 'address', name: 'account', type: 'address',
}, {
indexed: true, internalType: 'uint256', name: 'stakeID', type: 'uint256',
}],
inputs: [
{
indexed: true,
internalType: 'address',
name: 'account',
type: 'address',
},
{
indexed: true,
internalType: 'uint256',
name: 'stakeID',
type: 'uint256',
},
],
name: 'Unlock',
type: 'event',
}, {
inputs: [], name: 'DEPLOY_TIME', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function',
}, {
inputs: [], name: 'SNAPSHOT_INTERVAL', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function',
}, {
inputs: [], name: 'STAKE_LOCKTIME', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function',
}, {
inputs: [{ internalType: 'address', name: '_account', type: 'address' }, { internalType: 'uint256', name: '_index', type: 'uint256' }],
},
{
inputs: [],
name: 'DEPLOY_TIME',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'SNAPSHOT_INTERVAL',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'STAKE_LOCKTIME',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{ internalType: 'address', name: '_account', type: 'address' },
{ internalType: 'uint256', name: '_index', type: 'uint256' },
],
name: 'accountSnapshot',
outputs: [{
components: [{ internalType: 'uint256', name: 'interval', type: 'uint256' }, { internalType: 'uint256', name: 'votingPower', type: 'uint256' }], internalType: 'struct Staking.AccountSnapshot', name: '', type: 'tuple',
}],
outputs: [
{
components: [
{ internalType: 'uint256', name: 'interval', type: 'uint256' },
{ internalType: 'uint256', name: 'votingPower', type: 'uint256' },
],
internalType: 'struct Staking.AccountSnapshot',
name: '',
type: 'tuple',
},
],
stateMutability: 'view',
type: 'function',
}, {
inputs: [{ internalType: 'address', name: '_account', type: 'address' }, { internalType: 'uint256', name: '_interval', type: 'uint256' }, { internalType: 'uint256', name: '_hint', type: 'uint256' }],
},
{
inputs: [
{ internalType: 'address', name: '_account', type: 'address' },
{ internalType: 'uint256', name: '_interval', type: 'uint256' },
{ internalType: 'uint256', name: '_hint', type: 'uint256' },
],
name: 'accountSnapshotAt',
outputs: [{
components: [{ internalType: 'uint256', name: 'interval', type: 'uint256' }, { internalType: 'uint256', name: 'votingPower', type: 'uint256' }], internalType: 'struct Staking.AccountSnapshot', name: '', type: 'tuple',
}],
outputs: [
{
components: [
{ internalType: 'uint256', name: 'interval', type: 'uint256' },
{ internalType: 'uint256', name: 'votingPower', type: 'uint256' },
],
internalType: 'struct Staking.AccountSnapshot',
name: '',
type: 'tuple',
},
],
stateMutability: 'view',
type: 'function',
}, {
inputs: [{ internalType: 'address', name: '_account', type: 'address' }], name: 'accountSnapshotLength', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function',
}, {
inputs: [{ internalType: 'uint256', name: '_stakeID', type: 'uint256' }], name: 'claim', outputs: [], stateMutability: 'nonpayable', type: 'function',
}, {
inputs: [], name: 'currentInterval', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function',
}, {
inputs: [{ internalType: 'uint256', name: '_stakeID', type: 'uint256' }, { internalType: 'address', name: '_to', type: 'address' }], name: 'delegate', outputs: [], stateMutability: 'nonpayable', type: 'function',
}, {
},
{
inputs: [{ internalType: 'address', name: '_account', type: 'address' }],
name: 'accountSnapshotLength',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [{ internalType: 'uint256', name: '_stakeID', type: 'uint256' }],
name: 'claim',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [],
name: 'currentInterval',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{ internalType: 'uint256', name: '_stakeID', type: 'uint256' },
{ internalType: 'address', name: '_to', type: 'address' },
],
name: 'delegate',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [{ internalType: 'uint256', name: '_index', type: 'uint256' }],
name: 'globalsSnapshot',
outputs: [{
components: [{ internalType: 'uint256', name: 'interval', type: 'uint256' }, { internalType: 'uint256', name: 'totalVotingPower', type: 'uint256' }, { internalType: 'uint256', name: 'totalStaked', type: 'uint256' }], internalType: 'struct Staking.GlobalsSnapshot', name: '', type: 'tuple',
}],
outputs: [
{
components: [
{ internalType: 'uint256', name: 'interval', type: 'uint256' },
{
internalType: 'uint256',
name: 'totalVotingPower',
type: 'uint256',
},
{ internalType: 'uint256', name: 'totalStaked', type: 'uint256' },
],
internalType: 'struct Staking.GlobalsSnapshot',
name: '',
type: 'tuple',
},
],
stateMutability: 'view',
type: 'function',
}, {
inputs: [{ internalType: 'uint256', name: '_interval', type: 'uint256' }, { internalType: 'uint256', name: '_hint', type: 'uint256' }],
},
{
inputs: [
{ internalType: 'uint256', name: '_interval', type: 'uint256' },
{ internalType: 'uint256', name: '_hint', type: 'uint256' },
],
name: 'globalsSnapshotAt',
outputs: [{
components: [{ internalType: 'uint256', name: 'interval', type: 'uint256' }, { internalType: 'uint256', name: 'totalVotingPower', type: 'uint256' }, { internalType: 'uint256', name: 'totalStaked', type: 'uint256' }], internalType: 'struct Staking.GlobalsSnapshot', name: '', type: 'tuple',
}],
outputs: [
{
components: [
{ internalType: 'uint256', name: 'interval', type: 'uint256' },
{
internalType: 'uint256',
name: 'totalVotingPower',
type: 'uint256',
},
{ internalType: 'uint256', name: 'totalStaked', type: 'uint256' },
],
internalType: 'struct Staking.GlobalsSnapshot',
name: '',
type: 'tuple',
},
],
stateMutability: 'view',
type: 'function',
}, {
inputs: [], name: 'globalsSnapshotLength', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function',
}, {
inputs: [{ internalType: 'uint256', name: '_time', type: 'uint256' }], name: 'intervalAtTime', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function',
}, {
inputs: [{ internalType: 'address', name: '_account', type: 'address' }], name: 'latestAccountSnapshotInterval', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function',
}, {
inputs: [], name: 'latestGlobalsSnapshotInterval', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function',
}, {
inputs: [{ internalType: 'uint256', name: '_amount', type: 'uint256' }], name: 'stake', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'nonpayable', type: 'function',
}, {
inputs: [{ internalType: 'address', name: '', type: 'address' }, { internalType: 'uint256', name: '', type: 'uint256' }], name: 'stakes', outputs: [{ internalType: 'address', name: 'delegate', type: 'address' }, { internalType: 'uint256', name: 'amount', type: 'uint256' }, { internalType: 'uint256', name: 'staketime', type: 'uint256' }, { internalType: 'uint256', name: 'locktime', type: 'uint256' }, { internalType: 'uint256', name: 'claimedTime', type: 'uint256' }], stateMutability: 'view', type: 'function',
}, {
inputs: [{ internalType: 'address', name: '_account', type: 'address' }], name: 'stakesLength', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function',
}, {
inputs: [], name: 'stakingToken', outputs: [{ internalType: 'contract IERC20', name: '', type: 'address' }], stateMutability: 'view', type: 'function',
}, {
inputs: [], name: 'totalStaked', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function',
}, {
inputs: [], name: 'totalVotingPower', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function',
}, {
inputs: [{ internalType: 'uint256', name: '_stakeID', type: 'uint256' }], name: 'undelegate', outputs: [], stateMutability: 'nonpayable', type: 'function',
}, {
inputs: [{ internalType: 'uint256', name: '_stakeID', type: 'uint256' }], name: 'unlock', outputs: [], stateMutability: 'nonpayable', type: 'function',
}, {
inputs: [{ internalType: 'address', name: '', type: 'address' }], name: 'votingPower', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function',
}];
},
{
inputs: [],
name: 'globalsSnapshotLength',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [{ internalType: 'uint256', name: '_time', type: 'uint256' }],
name: 'intervalAtTime',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [{ internalType: 'address', name: '_account', type: 'address' }],
name: 'latestAccountSnapshotInterval',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'latestGlobalsSnapshotInterval',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [{ internalType: 'uint256', name: '_amount', type: 'uint256' }],
name: 'stake',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{ internalType: 'address', name: '', type: 'address' },
{ internalType: 'uint256', name: '', type: 'uint256' },
],
name: 'stakes',
outputs: [
{ internalType: 'address', name: 'delegate', type: 'address' },
{ internalType: 'uint256', name: 'amount', type: 'uint256' },
{ internalType: 'uint256', name: 'staketime', type: 'uint256' },
{ internalType: 'uint256', name: 'locktime', type: 'uint256' },
{ internalType: 'uint256', name: 'claimedTime', type: 'uint256' },
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [{ internalType: 'address', name: '_account', type: 'address' }],
name: 'stakesLength',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'stakingToken',
outputs: [{ internalType: 'contract IERC20', name: '', type: 'address' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'totalStaked',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'totalVotingPower',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [{ internalType: 'uint256', name: '_stakeID', type: 'uint256' }],
name: 'undelegate',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [{ internalType: 'uint256', name: '_stakeID', type: 'uint256' }],
name: 'unlock',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [{ internalType: 'address', name: '', type: 'address' }],
name: 'votingPower',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
];
exports.abi = abi;
import type { ABIFragment } from '../types';
declare const abi: ABIFragment[];
export { abi, };
export { abi };
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.abi = void 0;
const abi = [{ inputs: [{ internalType: 'contract Staking', name: '_stakingContract', type: 'address' }, { internalType: 'contract Delegator', name: '_delegator', type: 'address' }], stateMutability: 'nonpayable', type: 'constructor' }, {
const abi = [
{
inputs: [
{
internalType: 'contract Staking',
name: '_stakingContract',
type: 'address',
},
{
internalType: 'contract Delegator',
name: '_delegator',
type: 'address',
},
],
stateMutability: 'nonpayable',
type: 'constructor',
},
{
inputs: [
{ internalType: 'uint256', name: 'index', type: 'uint256' },
{ internalType: 'bytes', name: 'data', type: 'bytes' },
],
name: 'ExecutionFailed',
type: 'error',
},
{
anonymous: false,
inputs: [{
indexed: true, internalType: 'uint256', name: 'id', type: 'uint256',
}],
inputs: [
{
indexed: true,
internalType: 'uint256',
name: 'id',
type: 'uint256',
},
],
name: 'Execution',
type: 'event',
}, {
},
{
anonymous: false,
inputs: [{
indexed: true, internalType: 'uint256', name: 'id', type: 'uint256',
}, {
indexed: true, internalType: 'address', name: 'proposer', type: 'address',
}],
inputs: [
{
indexed: true,
internalType: 'uint256',
name: 'id',
type: 'uint256',
},
{
indexed: true,
internalType: 'address',
name: 'proposer',
type: 'address',
},
],
name: 'Proposal',
type: 'event',
}, {
},
{
anonymous: false,
inputs: [{
indexed: true, internalType: 'uint256', name: 'id', type: 'uint256',
}, {
indexed: true, internalType: 'address', name: 'sponsor', type: 'address',
}, {
indexed: false, internalType: 'uint256', name: 'amount', type: 'uint256',
}],
inputs: [
{
indexed: true,
internalType: 'uint256',
name: 'id',
type: 'uint256',
},
{
indexed: true,
internalType: 'address',
name: 'sponsor',
type: 'address',
},
{
indexed: false,
internalType: 'uint256',
name: 'amount',
type: 'uint256',
},
],
name: 'Sponsorship',
type: 'event',
}, {
},
{
anonymous: false,
inputs: [{
indexed: true, internalType: 'uint256', name: 'id', type: 'uint256',
}, {
indexed: true, internalType: 'address', name: 'sponsor', type: 'address',
}, {
indexed: false, internalType: 'uint256', name: 'amount', type: 'uint256',
}],
inputs: [
{
indexed: true,
internalType: 'uint256',
name: 'id',
type: 'uint256',
},
{
indexed: true,
internalType: 'address',
name: 'sponsor',
type: 'address',
},
{
indexed: false,
internalType: 'uint256',
name: 'amount',
type: 'uint256',
},
],
name: 'SponsorshipRevocation',
type: 'event',
}, {
},
{
anonymous: false,
inputs: [{
indexed: true, internalType: 'uint256', name: 'id', type: 'uint256',
}],
inputs: [
{
indexed: true,
internalType: 'uint256',
name: 'id',
type: 'uint256',
},
],
name: 'VoteCall',
type: 'event',
}, {
},
{
anonymous: false,
inputs: [{
indexed: true, internalType: 'uint256', name: 'id', type: 'uint256',
}, {
indexed: true, internalType: 'address', name: 'voter', type: 'address',
}, {
indexed: false, internalType: 'bool', name: 'affirmative', type: 'bool',
}, {
indexed: false, internalType: 'uint256', name: 'votes', type: 'uint256',
}],
inputs: [
{
indexed: true,
internalType: 'uint256',
name: 'id',
type: 'uint256',
},
{
indexed: true,
internalType: 'address',
name: 'voter',
type: 'address',
},
{
indexed: false,
internalType: 'bool',
name: 'affirmative',
type: 'bool',
},
{
indexed: false,
internalType: 'uint256',
name: 'votes',
type: 'uint256',
},
],
name: 'VoteCast',
type: 'event',
}, {
inputs: [], name: 'DELEGATOR_CONTRACT', outputs: [{ internalType: 'contract Delegator', name: '', type: 'address' }], stateMutability: 'view', type: 'function',
}, {
inputs: [], name: 'EXECUTION_END_OFFSET', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function',
}, {
inputs: [], name: 'EXECUTION_START_OFFSET', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function',
}, {
inputs: [], name: 'PROPOSAL_SPONSOR_THRESHOLD', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function',
}, {
inputs: [], name: 'QUORUM', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function',
}, {
inputs: [], name: 'SPONSOR_WINDOW', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function',
}, {
inputs: [], name: 'STAKING_CONTRACT', outputs: [{ internalType: 'contract Staking', name: '', type: 'address' }], stateMutability: 'view', type: 'function',
}, {
inputs: [], name: 'VOTING_NAY_END_OFFSET', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function',
}, {
inputs: [], name: 'VOTING_START_OFFSET', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function',
}, {
inputs: [], name: 'VOTING_YAY_END_OFFSET', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function',
}, {
inputs: [{ internalType: 'uint256', name: '_id', type: 'uint256' }], name: 'callVote', outputs: [], stateMutability: 'nonpayable', type: 'function',
}, {
inputs: [{ internalType: 'string', name: '_proposalDocument', type: 'string' }, {
components: [{ internalType: 'address', name: 'callContract', type: 'address' }, { internalType: 'bytes', name: 'data', type: 'bytes' }, { internalType: 'uint256', name: 'value', type: 'uint256' }], internalType: 'struct Voting.Call[]', name: '_actions', type: 'tuple[]',
}],
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'address',
name: 'account',
type: 'address',
},
{
indexed: false,
internalType: 'address',
name: 'votingKey',
type: 'address',
},
],
name: 'VoteKeySet',
type: 'event',
},
{
inputs: [],
name: 'DELEGATOR_CONTRACT',
outputs: [
{ internalType: 'contract Delegator', name: '', type: 'address' },
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'EXECUTION_END_OFFSET',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'EXECUTION_START_OFFSET',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'PROPOSAL_SPONSOR_THRESHOLD',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'QUORUM',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'SPONSOR_LOCKOUT_TIME',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'SPONSOR_WINDOW',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'STAKING_CONTRACT',
outputs: [{ internalType: 'contract Staking', name: '', type: 'address' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'VOTING_NAY_END_OFFSET',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'VOTING_START_OFFSET',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'VOTING_YAY_END_OFFSET',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [{ internalType: 'uint256', name: '_id', type: 'uint256' }],
name: 'callVote',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{ internalType: 'string', name: '_proposalDocument', type: 'string' },
{
components: [
{ internalType: 'address', name: 'callContract', type: 'address' },
{ internalType: 'bytes', name: 'data', type: 'bytes' },
{ internalType: 'uint256', name: 'value', type: 'uint256' },
],
internalType: 'struct Voting.Call[]',
name: '_actions',
type: 'tuple[]',
},
],
name: 'createProposal',

@@ -92,25 +278,134 @@ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],

type: 'function',
}, {
inputs: [{ internalType: 'uint256', name: '_id', type: 'uint256' }], name: 'executeProposal', outputs: [], stateMutability: 'nonpayable', type: 'function',
}, {
},
{
inputs: [{ internalType: 'uint256', name: '_id', type: 'uint256' }],
name: 'executeProposal',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [{ internalType: 'uint256', name: '_id', type: 'uint256' }],
name: 'getActions',
outputs: [{
components: [{ internalType: 'address', name: 'callContract', type: 'address' }, { internalType: 'bytes', name: 'data', type: 'bytes' }, { internalType: 'uint256', name: 'value', type: 'uint256' }], internalType: 'struct Voting.Call[]', name: '', type: 'tuple[]',
}],
outputs: [
{
components: [
{ internalType: 'address', name: 'callContract', type: 'address' },
{ internalType: 'bytes', name: 'data', type: 'bytes' },
{ internalType: 'uint256', name: 'value', type: 'uint256' },
],
internalType: 'struct Voting.Call[]',
name: '',
type: 'tuple[]',
},
],
stateMutability: 'view',
type: 'function',
}, {
inputs: [{ internalType: 'uint256', name: '_id', type: 'uint256' }, { internalType: 'address', name: '_account', type: 'address' }], name: 'getSponsored', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function',
}, {
inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], name: 'proposals', outputs: [{ internalType: 'address', name: 'proposer', type: 'address' }, { internalType: 'string', name: 'proposalDocument', type: 'string' }, { internalType: 'uint256', name: 'publishTime', type: 'uint256' }, { internalType: 'uint256', name: 'voteCallTime', type: 'uint256' }, { internalType: 'uint256', name: 'sponsorship', type: 'uint256' }, { internalType: 'bool', name: 'executed', type: 'bool' }, { internalType: 'uint256', name: 'yayVotes', type: 'uint256' }, { internalType: 'uint256', name: 'nayVotes', type: 'uint256' }, { internalType: 'uint256', name: 'sponsorInterval', type: 'uint256' }, { internalType: 'uint256', name: 'votingInterval', type: 'uint256' }], stateMutability: 'view', type: 'function',
}, {
inputs: [], name: 'proposalsLength', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], stateMutability: 'view', type: 'function',
}, {
inputs: [{ internalType: 'uint256', name: '_id', type: 'uint256' }, { internalType: 'uint256', name: '_amount', type: 'uint256' }, { internalType: 'uint256', name: '_hint', type: 'uint256' }], name: 'sponsorProposal', outputs: [], stateMutability: 'nonpayable', type: 'function',
}, {
inputs: [{ internalType: 'uint256', name: '_id', type: 'uint256' }, { internalType: 'uint256', name: '_amount', type: 'uint256' }], name: 'unsponsorProposal', outputs: [], stateMutability: 'nonpayable', type: 'function',
}, {
inputs: [{ internalType: 'uint256', name: '_id', type: 'uint256' }, { internalType: 'uint256', name: '_amount', type: 'uint256' }, { internalType: 'bool', name: '_affirmative', type: 'bool' }, { internalType: 'uint256', name: '_hint', type: 'uint256' }], name: 'vote', outputs: [], stateMutability: 'nonpayable', type: 'function',
}];
},
{
inputs: [
{ internalType: 'uint256', name: '_id', type: 'uint256' },
{ internalType: 'address', name: '_account', type: 'address' },
],
name: 'getSponsored',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{ internalType: 'uint256', name: '_id', type: 'uint256' },
{ internalType: 'address', name: '_account', type: 'address' },
],
name: 'getVotes',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [{ internalType: 'address', name: '', type: 'address' }],
name: 'lastSponsored',
outputs: [
{ internalType: 'uint256', name: 'lastSponsorTime', type: 'uint256' },
{ internalType: 'uint256', name: 'proposalID', type: 'uint256' },
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
name: 'proposals',
outputs: [
{ internalType: 'bool', name: 'executed', type: 'bool' },
{ internalType: 'address', name: 'proposer', type: 'address' },
{ internalType: 'string', name: 'proposalDocument', type: 'string' },
{ internalType: 'uint256', name: 'publishTime', type: 'uint256' },
{ internalType: 'uint256', name: 'voteCallTime', type: 'uint256' },
{ internalType: 'uint256', name: 'sponsorship', type: 'uint256' },
{ internalType: 'uint256', name: 'yayVotes', type: 'uint256' },
{ internalType: 'uint256', name: 'nayVotes', type: 'uint256' },
{ internalType: 'uint256', name: 'sponsorInterval', type: 'uint256' },
{ internalType: 'uint256', name: 'votingInterval', type: 'uint256' },
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'proposalsLength',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [{ internalType: 'address', name: '_votingKey', type: 'address' }],
name: 'setVotingKey',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{ internalType: 'uint256', name: '_id', type: 'uint256' },
{ internalType: 'uint256', name: '_amount', type: 'uint256' },
{ internalType: 'address', name: '_account', type: 'address' },
{ internalType: 'uint256', name: '_hint', type: 'uint256' },
],
name: 'sponsorProposal',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{ internalType: 'uint256', name: '_id', type: 'uint256' },
{ internalType: 'uint256', name: '_amount', type: 'uint256' },
{ internalType: 'address', name: '_account', type: 'address' },
],
name: 'unsponsorProposal',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{ internalType: 'uint256', name: '_id', type: 'uint256' },
{ internalType: 'uint256', name: '_amount', type: 'uint256' },
{ internalType: 'bool', name: '_affirmative', type: 'bool' },
{ internalType: 'address', name: '_account', type: 'address' },
{ internalType: 'uint256', name: '_hint', type: 'uint256' },
],
name: 'vote',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [{ internalType: 'address', name: '', type: 'address' }],
name: 'votingKey',
outputs: [{ internalType: 'address', name: '', type: 'address' }],
stateMutability: 'view',
type: 'function',
},
];
exports.abi = abi;
import type { ChainConfig } from '../types';
declare const chainConfig: ChainConfig;
export { chainConfig, };
export { chainConfig };

@@ -9,2 +9,10 @@ "use strict";

},
governorRewardsImplementation: {
address: '0x7D9ef64f35B6Afda8d258d1d2548a9aC997e35A1',
deploymentBlock: 21186863,
},
governorRewardsProxy: {
address: '0xd0198Dde1187b12aF01a743d9e9f2B4B84e8f59b',
deploymentBlock: 21186859,
},
implementation: {

@@ -30,11 +38,15 @@ address: '0xb8af889809211fb9496de885240593c1a9efd3a9',

},
treasury: {
address: '0x19B620929f97b7b990801496c3b361CA5dEf8C71',
deploymentBlock: 11643059,
treasuryImplementation: {
address: '0x1a73E89D101Ea0083691A624962bb86831EEC757',
deploymentBlock: 21186823,
},
treasuryProxy: {
address: '0xdca05161eE5b5FA6DF170191c88857E70FFB4094',
deploymentBlock: 21186833,
},
voting: {
address: '0x569C15b356D3bA9c9f407945b12C867f7C3608C9',
deploymentBlock: 11643058,
address: '0xc3f2C8F9d5F0705De706b1302B7a039e1e11aC88',
deploymentBlock: 21186883,
},
};
exports.chainConfig = chainConfig;
import type { ChainConfig } from '../types';
declare const chainConfig: ChainConfig;
export { chainConfig, };
export { chainConfig };

@@ -9,2 +9,10 @@ "use strict";

},
governorRewardsImplementation: {
address: '0x27d30e803a0ec079daa3a2e6c3590cca9f63c9d8',
deploymentBlock: 15505787,
},
governorRewardsProxy: {
address: '0xa353bc0454931ac46fd90c8ef27f908ab9e34686',
deploymentBlock: 15505785,
},
implementation: {

@@ -30,11 +38,15 @@ address: '0xbcfa4de73afb071c9ff18a20a22f818e657c541a',

},
treasury: {
address: '0xc851fbe0f07a326ce0326ccc70c2a62732e74d6c',
deploymentBlock: 12802679,
treasuryImplementation: {
address: '0xa092c7577354ea82a6c7e55b423c3dd80f0df255',
deploymentBlock: 15138801,
},
treasuryProxy: {
address: '0xE8A8B458BcD1Ececc6b6b58F80929b29cCecFF40',
deploymentBlock: 15138802,
},
voting: {
address: '0xfc4b580c9bda2eef4e94d9fb4bcb1f7a61660cf9',
deploymentBlock: 12791440,
address: '0xc480F68A3dcC3EdD82134FAB45C14A0FcF1dA3CC',
deploymentBlock: 15505853,
},
};
exports.chainConfig = chainConfig;
import type { ChainConfig } from '../types';
declare const chainConfig: ChainConfig;
export { chainConfig, };
export { chainConfig };

@@ -9,2 +9,10 @@ "use strict";

},
governorRewardsImplementation: {
address: '0x7D9ef64f35B6Afda8d258d1d2548a9aC997e35A1',
deploymentBlock: 32895102,
},
governorRewardsProxy: {
address: '0xd0198Dde1187b12aF01a743d9e9f2B4B84e8f59b',
deploymentBlock: 32895098,
},
implementation: {

@@ -30,11 +38,15 @@ address: '0x280e417ab3cafc378f3e6f91148fd8ef766d4c95',

},
treasury: {
address: '0x7C956dB76b4Bd483F96fcE6beA3615f263aFD333',
deploymentBlock: 20336206,
treasuryImplementation: {
address: '0x1a73E89D101Ea0083691A624962bb86831EEC757',
deploymentBlock: 32895072,
},
treasuryProxy: {
address: '0xdca05161eE5b5FA6DF170191c88857E70FFB4094',
deploymentBlock: 32895076,
},
voting: {
address: '0x707C42119a0a4bC5B60ba140b39FA08ADF1EFb61',
deploymentBlock: 20336202,
address: '0xc3f2C8F9d5F0705De706b1302B7a039e1e11aC88',
deploymentBlock: 32895118,
},
};
exports.chainConfig = chainConfig;

@@ -7,8 +7,6 @@ import type { ABIs } from './types';

polygon: import("./types").ChainConfig;
ropsten: import("./types").ChainConfig;
1: import("./types").ChainConfig;
3: import("./types").ChainConfig;
56: import("./types").ChainConfig;
137: import("./types").ChainConfig;
};
export { chainConfigs, abis, };
export { chainConfigs, abis };

@@ -7,3 +7,2 @@ "use strict";

const polygon_1 = require("./chains/polygon");
const ropsten_1 = require("./chains/ropsten");
const delegator_1 = require("./abi/delegator");

@@ -15,4 +14,7 @@ const implementation_1 = require("./abi/implementation");

const staking_1 = require("./abi/staking");
const treasury_1 = require("./abi/treasury");
const voting_1 = require("./abi/voting");
const treasuryImplementation_1 = require("./abi/treasuryImplementation");
const treasuryProxy_1 = require("./abi/treasuryProxy");
const governorRewardsImplementation_1 = require("./abi/governorRewardsImplementation");
const governorRewardsProxy_1 = require("./abi/governorRewardsProxy");
const abis = {

@@ -25,4 +27,7 @@ delegator: delegator_1.abi,

staking: staking_1.abi,
treasury: treasury_1.abi,
voting: voting_1.abi,
treasuryImplementation: treasuryImplementation_1.abi,
treasuryProxy: treasuryProxy_1.abi,
governorRewardsImplementation: governorRewardsImplementation_1.abi,
governorRewardsProxy: governorRewardsProxy_1.abi,
};

@@ -32,3 +37,2 @@ exports.abis = abis;

1: ethereum_1.chainConfig,
3: ropsten_1.chainConfig,
56: binance_1.chainConfig,

@@ -41,5 +45,4 @@ 137: polygon_1.chainConfig,

polygon: polygon_1.chainConfig,
ropsten: ropsten_1.chainConfig,
};
const chainConfigs = Object.assign(Object.assign({}, chainID), name);
exports.chainConfigs = chainConfigs;

@@ -1,2 +0,2 @@

declare type Contracts = 'delegator' | 'implementation' | 'proxy' | 'proxyAdmin' | 'rail' | 'staking' | 'treasury' | 'voting';
declare type Contracts = 'delegator' | 'governorRewardsImplementation' | 'governorRewardsProxy' | 'implementation' | 'proxy' | 'proxyAdmin' | 'rail' | 'staking' | 'treasuryImplementation' | 'treasuryProxy' | 'voting';
export declare type ContractConfig = {

@@ -3,0 +3,0 @@ address: string;

{
"name": "@railgun-community/deployments",
"version": "0.1.0",
"version": "0.2.0",
"description": "Railgun deployment addresses and artifacts",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc