|
| 1 | +export const PRICE_CALCULATOR_ABI = [ |
| 2 | + { |
| 3 | + inputs: [ |
| 4 | + { internalType: "address", name: "_token", type: "address" }, |
| 5 | + { |
| 6 | + internalType: "uint256", |
| 7 | + name: "_pricePerMessagePerEpoch", |
| 8 | + type: "uint256" |
| 9 | + } |
| 10 | + ], |
| 11 | + stateMutability: "nonpayable", |
| 12 | + type: "constructor" |
| 13 | + }, |
| 14 | + { inputs: [], name: "OnlyTokensAllowed", type: "error" }, |
| 15 | + { |
| 16 | + anonymous: false, |
| 17 | + inputs: [ |
| 18 | + { |
| 19 | + indexed: true, |
| 20 | + internalType: "address", |
| 21 | + name: "previousOwner", |
| 22 | + type: "address" |
| 23 | + }, |
| 24 | + { |
| 25 | + indexed: true, |
| 26 | + internalType: "address", |
| 27 | + name: "newOwner", |
| 28 | + type: "address" |
| 29 | + } |
| 30 | + ], |
| 31 | + name: "OwnershipTransferred", |
| 32 | + type: "event" |
| 33 | + }, |
| 34 | + { |
| 35 | + inputs: [{ internalType: "uint32", name: "_rateLimit", type: "uint32" }], |
| 36 | + name: "calculate", |
| 37 | + outputs: [ |
| 38 | + { internalType: "address", name: "", type: "address" }, |
| 39 | + { internalType: "uint256", name: "", type: "uint256" } |
| 40 | + ], |
| 41 | + stateMutability: "view", |
| 42 | + type: "function" |
| 43 | + }, |
| 44 | + { |
| 45 | + inputs: [], |
| 46 | + name: "owner", |
| 47 | + outputs: [{ internalType: "address", name: "", type: "address" }], |
| 48 | + stateMutability: "view", |
| 49 | + type: "function" |
| 50 | + }, |
| 51 | + { |
| 52 | + inputs: [], |
| 53 | + name: "pricePerMessagePerEpoch", |
| 54 | + outputs: [{ internalType: "uint256", name: "", type: "uint256" }], |
| 55 | + stateMutability: "view", |
| 56 | + type: "function" |
| 57 | + }, |
| 58 | + { |
| 59 | + inputs: [], |
| 60 | + name: "renounceOwnership", |
| 61 | + outputs: [], |
| 62 | + stateMutability: "nonpayable", |
| 63 | + type: "function" |
| 64 | + }, |
| 65 | + { |
| 66 | + inputs: [ |
| 67 | + { internalType: "address", name: "_token", type: "address" }, |
| 68 | + { |
| 69 | + internalType: "uint256", |
| 70 | + name: "_pricePerMessagePerEpoch", |
| 71 | + type: "uint256" |
| 72 | + } |
| 73 | + ], |
| 74 | + name: "setTokenAndPrice", |
| 75 | + outputs: [], |
| 76 | + stateMutability: "nonpayable", |
| 77 | + type: "function" |
| 78 | + }, |
| 79 | + { |
| 80 | + inputs: [], |
| 81 | + name: "token", |
| 82 | + outputs: [{ internalType: "address", name: "", type: "address" }], |
| 83 | + stateMutability: "view", |
| 84 | + type: "function" |
| 85 | + }, |
| 86 | + { |
| 87 | + inputs: [{ internalType: "address", name: "newOwner", type: "address" }], |
| 88 | + name: "transferOwnership", |
| 89 | + outputs: [], |
| 90 | + stateMutability: "nonpayable", |
| 91 | + type: "function" |
| 92 | + } |
| 93 | +]; |
0 commit comments