Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

Commit

Permalink
IPC-304: add permissioned flag to disable validator changes (#305)
Browse files Browse the repository at this point in the history
* IPC-304: add permissioned flag to disable validator changes

* Apply Prettier formatting

* IPC-304: allow leave when subnet not bootstrapped

* commit rust binding

* commit ABI artifacts

* IPC-304: update subnet actor deployment

---------

Co-authored-by: adlrocha <[email protected]>
Co-authored-by: auto-commit <[email protected]>
  • Loading branch information
3 people authored Dec 5, 2023
1 parent c0681dc commit ae9edfb
Show file tree
Hide file tree
Showing 76 changed files with 703 additions and 605 deletions.
312 changes: 156 additions & 156 deletions .storage-layouts/GatewayActorModifiers.json

Large diffs are not rendered by default.

310 changes: 155 additions & 155 deletions .storage-layouts/GatewayDiamond.json

Large diffs are not rendered by default.

224 changes: 116 additions & 108 deletions .storage-layouts/SubnetActorDiamond.json

Large diffs are not rendered by default.

226 changes: 117 additions & 109 deletions .storage-layouts/SubnetActorModifiers.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions binding/src/gateway_diamond.rs

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions binding/src/lib_gateway.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,13 @@ pub mod lib_gateway {
__abi,
);
#[rustfmt::skip]
const __BYTECODE: &[u8] = b"`\x80\x80`@R4`\x17W`:\x90\x81`\x1D\x8290\x81PP\xF3[`\0\x80\xFD\xFE`\0\x80\xFD\xFE\xA2dipfsX\"\x12 \xBF|\x7F\xD6rr\xF2\x049\xA4\xE5\x84n\x99\x1E\x8E\xB9\xD7&\xCB\xBCScw<V\x8F eXM/dsolcC\0\x08\x13\x003";
const __BYTECODE: &[u8] = b"`\x80\x80`@R4`\x17W`:\x90\x81`\x1D\x8290\x81PP\xF3[`\0\x80\xFD\xFE`\0\x80\xFD\xFE\xA2dipfsX\"\x12 {\x0C\xF2\x94p\"\x16I\xC8\xA6\xA5\xAF\xB5\x05\xEFI\x02\x9E4d\x13`\x937\xC0\xF6\x0F\xD2\x0B\xB2\xA7\x8CdsolcC\0\x08\x13\x003";
/// The bytecode of the contract.
pub static LIBGATEWAY_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static(
__BYTECODE,
);
#[rustfmt::skip]
const __DEPLOYED_BYTECODE: &[u8] = b"`\0\x80\xFD\xFE\xA2dipfsX\"\x12 \xBF|\x7F\xD6rr\xF2\x049\xA4\xE5\x84n\x99\x1E\x8E\xB9\xD7&\xCB\xBCScw<V\x8F eXM/dsolcC\0\x08\x13\x003";
const __DEPLOYED_BYTECODE: &[u8] = b"`\0\x80\xFD\xFE\xA2dipfsX\"\x12 {\x0C\xF2\x94p\"\x16I\xC8\xA6\xA5\xAF\xB5\x05\xEFI\x02\x9E4d\x13`\x937\xC0\xF6\x0F\xD2\x0B\xB2\xA7\x8CdsolcC\0\x08\x13\x003";
/// The deployed bytecode of the contract.
pub static LIBGATEWAY_DEPLOYED_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static(
__DEPLOYED_BYTECODE,
Expand Down
4 changes: 2 additions & 2 deletions binding/src/lib_staking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,13 @@ pub mod lib_staking {
__abi,
);
#[rustfmt::skip]
const __BYTECODE: &[u8] = b"`\x80\x80`@R4a\0\x1CWa\x02\x14\x90\x81a\0\"\x8290\x81`.\x01R\xF3[`\0\x80\xFD\xFE`@`\x80\x81R`\x04\x806\x10\x15a\0\x14W`\0\x80\xFD[`\0\x91\x825`\xE0\x1Cc\x82\x98^\x0B\x14a\0+W`\0\x80\xFD[0\x7F\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x14a\x01\xDAW` 6`\x03\x19\x01\x12a\x01\xDAW\x815`\x01`\x01`\xA0\x1B\x03\x80\x82\x16\x90\x81\x83\x03a\x01\xD6W`\x01`\x01`\xA0\x1B\x03\x83\x16`\0\x90\x81R`\x1C` R`@\x90 T\x92\x83\x15a\x01\xC6W`\x01`\x01`\xA0\x1B\x03\x16`\0\x90\x81R`\x1C` R`@\x90 \x86\x90U`\tT\x86\x91\x16\x80;\x15a\x01\xC2W\x81\x90`$\x86Q\x80\x94\x81\x93clq*\xB9`\xE1\x1B\x83R\x88\x8B\x84\x01RZ\xF1\x80\x15a\x01\xB8Wa\x01\x8AW[P\x81G\x10a\x01tW\x84\x80\x80\x93\x81\x93Z\xF1=\x15a\x01oWg\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF=\x81\x81\x11a\x01\\W\x83Q\x91`\x1F\x82\x01`\x1F\x19\x90\x81\x16`?\x01\x16\x83\x01\x90\x81\x11\x83\x82\x10\x17a\x01GW\x84R\x81R\x84` =\x92\x01>[\x15a\x01:W\x82\x80\xF3[Qc\n\x12\xF5!`\xE1\x1B\x81R\xFD[`A\x86cNH{q`\xE0\x1B`\0RR`$`\0\xFD[cNH{q`\xE0\x1B\x86R`A\x85R`$\x86\xFD[a\x011V[\x82Qc\xCDx`Y`\xE0\x1B\x81R0\x81\x86\x01R`$\x90\xFD[g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x81\x96\x92\x96\x11a\x01\xA5W\x83R\x938a\0\xE0V[cNH{q`\xE0\x1B\x82R`A\x85R`$\x82\xFD[\x84Q=\x88\x82>=\x90\xFD[P\x80\xFD[\x84Qcg0\x0F\x91`\xE1\x1B\x81R\x86\x90\xFD[\x85\x80\xFD[\x82\x80\xFD\xFE\xA2dipfsX\"\x12 \x18$\x942unT\x12jW\x05\x83\x87\x14\xA8:J&\xF7\x017p\"J\xA1\xF3]Q-\x80\0\tdsolcC\0\x08\x13\x003";
const __BYTECODE: &[u8] = b"`\x80\x80`@R4a\0\x1CWa\x02\x14\x90\x81a\0\"\x8290\x81`.\x01R\xF3[`\0\x80\xFD\xFE`@`\x80\x81R`\x04\x806\x10\x15a\0\x14W`\0\x80\xFD[`\0\x91\x825`\xE0\x1Cc\x82\x98^\x0B\x14a\0+W`\0\x80\xFD[0\x7F\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x14a\x01\xDAW` 6`\x03\x19\x01\x12a\x01\xDAW\x815`\x01`\x01`\xA0\x1B\x03\x80\x82\x16\x90\x81\x83\x03a\x01\xD6W`\x01`\x01`\xA0\x1B\x03\x83\x16`\0\x90\x81R`\x1C` R`@\x90 T\x92\x83\x15a\x01\xC6W`\x01`\x01`\xA0\x1B\x03\x16`\0\x90\x81R`\x1C` R`@\x90 \x86\x90U`\tT\x86\x91\x16\x80;\x15a\x01\xC2W\x81\x90`$\x86Q\x80\x94\x81\x93clq*\xB9`\xE1\x1B\x83R\x88\x8B\x84\x01RZ\xF1\x80\x15a\x01\xB8Wa\x01\x8AW[P\x81G\x10a\x01tW\x84\x80\x80\x93\x81\x93Z\xF1=\x15a\x01oWg\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF=\x81\x81\x11a\x01\\W\x83Q\x91`\x1F\x82\x01`\x1F\x19\x90\x81\x16`?\x01\x16\x83\x01\x90\x81\x11\x83\x82\x10\x17a\x01GW\x84R\x81R\x84` =\x92\x01>[\x15a\x01:W\x82\x80\xF3[Qc\n\x12\xF5!`\xE1\x1B\x81R\xFD[`A\x86cNH{q`\xE0\x1B`\0RR`$`\0\xFD[cNH{q`\xE0\x1B\x86R`A\x85R`$\x86\xFD[a\x011V[\x82Qc\xCDx`Y`\xE0\x1B\x81R0\x81\x86\x01R`$\x90\xFD[g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x81\x96\x92\x96\x11a\x01\xA5W\x83R\x938a\0\xE0V[cNH{q`\xE0\x1B\x82R`A\x85R`$\x82\xFD[\x84Q=\x88\x82>=\x90\xFD[P\x80\xFD[\x84Qcg0\x0F\x91`\xE1\x1B\x81R\x86\x90\xFD[\x85\x80\xFD[\x82\x80\xFD\xFE\xA2dipfsX\"\x12 e&jfv\xC6\x1F\xCBF\x8E\x808\x07\xE0xo$\xDB}\x0Eae\x13\x08\xE3\xBB\xF0d\x81\xC51\x92dsolcC\0\x08\x13\x003";
/// The bytecode of the contract.
pub static LIBSTAKING_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static(
__BYTECODE,
);
#[rustfmt::skip]
const __DEPLOYED_BYTECODE: &[u8] = b"`@`\x80\x81R`\x04\x806\x10\x15a\0\x14W`\0\x80\xFD[`\0\x91\x825`\xE0\x1Cc\x82\x98^\x0B\x14a\0+W`\0\x80\xFD[0\x7F\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x14a\x01\xDAW` 6`\x03\x19\x01\x12a\x01\xDAW\x815`\x01`\x01`\xA0\x1B\x03\x80\x82\x16\x90\x81\x83\x03a\x01\xD6W`\x01`\x01`\xA0\x1B\x03\x83\x16`\0\x90\x81R`\x1C` R`@\x90 T\x92\x83\x15a\x01\xC6W`\x01`\x01`\xA0\x1B\x03\x16`\0\x90\x81R`\x1C` R`@\x90 \x86\x90U`\tT\x86\x91\x16\x80;\x15a\x01\xC2W\x81\x90`$\x86Q\x80\x94\x81\x93clq*\xB9`\xE1\x1B\x83R\x88\x8B\x84\x01RZ\xF1\x80\x15a\x01\xB8Wa\x01\x8AW[P\x81G\x10a\x01tW\x84\x80\x80\x93\x81\x93Z\xF1=\x15a\x01oWg\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF=\x81\x81\x11a\x01\\W\x83Q\x91`\x1F\x82\x01`\x1F\x19\x90\x81\x16`?\x01\x16\x83\x01\x90\x81\x11\x83\x82\x10\x17a\x01GW\x84R\x81R\x84` =\x92\x01>[\x15a\x01:W\x82\x80\xF3[Qc\n\x12\xF5!`\xE1\x1B\x81R\xFD[`A\x86cNH{q`\xE0\x1B`\0RR`$`\0\xFD[cNH{q`\xE0\x1B\x86R`A\x85R`$\x86\xFD[a\x011V[\x82Qc\xCDx`Y`\xE0\x1B\x81R0\x81\x86\x01R`$\x90\xFD[g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x81\x96\x92\x96\x11a\x01\xA5W\x83R\x938a\0\xE0V[cNH{q`\xE0\x1B\x82R`A\x85R`$\x82\xFD[\x84Q=\x88\x82>=\x90\xFD[P\x80\xFD[\x84Qcg0\x0F\x91`\xE1\x1B\x81R\x86\x90\xFD[\x85\x80\xFD[\x82\x80\xFD\xFE\xA2dipfsX\"\x12 \x18$\x942unT\x12jW\x05\x83\x87\x14\xA8:J&\xF7\x017p\"J\xA1\xF3]Q-\x80\0\tdsolcC\0\x08\x13\x003";
const __DEPLOYED_BYTECODE: &[u8] = b"`@`\x80\x81R`\x04\x806\x10\x15a\0\x14W`\0\x80\xFD[`\0\x91\x825`\xE0\x1Cc\x82\x98^\x0B\x14a\0+W`\0\x80\xFD[0\x7F\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x14a\x01\xDAW` 6`\x03\x19\x01\x12a\x01\xDAW\x815`\x01`\x01`\xA0\x1B\x03\x80\x82\x16\x90\x81\x83\x03a\x01\xD6W`\x01`\x01`\xA0\x1B\x03\x83\x16`\0\x90\x81R`\x1C` R`@\x90 T\x92\x83\x15a\x01\xC6W`\x01`\x01`\xA0\x1B\x03\x16`\0\x90\x81R`\x1C` R`@\x90 \x86\x90U`\tT\x86\x91\x16\x80;\x15a\x01\xC2W\x81\x90`$\x86Q\x80\x94\x81\x93clq*\xB9`\xE1\x1B\x83R\x88\x8B\x84\x01RZ\xF1\x80\x15a\x01\xB8Wa\x01\x8AW[P\x81G\x10a\x01tW\x84\x80\x80\x93\x81\x93Z\xF1=\x15a\x01oWg\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF=\x81\x81\x11a\x01\\W\x83Q\x91`\x1F\x82\x01`\x1F\x19\x90\x81\x16`?\x01\x16\x83\x01\x90\x81\x11\x83\x82\x10\x17a\x01GW\x84R\x81R\x84` =\x92\x01>[\x15a\x01:W\x82\x80\xF3[Qc\n\x12\xF5!`\xE1\x1B\x81R\xFD[`A\x86cNH{q`\xE0\x1B`\0RR`$`\0\xFD[cNH{q`\xE0\x1B\x86R`A\x85R`$\x86\xFD[a\x011V[\x82Qc\xCDx`Y`\xE0\x1B\x81R0\x81\x86\x01R`$\x90\xFD[g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x81\x96\x92\x96\x11a\x01\xA5W\x83R\x938a\0\xE0V[cNH{q`\xE0\x1B\x82R`A\x85R`$\x82\xFD[\x84Q=\x88\x82>=\x90\xFD[P\x80\xFD[\x84Qcg0\x0F\x91`\xE1\x1B\x81R\x86\x90\xFD[\x85\x80\xFD[\x82\x80\xFD\xFE\xA2dipfsX\"\x12 e&jfv\xC6\x1F\xCBF\x8E\x808\x07\xE0xo$\xDB}\x0Eae\x13\x08\xE3\xBB\xF0d\x81\xC51\x92dsolcC\0\x08\x13\x003";
/// The deployed bytecode of the contract.
pub static LIBSTAKING_DEPLOYED_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static(
__DEPLOYED_BYTECODE,
Expand Down
4 changes: 2 additions & 2 deletions binding/src/lib_staking_change_log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ pub mod lib_staking_change_log {
::ethers::core::abi::Abi,
> = ::ethers::contract::Lazy::new(__abi);
#[rustfmt::skip]
const __BYTECODE: &[u8] = b"`\x80\x80`@R4`\x17W`:\x90\x81`\x1D\x8290\x81PP\xF3[`\0\x80\xFD\xFE`\0\x80\xFD\xFE\xA2dipfsX\"\x12 \xC7\xA1R\xDB\xB3\x97\xF2~\xB0\xEC\xA7\xC5SR\x94\xCF\xD2\xD7z&\xB3\x80\x15\xB8P6!\x83\x0F\0\x92PdsolcC\0\x08\x13\x003";
const __BYTECODE: &[u8] = b"`\x80\x80`@R4`\x17W`:\x90\x81`\x1D\x8290\x81PP\xF3[`\0\x80\xFD\xFE`\0\x80\xFD\xFE\xA2dipfsX\"\x12 \xF4\x11}\xC2-\xCB;\x06\xB2\xF1\x01\x7F^\xCE\xA0@\xDC\x84\"\xE3\"\x04\x95\xD7\x13\xFCK:\x17\x0B=ddsolcC\0\x08\x13\x003";
/// The bytecode of the contract.
pub static LIBSTAKINGCHANGELOG_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static(
__BYTECODE,
);
#[rustfmt::skip]
const __DEPLOYED_BYTECODE: &[u8] = b"`\0\x80\xFD\xFE\xA2dipfsX\"\x12 \xC7\xA1R\xDB\xB3\x97\xF2~\xB0\xEC\xA7\xC5SR\x94\xCF\xD2\xD7z&\xB3\x80\x15\xB8P6!\x83\x0F\0\x92PdsolcC\0\x08\x13\x003";
const __DEPLOYED_BYTECODE: &[u8] = b"`\0\x80\xFD\xFE\xA2dipfsX\"\x12 \xF4\x11}\xC2-\xCB;\x06\xB2\xF1\x01\x7F^\xCE\xA0@\xDC\x84\"\xE3\"\x04\x95\xD7\x13\xFCK:\x17\x0B=ddsolcC\0\x08\x13\x003";
/// The deployed bytecode of the contract.
pub static LIBSTAKINGCHANGELOG_DEPLOYED_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static(
__DEPLOYED_BYTECODE,
Expand Down
14 changes: 8 additions & 6 deletions binding/src/register_subnet_facet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ pub mod register_subnet_facet {
::ethers::core::abi::ethabi::ParamType::Uint(16usize),
::ethers::core::abi::ethabi::ParamType::Uint(256usize),
::ethers::core::abi::ethabi::ParamType::Int(8usize),
::ethers::core::abi::ethabi::ParamType::Bool,
],
),
internal_type: ::core::option::Option::Some(
Expand Down Expand Up @@ -153,7 +154,7 @@ pub mod register_subnet_facet {
),
)
}
///Calls the contract's `newSubnetActor` (0x1842679a) function
///Calls the contract's `newSubnetActor` (0xa04962a0) function
pub fn new_subnet_actor(
&self,
params: ConstructorParams,
Expand All @@ -162,7 +163,7 @@ pub mod register_subnet_facet {
::ethers::core::types::Address,
> {
self.0
.method_hash([24, 66, 103, 154], (params,))
.method_hash([160, 73, 98, 160], (params,))
.expect("method not found (this should never happen)")
}
///Gets the contract's `SubnetDeployed` event
Expand Down Expand Up @@ -315,7 +316,7 @@ pub mod register_subnet_facet {
pub struct SubnetDeployedFilter {
pub subnet_addr: ::ethers::core::types::Address,
}
///Container type for all input parameters for the `newSubnetActor` function with signature `newSubnetActor(((uint64,address[]),address,uint8,uint256,uint64,uint64,uint8,uint16,uint256,int8))` and selector `0x1842679a`
///Container type for all input parameters for the `newSubnetActor` function with signature `newSubnetActor(((uint64,address[]),address,uint8,uint256,uint64,uint64,uint8,uint16,uint256,int8,bool))` and selector `0xa04962a0`
#[derive(
Clone,
::ethers::contract::EthCall,
Expand All @@ -328,12 +329,12 @@ pub mod register_subnet_facet {
)]
#[ethcall(
name = "newSubnetActor",
abi = "newSubnetActor(((uint64,address[]),address,uint8,uint256,uint64,uint64,uint8,uint16,uint256,int8))"
abi = "newSubnetActor(((uint64,address[]),address,uint8,uint256,uint64,uint64,uint8,uint16,uint256,int8,bool))"
)]
pub struct NewSubnetActorCall {
pub params: ConstructorParams,
}
///Container type for all return fields from the `newSubnetActor` function with signature `newSubnetActor(((uint64,address[]),address,uint8,uint256,uint64,uint64,uint8,uint16,uint256,int8))` and selector `0x1842679a`
///Container type for all return fields from the `newSubnetActor` function with signature `newSubnetActor(((uint64,address[]),address,uint8,uint256,uint64,uint64,uint8,uint16,uint256,int8,bool))` and selector `0xa04962a0`
#[derive(
Clone,
::ethers::contract::EthAbiType,
Expand All @@ -347,7 +348,7 @@ pub mod register_subnet_facet {
pub struct NewSubnetActorReturn {
pub subnet_addr: ::ethers::core::types::Address,
}
///`ConstructorParams((uint64,address[]),address,uint8,uint256,uint64,uint64,uint8,uint16,uint256,int8)`
///`ConstructorParams((uint64,address[]),address,uint8,uint256,uint64,uint64,uint8,uint16,uint256,int8,bool)`
#[derive(
Clone,
::ethers::contract::EthAbiType,
Expand All @@ -369,6 +370,7 @@ pub mod register_subnet_facet {
pub active_validators_limit: u16,
pub min_cross_msg_fee: ::ethers::core::types::U256,
pub power_scale: i8,
pub permissioned: bool,
}
///`SubnetID(uint64,address[])`
#[derive(
Expand Down
3 changes: 2 additions & 1 deletion binding/src/subnet_actor_diamond.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ pub mod subnet_actor_diamond {
::ethers::core::abi::ethabi::ParamType::Uint(16usize),
::ethers::core::abi::ethabi::ParamType::Uint(256usize),
::ethers::core::abi::ethabi::ParamType::Int(8usize),
::ethers::core::abi::ethabi::ParamType::Bool,
],
),
internal_type: ::core::option::Option::Some(
Expand Down Expand Up @@ -462,7 +463,7 @@ pub mod subnet_actor_diamond {
::ethers::core::abi::Abi,
> = ::ethers::contract::Lazy::new(__abi);
#[rustfmt::skip]
const __DEPLOYED_BYTECODE: &[u8] = b"`\x80`@R6\x15`\x91W`\0\x805`\x01`\x01`\xE0\x1B\x03\x19\x16\x80\x82R\x7F\x80n\x0C\xBB\x9F\xCE)k\xBC3jH\xF4+\xF1\xDB\xC6\x97\"\xD1\x8D\x90\xD6\xFEp[u\x82\xC2\xBBK\xD2` R`@\x82 T`\x01`\x01`\xA0\x1B\x03\x16\x90\x81\x15`oWP\x81\x80\x916\x82\x807\x816\x91Z\xF4=\x82\x80>\x15`kW=\x90\xF3[=\x90\xFD[c\n\x82\xDDs`\xE3\x1B`\x80R`\x01`\x01`\xE0\x1B\x03\x19\x16`\x84R`\x7F\x19`\xA4\x01`\x80\xFD[`\tT`\x01`\x01`\xA0\x1B\x03\x163\x03`\xA4W\0[c\xE7\xE6\x01\xDB`\xE0\x1B`\x80R`\x04`\x80\xFD\xFE\xA2dipfsX\"\x12 ^\xA0\x10\xB6\xB1(\x89I\xFA\x8D\x86%Yb\xB0HX\x8B?W&\xC0\xDB\xD9\xF7i\xC8\x82P\x16\x11\x87dsolcC\0\x08\x13\x003";
const __DEPLOYED_BYTECODE: &[u8] = b"`\x80`@R6\x15`\x91W`\0\x805`\x01`\x01`\xE0\x1B\x03\x19\x16\x80\x82R\x7F\x80n\x0C\xBB\x9F\xCE)k\xBC3jH\xF4+\xF1\xDB\xC6\x97\"\xD1\x8D\x90\xD6\xFEp[u\x82\xC2\xBBK\xD2` R`@\x82 T`\x01`\x01`\xA0\x1B\x03\x16\x90\x81\x15`oWP\x81\x80\x916\x82\x807\x816\x91Z\xF4=\x82\x80>\x15`kW=\x90\xF3[=\x90\xFD[c\n\x82\xDDs`\xE3\x1B`\x80R`\x01`\x01`\xE0\x1B\x03\x19\x16`\x84R`\x7F\x19`\xA4\x01`\x80\xFD[`\tT`\x01`\x01`\xA0\x1B\x03\x163\x03`\xA4W\0[c\xE7\xE6\x01\xDB`\xE0\x1B`\x80R`\x04`\x80\xFD\xFE\xA2dipfsX\"\x12 \xB3\x19y\x90\x1D\xF5D\x95\r+/\xE2\x15H:\x9A\\5\xD3\x95FJ\xB1\xC1\xCAs\x0F\xE1\xD4\xC0\x1F\x18dsolcC\0\x08\x13\x003";
/// The deployed bytecode of the contract.
pub static SUBNETACTORDIAMOND_DEPLOYED_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static(
__DEPLOYED_BYTECODE,
Expand Down
41 changes: 41 additions & 0 deletions binding/src/subnet_actor_manager_facet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,15 @@ pub mod subnet_actor_manager_facet {
},
],
),
(
::std::borrow::ToOwned::to_owned("MethodNotAllowed"),
::std::vec![
::ethers::core::abi::ethabi::AbiError {
name: ::std::borrow::ToOwned::to_owned("MethodNotAllowed"),
inputs: ::std::vec![],
},
],
),
(
::std::borrow::ToOwned::to_owned("NoCollateralToWithdraw"),
::std::vec![
Expand Down Expand Up @@ -1148,6 +1157,19 @@ pub mod subnet_actor_manager_facet {
)]
#[etherror(name = "InvalidSignatureErr", abi = "InvalidSignatureErr(uint8)")]
pub struct InvalidSignatureErr(pub u8);
///Custom Error type `MethodNotAllowed` with signature `MethodNotAllowed()` and selector `0x83f171d6`
#[derive(
Clone,
::ethers::contract::EthError,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash
)]
#[etherror(name = "MethodNotAllowed", abi = "MethodNotAllowed()")]
pub struct MethodNotAllowed;
///Custom Error type `NoCollateralToWithdraw` with signature `NoCollateralToWithdraw()` and selector `0x64b0557f`
#[derive(
Clone,
Expand Down Expand Up @@ -1360,6 +1382,7 @@ pub mod subnet_actor_manager_facet {
InvalidCheckpointMessagesHash(InvalidCheckpointMessagesHash),
InvalidPublicKeyLength(InvalidPublicKeyLength),
InvalidSignatureErr(InvalidSignatureErr),
MethodNotAllowed(MethodNotAllowed),
NoCollateralToWithdraw(NoCollateralToWithdraw),
NotAllValidatorsHaveLeft(NotAllValidatorsHaveLeft),
NotEnoughBalance(NotEnoughBalance),
Expand Down Expand Up @@ -1444,6 +1467,11 @@ pub mod subnet_actor_manager_facet {
) {
return Ok(Self::InvalidSignatureErr(decoded));
}
if let Ok(decoded) = <MethodNotAllowed as ::ethers::core::abi::AbiDecode>::decode(
data,
) {
return Ok(Self::MethodNotAllowed(decoded));
}
if let Ok(decoded) = <NoCollateralToWithdraw as ::ethers::core::abi::AbiDecode>::decode(
data,
) {
Expand Down Expand Up @@ -1558,6 +1586,9 @@ pub mod subnet_actor_manager_facet {
Self::InvalidSignatureErr(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::MethodNotAllowed(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::NoCollateralToWithdraw(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Expand Down Expand Up @@ -1651,6 +1682,10 @@ pub mod subnet_actor_manager_facet {
== <InvalidSignatureErr as ::ethers::contract::EthError>::selector() => {
true
}
_ if selector
== <MethodNotAllowed as ::ethers::contract::EthError>::selector() => {
true
}
_ if selector
== <NoCollateralToWithdraw as ::ethers::contract::EthError>::selector() => {
true
Expand Down Expand Up @@ -1737,6 +1772,7 @@ pub mod subnet_actor_manager_facet {
Self::InvalidSignatureErr(element) => {
::core::fmt::Display::fmt(element, f)
}
Self::MethodNotAllowed(element) => ::core::fmt::Display::fmt(element, f),
Self::NoCollateralToWithdraw(element) => {
::core::fmt::Display::fmt(element, f)
}
Expand Down Expand Up @@ -1838,6 +1874,11 @@ pub mod subnet_actor_manager_facet {
Self::InvalidSignatureErr(value)
}
}
impl ::core::convert::From<MethodNotAllowed> for SubnetActorManagerFacetErrors {
fn from(value: MethodNotAllowed) -> Self {
Self::MethodNotAllowed(value)
}
}
impl ::core::convert::From<NoCollateralToWithdraw>
for SubnetActorManagerFacetErrors {
fn from(value: NoCollateralToWithdraw) -> Self {
Expand Down
Loading

0 comments on commit ae9edfb

Please sign in to comment.