Address Provider
The Address Provider Contract provides the addresses of all most recent and currently used contracts of the Mars Protocol's set of Smart Contracts.
Deployments
Neutron: neutron17yehp4x7n79zq9dlw4g7xmnrvwdjjj2yecq26844sg8yu74knlxqfx5vqv
Osmosis: osmo1g677w7mfvn78eeudzwylxzlyz69fsgumqrscj6tekhdvs8fye3asufmvxr
Types
The types of the Address Provider Contract can be found here.
For reference on the Queries and Methods:
type MarsAddressType =
| 'incentives'
| 'oracle'
| 'red_bank'
| 'rewards_collector'
| 'params'
| 'credit_manager'
| 'protocol_admin'
| 'fee_collector'
| 'safety_fund'
| 'swapper'
| 'astroport_incentives'
| 'perps'
| 'revenue_share'
Queries
address
Provides the address of a certain contract type.
{
address: MarsAddressType
}
{
data: {
address: string
address_type: MarsAddressType
}
}
addresses
Provides an array of addresses for provided contract types.
{
addresses: MarsAddressType[]
}
{
data: [
{
address: string
address_type: MarsAddressType
},
...
]
}
all_addresses
Returns all stored addresses with pagination.
{
all_addresses: {}
}
{
data: [
{
address: string
address_type: MarsAddressType
},
...
]
}
config
Returns the contracts config.
{
config: {}
}
{
data: {
owner?: string | null
prefix: string
proposed_new_owner?: string | null
}
}
Last updated