Skip to content

Commit 185b0d9

Browse files
committed
chore(host-contracts): regenerate bindings and selectors
Regenerates rust bindings and contract selectors after removing hasPendingKeyManagementRequest and KeyManagementRequestInFlight. Part of zama-ai/fhevm-internal#1268
1 parent 4230f9f commit 185b0d9

File tree

5 files changed

+12
-672
lines changed

5 files changed

+12
-672
lines changed

host-contracts/docs/contract_selectors.txt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -712,8 +712,6 @@ KMSGeneration
712712
|----------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------|
713713
| Function | getVersion() | 0x0d8e6e2c |
714714
|----------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------|
715-
| Function | hasPendingKeyManagementRequest() | 0x735b1263 |
716-
|----------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------|
717715
| Function | initializeFromEmptyProxy() | 0x39f73810 |
718716
|----------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------|
719717
| Function | initializeFromMigration((uint256,uint256,uint256,uint256,uint256,uint256,(uint8,bytes)[],bytes,address[],bytes32,address[],bytes32,address[],bytes32,uint256,uint8,uint8,uint256)) | 0xa0079e0f |
@@ -994,8 +992,6 @@ ProtocolConfig
994992
|----------+------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------|
995993
| Error | InvalidNullThreshold(string) | 0x36bfb60e |
996994
|----------+------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------|
997-
| Error | KeyManagementRequestInFlight() | 0x8e2bfd90 |
998-
|----------+------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------|
999995
| Error | KmsNodeNullSigner() | 0x2deccf4d |
1000996
|----------+------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------|
1001997
| Error | KmsNodeNullTxSender() | 0x8466804a |
@@ -1166,8 +1162,6 @@ IKMSGeneration
11661162
|----------+-------------------------------------------------------+--------------------------------------------------------------------|
11671163
| Function | getVersion() | 0x0d8e6e2c |
11681164
|----------+-------------------------------------------------------+--------------------------------------------------------------------|
1169-
| Function | hasPendingKeyManagementRequest() | 0x735b1263 |
1170-
|----------+-------------------------------------------------------+--------------------------------------------------------------------|
11711165
| Function | keygen(uint8) | 0xcaa367db |
11721166
|----------+-------------------------------------------------------+--------------------------------------------------------------------|
11731167
| Function | keygenResponse(uint256,(uint8,bytes)[],bytes) | 0x4610ffe8 |
@@ -1320,8 +1314,6 @@ IProtocolConfig
13201314
|----------+--------------------------------------------------------------------------------------------+--------------------------------------------------------------------|
13211315
| Error | InvalidNullThreshold(string) | 0x36bfb60e |
13221316
|----------+--------------------------------------------------------------------------------------------+--------------------------------------------------------------------|
1323-
| Error | KeyManagementRequestInFlight() | 0x8e2bfd90 |
1324-
|----------+--------------------------------------------------------------------------------------------+--------------------------------------------------------------------|
13251317
| Error | KmsNodeNullSigner() | 0x2deccf4d |
13261318
|----------+--------------------------------------------------------------------------------------------+--------------------------------------------------------------------|
13271319
| Error | KmsNodeNullTxSender() | 0x8466804a |

host-contracts/rust_bindings/src/i_protocol_config.rs

Lines changed: 1 addition & 121 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ interface IProtocolConfig {
2121
error InvalidHighThreshold(string thresholdName, uint256 threshold, uint256 nodeCount);
2222
error InvalidKmsContext(uint256 kmsContextId);
2323
error InvalidNullThreshold(string thresholdName);
24-
error KeyManagementRequestInFlight();
2524
error KmsNodeNullSigner();
2625
error KmsNodeNullTxSender();
2726
error KmsSignerAlreadyRegistered(address signer);
@@ -591,11 +590,6 @@ interface IProtocolConfig {
591590
}
592591
]
593592
},
594-
{
595-
"type": "error",
596-
"name": "KeyManagementRequestInFlight",
597-
"inputs": []
598-
},
599593
{
600594
"type": "error",
601595
"name": "KmsNodeNullSigner",
@@ -1619,81 +1613,6 @@ error InvalidNullThreshold(string thresholdName);
16191613
};
16201614
#[derive(serde::Serialize, serde::Deserialize)]
16211615
#[derive(Default, Debug, PartialEq, Eq, Hash)]
1622-
/**Custom error with signature `KeyManagementRequestInFlight()` and selector `0x8e2bfd90`.
1623-
```solidity
1624-
error KeyManagementRequestInFlight();
1625-
```*/
1626-
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
1627-
#[derive(Clone)]
1628-
pub struct KeyManagementRequestInFlight;
1629-
#[allow(
1630-
non_camel_case_types,
1631-
non_snake_case,
1632-
clippy::pub_underscore_fields,
1633-
clippy::style
1634-
)]
1635-
const _: () = {
1636-
use alloy::sol_types as alloy_sol_types;
1637-
#[doc(hidden)]
1638-
type UnderlyingSolTuple<'a> = ();
1639-
#[doc(hidden)]
1640-
type UnderlyingRustTuple<'a> = ();
1641-
#[cfg(test)]
1642-
#[allow(dead_code, unreachable_patterns)]
1643-
fn _type_assertion(
1644-
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
1645-
) {
1646-
match _t {
1647-
alloy_sol_types::private::AssertTypeEq::<
1648-
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
1649-
>(_) => {}
1650-
}
1651-
}
1652-
#[automatically_derived]
1653-
#[doc(hidden)]
1654-
impl ::core::convert::From<KeyManagementRequestInFlight>
1655-
for UnderlyingRustTuple<'_> {
1656-
fn from(value: KeyManagementRequestInFlight) -> Self {
1657-
()
1658-
}
1659-
}
1660-
#[automatically_derived]
1661-
#[doc(hidden)]
1662-
impl ::core::convert::From<UnderlyingRustTuple<'_>>
1663-
for KeyManagementRequestInFlight {
1664-
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
1665-
Self
1666-
}
1667-
}
1668-
#[automatically_derived]
1669-
impl alloy_sol_types::SolError for KeyManagementRequestInFlight {
1670-
type Parameters<'a> = UnderlyingSolTuple<'a>;
1671-
type Token<'a> = <Self::Parameters<
1672-
'a,
1673-
> as alloy_sol_types::SolType>::Token<'a>;
1674-
const SIGNATURE: &'static str = "KeyManagementRequestInFlight()";
1675-
const SELECTOR: [u8; 4] = [142u8, 43u8, 253u8, 144u8];
1676-
#[inline]
1677-
fn new<'a>(
1678-
tuple: <Self::Parameters<'a> as alloy_sol_types::SolType>::RustType,
1679-
) -> Self {
1680-
tuple.into()
1681-
}
1682-
#[inline]
1683-
fn tokenize(&self) -> Self::Token<'_> {
1684-
()
1685-
}
1686-
#[inline]
1687-
fn abi_decode_raw_validate(data: &[u8]) -> alloy_sol_types::Result<Self> {
1688-
<Self::Parameters<
1689-
'_,
1690-
> as alloy_sol_types::SolType>::abi_decode_sequence_validate(data)
1691-
.map(Self::new)
1692-
}
1693-
}
1694-
};
1695-
#[derive(serde::Serialize, serde::Deserialize)]
1696-
#[derive(Default, Debug, PartialEq, Eq, Hash)]
16971616
/**Custom error with signature `KmsNodeNullSigner()` and selector `0x2deccf4d`.
16981617
```solidity
16991618
error KmsNodeNullSigner();
@@ -5859,8 +5778,6 @@ function isValidKmsContext(uint256 kmsContextId) external view returns (bool);
58595778
#[allow(missing_docs)]
58605779
InvalidNullThreshold(InvalidNullThreshold),
58615780
#[allow(missing_docs)]
5862-
KeyManagementRequestInFlight(KeyManagementRequestInFlight),
5863-
#[allow(missing_docs)]
58645781
KmsNodeNullSigner(KmsNodeNullSigner),
58655782
#[allow(missing_docs)]
58665783
KmsNodeNullTxSender(KmsNodeNullTxSender),
@@ -5884,7 +5801,6 @@ function isValidKmsContext(uint256 kmsContextId) external view returns (bool);
58845801
[69u8, 149u8, 252u8, 226u8],
58855802
[119u8, 221u8, 190u8, 129u8],
58865803
[132u8, 102u8, 128u8, 74u8],
5887-
[142u8, 43u8, 253u8, 144u8],
58885804
[202u8, 168u8, 20u8, 163u8],
58895805
[209u8, 140u8, 79u8, 240u8],
58905806
[245u8, 26u8, 246u8, 187u8],
@@ -5894,7 +5810,7 @@ function isValidKmsContext(uint256 kmsContextId) external view returns (bool);
58945810
impl alloy_sol_types::SolInterface for IProtocolConfigErrors {
58955811
const NAME: &'static str = "IProtocolConfigErrors";
58965812
const MIN_DATA_LENGTH: usize = 0usize;
5897-
const COUNT: usize = 10usize;
5813+
const COUNT: usize = 9usize;
58985814
#[inline]
58995815
fn selector(&self) -> [u8; 4] {
59005816
match self {
@@ -5913,9 +5829,6 @@ function isValidKmsContext(uint256 kmsContextId) external view returns (bool);
59135829
Self::InvalidNullThreshold(_) => {
59145830
<InvalidNullThreshold as alloy_sol_types::SolError>::SELECTOR
59155831
}
5916-
Self::KeyManagementRequestInFlight(_) => {
5917-
<KeyManagementRequestInFlight as alloy_sol_types::SolError>::SELECTOR
5918-
}
59195832
Self::KmsNodeNullSigner(_) => {
59205833
<KmsNodeNullSigner as alloy_sol_types::SolError>::SELECTOR
59215834
}
@@ -6015,17 +5928,6 @@ function isValidKmsContext(uint256 kmsContextId) external view returns (bool);
60155928
}
60165929
KmsNodeNullTxSender
60175930
},
6018-
{
6019-
fn KeyManagementRequestInFlight(
6020-
data: &[u8],
6021-
) -> alloy_sol_types::Result<IProtocolConfigErrors> {
6022-
<KeyManagementRequestInFlight as alloy_sol_types::SolError>::abi_decode_raw(
6023-
data,
6024-
)
6025-
.map(IProtocolConfigErrors::KeyManagementRequestInFlight)
6026-
}
6027-
KeyManagementRequestInFlight
6028-
},
60295931
{
60305932
fn InvalidHighThreshold(
60315933
data: &[u8],
@@ -6147,17 +6049,6 @@ function isValidKmsContext(uint256 kmsContextId) external view returns (bool);
61476049
}
61486050
KmsNodeNullTxSender
61496051
},
6150-
{
6151-
fn KeyManagementRequestInFlight(
6152-
data: &[u8],
6153-
) -> alloy_sol_types::Result<IProtocolConfigErrors> {
6154-
<KeyManagementRequestInFlight as alloy_sol_types::SolError>::abi_decode_raw_validate(
6155-
data,
6156-
)
6157-
.map(IProtocolConfigErrors::KeyManagementRequestInFlight)
6158-
}
6159-
KeyManagementRequestInFlight
6160-
},
61616052
{
61626053
fn InvalidHighThreshold(
61636054
data: &[u8],
@@ -6228,11 +6119,6 @@ function isValidKmsContext(uint256 kmsContextId) external view returns (bool);
62286119
inner,
62296120
)
62306121
}
6231-
Self::KeyManagementRequestInFlight(inner) => {
6232-
<KeyManagementRequestInFlight as alloy_sol_types::SolError>::abi_encoded_size(
6233-
inner,
6234-
)
6235-
}
62366122
Self::KmsNodeNullSigner(inner) => {
62376123
<KmsNodeNullSigner as alloy_sol_types::SolError>::abi_encoded_size(
62386124
inner,
@@ -6288,12 +6174,6 @@ function isValidKmsContext(uint256 kmsContextId) external view returns (bool);
62886174
out,
62896175
)
62906176
}
6291-
Self::KeyManagementRequestInFlight(inner) => {
6292-
<KeyManagementRequestInFlight as alloy_sol_types::SolError>::abi_encode_raw(
6293-
inner,
6294-
out,
6295-
)
6296-
}
62976177
Self::KmsNodeNullSigner(inner) => {
62986178
<KmsNodeNullSigner as alloy_sol_types::SolError>::abi_encode_raw(
62996179
inner,

0 commit comments

Comments
 (0)