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
DexTwaps
Epoch
GetOrders
GetOrderById
GetLatestPrice
OrderSimulation
DenomAuthorityMetadata
DenomsFromCreator
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
Erc20TransferPayload
Query to get hex payload for the ERC-20 transfer
function
Fields
Erc20TransferFromPayload
Query to get hex payload for the ERC-20 transferFrom
function
Fields
Erc20ApprovePayload
Query to get hex payload for the ERC-20 approve
function
Fields
Erc20Allowance
Query to get the remaining number of tokens that spender will be allowed to spend on behalf of owner through
Fields
Erc20TokenInfo
Query to get the token info, including the name, symbol, decimals and total supply
Fields
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
Erc721TransferPayload
Query to get the hex payload for the ERC-721 transferFrom
function
Fields
Erc721ApprovePayload
Query to get the hex payload for the ERC-721 approve
function
Fields
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
Erc721Approved
Query to get the approved address for a single NFT. Executes ERC-721 getApproved
function
Fields
Erc721IsApprovedForAll
Query if an address is an authorized operator for another address. Executes ERC-721
isApprovedForAll
function.
Fields
Erc721SetApprovalAllPayload
Query to get the hex payload for the ERC-721 setApprovalForAll
function.
Fields
Erc721NameSymbol
Query to get the name and symbol of the ERC-721 contract. Executes ERC-721 name
and
symbol
functions under the hood.
Fields
Erc721Uri
Query to get the URI for a given NFT. Executes ERC-721 tokenURI
function under the hood.
Fields
GetEvmAddress
Query to get the EVM address associated with the given SEI address.
GetSeiAddress
Query to get the SEI address associated with the given EVM address.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SeiQuery
impl<'de> Deserialize<'de> for SeiQuery
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for SeiQuery
impl JsonSchema for SeiQuery
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read more