mirror of
https://github.com/logos-messaging/js-rln.git
synced 2026-01-07 16:13:07 +00:00
chore: upgrade ABI
This commit is contained in:
parent
11c80bedd4
commit
c3dff5fd28
@ -4,6 +4,35 @@ export const RLN_V2_ABI = [
|
|||||||
inputs: [],
|
inputs: [],
|
||||||
stateMutability: "nonpayable"
|
stateMutability: "nonpayable"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
type: "error",
|
||||||
|
name: "DuplicateIdCommitment",
|
||||||
|
inputs: []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "error",
|
||||||
|
name: "InvalidIdCommitment",
|
||||||
|
inputs: [
|
||||||
|
{
|
||||||
|
name: "idCommitment",
|
||||||
|
type: "uint256"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "error",
|
||||||
|
name: "InvalidPaginationQuery",
|
||||||
|
inputs: [
|
||||||
|
{
|
||||||
|
name: "startIndex",
|
||||||
|
type: "uint256"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "endIndex",
|
||||||
|
type: "uint256"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
type: "function",
|
type: "function",
|
||||||
name: "MAX_MEMBERSHIP_SET_SIZE",
|
name: "MAX_MEMBERSHIP_SET_SIZE",
|
||||||
@ -11,8 +40,7 @@ export const RLN_V2_ABI = [
|
|||||||
outputs: [
|
outputs: [
|
||||||
{
|
{
|
||||||
name: "",
|
name: "",
|
||||||
type: "uint32",
|
type: "uint32"
|
||||||
internalType: "uint32"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
stateMutability: "view"
|
stateMutability: "view"
|
||||||
@ -24,8 +52,7 @@ export const RLN_V2_ABI = [
|
|||||||
outputs: [
|
outputs: [
|
||||||
{
|
{
|
||||||
name: "",
|
name: "",
|
||||||
type: "uint8",
|
type: "uint8"
|
||||||
internalType: "uint8"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
stateMutability: "view"
|
stateMutability: "view"
|
||||||
@ -37,8 +64,7 @@ export const RLN_V2_ABI = [
|
|||||||
outputs: [
|
outputs: [
|
||||||
{
|
{
|
||||||
name: "",
|
name: "",
|
||||||
type: "uint256",
|
type: "uint256"
|
||||||
internalType: "uint256"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
stateMutability: "view"
|
stateMutability: "view"
|
||||||
@ -50,8 +76,7 @@ export const RLN_V2_ABI = [
|
|||||||
outputs: [
|
outputs: [
|
||||||
{
|
{
|
||||||
name: "",
|
name: "",
|
||||||
type: "uint32",
|
type: "uint32"
|
||||||
internalType: "uint32"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
stateMutability: "view"
|
stateMutability: "view"
|
||||||
@ -63,8 +88,7 @@ export const RLN_V2_ABI = [
|
|||||||
outputs: [
|
outputs: [
|
||||||
{
|
{
|
||||||
name: "",
|
name: "",
|
||||||
type: "uint256",
|
type: "uint256"
|
||||||
internalType: "uint256"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
stateMutability: "view"
|
stateMutability: "view"
|
||||||
@ -76,8 +100,7 @@ export const RLN_V2_ABI = [
|
|||||||
outputs: [
|
outputs: [
|
||||||
{
|
{
|
||||||
name: "",
|
name: "",
|
||||||
type: "uint32",
|
type: "uint32"
|
||||||
internalType: "uint32"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
stateMutability: "view"
|
stateMutability: "view"
|
||||||
@ -88,20 +111,17 @@ export const RLN_V2_ABI = [
|
|||||||
inputs: [
|
inputs: [
|
||||||
{
|
{
|
||||||
name: "holder",
|
name: "holder",
|
||||||
type: "address",
|
type: "address"
|
||||||
internalType: "address"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "token",
|
name: "token",
|
||||||
type: "address",
|
type: "address"
|
||||||
internalType: "address"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
outputs: [
|
outputs: [
|
||||||
{
|
{
|
||||||
name: "balance",
|
name: "balance",
|
||||||
type: "uint256",
|
type: "uint256"
|
||||||
internalType: "uint256"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
stateMutability: "view"
|
stateMutability: "view"
|
||||||
@ -112,8 +132,7 @@ export const RLN_V2_ABI = [
|
|||||||
inputs: [
|
inputs: [
|
||||||
{
|
{
|
||||||
name: "idCommitments",
|
name: "idCommitments",
|
||||||
type: "uint256[]",
|
type: "uint256[]"
|
||||||
internalType: "uint256[]"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
outputs: [],
|
outputs: [],
|
||||||
@ -125,13 +144,11 @@ export const RLN_V2_ABI = [
|
|||||||
inputs: [
|
inputs: [
|
||||||
{
|
{
|
||||||
name: "idCommitments",
|
name: "idCommitments",
|
||||||
type: "uint256[]",
|
type: "uint256[]"
|
||||||
internalType: "uint256[]"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "eraseFromMembershipSet",
|
name: "eraseFromMembershipSet",
|
||||||
type: "bool",
|
type: "bool"
|
||||||
internalType: "bool"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
outputs: [],
|
outputs: [],
|
||||||
@ -143,8 +160,7 @@ export const RLN_V2_ABI = [
|
|||||||
inputs: [
|
inputs: [
|
||||||
{
|
{
|
||||||
name: "idCommitments",
|
name: "idCommitments",
|
||||||
type: "uint256[]",
|
type: "uint256[]"
|
||||||
internalType: "uint256[]"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
outputs: [],
|
outputs: [],
|
||||||
@ -156,25 +172,21 @@ export const RLN_V2_ABI = [
|
|||||||
inputs: [
|
inputs: [
|
||||||
{
|
{
|
||||||
name: "idCommitment",
|
name: "idCommitment",
|
||||||
type: "uint256",
|
type: "uint256"
|
||||||
internalType: "uint256"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
outputs: [
|
outputs: [
|
||||||
{
|
{
|
||||||
name: "",
|
name: "",
|
||||||
type: "uint32",
|
type: "uint32"
|
||||||
internalType: "uint32"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "",
|
name: "",
|
||||||
type: "uint32",
|
type: "uint32"
|
||||||
internalType: "uint32"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "",
|
name: "",
|
||||||
type: "uint256",
|
type: "uint256"
|
||||||
internalType: "uint256"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
stateMutability: "view"
|
stateMutability: "view"
|
||||||
@ -185,15 +197,13 @@ export const RLN_V2_ABI = [
|
|||||||
inputs: [
|
inputs: [
|
||||||
{
|
{
|
||||||
name: "index",
|
name: "index",
|
||||||
type: "uint40",
|
type: "uint40"
|
||||||
internalType: "uint40"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
outputs: [
|
outputs: [
|
||||||
{
|
{
|
||||||
name: "",
|
name: "",
|
||||||
type: "uint256[20]",
|
type: "uint256[20]"
|
||||||
internalType: "uint256[20]"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
stateMutability: "view"
|
stateMutability: "view"
|
||||||
@ -204,20 +214,17 @@ export const RLN_V2_ABI = [
|
|||||||
inputs: [
|
inputs: [
|
||||||
{
|
{
|
||||||
name: "startIndex",
|
name: "startIndex",
|
||||||
type: "uint32",
|
type: "uint32"
|
||||||
internalType: "uint32"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "endIndex",
|
name: "endIndex",
|
||||||
type: "uint32",
|
type: "uint32"
|
||||||
internalType: "uint32"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
outputs: [
|
outputs: [
|
||||||
{
|
{
|
||||||
name: "",
|
name: "",
|
||||||
type: "uint256[]",
|
type: "uint256[]"
|
||||||
internalType: "uint256[]"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
stateMutability: "view"
|
stateMutability: "view"
|
||||||
@ -229,27 +236,7 @@ export const RLN_V2_ABI = [
|
|||||||
outputs: [
|
outputs: [
|
||||||
{
|
{
|
||||||
name: "",
|
name: "",
|
||||||
type: "uint32",
|
type: "uint32"
|
||||||
internalType: "uint32"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
stateMutability: "view"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: "function",
|
|
||||||
name: "indicesOfLazilyErasedMemberships",
|
|
||||||
inputs: [
|
|
||||||
{
|
|
||||||
name: "",
|
|
||||||
type: "uint256",
|
|
||||||
internalType: "uint256"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
outputs: [
|
|
||||||
{
|
|
||||||
name: "",
|
|
||||||
type: "uint32",
|
|
||||||
internalType: "uint32"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
stateMutability: "view"
|
stateMutability: "view"
|
||||||
@ -260,33 +247,27 @@ export const RLN_V2_ABI = [
|
|||||||
inputs: [
|
inputs: [
|
||||||
{
|
{
|
||||||
name: "_priceCalculator",
|
name: "_priceCalculator",
|
||||||
type: "address",
|
type: "address"
|
||||||
internalType: "address"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "_maxTotalRateLimit",
|
name: "_maxTotalRateLimit",
|
||||||
type: "uint32",
|
type: "uint32"
|
||||||
internalType: "uint32"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "_minMembershipRateLimit",
|
name: "_minMembershipRateLimit",
|
||||||
type: "uint32",
|
type: "uint32"
|
||||||
internalType: "uint32"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "_maxMembershipRateLimit",
|
name: "_maxMembershipRateLimit",
|
||||||
type: "uint32",
|
type: "uint32"
|
||||||
internalType: "uint32"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "_activeDuration",
|
name: "_activeDuration",
|
||||||
type: "uint32",
|
type: "uint32"
|
||||||
internalType: "uint32"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "_gracePeriod",
|
name: "_gracePeriod",
|
||||||
type: "uint32",
|
type: "uint32"
|
||||||
internalType: "uint32"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
outputs: [],
|
outputs: [],
|
||||||
@ -298,17 +279,114 @@ export const RLN_V2_ABI = [
|
|||||||
inputs: [
|
inputs: [
|
||||||
{
|
{
|
||||||
name: "_idCommitment",
|
name: "_idCommitment",
|
||||||
type: "uint256",
|
type: "uint256"
|
||||||
internalType: "uint256"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
outputs: [
|
outputs: [
|
||||||
{
|
{
|
||||||
name: "",
|
name: "",
|
||||||
type: "bool",
|
type: "bool"
|
||||||
internalType: "bool"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
stateMutability: "view"
|
stateMutability: "view"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "function",
|
||||||
|
name: "register",
|
||||||
|
inputs: [
|
||||||
|
{
|
||||||
|
name: "idCommitment",
|
||||||
|
type: "uint256"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "rateLimit",
|
||||||
|
type: "uint32"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "idCommitmentsToErase",
|
||||||
|
type: "uint256[]"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
outputs: [],
|
||||||
|
stateMutability: "nonpayable"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "function",
|
||||||
|
name: "registerWithPermit",
|
||||||
|
inputs: [
|
||||||
|
{
|
||||||
|
name: "owner",
|
||||||
|
type: "address"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "deadline",
|
||||||
|
type: "uint256"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "v",
|
||||||
|
type: "uint8"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "r",
|
||||||
|
type: "bytes32"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "s",
|
||||||
|
type: "bytes32"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "idCommitment",
|
||||||
|
type: "uint256"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "rateLimit",
|
||||||
|
type: "uint32"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "idCommitmentsToErase",
|
||||||
|
type: "uint256[]"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
outputs: [],
|
||||||
|
stateMutability: "nonpayable"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "event",
|
||||||
|
name: "MembershipRegistered",
|
||||||
|
inputs: [
|
||||||
|
{
|
||||||
|
name: "idCommitment",
|
||||||
|
type: "uint256",
|
||||||
|
indexed: false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "rateLimit",
|
||||||
|
type: "uint32",
|
||||||
|
indexed: false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "index",
|
||||||
|
type: "uint256",
|
||||||
|
indexed: false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
anonymous: false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: "event",
|
||||||
|
name: "MembershipRemoved",
|
||||||
|
inputs: [
|
||||||
|
{
|
||||||
|
name: "idCommitment",
|
||||||
|
type: "uint256",
|
||||||
|
indexed: false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "index",
|
||||||
|
type: "uint256",
|
||||||
|
indexed: false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
anonymous: false
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user