/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { Contract, Interface, type ContractRunner } from "ethers"; import type { ArianeeCreditHistory, ArianeeCreditHistoryInterface, } from "../ArianeeCreditHistory"; const _abi = [ { type: "constructor", inputs: [ { name: "_trustedForwarder", type: "address", internalType: "address", }, ], stateMutability: "nonpayable", }, { type: "function", name: "ArianeeCreditHistoryStorageV0Location", inputs: [], outputs: [ { name: "", type: "bytes32", internalType: "bytes32", }, ], stateMutability: "view", }, { type: "function", name: "DEFAULT_ADMIN_ROLE", inputs: [], outputs: [ { name: "", type: "bytes32", internalType: "bytes32", }, ], stateMutability: "view", }, { type: "function", name: "addCreditHistory", inputs: [ { name: "_spender", type: "address", internalType: "address", }, { name: "_price", type: "uint256", internalType: "uint256", }, { name: "_quantity", type: "uint256", internalType: "uint256", }, { name: "_type", type: "uint256", internalType: "uint256", }, ], outputs: [], stateMutability: "nonpayable", }, { type: "function", name: "arianeeStoreAddress", inputs: [], outputs: [ { name: "", type: "address", internalType: "address", }, ], stateMutability: "view", }, { type: "function", name: "balanceOf", inputs: [ { name: "_spender", type: "address", internalType: "address", }, { name: "_type", type: "uint256", internalType: "uint256", }, ], outputs: [ { name: "_totalCredits", type: "uint256", internalType: "uint256", }, ], stateMutability: "view", }, { type: "function", name: "consumeCredits", inputs: [ { name: "_spender", type: "address", internalType: "address", }, { name: "_type", type: "uint256", internalType: "uint256", }, { name: "_quantity", type: "uint256", internalType: "uint256", }, ], outputs: [ { name: "", type: "uint256", internalType: "uint256", }, ], stateMutability: "nonpayable", }, { type: "function", name: "getRoleAdmin", inputs: [ { name: "role", type: "bytes32", internalType: "bytes32", }, ], outputs: [ { name: "", type: "bytes32", internalType: "bytes32", }, ], stateMutability: "view", }, { type: "function", name: "grantRole", inputs: [ { name: "role", type: "bytes32", internalType: "bytes32", }, { name: "account", type: "address", internalType: "address", }, ], outputs: [], stateMutability: "nonpayable", }, { type: "function", name: "hasRole", inputs: [ { name: "role", type: "bytes32", internalType: "bytes32", }, { name: "account", type: "address", internalType: "address", }, ], outputs: [ { name: "", type: "bool", internalType: "bool", }, ], stateMutability: "view", }, { type: "function", name: "initialize", inputs: [ { name: "_initialAdmin", type: "address", internalType: "address", }, { name: "_storeAddress", type: "address", internalType: "address", }, ], outputs: [], stateMutability: "nonpayable", }, { type: "function", name: "isTrustedForwarder", inputs: [ { name: "forwarder", type: "address", internalType: "address", }, ], outputs: [ { name: "", type: "bool", internalType: "bool", }, ], stateMutability: "view", }, { type: "function", name: "renounceRole", inputs: [ { name: "role", type: "bytes32", internalType: "bytes32", }, { name: "callerConfirmation", type: "address", internalType: "address", }, ], outputs: [], stateMutability: "nonpayable", }, { type: "function", name: "revokeRole", inputs: [ { name: "role", type: "bytes32", internalType: "bytes32", }, { name: "account", type: "address", internalType: "address", }, ], outputs: [], stateMutability: "nonpayable", }, { type: "function", name: "supportsInterface", inputs: [ { name: "interfaceId", type: "bytes4", internalType: "bytes4", }, ], outputs: [ { name: "", type: "bool", internalType: "bool", }, ], stateMutability: "view", }, { type: "function", name: "trustedForwarder", inputs: [], outputs: [ { name: "", type: "address", internalType: "address", }, ], stateMutability: "view", }, { type: "function", name: "userCreditHistory", inputs: [ { name: "_spender", type: "address", internalType: "address", }, { name: "_type", type: "uint256", internalType: "uint256", }, { name: "_index", type: "uint256", internalType: "uint256", }, ], outputs: [ { name: "_price", type: "uint256", internalType: "uint256", }, { name: "_quantity", type: "uint256", internalType: "uint256", }, ], stateMutability: "view", }, { type: "function", name: "userIndex", inputs: [ { name: "_spender", type: "address", internalType: "address", }, { name: "_type", type: "uint256", internalType: "uint256", }, ], outputs: [ { name: "_historyIndex", type: "uint256", internalType: "uint256", }, ], stateMutability: "view", }, { type: "event", name: "Initialized", inputs: [ { name: "version", type: "uint64", indexed: false, internalType: "uint64", }, ], anonymous: false, }, { type: "event", name: "RoleAdminChanged", inputs: [ { name: "role", type: "bytes32", indexed: true, internalType: "bytes32", }, { name: "previousAdminRole", type: "bytes32", indexed: true, internalType: "bytes32", }, { name: "newAdminRole", type: "bytes32", indexed: true, internalType: "bytes32", }, ], anonymous: false, }, { type: "event", name: "RoleGranted", inputs: [ { name: "role", type: "bytes32", indexed: true, internalType: "bytes32", }, { name: "account", type: "address", indexed: true, internalType: "address", }, { name: "sender", type: "address", indexed: true, internalType: "address", }, ], anonymous: false, }, { type: "event", name: "RoleRevoked", inputs: [ { name: "role", type: "bytes32", indexed: true, internalType: "bytes32", }, { name: "account", type: "address", indexed: true, internalType: "address", }, { name: "sender", type: "address", indexed: true, internalType: "address", }, ], anonymous: false, }, { type: "error", name: "AccessControlBadConfirmation", inputs: [], }, { type: "error", name: "AccessControlUnauthorizedAccount", inputs: [ { name: "account", type: "address", internalType: "address", }, { name: "neededRole", type: "bytes32", internalType: "bytes32", }, ], }, { type: "error", name: "InvalidInitialization", inputs: [], }, { type: "error", name: "NotInitializing", inputs: [], }, ] as const; export class ArianeeCreditHistory__factory { static readonly abi = _abi; static createInterface(): ArianeeCreditHistoryInterface { return new Interface(_abi) as ArianeeCreditHistoryInterface; } static connect( address: string, runner?: ContractRunner | null ): ArianeeCreditHistory { return new Contract( address, _abi, runner ) as unknown as ArianeeCreditHistory; } }