@astonic-io/astonic-bindings-ts
Version:
Astonic type generation and npm package deployment repo
925 lines (924 loc) • 22.3 kB
JavaScript
"use strict";
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });
exports.LockingBase__factory = void 0;
var ethers_1 = require("ethers");
var _abi = [
{
type: "function",
name: "L1_EPOCH_SHIFT",
inputs: [],
outputs: [
{
name: "",
type: "uint32",
internalType: "uint32",
},
],
stateMutability: "view",
},
{
type: "function",
name: "L2_WEEK",
inputs: [],
outputs: [
{
name: "",
type: "uint32",
internalType: "uint32",
},
],
stateMutability: "view",
},
{
type: "function",
name: "WEEK",
inputs: [],
outputs: [
{
name: "",
type: "uint32",
internalType: "uint32",
},
],
stateMutability: "view",
},
{
type: "function",
name: "astonicLabsMultisig",
inputs: [],
outputs: [
{
name: "",
type: "address",
internalType: "address",
},
],
stateMutability: "view",
},
{
type: "function",
name: "counter",
inputs: [],
outputs: [
{
name: "",
type: "uint256",
internalType: "uint256",
},
],
stateMutability: "view",
},
{
type: "function",
name: "delegate",
inputs: [
{
name: "delegatee",
type: "address",
internalType: "address",
},
],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "delegateBySig",
inputs: [
{
name: "delegatee",
type: "address",
internalType: "address",
},
{
name: "nonce",
type: "uint256",
internalType: "uint256",
},
{
name: "expiry",
type: "uint256",
internalType: "uint256",
},
{
name: "v",
type: "uint8",
internalType: "uint8",
},
{
name: "r",
type: "bytes32",
internalType: "bytes32",
},
{
name: "s",
type: "bytes32",
internalType: "bytes32",
},
],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "delegates",
inputs: [
{
name: "account",
type: "address",
internalType: "address",
},
],
outputs: [
{
name: "",
type: "address",
internalType: "address",
},
],
stateMutability: "view",
},
{
type: "function",
name: "getLock",
inputs: [
{
name: "amount",
type: "uint96",
internalType: "uint96",
},
{
name: "slopePeriod",
type: "uint32",
internalType: "uint32",
},
{
name: "cliff",
type: "uint32",
internalType: "uint32",
},
],
outputs: [
{
name: "lockAmount",
type: "uint96",
internalType: "uint96",
},
{
name: "lockSlope",
type: "uint96",
internalType: "uint96",
},
],
stateMutability: "view",
},
{
type: "function",
name: "getPastTotalSupply",
inputs: [
{
name: "blockNumber",
type: "uint256",
internalType: "uint256",
},
],
outputs: [
{
name: "",
type: "uint256",
internalType: "uint256",
},
],
stateMutability: "view",
},
{
type: "function",
name: "getPastVotes",
inputs: [
{
name: "account",
type: "address",
internalType: "address",
},
{
name: "blockNumber",
type: "uint256",
internalType: "uint256",
},
],
outputs: [
{
name: "",
type: "uint256",
internalType: "uint256",
},
],
stateMutability: "view",
},
{
type: "function",
name: "getVotes",
inputs: [
{
name: "account",
type: "address",
internalType: "address",
},
],
outputs: [
{
name: "",
type: "uint256",
internalType: "uint256",
},
],
stateMutability: "view",
},
{
type: "function",
name: "getWeekNumber",
inputs: [
{
name: "blockNumber",
type: "uint32",
internalType: "uint32",
},
],
outputs: [
{
name: "",
type: "uint32",
internalType: "uint32",
},
],
stateMutability: "view",
},
{
type: "function",
name: "l2EpochShift",
inputs: [],
outputs: [
{
name: "",
type: "uint32",
internalType: "uint32",
},
],
stateMutability: "view",
},
{
type: "function",
name: "l2StartingPointWeek",
inputs: [],
outputs: [
{
name: "",
type: "int256",
internalType: "int256",
},
],
stateMutability: "view",
},
{
type: "function",
name: "l2TransitionBlock",
inputs: [],
outputs: [
{
name: "",
type: "uint256",
internalType: "uint256",
},
],
stateMutability: "view",
},
{
type: "function",
name: "minCliffPeriod",
inputs: [],
outputs: [
{
name: "",
type: "uint256",
internalType: "uint256",
},
],
stateMutability: "view",
},
{
type: "function",
name: "minSlopePeriod",
inputs: [],
outputs: [
{
name: "",
type: "uint256",
internalType: "uint256",
},
],
stateMutability: "view",
},
{
type: "function",
name: "owner",
inputs: [],
outputs: [
{
name: "",
type: "address",
internalType: "address",
},
],
stateMutability: "view",
},
{
type: "function",
name: "paused",
inputs: [],
outputs: [
{
name: "",
type: "bool",
internalType: "bool",
},
],
stateMutability: "view",
},
{
type: "function",
name: "renounceOwnership",
inputs: [],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "setAstonicLabsMultisig",
inputs: [
{
name: "astonicLabsMultisig_",
type: "address",
internalType: "address",
},
],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "setL2EpochShift",
inputs: [
{
name: "l2EpochShift_",
type: "uint32",
internalType: "uint32",
},
],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "setL2StartingPointWeek",
inputs: [
{
name: "l2StartingPointWeek_",
type: "int256",
internalType: "int256",
},
],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "setL2TransitionBlock",
inputs: [
{
name: "l2TransitionBlock_",
type: "uint256",
internalType: "uint256",
},
],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "setMinCliffPeriod",
inputs: [
{
name: "newMinCliffPeriod",
type: "uint32",
internalType: "uint32",
},
],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "setMinSlopePeriod",
inputs: [
{
name: "newMinSlopePeriod",
type: "uint32",
internalType: "uint32",
},
],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "setPaused",
inputs: [
{
name: "paused_",
type: "bool",
internalType: "bool",
},
],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "startingPointWeek",
inputs: [],
outputs: [
{
name: "",
type: "uint256",
internalType: "uint256",
},
],
stateMutability: "view",
},
{
type: "function",
name: "token",
inputs: [],
outputs: [
{
name: "",
type: "address",
internalType: "contract IERC20Upgradeable",
},
],
stateMutability: "view",
},
{
type: "function",
name: "totalSupplyLine",
inputs: [],
outputs: [
{
name: "initial",
type: "tuple",
internalType: "struct LibBrokenLine.Line",
components: [
{
name: "start",
type: "uint32",
internalType: "uint32",
},
{
name: "bias",
type: "uint96",
internalType: "uint96",
},
{
name: "slope",
type: "uint96",
internalType: "uint96",
},
{
name: "cliff",
type: "uint32",
internalType: "uint32",
},
],
},
],
stateMutability: "view",
},
{
type: "function",
name: "transferOwnership",
inputs: [
{
name: "newOwner",
type: "address",
internalType: "address",
},
],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "updateAccountLines",
inputs: [
{
name: "account",
type: "address",
internalType: "address",
},
{
name: "time",
type: "uint32",
internalType: "uint32",
},
],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "updateAccountLinesBlockNumber",
inputs: [
{
name: "account",
type: "address",
internalType: "address",
},
{
name: "blockNumber",
type: "uint32",
internalType: "uint32",
},
],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "updateTotalSupplyLine",
inputs: [
{
name: "time",
type: "uint32",
internalType: "uint32",
},
],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "updateTotalSupplyLineBlockNumber",
inputs: [
{
name: "blockNumber",
type: "uint32",
internalType: "uint32",
},
],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "event",
name: "Delegate",
inputs: [
{
name: "id",
type: "uint256",
indexed: true,
internalType: "uint256",
},
{
name: "account",
type: "address",
indexed: true,
internalType: "address",
},
{
name: "delegate",
type: "address",
indexed: true,
internalType: "address",
},
{
name: "time",
type: "uint256",
indexed: false,
internalType: "uint256",
},
],
anonymous: false,
},
{
type: "event",
name: "DelegateChanged",
inputs: [
{
name: "delegator",
type: "address",
indexed: true,
internalType: "address",
},
{
name: "fromDelegate",
type: "address",
indexed: true,
internalType: "address",
},
{
name: "toDelegate",
type: "address",
indexed: true,
internalType: "address",
},
],
anonymous: false,
},
{
type: "event",
name: "DelegateVotesChanged",
inputs: [
{
name: "delegate",
type: "address",
indexed: true,
internalType: "address",
},
{
name: "previousBalance",
type: "uint256",
indexed: false,
internalType: "uint256",
},
{
name: "newBalance",
type: "uint256",
indexed: false,
internalType: "uint256",
},
],
anonymous: false,
},
{
type: "event",
name: "Initialized",
inputs: [
{
name: "version",
type: "uint8",
indexed: false,
internalType: "uint8",
},
],
anonymous: false,
},
{
type: "event",
name: "LockCreate",
inputs: [
{
name: "id",
type: "uint256",
indexed: true,
internalType: "uint256",
},
{
name: "account",
type: "address",
indexed: true,
internalType: "address",
},
{
name: "delegate",
type: "address",
indexed: true,
internalType: "address",
},
{
name: "time",
type: "uint256",
indexed: false,
internalType: "uint256",
},
{
name: "amount",
type: "uint256",
indexed: false,
internalType: "uint256",
},
{
name: "slopePeriod",
type: "uint256",
indexed: false,
internalType: "uint256",
},
{
name: "cliff",
type: "uint256",
indexed: false,
internalType: "uint256",
},
],
anonymous: false,
},
{
type: "event",
name: "OwnershipTransferred",
inputs: [
{
name: "previousOwner",
type: "address",
indexed: true,
internalType: "address",
},
{
name: "newOwner",
type: "address",
indexed: true,
internalType: "address",
},
],
anonymous: false,
},
{
type: "event",
name: "Relock",
inputs: [
{
name: "id",
type: "uint256",
indexed: true,
internalType: "uint256",
},
{
name: "account",
type: "address",
indexed: true,
internalType: "address",
},
{
name: "delegate",
type: "address",
indexed: true,
internalType: "address",
},
{
name: "counter",
type: "uint256",
indexed: false,
internalType: "uint256",
},
{
name: "time",
type: "uint256",
indexed: false,
internalType: "uint256",
},
{
name: "amount",
type: "uint256",
indexed: false,
internalType: "uint256",
},
{
name: "slopePeriod",
type: "uint256",
indexed: false,
internalType: "uint256",
},
{
name: "cliff",
type: "uint256",
indexed: false,
internalType: "uint256",
},
],
anonymous: false,
},
{
type: "event",
name: "SetAstonicLabsMultisig",
inputs: [
{
name: "astonicLabsMultisig",
type: "address",
indexed: true,
internalType: "address",
},
],
anonymous: false,
},
{
type: "event",
name: "SetL2EpochShift",
inputs: [
{
name: "l2EpochShift",
type: "uint32",
indexed: true,
internalType: "uint32",
},
],
anonymous: false,
},
{
type: "event",
name: "SetL2StartingPointWeek",
inputs: [
{
name: "l2StartingPointWeek",
type: "int256",
indexed: true,
internalType: "int256",
},
],
anonymous: false,
},
{
type: "event",
name: "SetL2TransitionBlock",
inputs: [
{
name: "l2TransitionBlock",
type: "uint256",
indexed: true,
internalType: "uint256",
},
],
anonymous: false,
},
{
type: "event",
name: "SetMinCliffPeriod",
inputs: [
{
name: "newMinCliffPeriod",
type: "uint256",
indexed: true,
internalType: "uint256",
},
],
anonymous: false,
},
{
type: "event",
name: "SetMinSlopePeriod",
inputs: [
{
name: "newMinSlopePeriod",
type: "uint256",
indexed: true,
internalType: "uint256",
},
],
anonymous: false,
},
{
type: "event",
name: "SetPaused",
inputs: [
{
name: "paused",
type: "bool",
indexed: true,
internalType: "bool",
},
],
anonymous: false,
},
{
type: "event",
name: "Withdraw",
inputs: [
{
name: "account",
type: "address",
indexed: true,
internalType: "address",
},
{
name: "amount",
type: "uint256",
indexed: false,
internalType: "uint256",
},
],
anonymous: false,
},
];
var LockingBase__factory = /** @class */ (function () {
function LockingBase__factory() {
}
LockingBase__factory.createInterface = function () {
return new ethers_1.utils.Interface(_abi);
};
LockingBase__factory.connect = function (address, signerOrProvider) {
return new ethers_1.Contract(address, _abi, signerOrProvider);
};
LockingBase__factory.abi = _abi;
return LockingBase__factory;
}());
exports.LockingBase__factory = LockingBase__factory;