github.com/ethereum-optimism/optimism@v1.7.2/packages/contracts-bedrock/snapshots/abi/GovernanceToken.json (about)

     1  [
     2    {
     3      "inputs": [],
     4      "stateMutability": "nonpayable",
     5      "type": "constructor"
     6    },
     7    {
     8      "inputs": [],
     9      "name": "DOMAIN_SEPARATOR",
    10      "outputs": [
    11        {
    12          "internalType": "bytes32",
    13          "name": "",
    14          "type": "bytes32"
    15        }
    16      ],
    17      "stateMutability": "view",
    18      "type": "function"
    19    },
    20    {
    21      "inputs": [
    22        {
    23          "internalType": "address",
    24          "name": "owner",
    25          "type": "address"
    26        },
    27        {
    28          "internalType": "address",
    29          "name": "spender",
    30          "type": "address"
    31        }
    32      ],
    33      "name": "allowance",
    34      "outputs": [
    35        {
    36          "internalType": "uint256",
    37          "name": "",
    38          "type": "uint256"
    39        }
    40      ],
    41      "stateMutability": "view",
    42      "type": "function"
    43    },
    44    {
    45      "inputs": [
    46        {
    47          "internalType": "address",
    48          "name": "spender",
    49          "type": "address"
    50        },
    51        {
    52          "internalType": "uint256",
    53          "name": "amount",
    54          "type": "uint256"
    55        }
    56      ],
    57      "name": "approve",
    58      "outputs": [
    59        {
    60          "internalType": "bool",
    61          "name": "",
    62          "type": "bool"
    63        }
    64      ],
    65      "stateMutability": "nonpayable",
    66      "type": "function"
    67    },
    68    {
    69      "inputs": [
    70        {
    71          "internalType": "address",
    72          "name": "account",
    73          "type": "address"
    74        }
    75      ],
    76      "name": "balanceOf",
    77      "outputs": [
    78        {
    79          "internalType": "uint256",
    80          "name": "",
    81          "type": "uint256"
    82        }
    83      ],
    84      "stateMutability": "view",
    85      "type": "function"
    86    },
    87    {
    88      "inputs": [
    89        {
    90          "internalType": "uint256",
    91          "name": "amount",
    92          "type": "uint256"
    93        }
    94      ],
    95      "name": "burn",
    96      "outputs": [],
    97      "stateMutability": "nonpayable",
    98      "type": "function"
    99    },
   100    {
   101      "inputs": [
   102        {
   103          "internalType": "address",
   104          "name": "account",
   105          "type": "address"
   106        },
   107        {
   108          "internalType": "uint256",
   109          "name": "amount",
   110          "type": "uint256"
   111        }
   112      ],
   113      "name": "burnFrom",
   114      "outputs": [],
   115      "stateMutability": "nonpayable",
   116      "type": "function"
   117    },
   118    {
   119      "inputs": [
   120        {
   121          "internalType": "address",
   122          "name": "account",
   123          "type": "address"
   124        },
   125        {
   126          "internalType": "uint32",
   127          "name": "pos",
   128          "type": "uint32"
   129        }
   130      ],
   131      "name": "checkpoints",
   132      "outputs": [
   133        {
   134          "components": [
   135            {
   136              "internalType": "uint32",
   137              "name": "fromBlock",
   138              "type": "uint32"
   139            },
   140            {
   141              "internalType": "uint224",
   142              "name": "votes",
   143              "type": "uint224"
   144            }
   145          ],
   146          "internalType": "struct ERC20Votes.Checkpoint",
   147          "name": "",
   148          "type": "tuple"
   149        }
   150      ],
   151      "stateMutability": "view",
   152      "type": "function"
   153    },
   154    {
   155      "inputs": [],
   156      "name": "decimals",
   157      "outputs": [
   158        {
   159          "internalType": "uint8",
   160          "name": "",
   161          "type": "uint8"
   162        }
   163      ],
   164      "stateMutability": "view",
   165      "type": "function"
   166    },
   167    {
   168      "inputs": [
   169        {
   170          "internalType": "address",
   171          "name": "spender",
   172          "type": "address"
   173        },
   174        {
   175          "internalType": "uint256",
   176          "name": "subtractedValue",
   177          "type": "uint256"
   178        }
   179      ],
   180      "name": "decreaseAllowance",
   181      "outputs": [
   182        {
   183          "internalType": "bool",
   184          "name": "",
   185          "type": "bool"
   186        }
   187      ],
   188      "stateMutability": "nonpayable",
   189      "type": "function"
   190    },
   191    {
   192      "inputs": [
   193        {
   194          "internalType": "address",
   195          "name": "delegatee",
   196          "type": "address"
   197        }
   198      ],
   199      "name": "delegate",
   200      "outputs": [],
   201      "stateMutability": "nonpayable",
   202      "type": "function"
   203    },
   204    {
   205      "inputs": [
   206        {
   207          "internalType": "address",
   208          "name": "delegatee",
   209          "type": "address"
   210        },
   211        {
   212          "internalType": "uint256",
   213          "name": "nonce",
   214          "type": "uint256"
   215        },
   216        {
   217          "internalType": "uint256",
   218          "name": "expiry",
   219          "type": "uint256"
   220        },
   221        {
   222          "internalType": "uint8",
   223          "name": "v",
   224          "type": "uint8"
   225        },
   226        {
   227          "internalType": "bytes32",
   228          "name": "r",
   229          "type": "bytes32"
   230        },
   231        {
   232          "internalType": "bytes32",
   233          "name": "s",
   234          "type": "bytes32"
   235        }
   236      ],
   237      "name": "delegateBySig",
   238      "outputs": [],
   239      "stateMutability": "nonpayable",
   240      "type": "function"
   241    },
   242    {
   243      "inputs": [
   244        {
   245          "internalType": "address",
   246          "name": "account",
   247          "type": "address"
   248        }
   249      ],
   250      "name": "delegates",
   251      "outputs": [
   252        {
   253          "internalType": "address",
   254          "name": "",
   255          "type": "address"
   256        }
   257      ],
   258      "stateMutability": "view",
   259      "type": "function"
   260    },
   261    {
   262      "inputs": [
   263        {
   264          "internalType": "uint256",
   265          "name": "blockNumber",
   266          "type": "uint256"
   267        }
   268      ],
   269      "name": "getPastTotalSupply",
   270      "outputs": [
   271        {
   272          "internalType": "uint256",
   273          "name": "",
   274          "type": "uint256"
   275        }
   276      ],
   277      "stateMutability": "view",
   278      "type": "function"
   279    },
   280    {
   281      "inputs": [
   282        {
   283          "internalType": "address",
   284          "name": "account",
   285          "type": "address"
   286        },
   287        {
   288          "internalType": "uint256",
   289          "name": "blockNumber",
   290          "type": "uint256"
   291        }
   292      ],
   293      "name": "getPastVotes",
   294      "outputs": [
   295        {
   296          "internalType": "uint256",
   297          "name": "",
   298          "type": "uint256"
   299        }
   300      ],
   301      "stateMutability": "view",
   302      "type": "function"
   303    },
   304    {
   305      "inputs": [
   306        {
   307          "internalType": "address",
   308          "name": "account",
   309          "type": "address"
   310        }
   311      ],
   312      "name": "getVotes",
   313      "outputs": [
   314        {
   315          "internalType": "uint256",
   316          "name": "",
   317          "type": "uint256"
   318        }
   319      ],
   320      "stateMutability": "view",
   321      "type": "function"
   322    },
   323    {
   324      "inputs": [
   325        {
   326          "internalType": "address",
   327          "name": "spender",
   328          "type": "address"
   329        },
   330        {
   331          "internalType": "uint256",
   332          "name": "addedValue",
   333          "type": "uint256"
   334        }
   335      ],
   336      "name": "increaseAllowance",
   337      "outputs": [
   338        {
   339          "internalType": "bool",
   340          "name": "",
   341          "type": "bool"
   342        }
   343      ],
   344      "stateMutability": "nonpayable",
   345      "type": "function"
   346    },
   347    {
   348      "inputs": [
   349        {
   350          "internalType": "address",
   351          "name": "_account",
   352          "type": "address"
   353        },
   354        {
   355          "internalType": "uint256",
   356          "name": "_amount",
   357          "type": "uint256"
   358        }
   359      ],
   360      "name": "mint",
   361      "outputs": [],
   362      "stateMutability": "nonpayable",
   363      "type": "function"
   364    },
   365    {
   366      "inputs": [],
   367      "name": "name",
   368      "outputs": [
   369        {
   370          "internalType": "string",
   371          "name": "",
   372          "type": "string"
   373        }
   374      ],
   375      "stateMutability": "view",
   376      "type": "function"
   377    },
   378    {
   379      "inputs": [
   380        {
   381          "internalType": "address",
   382          "name": "owner",
   383          "type": "address"
   384        }
   385      ],
   386      "name": "nonces",
   387      "outputs": [
   388        {
   389          "internalType": "uint256",
   390          "name": "",
   391          "type": "uint256"
   392        }
   393      ],
   394      "stateMutability": "view",
   395      "type": "function"
   396    },
   397    {
   398      "inputs": [
   399        {
   400          "internalType": "address",
   401          "name": "account",
   402          "type": "address"
   403        }
   404      ],
   405      "name": "numCheckpoints",
   406      "outputs": [
   407        {
   408          "internalType": "uint32",
   409          "name": "",
   410          "type": "uint32"
   411        }
   412      ],
   413      "stateMutability": "view",
   414      "type": "function"
   415    },
   416    {
   417      "inputs": [],
   418      "name": "owner",
   419      "outputs": [
   420        {
   421          "internalType": "address",
   422          "name": "",
   423          "type": "address"
   424        }
   425      ],
   426      "stateMutability": "view",
   427      "type": "function"
   428    },
   429    {
   430      "inputs": [
   431        {
   432          "internalType": "address",
   433          "name": "owner",
   434          "type": "address"
   435        },
   436        {
   437          "internalType": "address",
   438          "name": "spender",
   439          "type": "address"
   440        },
   441        {
   442          "internalType": "uint256",
   443          "name": "value",
   444          "type": "uint256"
   445        },
   446        {
   447          "internalType": "uint256",
   448          "name": "deadline",
   449          "type": "uint256"
   450        },
   451        {
   452          "internalType": "uint8",
   453          "name": "v",
   454          "type": "uint8"
   455        },
   456        {
   457          "internalType": "bytes32",
   458          "name": "r",
   459          "type": "bytes32"
   460        },
   461        {
   462          "internalType": "bytes32",
   463          "name": "s",
   464          "type": "bytes32"
   465        }
   466      ],
   467      "name": "permit",
   468      "outputs": [],
   469      "stateMutability": "nonpayable",
   470      "type": "function"
   471    },
   472    {
   473      "inputs": [],
   474      "name": "renounceOwnership",
   475      "outputs": [],
   476      "stateMutability": "nonpayable",
   477      "type": "function"
   478    },
   479    {
   480      "inputs": [],
   481      "name": "symbol",
   482      "outputs": [
   483        {
   484          "internalType": "string",
   485          "name": "",
   486          "type": "string"
   487        }
   488      ],
   489      "stateMutability": "view",
   490      "type": "function"
   491    },
   492    {
   493      "inputs": [],
   494      "name": "totalSupply",
   495      "outputs": [
   496        {
   497          "internalType": "uint256",
   498          "name": "",
   499          "type": "uint256"
   500        }
   501      ],
   502      "stateMutability": "view",
   503      "type": "function"
   504    },
   505    {
   506      "inputs": [
   507        {
   508          "internalType": "address",
   509          "name": "to",
   510          "type": "address"
   511        },
   512        {
   513          "internalType": "uint256",
   514          "name": "amount",
   515          "type": "uint256"
   516        }
   517      ],
   518      "name": "transfer",
   519      "outputs": [
   520        {
   521          "internalType": "bool",
   522          "name": "",
   523          "type": "bool"
   524        }
   525      ],
   526      "stateMutability": "nonpayable",
   527      "type": "function"
   528    },
   529    {
   530      "inputs": [
   531        {
   532          "internalType": "address",
   533          "name": "from",
   534          "type": "address"
   535        },
   536        {
   537          "internalType": "address",
   538          "name": "to",
   539          "type": "address"
   540        },
   541        {
   542          "internalType": "uint256",
   543          "name": "amount",
   544          "type": "uint256"
   545        }
   546      ],
   547      "name": "transferFrom",
   548      "outputs": [
   549        {
   550          "internalType": "bool",
   551          "name": "",
   552          "type": "bool"
   553        }
   554      ],
   555      "stateMutability": "nonpayable",
   556      "type": "function"
   557    },
   558    {
   559      "inputs": [
   560        {
   561          "internalType": "address",
   562          "name": "newOwner",
   563          "type": "address"
   564        }
   565      ],
   566      "name": "transferOwnership",
   567      "outputs": [],
   568      "stateMutability": "nonpayable",
   569      "type": "function"
   570    },
   571    {
   572      "anonymous": false,
   573      "inputs": [
   574        {
   575          "indexed": true,
   576          "internalType": "address",
   577          "name": "owner",
   578          "type": "address"
   579        },
   580        {
   581          "indexed": true,
   582          "internalType": "address",
   583          "name": "spender",
   584          "type": "address"
   585        },
   586        {
   587          "indexed": false,
   588          "internalType": "uint256",
   589          "name": "value",
   590          "type": "uint256"
   591        }
   592      ],
   593      "name": "Approval",
   594      "type": "event"
   595    },
   596    {
   597      "anonymous": false,
   598      "inputs": [
   599        {
   600          "indexed": true,
   601          "internalType": "address",
   602          "name": "delegator",
   603          "type": "address"
   604        },
   605        {
   606          "indexed": true,
   607          "internalType": "address",
   608          "name": "fromDelegate",
   609          "type": "address"
   610        },
   611        {
   612          "indexed": true,
   613          "internalType": "address",
   614          "name": "toDelegate",
   615          "type": "address"
   616        }
   617      ],
   618      "name": "DelegateChanged",
   619      "type": "event"
   620    },
   621    {
   622      "anonymous": false,
   623      "inputs": [
   624        {
   625          "indexed": true,
   626          "internalType": "address",
   627          "name": "delegate",
   628          "type": "address"
   629        },
   630        {
   631          "indexed": false,
   632          "internalType": "uint256",
   633          "name": "previousBalance",
   634          "type": "uint256"
   635        },
   636        {
   637          "indexed": false,
   638          "internalType": "uint256",
   639          "name": "newBalance",
   640          "type": "uint256"
   641        }
   642      ],
   643      "name": "DelegateVotesChanged",
   644      "type": "event"
   645    },
   646    {
   647      "anonymous": false,
   648      "inputs": [
   649        {
   650          "indexed": true,
   651          "internalType": "address",
   652          "name": "previousOwner",
   653          "type": "address"
   654        },
   655        {
   656          "indexed": true,
   657          "internalType": "address",
   658          "name": "newOwner",
   659          "type": "address"
   660        }
   661      ],
   662      "name": "OwnershipTransferred",
   663      "type": "event"
   664    },
   665    {
   666      "anonymous": false,
   667      "inputs": [
   668        {
   669          "indexed": true,
   670          "internalType": "address",
   671          "name": "from",
   672          "type": "address"
   673        },
   674        {
   675          "indexed": true,
   676          "internalType": "address",
   677          "name": "to",
   678          "type": "address"
   679        },
   680        {
   681          "indexed": false,
   682          "internalType": "uint256",
   683          "name": "value",
   684          "type": "uint256"
   685        }
   686      ],
   687      "name": "Transfer",
   688      "type": "event"
   689    }
   690  ]