# README
Test feeabs and osmosis Interchain Query for spot price
Setup
# Deploy chains
./scripts/node_start/runnode_custom.sh c
./scripts/node_start/runnode_osmosis.sh
# Run relayer
./scripts/run_relayer.sh
# Create an osmosis pool
./scripts/create_pool.sh
# Deploy contract and create relayer channel
./scripts/deploy_and_channel.sh
Test
feeappd tx feeabs queryomosis --from feeacc --keyring-backend test --chain-id feeappd-t1 --yes
# Wait for about 10 sec
feeappd q feeabs osmo-spot-price
The result looks like this
base_asset: osmo
quote_asset: stake
spot_price: "2.000000000000000000"
Gov proposal
feeappd tx gov submit-proposal param-change scripts/proposal.json --from feeacc --keyring-backend test --chain-id feeappd-t1 --yes
feeappd tx gov vote 1 yes --from feeapp1 --keyring-backend test --chain-id feeappd-t1 --yes
feeappd tx gov submit-proposal add-hostzone-config scripts/host_zone.json --from feeacc --keyring-backend test --chain-id feeappd-t1 --yes
feeappd tx gov vote 2 yes --from feeapp1 --keyring-backend test --chain-id feeappd-t1 --yes
feeappd tx gov submit-proposal param-change scripts/proposal_query.json --from feeacc --keyring-backend test --chain-id feeappd-t1 --yes
feeappd tx gov vote 1 yes --from feeapp1 --keyring-backend test --chain-id feeappd-t1 --yes
feeappd tx gov submit-proposal add-hostzone-config scripts/host_zone_query.json --from feeacc --keyring-backend test --chain-id feeappd-t1 --yes
feeappd tx gov vote 2 yes --from feeapp1 --keyring-backend test --chain-id feeappd-t1 --yes
{ibc/ED07A3391A112B175915CD8FAF43A2DA8E4790EDE12566649D0C2F97716B8518 ibc/C053D637CCA2A2BA030E2C5EE1B28A16F71CCB0E45E8BE52766DC1B241B77878 channel-0 osmo1nc5tatafv6eyq7llkr2gv50ff9e22mnf70qgjlv737ktmt4eswrqvlx82r 1 true true channel-1}
B834FA96EB41DB72C1DFA61DAE0000C76065ADAC
0ibc/ED07A3391A112B175915CD8FAF43A2DA8E4790EDE12566649D0C2F97716B8518
# Packages
Package params defines the simulation parameters.
# Functions
No description provided by the author
AddTestAddrsIncremental constructs and returns accNum amount of accounts with an initial balance of accAmt in random order.
BlockedAddresses returns all the app's blocked account addresses.
GenesisStateWithSingleValidator initializes GenesisState with a single validator and genesis accounts that also act as delegators.
GenesisStateWithValSet returns a new genesis state with the validator set copied from simtestutil with delegation not added to supply.
GetMaccPerms returns a copy of the module account permissions
NOTE: This is solely to be used for testing purposes.
MakeEncodingConfig creates a new EncodingConfig with all modules registered.
NewAnteHandler returns an AnteHandler that checks and increments sequence numbers, checks signatures & account numbers, and deducts fees from the first signer.
NewFeeApp returns a reference to an initialized fee app.
NewFeeAppWithCustomOptions initializes a new FeeApp with custom options.
NewTestNetworkFixture returns a new FeeApp AppConstructor for network simulation tests.
No description provided by the author
RegisterSwaggerAPI registers swagger route with API Server.
Setup initializes a new FeeApp.
SetupWithEmptyStore set up a wasmd app instance with empty DB.
SetupWithGenesisValSet initializes a new FeeApp with a validator set and genesis accounts that also act as delegators.
SignAndDeliverWithoutCommit signs and delivers a transaction.
# Variables
We pull these out so we can set them with LDFLAGS in the Makefile.
Bech32PrefixAccAddr defines the Bech32 prefix of an account's address.
Bech32PrefixAccPub defines the Bech32 prefix of an account's public key.
Bech32PrefixConsAddr defines the Bech32 prefix of a consensus node address.
Bech32PrefixConsPub defines the Bech32 prefix of a consensus node public key.
Bech32PrefixValAddr defines the Bech32 prefix of a validator's operator address.
Bech32PrefixValPub defines the Bech32 prefix of a validator's operator public key.
DefaultNodeHome default home directories for wasmd.
We pull these out so we can set them with LDFLAGS in the Makefile.
# Structs
FeeApp extends an ABCI application, but with most of its parameters exported.
HandlerOptions extends the SDK's AnteHandler options by requiring the IBC.
SetupOptions defines arguments that are passed into `FeeApp` constructor.
No description provided by the author
# Type aliases
GenesisState of the blockchain is represented here as a map of raw json messages key'd by a identifier string.