-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #121 from neutron-org/feat/dex-proto
[NTRN-163] add dex stargate helpers
- Loading branch information
Showing
30 changed files
with
2,960 additions
and
272 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
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
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
This file was deleted.
Oops, something went wrong.
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
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
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
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 @@ | ||
5845ebddc3f85802fd35661f78efd2c7b61e4724 |
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 |
---|---|---|
@@ -1,3 +1,46 @@ | ||
// @generated | ||
pub mod neutron { | ||
pub mod dex { | ||
include!("neutron.dex.rs"); | ||
} | ||
|
||
pub mod transfer; | ||
pub mod interchaintxs { | ||
include!("neutron.interchaintxs.rs"); | ||
pub mod v1 { | ||
include!("neutron.interchaintxs.v1.rs"); | ||
} | ||
} | ||
|
||
pub mod feeburner { | ||
include!("neutron.feeburner.rs"); | ||
} | ||
|
||
pub mod interchainqueries { | ||
include!("neutron.interchainqueries.rs"); | ||
} | ||
|
||
pub mod cron { | ||
include!("neutron.cron.rs"); | ||
} | ||
pub mod transfer { | ||
include!("neutron.transfer.rs"); | ||
} | ||
|
||
pub mod feerefunder { | ||
include!("neutron.feerefunder.rs"); | ||
} | ||
|
||
pub mod contractmanager { | ||
include!("neutron.contractmanager.rs"); | ||
pub mod v1 { | ||
include!("neutron.contractmanager.v1.rs"); | ||
} | ||
} | ||
} | ||
|
||
pub mod osmosis { | ||
pub mod tokenfactory { | ||
pub mod v1beta1 { | ||
include!("osmosis.tokenfactory.v1beta1.rs"); | ||
} | ||
} | ||
} |
89 changes: 89 additions & 0 deletions
89
packages/neutron-sdk/src/proto_types/neutron.contractmanager.rs
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,89 @@ | ||
// @generated | ||
/// Failure message contains information about ACK failures and can be used to | ||
/// replay ACK in case of requirement. | ||
/// Note that Failure means that sudo handler to cosmwasm contract failed for some reason | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct Failure { | ||
/// Address of the failed contract | ||
#[prost(string, tag = "1")] | ||
pub address: ::prost::alloc::string::String, | ||
/// Id of the failure under specific address | ||
#[prost(uint64, tag = "2")] | ||
pub id: u64, | ||
/// Serialized MessageSudoCallback with Packet and Ack(if exists) | ||
#[prost(bytes = "vec", tag = "3")] | ||
pub sudo_payload: ::prost::alloc::vec::Vec<u8>, | ||
/// Redacted error response of the sudo call. Full error is emitted as an event | ||
#[prost(string, tag = "4")] | ||
pub error: ::prost::alloc::string::String, | ||
} | ||
/// Params defines the parameters for the module. | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct Params { | ||
#[prost(uint64, tag = "1")] | ||
pub sudo_call_gas_limit: u64, | ||
} | ||
/// GenesisState defines the contractmanager module's genesis state. | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct GenesisState { | ||
#[prost(message, optional, tag = "1")] | ||
pub params: ::core::option::Option<Params>, | ||
/// List of the contract failures | ||
/// | ||
/// this line is used by starport scaffolding # genesis/proto/state | ||
#[prost(message, repeated, tag = "2")] | ||
pub failures_list: ::prost::alloc::vec::Vec<Failure>, | ||
} | ||
/// QueryParamsRequest is request type for the Query/Params RPC method. | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct QueryParamsRequest {} | ||
/// QueryParamsResponse is response type for the Query/Params RPC method. | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct QueryParamsResponse { | ||
/// params holds all the parameters of this module. | ||
#[prost(message, optional, tag = "1")] | ||
pub params: ::core::option::Option<Params>, | ||
} | ||
/// QueryFailuresRequest is request type for the Query/Failures RPC method. | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct QueryFailuresRequest { | ||
/// address of the contract which Sudo call failed. | ||
#[prost(string, tag = "1")] | ||
pub address: ::prost::alloc::string::String, | ||
/// ID of the failure for the given contract. | ||
#[prost(uint64, tag = "2")] | ||
pub failure_id: u64, | ||
#[prost(message, optional, tag = "3")] | ||
pub pagination: | ||
::core::option::Option<cosmos_sdk_proto::cosmos::base::query::v1beta1::PageRequest>, | ||
} | ||
/// QueryFailuresResponse is response type for the Query/Failures RPC method. | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct QueryFailuresResponse { | ||
#[prost(message, repeated, tag = "1")] | ||
pub failures: ::prost::alloc::vec::Vec<Failure>, | ||
#[prost(message, optional, tag = "2")] | ||
pub pagination: | ||
::core::option::Option<cosmos_sdk_proto::cosmos::base::query::v1beta1::PageResponse>, | ||
} | ||
/// MsgUpdateParams is the MsgUpdateParams request type. | ||
/// | ||
/// Since: 0.47 | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct MsgUpdateParams { | ||
/// Authority is the address of the governance account. | ||
#[prost(string, tag = "1")] | ||
pub authority: ::prost::alloc::string::String, | ||
/// params defines the x/contractmanager parameters to update. | ||
/// | ||
/// NOTE: All parameters must be supplied. | ||
#[prost(message, optional, tag = "2")] | ||
pub params: ::core::option::Option<Params>, | ||
} | ||
/// MsgUpdateParamsResponse defines the response structure for executing a | ||
/// MsgUpdateParams message. | ||
/// | ||
/// Since: 0.47 | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct MsgUpdateParamsResponse {} | ||
// @@protoc_insertion_point(module) |
21 changes: 21 additions & 0 deletions
21
packages/neutron-sdk/src/proto_types/neutron.contractmanager.v1.rs
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,21 @@ | ||
// @generated | ||
/// Deprecated. Used only for migration purposes. | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct Failure { | ||
/// ChannelId | ||
#[prost(string, tag = "1")] | ||
pub channel_id: ::prost::alloc::string::String, | ||
/// Address of the failed contract | ||
#[prost(string, tag = "2")] | ||
pub address: ::prost::alloc::string::String, | ||
/// id of the failure under specific address | ||
#[prost(uint64, tag = "3")] | ||
pub id: u64, | ||
/// ACK id to restore | ||
#[prost(uint64, tag = "4")] | ||
pub ack_id: u64, | ||
/// Acknowledgement type | ||
#[prost(string, tag = "5")] | ||
pub ack_type: ::prost::alloc::string::String, | ||
} | ||
// @@protoc_insertion_point(module) |
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,105 @@ | ||
// @generated | ||
/// Params defines the parameters for the module. | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct Params { | ||
/// Security address that can remove schedules | ||
#[prost(string, tag = "1")] | ||
pub security_address: ::prost::alloc::string::String, | ||
/// Limit of schedules executed in one block | ||
#[prost(uint64, tag = "2")] | ||
pub limit: u64, | ||
} | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct Schedule { | ||
/// Name of schedule | ||
#[prost(string, tag = "1")] | ||
pub name: ::prost::alloc::string::String, | ||
/// Period in blocks | ||
#[prost(uint64, tag = "2")] | ||
pub period: u64, | ||
/// Msgs that will be executed every period amount of time | ||
#[prost(message, repeated, tag = "3")] | ||
pub msgs: ::prost::alloc::vec::Vec<MsgExecuteContract>, | ||
/// Last execution's block height | ||
#[prost(uint64, tag = "4")] | ||
pub last_execute_height: u64, | ||
} | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct MsgExecuteContract { | ||
/// Contract is the address of the smart contract | ||
#[prost(string, tag = "1")] | ||
pub contract: ::prost::alloc::string::String, | ||
/// Msg is json encoded message to be passed to the contract | ||
#[prost(string, tag = "2")] | ||
pub msg: ::prost::alloc::string::String, | ||
} | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct ScheduleCount { | ||
/// Count is the number of current schedules | ||
#[prost(int32, tag = "1")] | ||
pub count: i32, | ||
} | ||
/// GenesisState defines the cron module's genesis state. | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct GenesisState { | ||
#[prost(message, repeated, tag = "2")] | ||
pub schedule_list: ::prost::alloc::vec::Vec<Schedule>, | ||
/// this line is used by starport scaffolding # genesis/proto/state | ||
#[prost(message, optional, tag = "1")] | ||
pub params: ::core::option::Option<Params>, | ||
} | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct QueryParamsRequest {} | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct QueryParamsResponse { | ||
/// params holds all the parameters of this module. | ||
#[prost(message, optional, tag = "1")] | ||
pub params: ::core::option::Option<Params>, | ||
} | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct QueryGetScheduleRequest { | ||
#[prost(string, tag = "1")] | ||
pub name: ::prost::alloc::string::String, | ||
} | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct QueryGetScheduleResponse { | ||
#[prost(message, optional, tag = "1")] | ||
pub schedule: ::core::option::Option<Schedule>, | ||
} | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct QuerySchedulesRequest { | ||
#[prost(message, optional, tag = "1")] | ||
pub pagination: | ||
::core::option::Option<cosmos_sdk_proto::cosmos::base::query::v1beta1::PageRequest>, | ||
} | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct QuerySchedulesResponse { | ||
#[prost(message, repeated, tag = "1")] | ||
pub schedules: ::prost::alloc::vec::Vec<Schedule>, | ||
#[prost(message, optional, tag = "2")] | ||
pub pagination: | ||
::core::option::Option<cosmos_sdk_proto::cosmos::base::query::v1beta1::PageResponse>, | ||
} | ||
// this line is used by starport scaffolding # proto/tx/message | ||
|
||
/// MsgUpdateParams is the MsgUpdateParams request type. | ||
/// | ||
/// Since: 0.47 | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct MsgUpdateParams { | ||
/// Authority is the address of the governance account. | ||
#[prost(string, tag = "1")] | ||
pub authority: ::prost::alloc::string::String, | ||
/// params defines the x/cron parameters to update. | ||
/// | ||
/// NOTE: All parameters must be supplied. | ||
#[prost(message, optional, tag = "2")] | ||
pub params: ::core::option::Option<Params>, | ||
} | ||
/// MsgUpdateParamsResponse defines the response structure for executing a | ||
/// MsgUpdateParams message. | ||
/// | ||
/// Since: 0.47 | ||
#[derive(Clone, PartialEq, ::prost::Message)] | ||
pub struct MsgUpdateParamsResponse {} | ||
// @@protoc_insertion_point(module) |
Oops, something went wrong.