github.com/phillinzzz/newBsc@v1.1.6/consensus/parlia/abi.go (about)

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