-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cli): add unjail validator subcommand (#170)
* feat(cli): add unjail validator subcommand * fix: use static predeploy ca in validator logic
- Loading branch information
Showing
4 changed files
with
541 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,369 @@ | ||
[ | ||
{ | ||
"type": "constructor", | ||
"inputs": [ | ||
{ | ||
"name": "ipTokenStaking", | ||
"type": "address", | ||
"internalType": "address" | ||
} | ||
], | ||
"stateMutability": "nonpayable" | ||
}, | ||
{ | ||
"type": "function", | ||
"name": "IP_TOKEN_STAKING", | ||
"inputs": [], | ||
"outputs": [ | ||
{ | ||
"name": "", | ||
"type": "address", | ||
"internalType": "contract IPTokenStaking" | ||
} | ||
], | ||
"stateMutability": "view" | ||
}, | ||
{ | ||
"type": "function", | ||
"name": "UPGRADE_INTERFACE_VERSION", | ||
"inputs": [], | ||
"outputs": [ | ||
{ | ||
"name": "", | ||
"type": "string", | ||
"internalType": "string" | ||
} | ||
], | ||
"stateMutability": "view" | ||
}, | ||
{ | ||
"type": "function", | ||
"name": "acceptOwnership", | ||
"inputs": [], | ||
"outputs": [], | ||
"stateMutability": "nonpayable" | ||
}, | ||
{ | ||
"type": "function", | ||
"name": "initialize", | ||
"inputs": [ | ||
{ | ||
"name": "accessManager", | ||
"type": "address", | ||
"internalType": "address" | ||
}, | ||
{ | ||
"name": "newUnjailFee", | ||
"type": "uint256", | ||
"internalType": "uint256" | ||
} | ||
], | ||
"outputs": [], | ||
"stateMutability": "nonpayable" | ||
}, | ||
{ | ||
"type": "function", | ||
"name": "owner", | ||
"inputs": [], | ||
"outputs": [ | ||
{ | ||
"name": "", | ||
"type": "address", | ||
"internalType": "address" | ||
} | ||
], | ||
"stateMutability": "view" | ||
}, | ||
{ | ||
"type": "function", | ||
"name": "pendingOwner", | ||
"inputs": [], | ||
"outputs": [ | ||
{ | ||
"name": "", | ||
"type": "address", | ||
"internalType": "address" | ||
} | ||
], | ||
"stateMutability": "view" | ||
}, | ||
{ | ||
"type": "function", | ||
"name": "proxiableUUID", | ||
"inputs": [], | ||
"outputs": [ | ||
{ | ||
"name": "", | ||
"type": "bytes32", | ||
"internalType": "bytes32" | ||
} | ||
], | ||
"stateMutability": "view" | ||
}, | ||
{ | ||
"type": "function", | ||
"name": "renounceOwnership", | ||
"inputs": [], | ||
"outputs": [], | ||
"stateMutability": "nonpayable" | ||
}, | ||
{ | ||
"type": "function", | ||
"name": "setUnjailFee", | ||
"inputs": [ | ||
{ | ||
"name": "newUnjailFee", | ||
"type": "uint256", | ||
"internalType": "uint256" | ||
} | ||
], | ||
"outputs": [], | ||
"stateMutability": "nonpayable" | ||
}, | ||
{ | ||
"type": "function", | ||
"name": "transferOwnership", | ||
"inputs": [ | ||
{ | ||
"name": "newOwner", | ||
"type": "address", | ||
"internalType": "address" | ||
} | ||
], | ||
"outputs": [], | ||
"stateMutability": "nonpayable" | ||
}, | ||
{ | ||
"type": "function", | ||
"name": "unjail", | ||
"inputs": [ | ||
{ | ||
"name": "validatorUncmpPubkey", | ||
"type": "bytes", | ||
"internalType": "bytes" | ||
} | ||
], | ||
"outputs": [], | ||
"stateMutability": "payable" | ||
}, | ||
{ | ||
"type": "function", | ||
"name": "unjailFee", | ||
"inputs": [], | ||
"outputs": [ | ||
{ | ||
"name": "", | ||
"type": "uint256", | ||
"internalType": "uint256" | ||
} | ||
], | ||
"stateMutability": "view" | ||
}, | ||
{ | ||
"type": "function", | ||
"name": "unjailOnBehalf", | ||
"inputs": [ | ||
{ | ||
"name": "validatorCmpPubkey", | ||
"type": "bytes", | ||
"internalType": "bytes" | ||
} | ||
], | ||
"outputs": [], | ||
"stateMutability": "payable" | ||
}, | ||
{ | ||
"type": "function", | ||
"name": "upgradeToAndCall", | ||
"inputs": [ | ||
{ | ||
"name": "newImplementation", | ||
"type": "address", | ||
"internalType": "address" | ||
}, | ||
{ | ||
"name": "data", | ||
"type": "bytes", | ||
"internalType": "bytes" | ||
} | ||
], | ||
"outputs": [], | ||
"stateMutability": "payable" | ||
}, | ||
{ | ||
"type": "event", | ||
"name": "Initialized", | ||
"inputs": [ | ||
{ | ||
"name": "version", | ||
"type": "uint64", | ||
"indexed": false, | ||
"internalType": "uint64" | ||
} | ||
], | ||
"anonymous": false | ||
}, | ||
{ | ||
"type": "event", | ||
"name": "OwnershipTransferStarted", | ||
"inputs": [ | ||
{ | ||
"name": "previousOwner", | ||
"type": "address", | ||
"indexed": true, | ||
"internalType": "address" | ||
}, | ||
{ | ||
"name": "newOwner", | ||
"type": "address", | ||
"indexed": true, | ||
"internalType": "address" | ||
} | ||
], | ||
"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": "Unjail", | ||
"inputs": [ | ||
{ | ||
"name": "sender", | ||
"type": "address", | ||
"indexed": true, | ||
"internalType": "address" | ||
}, | ||
{ | ||
"name": "validatorCmpPubkey", | ||
"type": "bytes", | ||
"indexed": false, | ||
"internalType": "bytes" | ||
} | ||
], | ||
"anonymous": false | ||
}, | ||
{ | ||
"type": "event", | ||
"name": "UnjailFeeSet", | ||
"inputs": [ | ||
{ | ||
"name": "newUnjailFee", | ||
"type": "uint256", | ||
"indexed": false, | ||
"internalType": "uint256" | ||
} | ||
], | ||
"anonymous": false | ||
}, | ||
{ | ||
"type": "event", | ||
"name": "Upgraded", | ||
"inputs": [ | ||
{ | ||
"name": "implementation", | ||
"type": "address", | ||
"indexed": true, | ||
"internalType": "address" | ||
} | ||
], | ||
"anonymous": false | ||
}, | ||
{ | ||
"type": "error", | ||
"name": "AddressEmptyCode", | ||
"inputs": [ | ||
{ | ||
"name": "target", | ||
"type": "address", | ||
"internalType": "address" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "error", | ||
"name": "ERC1967InvalidImplementation", | ||
"inputs": [ | ||
{ | ||
"name": "implementation", | ||
"type": "address", | ||
"internalType": "address" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "error", | ||
"name": "ERC1967NonPayable", | ||
"inputs": [] | ||
}, | ||
{ | ||
"type": "error", | ||
"name": "FailedInnerCall", | ||
"inputs": [] | ||
}, | ||
{ | ||
"type": "error", | ||
"name": "InvalidInitialization", | ||
"inputs": [] | ||
}, | ||
{ | ||
"type": "error", | ||
"name": "NotInitializing", | ||
"inputs": [] | ||
}, | ||
{ | ||
"type": "error", | ||
"name": "OwnableInvalidOwner", | ||
"inputs": [ | ||
{ | ||
"name": "owner", | ||
"type": "address", | ||
"internalType": "address" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "error", | ||
"name": "OwnableUnauthorizedAccount", | ||
"inputs": [ | ||
{ | ||
"name": "account", | ||
"type": "address", | ||
"internalType": "address" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "error", | ||
"name": "UUPSUnauthorizedCallContext", | ||
"inputs": [] | ||
}, | ||
{ | ||
"type": "error", | ||
"name": "UUPSUnsupportedProxiableUUID", | ||
"inputs": [ | ||
{ | ||
"name": "slot", | ||
"type": "bytes32", | ||
"internalType": "bytes32" | ||
} | ||
] | ||
} | ||
] |
Oops, something went wrong.