diff --git a/packages/neutron-sdk/src/proto_types/NEUTRON_COMMIT b/packages/neutron-sdk/src/proto_types/NEUTRON_COMMIT index 969ff255..77d47688 100644 --- a/packages/neutron-sdk/src/proto_types/NEUTRON_COMMIT +++ b/packages/neutron-sdk/src/proto_types/NEUTRON_COMMIT @@ -1 +1 @@ -3357d418e391c14e1a4800ab640932896ed93fe8 \ No newline at end of file +a6eae66545df6e128da2c7cac81ff4c1c02deb7b \ No newline at end of file diff --git a/packages/neutron-sdk/src/proto_types/mod.rs b/packages/neutron-sdk/src/proto_types/mod.rs index 03c2a3e9..3525760a 100644 --- a/packages/neutron-sdk/src/proto_types/mod.rs +++ b/packages/neutron-sdk/src/proto_types/mod.rs @@ -38,6 +38,7 @@ pub mod neutron { } pub mod osmosis { pub mod tokenfactory { + include!("osmosis.tokenfactory.rs"); pub mod v1beta1 { include!("osmosis.tokenfactory.v1beta1.rs"); } diff --git a/packages/neutron-sdk/src/proto_types/osmosis.tokenfactory.rs b/packages/neutron-sdk/src/proto_types/osmosis.tokenfactory.rs new file mode 100644 index 00000000..d74784ff --- /dev/null +++ b/packages/neutron-sdk/src/proto_types/osmosis.tokenfactory.rs @@ -0,0 +1,31 @@ +// @generated +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WhitelistedHook { + #[prost(uint64, tag = "1")] + pub code_id: u64, + #[prost(string, tag = "2")] + pub denom_creator: ::prost::alloc::string::String, +} +/// Params defines the parameters for the tokenfactory module. +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Params { + /// DenomCreationFee defines the fee to be charged on the creation of a new + /// denom. The fee is drawn from the MsgCreateDenom's sender account, and + /// transferred to the community pool. + #[prost(message, repeated, tag = "1")] + pub denom_creation_fee: ::prost::alloc::vec::Vec, + /// DenomCreationGasConsume defines the gas cost for creating a new denom. + /// This is intended as a spam deterrence mechanism. + /// + /// See: + #[prost(uint64, tag = "2")] + pub denom_creation_gas_consume: u64, + /// FeeCollectorAddress is the address where fees collected from denom creation + /// are sent to + #[prost(string, tag = "3")] + pub fee_collector_address: ::prost::alloc::string::String, + /// HookWhitelist is the list of hooks which are allowed to be added and executed + #[prost(message, repeated, tag = "4")] + pub whitelisted_hooks: ::prost::alloc::vec::Vec, +} +// @@protoc_insertion_point(module) diff --git a/packages/neutron-sdk/src/proto_types/osmosis.tokenfactory.v1beta1.rs b/packages/neutron-sdk/src/proto_types/osmosis.tokenfactory.v1beta1.rs index a56fbd9b..89de92c2 100644 --- a/packages/neutron-sdk/src/proto_types/osmosis.tokenfactory.v1beta1.rs +++ b/packages/neutron-sdk/src/proto_types/osmosis.tokenfactory.v1beta1.rs @@ -8,6 +8,25 @@ pub struct DenomAuthorityMetadata { #[prost(string, tag = "1")] pub admin: ::prost::alloc::string::String, } +/// GenesisState defines the tokenfactory module's genesis state. +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GenesisState { + /// params defines the parameters of the module. + #[prost(message, optional, tag = "1")] + pub params: ::core::option::Option, + #[prost(message, repeated, tag = "2")] + pub factory_denoms: ::prost::alloc::vec::Vec, +} +/// GenesisDenom defines a tokenfactory denom that is defined within genesis +/// state. The structure contains DenomAuthorityMetadata which defines the +/// denom's admin. +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GenesisDenom { + #[prost(string, tag = "1")] + pub denom: ::prost::alloc::string::String, + #[prost(message, optional, tag = "2")] + pub authority_metadata: ::core::option::Option, +} /// Params defines the parameters for the tokenfactory module. #[derive(Clone, PartialEq, ::prost::Message)] pub struct Params { @@ -27,25 +46,6 @@ pub struct Params { #[prost(string, tag = "3")] pub fee_collector_address: ::prost::alloc::string::String, } -/// GenesisState defines the tokenfactory module's genesis state. -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct GenesisState { - /// params defines the paramaters of the module. - #[prost(message, optional, tag = "1")] - pub params: ::core::option::Option, - #[prost(message, repeated, tag = "2")] - pub factory_denoms: ::prost::alloc::vec::Vec, -} -/// GenesisDenom defines a tokenfactory denom that is defined within genesis -/// state. The structure contains DenomAuthorityMetadata which defines the -/// denom's admin. -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct GenesisDenom { - #[prost(string, tag = "1")] - pub denom: ::prost::alloc::string::String, - #[prost(message, optional, tag = "2")] - pub authority_metadata: ::core::option::Option, -} /// QueryParamsRequest is the request type for the Query/Params RPC method. #[derive(Clone, PartialEq, ::prost::Message)] pub struct QueryParamsRequest {} @@ -54,7 +54,7 @@ pub struct QueryParamsRequest {} pub struct QueryParamsResponse { /// params defines the parameters of the module. #[prost(message, optional, tag = "1")] - pub params: ::core::option::Option, + pub params: ::core::option::Option, } /// QueryDenomAuthorityMetadataRequest defines the request structure for the /// DenomAuthorityMetadata gRPC query. @@ -218,7 +218,7 @@ pub struct MsgUpdateParams { /// /// NOTE: All parameters must be supplied. #[prost(message, optional, tag = "2")] - pub params: ::core::option::Option, + pub params: ::core::option::Option, } /// MsgUpdateParamsResponse defines the response structure for executing a /// MsgUpdateParams message.