Enum SeiQuery

Source
pub enum SeiQuery {
Show 27 variants ExchangeRates {}, OracleTwaps { lookback_seconds: u64, }, DexTwaps { contract_address: Addr, lookback_seconds: u64, }, Epoch {}, GetOrders { contract_address: Addr, account: Addr, }, GetOrderById { contract_address: Addr, price_denom: String, asset_denom: String, id: u64, }, GetLatestPrice { contract_address: Addr, price_denom: String, asset_denom: String, }, OrderSimulation { contract_address: Addr, order: Order, }, DenomAuthorityMetadata { denom: String, }, DenomsFromCreator { creator: Addr, }, StaticCall { from: String, to: String, data: String, }, Erc20TransferPayload { recipient: String, amount: Uint128, }, Erc20TransferFromPayload { owner: String, recipient: String, amount: Uint128, }, Erc20ApprovePayload { spender: String, amount: Uint128, }, Erc20Allowance { contract_address: String, owner: String, spender: String, }, Erc20TokenInfo { contract_address: String, caller: String, }, Erc20Balance { contract_address: String, account: String, }, Erc721TransferPayload { from: String, recipient: String, token_id: String, }, Erc721ApprovePayload { spender: String, token_id: String, }, Erc721Owner { caller: String, contract_address: String, token_id: String, }, Erc721Approved { caller: String, contract_address: String, token_id: String, }, Erc721IsApprovedForAll { caller: String, contract_address: String, owner: String, operator: String, }, Erc721SetApprovalAllPayload { to: String, approved: bool, }, Erc721NameSymbol { caller: String, contract_address: String, }, Erc721Uri { caller: String, contract_address: String, token_id: String, }, GetEvmAddress { sei_address: String, }, GetSeiAddress { evm_address: String, },
}
Expand description

SeiQuery is defines available query datas

Variants§

§

ExchangeRates

§

OracleTwaps

Fields

§lookback_seconds: u64
§

DexTwaps

Fields

§contract_address: Addr
§lookback_seconds: u64
§

Epoch

§

GetOrders

Fields

§contract_address: Addr
§account: Addr
§

GetOrderById

Fields

§contract_address: Addr
§price_denom: String
§asset_denom: String
§id: u64
§

GetLatestPrice

Fields

§contract_address: Addr
§price_denom: String
§asset_denom: String
§

OrderSimulation

Fields

§contract_address: Addr
§order: Order
§

DenomAuthorityMetadata

Fields

§denom: String
§

DenomsFromCreator

Fields

§creator: Addr
§

StaticCall

Query to for static call to EVM contract. StaticCall executes the contract associated deployed at to address with the given data as parameters while disallowing any modifications to the state during the call.

Fields

§from: String

Sei native (bech32-encoded ‘sei*’) address calling the contract

§to: String

The address of the EVM contract to call

§data: String

Base64 encoded data to pass to the contract

§

Erc20TransferPayload

Query to get hex payload for the ERC-20 transfer function

Fields

§recipient: String

Recipient Sei native (bech32-encoded ‘sei*’) address

§amount: Uint128

Amount to transfer

§

Erc20TransferFromPayload

Query to get hex payload for the ERC-20 transferFrom function

Fields

§owner: String

Owner Sei native (bech32-encoded ‘sei*’) address

§recipient: String

Recipient Sei native (bech32-encoded ‘sei*’) address

§amount: Uint128

Amount to transfer

§

Erc20ApprovePayload

Query to get hex payload for the ERC-20 approve function

Fields

§spender: String

Spender Sei native (bech32-encoded ‘sei*’) address

§amount: Uint128

Amount to approve

§

Erc20Allowance

Query to get the remaining number of tokens that spender will be allowed to spend on behalf of owner through

Fields

§contract_address: String

ERC-20 contract address

§owner: String

Owner Sei native (bech32-encoded ‘sei*’) address

§spender: String

Spender Sei native (bech32-encoded ‘sei*’) address

§

Erc20TokenInfo

Query to get the token info, including the name, symbol, decimals and total supply

Fields

§contract_address: String

ERC-20 contract address

§caller: String

Caller Sei native (bech32-encoded ‘sei*’) address

§

Erc20Balance

Query to get the balance of the account with the given Sei native (bech32-encoded ‘sei*’) address. Executes the balanceOf ERC-20 function under the hood.

Fields

§contract_address: String

ERC-20 contract address

§account: String

Account Sei native (bech32-encoded ‘sei*’) address

§

Erc721TransferPayload

Query to get the hex payload for the ERC-721 transferFrom function

Fields

§from: String

Sei native (bech32-encoded ‘sei*’) address of the sender

§recipient: String

Sei native (bech32-encoded ‘sei*’) address of the recipient

§token_id: String

The identifier for an NFT. String representation of the token ID

§

Erc721ApprovePayload

Query to get the hex payload for the ERC-721 approve function

Fields

§spender: String

Sei native (bech32-encoded ‘sei*’) address of the spender

§token_id: String

The identifier for an NFT. String representation of the token ID

§

Erc721Owner

Query to get the Sei native (bech32-encoded ‘sei*’) address of the owner of the NFT. Executes ERC-721 ownerOf function under the hood.

Fields

§caller: String

Caller Sei native (bech32-encoded ‘sei*’) address

§contract_address: String

ERC-721 contract address

§token_id: String

The identifier for an NFT. String representation of the token ID

§

Erc721Approved

Query to get the approved address for a single NFT. Executes ERC-721 getApproved function

Fields

§caller: String

Caller Sei native (bech32-encoded ‘sei*’) address

§contract_address: String

ERC-721 contract address

§token_id: String

The identifier for an NFT. String representation of the token ID

§

Erc721IsApprovedForAll

Query if an address is an authorized operator for another address. Executes ERC-721 isApprovedForAll function.

Fields

§caller: String

Caller Sei native (bech32-encoded ‘sei*’) address

§contract_address: String

ERC-721 contract address

§owner: String

The owner of the NFT Sei native (bech32-encoded ‘sei*’) address

§operator: String

The operator Sei address that acts on behalf of the owner

§

Erc721SetApprovalAllPayload

Query to get the hex payload for the ERC-721 setApprovalForAll function.

Fields

§to: String

Sei native (bech32-encoded ‘sei*’) address of the operator

§approved: bool

Boolean representing the status to set

§

Erc721NameSymbol

Query to get the name and symbol of the ERC-721 contract. Executes ERC-721 name and symbol functions under the hood.

Fields

§caller: String

Caller Sei native (bech32-encoded ‘sei*’) address

§contract_address: String

ERC-721 contract address

§

Erc721Uri

Query to get the URI for a given NFT. Executes ERC-721 tokenURI function under the hood.

Fields

§caller: String

Caller Sei native (bech32-encoded ‘sei*’) address

§contract_address: String

ERC-721 contract address

§token_id: String
§

GetEvmAddress

Query to get the EVM address associated with the given SEI address.

Fields

§sei_address: String
§

GetSeiAddress

Query to get the SEI address associated with the given EVM address.

Fields

§evm_address: String

Trait Implementations§

Source§

impl Clone for SeiQuery

Source§

fn clone(&self) -> SeiQuery

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SeiQuery

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for SeiQuery

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl JsonSchema for SeiQuery

Source§

fn schema_name() -> String

The name of the generated JSON Schema. Read more
Source§

fn schema_id() -> Cow<'static, str>

Returns a string that uniquely identifies the schema produced by this type. Read more
Source§

fn json_schema(generator: &mut SchemaGenerator) -> Schema

Generates a JSON Schema for this type. Read more
Source§

fn is_referenceable() -> bool

Whether JSON Schemas generated for this type should be re-used where possible using the $ref keyword. Read more
Source§

impl PartialEq for SeiQuery

Source§

fn eq(&self, other: &SeiQuery) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for SeiQuery

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for SeiQuery

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<U> As for U

Source§

fn as_<T>(self) -> T
where T: CastFrom<U>,

Casts self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,