Skip to content

Commit 9b29198

Browse files
committed
Added AliasStateCreate end of epoch transaction kind
1 parent e657d59 commit 9b29198

File tree

6 files changed

+15
-0
lines changed

6 files changed

+15
-0
lines changed
24 Bytes
Binary file not shown.

crates/sui-rpc/src/proto/generated/sui.rpc.v2.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7295,6 +7295,8 @@ pub mod end_of_epoch_transaction_kind {
72957295
CoinRegistryCreate = 10,
72967296
/// Create and initialize the Display Registry object.
72977297
DisplayRegistryCreate = 11,
7298+
/// Create and initialize the Alias State object.
7299+
AliasStateCreate = 12,
72987300
}
72997301
impl Kind {
73007302
/// String value of the enum field names used in the ProtoBuf definition.
@@ -7317,6 +7319,7 @@ pub mod end_of_epoch_transaction_kind {
73177319
Self::AccumulatorRootCreate => "ACCUMULATOR_ROOT_CREATE",
73187320
Self::CoinRegistryCreate => "COIN_REGISTRY_CREATE",
73197321
Self::DisplayRegistryCreate => "DISPLAY_REGISTRY_CREATE",
7322+
Self::AliasStateCreate => "ALIAS_STATE_CREATE",
73207323
}
73217324
}
73227325
/// Creates an enum from field names used in the ProtoBuf definition.
@@ -7336,6 +7339,7 @@ pub mod end_of_epoch_transaction_kind {
73367339
"ACCUMULATOR_ROOT_CREATE" => Some(Self::AccumulatorRootCreate),
73377340
"COIN_REGISTRY_CREATE" => Some(Self::CoinRegistryCreate),
73387341
"DISPLAY_REGISTRY_CREATE" => Some(Self::DisplayRegistryCreate),
7342+
"ALIAS_STATE_CREATE" => Some(Self::AliasStateCreate),
73397343
_ => None,
73407344
}
73417345
}

crates/sui-rpc/src/proto/generated/sui.rpc.v2.serde.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6692,6 +6692,7 @@ impl serde::Serialize for end_of_epoch_transaction_kind::Kind {
66926692
Self::AccumulatorRootCreate => "ACCUMULATOR_ROOT_CREATE",
66936693
Self::CoinRegistryCreate => "COIN_REGISTRY_CREATE",
66946694
Self::DisplayRegistryCreate => "DISPLAY_REGISTRY_CREATE",
6695+
Self::AliasStateCreate => "ALIAS_STATE_CREATE",
66956696
};
66966697
serializer.serialize_str(variant)
66976698
}
@@ -6715,6 +6716,7 @@ impl<'de> serde::Deserialize<'de> for end_of_epoch_transaction_kind::Kind {
67156716
"ACCUMULATOR_ROOT_CREATE",
67166717
"COIN_REGISTRY_CREATE",
67176718
"DISPLAY_REGISTRY_CREATE",
6719+
"ALIAS_STATE_CREATE",
67186720
];
67196721

67206722
struct GeneratedVisitor;
@@ -6767,6 +6769,7 @@ impl<'de> serde::Deserialize<'de> for end_of_epoch_transaction_kind::Kind {
67676769
"ACCUMULATOR_ROOT_CREATE" => Ok(end_of_epoch_transaction_kind::Kind::AccumulatorRootCreate),
67686770
"COIN_REGISTRY_CREATE" => Ok(end_of_epoch_transaction_kind::Kind::CoinRegistryCreate),
67696771
"DISPLAY_REGISTRY_CREATE" => Ok(end_of_epoch_transaction_kind::Kind::DisplayRegistryCreate),
6772+
"ALIAS_STATE_CREATE" => Ok(end_of_epoch_transaction_kind::Kind::AliasStateCreate),
67706773
_ => Err(serde::de::Error::unknown_variant(value, FIELDS)),
67716774
}
67726775
}

crates/sui-rpc/src/proto/sui/rpc/v2/transaction.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,6 +1164,7 @@ impl From<sui_sdk_types::EndOfEpochTransactionKind> for EndOfEpochTransactionKin
11641164
K::AccumulatorRootCreate => message.with_kind(Kind::AccumulatorRootCreate),
11651165
K::CoinRegistryCreate => message.with_kind(Kind::CoinRegistryCreate),
11661166
K::DisplayRegistryCreate => message.with_kind(Kind::DisplayRegistryCreate),
1167+
K::AliasStateCreate => message.with_kind(Kind::AliasStateCreate),
11671168
_ => message,
11681169
}
11691170
}
@@ -1203,6 +1204,7 @@ impl TryFrom<&EndOfEpochTransactionKind> for sui_sdk_types::EndOfEpochTransactio
12031204
Kind::AccumulatorRootCreate => Self::AccumulatorRootCreate,
12041205
Kind::CoinRegistryCreate => Self::CoinRegistryCreate,
12051206
Kind::DisplayRegistryCreate => Self::DisplayRegistryCreate,
1207+
Kind::AliasStateCreate => Self::AliasStateCreate,
12061208
}
12071209
.pipe(Ok)
12081210
}

crates/sui-rpc/vendored/proto/sui/rpc/v2/transaction.proto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,9 @@ message EndOfEpochTransactionKind {
465465

466466
// Create and initialize the Display Registry object.
467467
DISPLAY_REGISTRY_CREATE = 11;
468+
469+
// Create and initialize the Alias State object.
470+
ALIAS_STATE_CREATE = 12;
468471
}
469472

470473
optional Kind kind = 1;

crates/sui-sdk-types/src/transaction/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,9 @@ pub enum EndOfEpochTransactionKind {
281281

282282
/// Create and initialize the display metadata registry object
283283
DisplayRegistryCreate,
284+
285+
/// Create and initialize the alias state object
286+
AliasStateCreate,
284287
}
285288

286289
/// Set of Execution Time Observations from the committee.

0 commit comments

Comments
 (0)