package althea.nativedex.v1

Mouse Melon logoGet desktop application:
View/edit binary Protocol Buffers messages

service Msg

tx.proto:7

Msg defines the Msg service.

(no methods)

service Query

query.proto:12

Query defines the gRPC querier service.

message AuthorityTransferMetadata

nativedex.proto:119

Used in: AuthorityTransferProposal

message AuthorityTransferProposal

nativedex.proto:105

AuthorityTransferProposal will change the `authority_` address, which can be used to upgrade or remove the CrocPolicy contract (and therefore this module must be upgraded to work with the replacement, and configured as the new authority) If passes, calls CrocPolicy.treasuryResolution(CrocSwapDex, 3, <ABI Encoded Bytes(20, <auth_address>)>) BE VERY CAREFUL EXECUTING THIS PROPOSAL, AS IT CAN COMPLETELY DISABLE THE NATIVEDEX MODULE AND REMOVE STAKER AUTHORITY OVER THE DEX CONTRACT

message CollectTreasuryMetadata

nativedex.proto:67

Used in: CollectTreasuryProposal

message CollectTreasuryProposal

nativedex.proto:53

CollectTreasuryProposal will pay out protocol fees to the registered (and timelocked) `treasury_` account If passes, calls CrocPolicy.treasuryResolution(CrocSwapDex, 3, <ABI Encoded Bytes(40, <token_address>)>) Note that by default the protocol fees will be set to zero, see the governance history or use CrocQuery with a pool to determine the current protocol take

message ExecuteContractMetadata

nativedex.proto:248

Used in: ExecuteContractProposal

message ExecuteContractProposal

nativedex.proto:236

ExecuteContractProposal will execute an arbitrary contract call from the nativedex module account. This allows governance to manage contracts owned by the nativedex module, but is restricted to whitelisted contract addresses to prevent abuse. If passes, calls the specified contract with the provided data from the nativedex module account. BE VERY CAREFUL EXECUTING THIS PROPOSAL, AS IT CAN MODIFY CONTRACTS OWNED BY THE NATIVEDEX MODULE

message GenesisState

genesis.proto:9

GenesisState defines the nativedex module's genesis state.

message HotPathOpenMetadata

nativedex.proto:146

Used in: HotPathOpenProposal

message HotPathOpenProposal

nativedex.proto:132

HotPathOpenProposal will change the `hotPathOpen_` flag, which controls if users are able to call swap directly on the dex contract The primary purpose of this seems to be enabling upgradeability of the HotProxy contract, which would require users to switch to calling CrocSwapDex.userCmd(1, <ABI Encoded Args>) instead of CrocSwapDex.swap(<args>) so that they call the new code. If passes, calls CrocPolicy.treasuryResolution(CrocSwapDex, 3, <ABI Encoded Bytes(22, <open>)>) BE VERY CAREFUL EXECUTING THIS PROPOSAL, AS IT CAN BREAK INFLEXIBLE DEX USER INTERFACES

message OpsMetadata

nativedex.proto:222

Used in: OpsProposal

message OpsProposal

nativedex.proto:208

OpsProposal will execute a non-sudo `protocolCmd()` call on the DEX via CrocPolicy. If passes, calls CrocPolicy.opsResolution (CrocSwapDex, <callpath>, <ABI Encoded Bytes(<cmd args>)>) This proposal enables nativedex governance to perform everyday Ops functions on the DEX, and so the Ops or Emergency addresses could override any decisions made by this proposal.

message Params

genesis.proto:14

Params defines the parameters for the module.

Used in: GenesisState, QueryParamsResponse

message SetSafeModeMetadata

nativedex.proto:173

Used in: SetSafeModeProposal

message SetSafeModeProposal

nativedex.proto:159

SetSafeModeProposal will lock down the DEX for emergency changes. This can also be used by the emergency multisig to halt the DEX more quickly. When the DEX is in safe mode only a UpgradeProxy, CollectTreasury, SetTreasury, AuthorityTransfer, HotPathOpen, or SetSafeMode Proposal can be executed, and these proposals can only be executed under the SafeMode or Boot Proxy callpaths. If passes, calls CrocPolicy.treasuryResolution(CrocSwapDex, 3, <ABI Encoded Bytes(23, <lock_dex>)>) BE VERY CAREFUL EXECUTING THIS PROPOSAL, IT SHOULD ONLY BE USED TO DISABLE THE DEX OR RECOVER FROM DISABLES

message SetTreasuryMetadata

nativedex.proto:93

Used in: SetTreasuryProposal

message SetTreasuryProposal

nativedex.proto:79

SetTreasuryProposal will change the `treasury_` address the treasury_ address will be restricted from receiving protocol fees for a period of time (stored in treasuryStartTime_) If passes, calls CrocPolicy.treasuryResolution(CrocSwapDex, 3, <ABI Encoded Bytes(41, <treasury_address>)>) Note that by default the protocol fees will be set to zero, see the governance history or use CrocQuery with a pool to determine the current protocol take

message TransferGovernanceMetadata

nativedex.proto:195

Used in: TransferGovernanceProposal

message TransferGovernanceProposal

nativedex.proto:183

TransferGovernanceProposal will update the governance role addresses on CrocPolicy. If passes, calls CrocPolicy.transferGovernance(<ops>, <nativedex module address>, <emergency>) BE VERY CAREFUL EXECUTING THIS PROPOSAL, THE OPS AND EMERGENCY ADDRESSES SHOULD BE CAREFULLY CHOSEN MULTISIGS

message UpgradeProxyMetadata

nativedex.proto:40

Used in: UpgradeProxyProposal

message UpgradeProxyProposal

nativedex.proto:26

UpgradeProxyProposal will replace one of the nativedex callpath contracts (or install a new one) if passes, calls CrocPolicy.treasuryResolution(CrocSwapDex, 0, <ABI Encoded Bytes(21, <callpath_address>, <callpath_index>)>) BE VERY CAREFUL EXECUTING THIS PROPOSAL, AS IT CAN COMPLETELY BREAK THE DEX CONTRACT