mirror of
https://github.com/logos-messaging/js-waku.git
synced 2026-01-07 16:23:09 +00:00
* chore: add ABI for PriceCalculator * chore: rename LINEA_CONTRACT to RLN_CONTRACT * chore: add price calculator & test * fix: import * chore: convert e2e test to unit * fix: test
94 lines
2.1 KiB
TypeScript
94 lines
2.1 KiB
TypeScript
export const PRICE_CALCULATOR_ABI = [
|
|
{
|
|
inputs: [
|
|
{ internalType: "address", name: "_token", type: "address" },
|
|
{
|
|
internalType: "uint256",
|
|
name: "_pricePerMessagePerEpoch",
|
|
type: "uint256"
|
|
}
|
|
],
|
|
stateMutability: "nonpayable",
|
|
type: "constructor"
|
|
},
|
|
{ inputs: [], name: "OnlyTokensAllowed", 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: [{ internalType: "uint32", name: "_rateLimit", type: "uint32" }],
|
|
name: "calculate",
|
|
outputs: [
|
|
{ internalType: "address", name: "", type: "address" },
|
|
{ internalType: "uint256", name: "", type: "uint256" }
|
|
],
|
|
stateMutability: "view",
|
|
type: "function"
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "owner",
|
|
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
stateMutability: "view",
|
|
type: "function"
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "pricePerMessagePerEpoch",
|
|
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
stateMutability: "view",
|
|
type: "function"
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "renounceOwnership",
|
|
outputs: [],
|
|
stateMutability: "nonpayable",
|
|
type: "function"
|
|
},
|
|
{
|
|
inputs: [
|
|
{ internalType: "address", name: "_token", type: "address" },
|
|
{
|
|
internalType: "uint256",
|
|
name: "_pricePerMessagePerEpoch",
|
|
type: "uint256"
|
|
}
|
|
],
|
|
name: "setTokenAndPrice",
|
|
outputs: [],
|
|
stateMutability: "nonpayable",
|
|
type: "function"
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "token",
|
|
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
stateMutability: "view",
|
|
type: "function"
|
|
},
|
|
{
|
|
inputs: [{ internalType: "address", name: "newOwner", type: "address" }],
|
|
name: "transferOwnership",
|
|
outputs: [],
|
|
stateMutability: "nonpayable",
|
|
type: "function"
|
|
}
|
|
];
|