github.com/gilgames000/kcc-geth@v1.0.6/consensus/posa/abi.go (about)

     1  package posa
     2  
     3  // validatorsInteractiveABI contains all methods to interactive with validator contracts.
     4  const validatorsInteractiveABI = `
     5  [
     6  	{
     7  		"inputs": [
     8  		  {
     9  			"internalType": "address[]",
    10  			"name": "vals",
    11  			"type": "address[]"
    12  		  }
    13  		],
    14  		"name": "initialize",
    15  		"outputs": [],
    16  		"stateMutability": "nonpayable",
    17  		"type": "function"
    18  	},
    19  	{
    20  		"inputs": [],
    21  		"name": "distributeBlockReward",
    22  		"outputs": [],
    23  		"stateMutability": "payable",
    24  		"type": "function"
    25  	},
    26  	{
    27  		"inputs": [],
    28  		"name": "getTopValidators",
    29  		"outputs": [
    30  		  {
    31  			"internalType": "address[]",
    32  			"name": "",
    33  			"type": "address[]"
    34  		  }
    35  		],
    36  		"stateMutability": "view",
    37  		"type": "function"
    38  	},
    39  	{
    40  		"inputs": [
    41  		  {
    42  			"internalType": "uint256",
    43  			"name": "epoch",
    44  			"type": "uint256"
    45  		  }
    46  		],
    47  		"name": "updateActiveValidatorSet",
    48  		"outputs": [],
    49  		"stateMutability": "nonpayable",
    50  		"type": "function"
    51  	}
    52  ]
    53  `
    54  
    55  const punishInteractiveABI = `
    56  [
    57  	{
    58  		"inputs": [],
    59  		"name": "initialize",
    60  		"outputs": [],
    61  		"stateMutability": "nonpayable",
    62  		"type": "function"
    63  	},
    64  	{
    65  		"inputs": [
    66  		  {
    67  			"internalType": "address",
    68  			"name": "val",
    69  			"type": "address"
    70  		  }
    71  		],
    72  		"name": "punish",
    73  		"outputs": [],
    74  		"stateMutability": "nonpayable",
    75  		"type": "function"
    76  	},
    77  	{
    78  		"inputs": [
    79  		  {
    80  			"internalType": "uint256",
    81  			"name": "epoch",
    82  			"type": "uint256"
    83  		  }
    84  		],
    85  		"name": "decreaseMissedBlocksCounter",
    86  		"outputs": [],
    87  		"stateMutability": "nonpayable",
    88  		"type": "function"
    89  	  }
    90  ]
    91  `
    92  
    93  const proposalInteractiveABI = `
    94  [
    95  	{
    96  		"inputs": [
    97  		  {
    98  			"internalType": "address[]",
    99  			"name": "vals",
   100  			"type": "address[]"
   101  		  }
   102  		],
   103  		"name": "initialize",
   104  		"outputs": [],
   105  		"stateMutability": "nonpayable",
   106  		"type": "function"
   107  	}
   108  ]
   109  `