mirror of
https://github.com/yashgo0018/maci-wrapper.git
synced 2026-01-15 06:07:57 -05:00
497 lines
8.3 KiB
TypeScript
497 lines
8.3 KiB
TypeScript
export default [
|
|
{
|
|
inputs: [],
|
|
name: "DepthCannotBeZero",
|
|
type: "error",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "uint256",
|
|
name: "_depth",
|
|
type: "uint256",
|
|
},
|
|
{
|
|
internalType: "uint256",
|
|
name: "max",
|
|
type: "uint256",
|
|
},
|
|
],
|
|
name: "DepthTooLarge",
|
|
type: "error",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "uint256",
|
|
name: "_depth",
|
|
type: "uint256",
|
|
},
|
|
{
|
|
internalType: "uint256",
|
|
name: "min",
|
|
type: "uint256",
|
|
},
|
|
],
|
|
name: "DepthTooSmall",
|
|
type: "error",
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "InvalidHashLength",
|
|
type: "error",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "uint256",
|
|
name: "_index",
|
|
type: "uint256",
|
|
},
|
|
],
|
|
name: "InvalidIndex",
|
|
type: "error",
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "InvalidLevel",
|
|
type: "error",
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "NothingToMerge",
|
|
type: "error",
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "SubDepthCannotBeZero",
|
|
type: "error",
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "SubTreesAlreadyMerged",
|
|
type: "error",
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "SubTreesNotMerged",
|
|
type: "error",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "uint256",
|
|
name: "_subDepth",
|
|
type: "uint256",
|
|
},
|
|
{
|
|
internalType: "uint256",
|
|
name: "max",
|
|
type: "uint256",
|
|
},
|
|
],
|
|
name: "SubdepthTooLarge",
|
|
type: "error",
|
|
},
|
|
{
|
|
anonymous: false,
|
|
inputs: [
|
|
{
|
|
indexed: true,
|
|
internalType: "address",
|
|
name: "previousOwner",
|
|
type: "address",
|
|
},
|
|
{
|
|
indexed: true,
|
|
internalType: "address",
|
|
name: "newOwner",
|
|
type: "address",
|
|
},
|
|
],
|
|
name: "OwnershipTransferred",
|
|
type: "event",
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "MAX_DEPTH",
|
|
outputs: [
|
|
{
|
|
internalType: "uint256",
|
|
name: "",
|
|
type: "uint256",
|
|
},
|
|
],
|
|
stateMutability: "view",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "calcMinHeight",
|
|
outputs: [
|
|
{
|
|
internalType: "uint256",
|
|
name: "depth",
|
|
type: "uint256",
|
|
},
|
|
],
|
|
stateMutability: "view",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "uint256",
|
|
name: "_leaf",
|
|
type: "uint256",
|
|
},
|
|
],
|
|
name: "enqueue",
|
|
outputs: [
|
|
{
|
|
internalType: "uint256",
|
|
name: "leafIndex",
|
|
type: "uint256",
|
|
},
|
|
],
|
|
stateMutability: "nonpayable",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "fill",
|
|
outputs: [],
|
|
stateMutability: "nonpayable",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "uint256",
|
|
name: "_depth",
|
|
type: "uint256",
|
|
},
|
|
],
|
|
name: "getMainRoot",
|
|
outputs: [
|
|
{
|
|
internalType: "uint256",
|
|
name: "mainRoot",
|
|
type: "uint256",
|
|
},
|
|
],
|
|
stateMutability: "view",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "getSmallSRTroot",
|
|
outputs: [
|
|
{
|
|
internalType: "uint256",
|
|
name: "smallSubTreeRoot",
|
|
type: "uint256",
|
|
},
|
|
],
|
|
stateMutability: "view",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "getSrIndices",
|
|
outputs: [
|
|
{
|
|
internalType: "uint256",
|
|
name: "next",
|
|
type: "uint256",
|
|
},
|
|
{
|
|
internalType: "uint256",
|
|
name: "current",
|
|
type: "uint256",
|
|
},
|
|
],
|
|
stateMutability: "view",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "uint256",
|
|
name: "_index",
|
|
type: "uint256",
|
|
},
|
|
],
|
|
name: "getSubRoot",
|
|
outputs: [
|
|
{
|
|
internalType: "uint256",
|
|
name: "subRoot",
|
|
type: "uint256",
|
|
},
|
|
],
|
|
stateMutability: "view",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "uint256[2]",
|
|
name: "array",
|
|
type: "uint256[2]",
|
|
},
|
|
],
|
|
name: "hash2",
|
|
outputs: [
|
|
{
|
|
internalType: "uint256",
|
|
name: "result",
|
|
type: "uint256",
|
|
},
|
|
],
|
|
stateMutability: "pure",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "uint256[3]",
|
|
name: "array",
|
|
type: "uint256[3]",
|
|
},
|
|
],
|
|
name: "hash3",
|
|
outputs: [
|
|
{
|
|
internalType: "uint256",
|
|
name: "result",
|
|
type: "uint256",
|
|
},
|
|
],
|
|
stateMutability: "pure",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "uint256[4]",
|
|
name: "array",
|
|
type: "uint256[4]",
|
|
},
|
|
],
|
|
name: "hash4",
|
|
outputs: [
|
|
{
|
|
internalType: "uint256",
|
|
name: "result",
|
|
type: "uint256",
|
|
},
|
|
],
|
|
stateMutability: "pure",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "uint256[5]",
|
|
name: "array",
|
|
type: "uint256[5]",
|
|
},
|
|
],
|
|
name: "hash5",
|
|
outputs: [
|
|
{
|
|
internalType: "uint256",
|
|
name: "result",
|
|
type: "uint256",
|
|
},
|
|
],
|
|
stateMutability: "pure",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "uint256",
|
|
name: "left",
|
|
type: "uint256",
|
|
},
|
|
{
|
|
internalType: "uint256",
|
|
name: "right",
|
|
type: "uint256",
|
|
},
|
|
],
|
|
name: "hashLeftRight",
|
|
outputs: [
|
|
{
|
|
internalType: "uint256",
|
|
name: "result",
|
|
type: "uint256",
|
|
},
|
|
],
|
|
stateMutability: "pure",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "uint256",
|
|
name: "_level",
|
|
type: "uint256",
|
|
},
|
|
{
|
|
internalType: "uint256",
|
|
name: "_leaf",
|
|
type: "uint256",
|
|
},
|
|
],
|
|
name: "hashLevelLeaf",
|
|
outputs: [
|
|
{
|
|
internalType: "uint256",
|
|
name: "_hash",
|
|
type: "uint256",
|
|
},
|
|
],
|
|
stateMutability: "view",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "uint256",
|
|
name: "_subRoot",
|
|
type: "uint256",
|
|
},
|
|
],
|
|
name: "insertSubTree",
|
|
outputs: [],
|
|
stateMutability: "nonpayable",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "uint256",
|
|
name: "_depth",
|
|
type: "uint256",
|
|
},
|
|
],
|
|
name: "merge",
|
|
outputs: [
|
|
{
|
|
internalType: "uint256",
|
|
name: "root",
|
|
type: "uint256",
|
|
},
|
|
],
|
|
stateMutability: "nonpayable",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "uint256",
|
|
name: "_numSrQueueOps",
|
|
type: "uint256",
|
|
},
|
|
],
|
|
name: "mergeSubRoots",
|
|
outputs: [],
|
|
stateMutability: "nonpayable",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "numLeaves",
|
|
outputs: [
|
|
{
|
|
internalType: "uint256",
|
|
name: "",
|
|
type: "uint256",
|
|
},
|
|
],
|
|
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: [
|
|
{
|
|
internalType: "uint256[]",
|
|
name: "array",
|
|
type: "uint256[]",
|
|
},
|
|
],
|
|
name: "sha256Hash",
|
|
outputs: [
|
|
{
|
|
internalType: "uint256",
|
|
name: "result",
|
|
type: "uint256",
|
|
},
|
|
],
|
|
stateMutability: "pure",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "subTreesMerged",
|
|
outputs: [
|
|
{
|
|
internalType: "bool",
|
|
name: "",
|
|
type: "bool",
|
|
},
|
|
],
|
|
stateMutability: "view",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "address",
|
|
name: "newOwner",
|
|
type: "address",
|
|
},
|
|
],
|
|
name: "transferOwnership",
|
|
outputs: [],
|
|
stateMutability: "nonpayable",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "treeMerged",
|
|
outputs: [
|
|
{
|
|
internalType: "bool",
|
|
name: "",
|
|
type: "bool",
|
|
},
|
|
],
|
|
stateMutability: "view",
|
|
type: "function",
|
|
},
|
|
] as const;
|