Socket
Socket
Sign inDemoInstall

@celo/abis

Package Overview
Dependencies
Maintainers
0
Versions
119
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@celo/abis - npm Package Compare versions

Comparing version 12.0.0-canary.24 to 12.0.0-epoch-manager.0

dist/CeloUnreleasedTreasure.json

46

dist/cjs/Election.js

@@ -23,2 +23,8 @@ "use strict";

anonymous: false,
inputs: [{ name: '_blockedBy', internalType: 'address', type: 'address', indexed: true }],
name: 'BlockedBySet',
},
{
type: 'event',
anonymous: false,
inputs: [

@@ -210,2 +216,11 @@ { name: 'electabilityThreshold', internalType: 'uint256', type: 'uint256', indexed: false },

inputs: [],
name: 'getBlockedbyContract',
outputs: [{ name: '', internalType: 'address', type: 'address' }],
},
{
constant: true,
payable: false,
stateMutability: 'view',
type: 'function',
inputs: [],
name: 'getEpochNumber',

@@ -274,2 +289,11 @@ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],

inputs: [],
name: 'isBlocked',
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
},
{
constant: true,
payable: false,
stateMutability: 'view',
type: 'function',
inputs: [],
name: 'isL2',

@@ -364,2 +388,11 @@ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],

type: 'function',
inputs: [{ name: '_blockedBy', internalType: 'address', type: 'address' }],
name: 'setBlockedByContract',
outputs: [],
},
{
constant: false,
payable: false,
stateMutability: 'nonpayable',
type: 'function',
inputs: [{ name: 'registryAddress', internalType: 'address', type: 'address' }],

@@ -639,2 +672,15 @@ name: 'setRegistry',

{ name: 'totalEpochRewards', internalType: 'uint256', type: 'uint256' },
{ name: 'groupScore', internalType: 'uint256', type: 'uint256' },
],
name: 'getGroupEpochRewards',
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
},
{
constant: true,
payable: false,
stateMutability: 'view',
type: 'function',
inputs: [
{ name: 'group', internalType: 'address', type: 'address' },
{ name: 'totalEpochRewards', internalType: 'uint256', type: 'uint256' },
{ name: 'uptimes', internalType: 'uint256[]', type: 'uint256[]' },

@@ -641,0 +687,0 @@ ],

98

dist/cjs/ICeloToken.js

@@ -6,63 +6,17 @@ "use strict";

{
type: 'event',
anonymous: false,
inputs: [
{ name: 'owner', internalType: 'address', type: 'address', indexed: true },
{ name: 'spender', internalType: 'address', type: 'address', indexed: true },
{ name: 'value', internalType: 'uint256', type: 'uint256', indexed: false },
],
name: 'Approval',
},
{
type: 'event',
anonymous: false,
inputs: [
{ name: 'from', internalType: 'address', type: 'address', indexed: true },
{ name: 'to', internalType: 'address', type: 'address', indexed: true },
{ name: 'value', internalType: 'uint256', type: 'uint256', indexed: false },
],
name: 'Transfer',
},
{
stateMutability: 'view',
type: 'function',
inputs: [
{ name: 'owner', internalType: 'address', type: 'address' },
{ name: 'spender', internalType: 'address', type: 'address' },
],
name: 'allowance',
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
},
{
stateMutability: 'nonpayable',
type: 'function',
inputs: [
{ name: 'spender', internalType: 'address', type: 'address' },
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
],
name: 'approve',
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
inputs: [{ name: '', internalType: 'address', type: 'address' }],
name: 'initialize',
outputs: [],
},
{
stateMutability: 'view',
type: 'function',
inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
name: 'balanceOf',
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
},
{
stateMutability: 'view',
type: 'function',
inputs: [],
name: 'totalSupply',
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
},
{
stateMutability: 'nonpayable',
type: 'function',
inputs: [
{ name: 'to', internalType: 'address', type: 'address' },
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
{ name: '', internalType: 'address', type: 'address' },
{ name: '', internalType: 'uint256', type: 'uint256' },
{ name: '', internalType: 'string', type: 'string' },
],
name: 'transfer',
name: 'transferWithComment',
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],

@@ -73,41 +27,27 @@ },

type: 'function',
inputs: [
{ name: 'from', internalType: 'address', type: 'address' },
{ name: 'to', internalType: 'address', type: 'address' },
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
],
name: 'transferFrom',
inputs: [{ name: 'value', internalType: 'uint256', type: 'uint256' }],
name: 'burn',
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
},
{
stateMutability: 'nonpayable',
stateMutability: 'view',
type: 'function',
inputs: [{ name: 'registryAddress', internalType: 'address', type: 'address' }],
name: 'initialize',
outputs: [],
inputs: [],
name: 'name',
outputs: [{ name: '', internalType: 'string', type: 'string' }],
},
{
stateMutability: 'nonpayable',
stateMutability: 'view',
type: 'function',
inputs: [{ name: 'registryAddress', internalType: 'address', type: 'address' }],
name: 'setRegistry',
outputs: [],
inputs: [],
name: 'symbol',
outputs: [{ name: '', internalType: 'string', type: 'string' }],
},
{
stateMutability: 'nonpayable',
type: 'function',
inputs: [
{ name: 'to', internalType: 'address', type: 'address' },
{ name: 'value', internalType: 'uint256', type: 'uint256' },
],
name: 'mint',
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
},
{
stateMutability: 'view',
type: 'function',
inputs: [],
name: 'allocatedSupply',
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
name: 'decimals',
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
},
];

@@ -28,5 +28,6 @@ "use strict";

__exportStar(require("./Freezer.js"), exports);
__exportStar(require("./CeloDistributionSchedule.js"), exports);
__exportStar(require("./CeloUnreleasedTreasure.js"), exports);
__exportStar(require("./Election.js"), exports);
__exportStar(require("./EpochRewards.js"), exports);
__exportStar(require("./EpochManager.js"), exports);
__exportStar(require("./Governance.js"), exports);

@@ -33,0 +34,0 @@ __exportStar(require("./GovernanceApproverMultiSig.js"), exports);

@@ -25,2 +25,8 @@ "use strict";

anonymous: false,
inputs: [{ name: '_blockedBy', internalType: 'address', type: 'address', indexed: true }],
name: 'BlockedBySet',
},
{
type: 'event',
anonymous: false,
inputs: [

@@ -127,2 +133,11 @@ { name: 'delegator', internalType: 'address', type: 'address', indexed: true },

inputs: [],
name: 'getBlockedbyContract',
outputs: [{ name: '', internalType: 'address', type: 'address' }],
},
{
constant: true,
payable: false,
stateMutability: 'view',
type: 'function',
inputs: [],
name: 'initialized',

@@ -137,2 +152,11 @@ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],

inputs: [],
name: 'isBlocked',
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
},
{
constant: true,
payable: false,
stateMutability: 'view',
type: 'function',
inputs: [],
name: 'isOwner',

@@ -173,2 +197,11 @@ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],

type: 'function',
inputs: [{ name: '_blockedBy', internalType: 'address', type: 'address' }],
name: 'setBlockedByContract',
outputs: [],
},
{
constant: false,
payable: false,
stateMutability: 'nonpayable',
type: 'function',
inputs: [{ name: 'registryAddress', internalType: 'address', type: 'address' }],

@@ -175,0 +208,0 @@ name: 'setRegistry',

@@ -545,2 +545,11 @@ "use strict";

type: 'function',
inputs: [{ name: 'ecdsaPublicKey', internalType: 'bytes', type: 'bytes' }],
name: 'registerValidator',
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
},
{
constant: false,
payable: false,
stateMutability: 'nonpayable',
type: 'function',
inputs: [

@@ -904,2 +913,15 @@ { name: 'ecdsaPublicKey', internalType: 'bytes', type: 'bytes' },

payable: false,
stateMutability: 'view',
type: 'function',
inputs: [
{ name: 'account', internalType: 'address', type: 'address' },
{ name: 'score', internalType: 'uint256', type: 'uint256' },
{ name: 'maxPayment', internalType: 'uint256', type: 'uint256' },
],
name: 'computeEpochReward',
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
},
{
constant: true,
payable: false,
stateMutability: 'pure',

@@ -1054,2 +1076,11 @@ type: 'function',

inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
name: 'getValidatorsGroup',
outputs: [{ name: 'affiliation', internalType: 'address', type: 'address' }],
},
{
constant: true,
payable: false,
stateMutability: 'view',
type: 'function',
inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
name: 'getGroupNumMembers',

@@ -1056,0 +1087,0 @@ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],

@@ -29,2 +29,15 @@ "use strict";

{
indexed: true,
internalType: 'address',
name: '_blockedBy',
type: 'address',
},
],
name: 'BlockedBySet',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: false,

@@ -319,2 +332,11 @@ internalType: 'uint256',

inputs: [],
name: 'getBlockedbyContract',
outputs: [{ internalType: 'address', name: '', type: 'address' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'getEpochNumber',

@@ -383,2 +405,11 @@ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],

inputs: [],
name: 'isBlocked',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'isL2',

@@ -473,2 +504,11 @@ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],

constant: false,
inputs: [{ internalType: 'address', name: '_blockedBy', type: 'address' }],
name: 'setBlockedByContract',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [{ internalType: 'address', name: 'registryAddress', type: 'address' }],

@@ -764,2 +804,15 @@ name: 'setRegistry',

{ internalType: 'uint256', name: 'totalEpochRewards', type: 'uint256' },
{ internalType: 'uint256', name: 'groupScore', type: 'uint256' },
],
name: 'getGroupEpochRewards',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [
{ internalType: 'address', name: 'group', type: 'address' },
{ internalType: 'uint256', name: 'totalEpochRewards', type: 'uint256' },
{ internalType: 'uint256[]', name: 'uptimes', type: 'uint256[]' },

@@ -766,0 +819,0 @@ ],

@@ -48,2 +48,15 @@ "use strict";

internalType: 'address',
name: '_blockedBy',
type: 'address',
},
],
name: 'BlockedBySet',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'address',
name: 'delegator',

@@ -274,2 +287,11 @@ type: 'address',

inputs: [],
name: 'getBlockedbyContract',
outputs: [{ internalType: 'address', name: '', type: 'address' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'initialized',

@@ -284,2 +306,11 @@ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],

inputs: [],
name: 'isBlocked',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'isOwner',

@@ -320,2 +351,11 @@ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],

constant: false,
inputs: [{ internalType: 'address', name: '_blockedBy', type: 'address' }],
name: 'setBlockedByContract',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [{ internalType: 'address', name: 'registryAddress', type: 'address' }],

@@ -322,0 +362,0 @@ name: 'setRegistry',

@@ -783,2 +783,11 @@ "use strict";

constant: false,
inputs: [{ internalType: 'bytes', name: 'ecdsaPublicKey', type: 'bytes' }],
name: 'registerValidator',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [

@@ -1144,2 +1153,15 @@ { internalType: 'bytes', name: 'ecdsaPublicKey', type: 'bytes' },

constant: true,
inputs: [
{ internalType: 'address', name: 'account', type: 'address' },
{ internalType: 'uint256', name: 'score', type: 'uint256' },
{ internalType: 'uint256', name: 'maxPayment', type: 'uint256' },
],
name: 'computeEpochReward',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],

@@ -1292,2 +1314,11 @@ name: 'getVersionNumber',

inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
name: 'getValidatorsGroup',
outputs: [{ internalType: 'address', name: 'affiliation', type: 'address' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
name: 'getGroupNumMembers',

@@ -1294,0 +1325,0 @@ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],

@@ -39,2 +39,15 @@ {

{
"indexed": true,
"internalType": "address",
"name": "_blockedBy",
"type": "address"
}
],
"name": "BlockedBySet",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,

@@ -453,2 +466,17 @@ "internalType": "uint256",

"inputs": [],
"name": "getBlockedbyContract",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "getEpochNumber",

@@ -583,2 +611,17 @@ "outputs": [

"inputs": [],
"name": "isBlocked",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "isL2",

@@ -742,2 +785,17 @@ "outputs": [

"internalType": "address",
"name": "_blockedBy",
"type": "address"
}
],
"name": "setBlockedByContract",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "registryAddress",

@@ -1357,2 +1415,33 @@ "type": "address"

{
"internalType": "uint256",
"name": "groupScore",
"type": "uint256"
}
],
"name": "getGroupEpochRewards",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "address",
"name": "group",
"type": "address"
},
{
"internalType": "uint256",
"name": "totalEpochRewards",
"type": "uint256"
},
{
"internalType": "uint256[]",

@@ -1359,0 +1448,0 @@ "name": "uptimes",

@@ -20,2 +20,8 @@ export const electionABI = [

anonymous: false,
inputs: [{ name: '_blockedBy', internalType: 'address', type: 'address', indexed: true }],
name: 'BlockedBySet',
},
{
type: 'event',
anonymous: false,
inputs: [

@@ -207,2 +213,11 @@ { name: 'electabilityThreshold', internalType: 'uint256', type: 'uint256', indexed: false },

inputs: [],
name: 'getBlockedbyContract',
outputs: [{ name: '', internalType: 'address', type: 'address' }],
},
{
constant: true,
payable: false,
stateMutability: 'view',
type: 'function',
inputs: [],
name: 'getEpochNumber',

@@ -271,2 +286,11 @@ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],

inputs: [],
name: 'isBlocked',
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
},
{
constant: true,
payable: false,
stateMutability: 'view',
type: 'function',
inputs: [],
name: 'isL2',

@@ -361,2 +385,11 @@ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],

type: 'function',
inputs: [{ name: '_blockedBy', internalType: 'address', type: 'address' }],
name: 'setBlockedByContract',
outputs: [],
},
{
constant: false,
payable: false,
stateMutability: 'nonpayable',
type: 'function',
inputs: [{ name: 'registryAddress', internalType: 'address', type: 'address' }],

@@ -636,2 +669,15 @@ name: 'setRegistry',

{ name: 'totalEpochRewards', internalType: 'uint256', type: 'uint256' },
{ name: 'groupScore', internalType: 'uint256', type: 'uint256' },
],
name: 'getGroupEpochRewards',
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
},
{
constant: true,
payable: false,
stateMutability: 'view',
type: 'function',
inputs: [
{ name: 'group', internalType: 'address', type: 'address' },
{ name: 'totalEpochRewards', internalType: 'uint256', type: 'uint256' },
{ name: 'uptimes', internalType: 'uint256[]', type: 'uint256[]' },

@@ -638,0 +684,0 @@ ],

export const iCeloTokenABI = [
{
type: 'event',
anonymous: false,
inputs: [
{ name: 'owner', internalType: 'address', type: 'address', indexed: true },
{ name: 'spender', internalType: 'address', type: 'address', indexed: true },
{ name: 'value', internalType: 'uint256', type: 'uint256', indexed: false },
],
name: 'Approval',
},
{
type: 'event',
anonymous: false,
inputs: [
{ name: 'from', internalType: 'address', type: 'address', indexed: true },
{ name: 'to', internalType: 'address', type: 'address', indexed: true },
{ name: 'value', internalType: 'uint256', type: 'uint256', indexed: false },
],
name: 'Transfer',
},
{
stateMutability: 'view',
type: 'function',
inputs: [
{ name: 'owner', internalType: 'address', type: 'address' },
{ name: 'spender', internalType: 'address', type: 'address' },
],
name: 'allowance',
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
},
{
stateMutability: 'nonpayable',
type: 'function',
inputs: [
{ name: 'spender', internalType: 'address', type: 'address' },
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
],
name: 'approve',
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
inputs: [{ name: '', internalType: 'address', type: 'address' }],
name: 'initialize',
outputs: [],
},
{
stateMutability: 'view',
type: 'function',
inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
name: 'balanceOf',
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
},
{
stateMutability: 'view',
type: 'function',
inputs: [],
name: 'totalSupply',
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
},
{
stateMutability: 'nonpayable',
type: 'function',
inputs: [
{ name: 'to', internalType: 'address', type: 'address' },
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
{ name: '', internalType: 'address', type: 'address' },
{ name: '', internalType: 'uint256', type: 'uint256' },
{ name: '', internalType: 'string', type: 'string' },
],
name: 'transfer',
name: 'transferWithComment',
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],

@@ -69,41 +23,27 @@ },

type: 'function',
inputs: [
{ name: 'from', internalType: 'address', type: 'address' },
{ name: 'to', internalType: 'address', type: 'address' },
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
],
name: 'transferFrom',
inputs: [{ name: 'value', internalType: 'uint256', type: 'uint256' }],
name: 'burn',
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
},
{
stateMutability: 'nonpayable',
stateMutability: 'view',
type: 'function',
inputs: [{ name: 'registryAddress', internalType: 'address', type: 'address' }],
name: 'initialize',
outputs: [],
inputs: [],
name: 'name',
outputs: [{ name: '', internalType: 'string', type: 'string' }],
},
{
stateMutability: 'nonpayable',
stateMutability: 'view',
type: 'function',
inputs: [{ name: 'registryAddress', internalType: 'address', type: 'address' }],
name: 'setRegistry',
outputs: [],
inputs: [],
name: 'symbol',
outputs: [{ name: '', internalType: 'string', type: 'string' }],
},
{
stateMutability: 'nonpayable',
type: 'function',
inputs: [
{ name: 'to', internalType: 'address', type: 'address' },
{ name: 'value', internalType: 'uint256', type: 'uint256' },
],
name: 'mint',
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
},
{
stateMutability: 'view',
type: 'function',
inputs: [],
name: 'allocatedSupply',
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
name: 'decimals',
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
},
];

@@ -12,5 +12,6 @@ export * from './Accounts.js';

export * from './Freezer.js';
export * from './CeloDistributionSchedule.js';
export * from './CeloUnreleasedTreasure.js';
export * from './Election.js';
export * from './EpochRewards.js';
export * from './EpochManager.js';
export * from './Governance.js';

@@ -17,0 +18,0 @@ export * from './GovernanceApproverMultiSig.js';

@@ -22,2 +22,8 @@ export const lockedGoldABI = [

anonymous: false,
inputs: [{ name: '_blockedBy', internalType: 'address', type: 'address', indexed: true }],
name: 'BlockedBySet',
},
{
type: 'event',
anonymous: false,
inputs: [

@@ -124,2 +130,11 @@ { name: 'delegator', internalType: 'address', type: 'address', indexed: true },

inputs: [],
name: 'getBlockedbyContract',
outputs: [{ name: '', internalType: 'address', type: 'address' }],
},
{
constant: true,
payable: false,
stateMutability: 'view',
type: 'function',
inputs: [],
name: 'initialized',

@@ -134,2 +149,11 @@ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],

inputs: [],
name: 'isBlocked',
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
},
{
constant: true,
payable: false,
stateMutability: 'view',
type: 'function',
inputs: [],
name: 'isOwner',

@@ -170,2 +194,11 @@ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],

type: 'function',
inputs: [{ name: '_blockedBy', internalType: 'address', type: 'address' }],
name: 'setBlockedByContract',
outputs: [],
},
{
constant: false,
payable: false,
stateMutability: 'nonpayable',
type: 'function',
inputs: [{ name: 'registryAddress', internalType: 'address', type: 'address' }],

@@ -172,0 +205,0 @@ name: 'setRegistry',

@@ -542,2 +542,11 @@ export const validatorsABI = [

type: 'function',
inputs: [{ name: 'ecdsaPublicKey', internalType: 'bytes', type: 'bytes' }],
name: 'registerValidator',
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
},
{
constant: false,
payable: false,
stateMutability: 'nonpayable',
type: 'function',
inputs: [

@@ -901,2 +910,15 @@ { name: 'ecdsaPublicKey', internalType: 'bytes', type: 'bytes' },

payable: false,
stateMutability: 'view',
type: 'function',
inputs: [
{ name: 'account', internalType: 'address', type: 'address' },
{ name: 'score', internalType: 'uint256', type: 'uint256' },
{ name: 'maxPayment', internalType: 'uint256', type: 'uint256' },
],
name: 'computeEpochReward',
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
},
{
constant: true,
payable: false,
stateMutability: 'pure',

@@ -1051,2 +1073,11 @@ type: 'function',

inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
name: 'getValidatorsGroup',
outputs: [{ name: 'affiliation', internalType: 'address', type: 'address' }],
},
{
constant: true,
payable: false,
stateMutability: 'view',
type: 'function',
inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
name: 'getGroupNumMembers',

@@ -1053,0 +1084,0 @@ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],

@@ -26,2 +26,15 @@ export const ABI = [

{
indexed: true,
internalType: 'address',
name: '_blockedBy',
type: 'address',
},
],
name: 'BlockedBySet',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: false,

@@ -316,2 +329,11 @@ internalType: 'uint256',

inputs: [],
name: 'getBlockedbyContract',
outputs: [{ internalType: 'address', name: '', type: 'address' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'getEpochNumber',

@@ -380,2 +402,11 @@ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],

inputs: [],
name: 'isBlocked',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'isL2',

@@ -470,2 +501,11 @@ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],

constant: false,
inputs: [{ internalType: 'address', name: '_blockedBy', type: 'address' }],
name: 'setBlockedByContract',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [{ internalType: 'address', name: 'registryAddress', type: 'address' }],

@@ -761,2 +801,15 @@ name: 'setRegistry',

{ internalType: 'uint256', name: 'totalEpochRewards', type: 'uint256' },
{ internalType: 'uint256', name: 'groupScore', type: 'uint256' },
],
name: 'getGroupEpochRewards',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [
{ internalType: 'address', name: 'group', type: 'address' },
{ internalType: 'uint256', name: 'totalEpochRewards', type: 'uint256' },
{ internalType: 'uint256[]', name: 'uptimes', type: 'uint256[]' },

@@ -763,0 +816,0 @@ ],

@@ -45,2 +45,15 @@ export const ABI = [

internalType: 'address',
name: '_blockedBy',
type: 'address',
},
],
name: 'BlockedBySet',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'address',
name: 'delegator',

@@ -271,2 +284,11 @@ type: 'address',

inputs: [],
name: 'getBlockedbyContract',
outputs: [{ internalType: 'address', name: '', type: 'address' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'initialized',

@@ -281,2 +303,11 @@ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],

inputs: [],
name: 'isBlocked',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],
name: 'isOwner',

@@ -317,2 +348,11 @@ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],

constant: false,
inputs: [{ internalType: 'address', name: '_blockedBy', type: 'address' }],
name: 'setBlockedByContract',
outputs: [],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [{ internalType: 'address', name: 'registryAddress', type: 'address' }],

@@ -319,0 +359,0 @@ name: 'setRegistry',

@@ -780,2 +780,11 @@ export const ABI = [

constant: false,
inputs: [{ internalType: 'bytes', name: 'ecdsaPublicKey', type: 'bytes' }],
name: 'registerValidator',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
payable: false,
stateMutability: 'nonpayable',
type: 'function',
},
{
constant: false,
inputs: [

@@ -1141,2 +1150,15 @@ { internalType: 'bytes', name: 'ecdsaPublicKey', type: 'bytes' },

constant: true,
inputs: [
{ internalType: 'address', name: 'account', type: 'address' },
{ internalType: 'uint256', name: 'score', type: 'uint256' },
{ internalType: 'uint256', name: 'maxPayment', type: 'uint256' },
],
name: 'computeEpochReward',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [],

@@ -1289,2 +1311,11 @@ name: 'getVersionNumber',

inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
name: 'getValidatorsGroup',
outputs: [{ internalType: 'address', name: 'affiliation', type: 'address' }],
payable: false,
stateMutability: 'view',
type: 'function',
},
{
constant: true,
inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
name: 'getGroupNumMembers',

@@ -1291,0 +1322,0 @@ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],

@@ -5,89 +5,33 @@ {

{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "owner",
"name": "",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "spender",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "value",
"type": "uint256"
}
],
"name": "Approval",
"type": "event"
"name": "initialize",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "from",
"name": "",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "value",
"name": "",
"type": "uint256"
}
],
"name": "Transfer",
"type": "event"
},
{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "address",
"name": "spender",
"type": "address"
}
],
"name": "allowance",
"outputs": [
{
"internalType": "uint256",
"internalType": "string",
"name": "",
"type": "uint256"
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "spender",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "approve",
"name": "transferWithComment",
"outputs": [

@@ -106,47 +50,10 @@ {

{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "balanceOf",
"outputs": [
{
"internalType": "uint256",
"name": "",
"name": "value",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "totalSupply",
"name": "burn",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "transfer",
"outputs": [
{
"internalType": "bool",

@@ -161,78 +68,25 @@ "name": "",

{
"inputs": [
{
"internalType": "address",
"name": "from",
"type": "address"
},
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "transferFrom",
"inputs": [],
"name": "name",
"outputs": [
{
"internalType": "bool",
"internalType": "string",
"name": "",
"type": "bool"
"type": "string"
}
],
"stateMutability": "nonpayable",
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "registryAddress",
"type": "address"
}
],
"name": "initialize",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "registryAddress",
"type": "address"
}
],
"name": "setRegistry",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "value",
"type": "uint256"
}
],
"name": "mint",
"inputs": [],
"name": "symbol",
"outputs": [
{
"internalType": "bool",
"internalType": "string",
"name": "",
"type": "bool"
"type": "string"
}
],
"stateMutability": "nonpayable",
"stateMutability": "view",
"type": "function"

@@ -242,8 +96,8 @@ },

"inputs": [],
"name": "allocatedSupply",
"name": "decimals",
"outputs": [
{
"internalType": "uint256",
"internalType": "uint8",
"name": "",
"type": "uint256"
"type": "uint8"
}

@@ -250,0 +104,0 @@ ],

@@ -53,2 +53,15 @@ {

"internalType": "address",
"name": "_blockedBy",
"type": "address"
}
],
"name": "BlockedBySet",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "delegator",

@@ -279,2 +292,17 @@ "type": "address"

"inputs": [],
"name": "getBlockedbyContract",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "initialized",

@@ -295,2 +323,17 @@ "outputs": [

"inputs": [],
"name": "isBlocked",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "isOwner",

@@ -352,2 +395,17 @@ "outputs": [

"internalType": "address",
"name": "_blockedBy",
"type": "address"
}
],
"name": "setBlockedByContract",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "registryAddress",

@@ -354,0 +412,0 @@ "type": "address"

@@ -29,2 +29,12 @@ export declare const electionABI: readonly [{

readonly inputs: readonly [{
readonly name: "_blockedBy";
readonly internalType: "address";
readonly type: "address";
readonly indexed: true;
}];
readonly name: "BlockedBySet";
}, {
readonly type: "event";
readonly anonymous: false;
readonly inputs: readonly [{
readonly name: "electabilityThreshold";

@@ -357,2 +367,14 @@ readonly internalType: "uint256";

readonly inputs: readonly [];
readonly name: "getBlockedbyContract";
readonly outputs: readonly [{
readonly name: "";
readonly internalType: "address";
readonly type: "address";
}];
}, {
readonly constant: true;
readonly payable: false;
readonly stateMutability: "view";
readonly type: "function";
readonly inputs: readonly [];
readonly name: "getEpochNumber";

@@ -458,2 +480,14 @@ readonly outputs: readonly [{

readonly inputs: readonly [];
readonly name: "isBlocked";
readonly outputs: readonly [{
readonly name: "";
readonly internalType: "bool";
readonly type: "bool";
}];
}, {
readonly constant: true;
readonly payable: false;
readonly stateMutability: "view";
readonly type: "function";
readonly inputs: readonly [];
readonly name: "isL2";

@@ -583,2 +617,14 @@ readonly outputs: readonly [{

readonly inputs: readonly [{
readonly name: "_blockedBy";
readonly internalType: "address";
readonly type: "address";
}];
readonly name: "setBlockedByContract";
readonly outputs: readonly [];
}, {
readonly constant: false;
readonly payable: false;
readonly stateMutability: "nonpayable";
readonly type: "function";
readonly inputs: readonly [{
readonly name: "registryAddress";

@@ -1064,2 +1110,26 @@ readonly internalType: "address";

}, {
readonly name: "groupScore";
readonly internalType: "uint256";
readonly type: "uint256";
}];
readonly name: "getGroupEpochRewards";
readonly outputs: readonly [{
readonly name: "";
readonly internalType: "uint256";
readonly type: "uint256";
}];
}, {
readonly constant: true;
readonly payable: false;
readonly stateMutability: "view";
readonly type: "function";
readonly inputs: readonly [{
readonly name: "group";
readonly internalType: "address";
readonly type: "address";
}, {
readonly name: "totalEpochRewards";
readonly internalType: "uint256";
readonly type: "uint256";
}, {
readonly name: "uptimes";

@@ -1066,0 +1136,0 @@ readonly internalType: "uint256[]";

export declare const iCeloTokenABI: readonly [{
readonly type: "event";
readonly anonymous: false;
readonly stateMutability: "nonpayable";
readonly type: "function";
readonly inputs: readonly [{
readonly name: "owner";
readonly name: "";
readonly internalType: "address";
readonly type: "address";
readonly indexed: true;
}, {
readonly name: "spender";
readonly internalType: "address";
readonly type: "address";
readonly indexed: true;
}, {
readonly name: "value";
readonly internalType: "uint256";
readonly type: "uint256";
readonly indexed: false;
}];
readonly name: "Approval";
readonly name: "initialize";
readonly outputs: readonly [];
}, {
readonly type: "event";
readonly anonymous: false;
readonly inputs: readonly [{
readonly name: "from";
readonly internalType: "address";
readonly type: "address";
readonly indexed: true;
}, {
readonly name: "to";
readonly internalType: "address";
readonly type: "address";
readonly indexed: true;
}, {
readonly name: "value";
readonly internalType: "uint256";
readonly type: "uint256";
readonly indexed: false;
}];
readonly name: "Transfer";
}, {
readonly stateMutability: "view";
readonly stateMutability: "nonpayable";
readonly type: "function";
readonly inputs: readonly [{
readonly name: "owner";
readonly name: "";
readonly internalType: "address";
readonly type: "address";
}, {
readonly name: "spender";
readonly internalType: "address";
readonly type: "address";
}];
readonly name: "allowance";
readonly outputs: readonly [{
readonly name: "";
readonly internalType: "uint256";
readonly type: "uint256";
}];
}, {
readonly stateMutability: "nonpayable";
readonly type: "function";
readonly inputs: readonly [{
readonly name: "spender";
readonly internalType: "address";
readonly type: "address";
}, {
readonly name: "amount";
readonly internalType: "uint256";
readonly type: "uint256";
readonly name: "";
readonly internalType: "string";
readonly type: "string";
}];
readonly name: "approve";
readonly name: "transferWithComment";
readonly outputs: readonly [{

@@ -78,38 +34,10 @@ readonly name: "";

}, {
readonly stateMutability: "view";
readonly type: "function";
readonly inputs: readonly [{
readonly name: "account";
readonly internalType: "address";
readonly type: "address";
}];
readonly name: "balanceOf";
readonly outputs: readonly [{
readonly name: "";
readonly internalType: "uint256";
readonly type: "uint256";
}];
}, {
readonly stateMutability: "view";
readonly type: "function";
readonly inputs: readonly [];
readonly name: "totalSupply";
readonly outputs: readonly [{
readonly name: "";
readonly internalType: "uint256";
readonly type: "uint256";
}];
}, {
readonly stateMutability: "nonpayable";
readonly type: "function";
readonly inputs: readonly [{
readonly name: "to";
readonly internalType: "address";
readonly type: "address";
}, {
readonly name: "amount";
readonly name: "value";
readonly internalType: "uint256";
readonly type: "uint256";
}];
readonly name: "transfer";
readonly name: "burn";
readonly outputs: readonly [{

@@ -121,60 +49,20 @@ readonly name: "";

}, {
readonly stateMutability: "nonpayable";
readonly stateMutability: "view";
readonly type: "function";
readonly inputs: readonly [{
readonly name: "from";
readonly internalType: "address";
readonly type: "address";
}, {
readonly name: "to";
readonly internalType: "address";
readonly type: "address";
}, {
readonly name: "amount";
readonly internalType: "uint256";
readonly type: "uint256";
}];
readonly name: "transferFrom";
readonly inputs: readonly [];
readonly name: "name";
readonly outputs: readonly [{
readonly name: "";
readonly internalType: "bool";
readonly type: "bool";
readonly internalType: "string";
readonly type: "string";
}];
}, {
readonly stateMutability: "nonpayable";
readonly stateMutability: "view";
readonly type: "function";
readonly inputs: readonly [{
readonly name: "registryAddress";
readonly internalType: "address";
readonly type: "address";
}];
readonly name: "initialize";
readonly outputs: readonly [];
}, {
readonly stateMutability: "nonpayable";
readonly type: "function";
readonly inputs: readonly [{
readonly name: "registryAddress";
readonly internalType: "address";
readonly type: "address";
}];
readonly name: "setRegistry";
readonly outputs: readonly [];
}, {
readonly stateMutability: "nonpayable";
readonly type: "function";
readonly inputs: readonly [{
readonly name: "to";
readonly internalType: "address";
readonly type: "address";
}, {
readonly name: "value";
readonly internalType: "uint256";
readonly type: "uint256";
}];
readonly name: "mint";
readonly inputs: readonly [];
readonly name: "symbol";
readonly outputs: readonly [{
readonly name: "";
readonly internalType: "bool";
readonly type: "bool";
readonly internalType: "string";
readonly type: "string";
}];

@@ -185,8 +73,8 @@ }, {

readonly inputs: readonly [];
readonly name: "allocatedSupply";
readonly name: "decimals";
readonly outputs: readonly [{
readonly name: "";
readonly internalType: "uint256";
readonly type: "uint256";
readonly internalType: "uint8";
readonly type: "uint8";
}];
}];

@@ -12,5 +12,6 @@ export * from './Accounts.js';

export * from './Freezer.js';
export * from './CeloDistributionSchedule.js';
export * from './CeloUnreleasedTreasure.js';
export * from './Election.js';
export * from './EpochRewards.js';
export * from './EpochManager.js';
export * from './Governance.js';

@@ -17,0 +18,0 @@ export * from './GovernanceApproverMultiSig.js';

@@ -39,2 +39,12 @@ export declare const lockedGoldABI: readonly [{

readonly inputs: readonly [{
readonly name: "_blockedBy";
readonly internalType: "address";
readonly type: "address";
readonly indexed: true;
}];
readonly name: "BlockedBySet";
}, {
readonly type: "event";
readonly anonymous: false;
readonly inputs: readonly [{
readonly name: "delegator";

@@ -222,2 +232,14 @@ readonly internalType: "address";

readonly inputs: readonly [];
readonly name: "getBlockedbyContract";
readonly outputs: readonly [{
readonly name: "";
readonly internalType: "address";
readonly type: "address";
}];
}, {
readonly constant: true;
readonly payable: false;
readonly stateMutability: "view";
readonly type: "function";
readonly inputs: readonly [];
readonly name: "initialized";

@@ -235,2 +257,14 @@ readonly outputs: readonly [{

readonly inputs: readonly [];
readonly name: "isBlocked";
readonly outputs: readonly [{
readonly name: "";
readonly internalType: "bool";
readonly type: "bool";
}];
}, {
readonly constant: true;
readonly payable: false;
readonly stateMutability: "view";
readonly type: "function";
readonly inputs: readonly [];
readonly name: "isOwner";

@@ -280,2 +314,14 @@ readonly outputs: readonly [{

readonly inputs: readonly [{
readonly name: "_blockedBy";
readonly internalType: "address";
readonly type: "address";
}];
readonly name: "setBlockedByContract";
readonly outputs: readonly [];
}, {
readonly constant: false;
readonly payable: false;
readonly stateMutability: "nonpayable";
readonly type: "function";
readonly inputs: readonly [{
readonly name: "registryAddress";

@@ -282,0 +328,0 @@ readonly internalType: "address";

@@ -885,2 +885,18 @@ export declare const validatorsABI: readonly [{

readonly type: "bytes";
}];
readonly name: "registerValidator";
readonly outputs: readonly [{
readonly name: "";
readonly internalType: "bool";
readonly type: "bool";
}];
}, {
readonly constant: false;
readonly payable: false;
readonly stateMutability: "nonpayable";
readonly type: "function";
readonly inputs: readonly [{
readonly name: "ecdsaPublicKey";
readonly internalType: "bytes";
readonly type: "bytes";
}, {

@@ -1476,2 +1492,26 @@ readonly name: "blsPublicKey";

readonly payable: false;
readonly stateMutability: "view";
readonly type: "function";
readonly inputs: readonly [{
readonly name: "account";
readonly internalType: "address";
readonly type: "address";
}, {
readonly name: "score";
readonly internalType: "uint256";
readonly type: "uint256";
}, {
readonly name: "maxPayment";
readonly internalType: "uint256";
readonly type: "uint256";
}];
readonly name: "computeEpochReward";
readonly outputs: readonly [{
readonly name: "";
readonly internalType: "uint256";
readonly type: "uint256";
}];
}, {
readonly constant: true;
readonly payable: false;
readonly stateMutability: "pure";

@@ -1732,2 +1772,18 @@ readonly type: "function";

}];
readonly name: "getValidatorsGroup";
readonly outputs: readonly [{
readonly name: "affiliation";
readonly internalType: "address";
readonly type: "address";
}];
}, {
readonly constant: true;
readonly payable: false;
readonly stateMutability: "view";
readonly type: "function";
readonly inputs: readonly [{
readonly name: "account";
readonly internalType: "address";
readonly type: "address";
}];
readonly name: "getGroupNumMembers";

@@ -1734,0 +1790,0 @@ readonly outputs: readonly [{

@@ -24,2 +24,3 @@ /// <reference types="node" />

getBlockNumberFromHeader(header: string | number[]): CeloTxObject<string>;
getBlockedbyContract(): CeloTxObject<string>;
getEpochNumber(): CeloTxObject<string>;

@@ -32,2 +33,3 @@ getEpochNumberOfBlock(blockNumber: number | string): CeloTxObject<string>;

initialized(): CeloTxObject<boolean>;
isBlocked(): CeloTxObject<boolean>;
isL2(): CeloTxObject<boolean>;

@@ -43,2 +45,3 @@ isOwner(): CeloTxObject<boolean>;

renounceOwnership(): CeloTxObject<void>;
setBlockedByContract(_blockedBy: string): CeloTxObject<void>;
setRegistry(registryAddress: string): CeloTxObject<void>;

@@ -73,3 +76,3 @@ transferOwnership(newOwner: string): CeloTxObject<void>;

getGroupEligibility(group: string): CeloTxObject<boolean>;
getGroupEpochRewards(group: string, totalEpochRewards: number | string, uptimes: (number | string)[]): CeloTxObject<string>;
getGroupEpochRewards(group: string, totalEpochRewards: number | string, groupScore: number | string): CeloTxObject<string>;
hasActivatablePendingVotes(account: string, group: string): CeloTxObject<boolean>;

@@ -111,2 +114,3 @@ getElectabilityThreshold(): CeloTxObject<string>;

}>;
BlockedBySet: ContractEvent<string>;
ElectabilityThresholdSet: ContractEvent<string>;

@@ -113,0 +117,0 @@ ElectableValidatorsSet: ContractEvent<{

@@ -9,3 +9,5 @@ /// <reference types="node" />

methods: {
getBlockedbyContract(): CeloTxObject<string>;
initialized(): CeloTxObject<boolean>;
isBlocked(): CeloTxObject<boolean>;
isOwner(): CeloTxObject<boolean>;

@@ -15,2 +17,3 @@ owner(): CeloTxObject<string>;

renounceOwnership(): CeloTxObject<void>;
setBlockedByContract(_blockedBy: string): CeloTxObject<void>;
setRegistry(registryAddress: string): CeloTxObject<void>;

@@ -90,2 +93,3 @@ slashingWhitelist(arg0: number | string): CeloTxObject<string>;

}>;
BlockedBySet: ContractEvent<string>;
CeloDelegated: ContractEvent<{

@@ -92,0 +96,0 @@ delegator: string;

@@ -55,3 +55,3 @@ /// <reference types="node" />

distributeEpochPaymentsFromSigner(signer: string, maxPayment: number | string): CeloTxObject<string>;
registerValidator(ecdsaPublicKey: string | number[], blsPublicKey: string | number[], blsPop: string | number[]): CeloTxObject<boolean>;
registerValidator(ecdsaPublicKey: string | number[]): CeloTxObject<boolean>;
deregisterValidator(index: number | string): CeloTxObject<boolean>;

@@ -112,2 +112,3 @@ affiliate(group: string): CeloTxObject<boolean>;

getCommissionUpdateDelay(): CeloTxObject<string>;
computeEpochReward(account: string, score: number | string, maxPayment: number | string): CeloTxObject<string>;
getVersionNumber(): CeloTxObject<{

@@ -143,2 +144,3 @@ 0: string;

}>;
getValidatorsGroup(account: string): CeloTxObject<string>;
getGroupNumMembers(account: string): CeloTxObject<string>;

@@ -145,0 +147,0 @@ isValidatorGroup(account: string): CeloTxObject<boolean>;

@@ -1123,2 +1123,23 @@ {

"type": "bytes"
}
],
"name": "registerValidator",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "bytes",
"name": "ecdsaPublicKey",
"type": "bytes"
},

@@ -1883,2 +1904,33 @@ {

"constant": true,
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
},
{
"internalType": "uint256",
"name": "score",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "maxPayment",
"type": "uint256"
}
],
"name": "computeEpochReward",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],

@@ -2211,2 +2263,23 @@ "name": "getVersionNumber",

],
"name": "getValidatorsGroup",
"outputs": [
{
"internalType": "address",
"name": "affiliation",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "getGroupNumMembers",

@@ -2213,0 +2286,0 @@ "outputs": [

@@ -36,4 +36,4 @@ {

},
"./CeloDistributionSchedule.json": {
"default": "./dist/CeloDistributionSchedule.json"
"./CeloUnreleasedTreasure.json": {
"default": "./dist/CeloUnreleasedTreasure.json"
},

@@ -49,2 +49,5 @@ "./DoubleSigningSlasher.json": {

},
"./EpochManager.json": {
"default": "./dist/EpochManager.json"
},
"./EpochRewards.json": {

@@ -167,6 +170,6 @@ "default": "./dist/EpochRewards.json"

},
"./CeloDistributionSchedule": {
"import": "./dist/esm/CeloDistributionSchedule.js",
"require": "./dist/cjs/CeloDistributionSchedule.js",
"types": "./dist/types/CeloDistributionSchedule.d.ts"
"./CeloUnreleasedTreasure": {
"import": "./dist/esm/CeloUnreleasedTreasure.js",
"require": "./dist/cjs/CeloUnreleasedTreasure.js",
"types": "./dist/types/CeloUnreleasedTreasure.d.ts"
},

@@ -188,2 +191,7 @@ "./DoubleSigningSlasher": {

},
"./EpochManager": {
"import": "./dist/esm/EpochManager.js",
"require": "./dist/cjs/EpochManager.js",
"types": "./dist/types/EpochManager.d.ts"
},
"./EpochRewards": {

@@ -359,6 +367,6 @@ "import": "./dist/esm/EpochRewards.js",

},
"./web3/0.8/CeloDistributionSchedule": {
"import": "./dist/esm/web3/0.8/CeloDistributionSchedule.js",
"require": "./dist/cjs/web3/0.8/CeloDistributionSchedule.js",
"types": "./dist/types/web3/0.8/CeloDistributionSchedule.d.ts"
"./web3/0.8/CeloUnreleasedTreasure": {
"import": "./dist/esm/web3/0.8/CeloUnreleasedTreasure.js",
"require": "./dist/cjs/web3/0.8/CeloUnreleasedTreasure.js",
"types": "./dist/types/web3/0.8/CeloUnreleasedTreasure.d.ts"
},

@@ -390,6 +398,6 @@ "./web3/0.8/FeeCurrencyDirectory": {

},
"./web3/CeloDistributionSchedule": {
"import": "./dist/esm/web3/CeloDistributionSchedule.js",
"require": "./dist/cjs/web3/CeloDistributionSchedule.js",
"types": "./dist/types/web3/CeloDistributionSchedule.d.ts"
"./web3/CeloUnreleasedTreasure": {
"import": "./dist/esm/web3/CeloUnreleasedTreasure.js",
"require": "./dist/cjs/web3/CeloUnreleasedTreasure.js",
"types": "./dist/types/web3/CeloUnreleasedTreasure.d.ts"
},

@@ -411,2 +419,7 @@ "./web3/DoubleSigningSlasher": {

},
"./web3/EpochManager": {
"import": "./dist/esm/web3/EpochManager.js",
"require": "./dist/cjs/web3/EpochManager.js",
"types": "./dist/types/web3/EpochManager.d.ts"
},
"./web3/EpochRewards": {

@@ -583,3 +596,3 @@ "import": "./dist/esm/web3/EpochRewards.js",

},
"version": "12.0.0-canary.24"
"version": "12.0.0-epoch-manager.0"
}
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