Skip to content Search Apps Documentation Source Content Run Reset Eval Playground File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

v2 state

Back to all declarations

roleOrderDCA

untyped string

Order protocol role names. They are not RBAC system roles: admin or governance registers them via rbac.RegisterRole, mapped to the order proxy realm addresses (gno.land/r/gnoswap/order/dca and gno.land/r/gnoswap/order/limit).

Value

"order_dca"

roleOrderLimit

untyped string

Order protocol role names. They are not RBAC system roles: admin or governance registers them via rbac.RegisterRole, mapped to the order proxy realm addresses (gno.land/r/gnoswap/order/dca and gno.land/r/gnoswap/order/limit).

Value

"order_limit"

assertIsAuthorizedFeeCaller

func(caller .uverse.address)

assertIsAuthorizedFeeCaller panics unless the caller is a fee-producing realm: pool, position, router, staker, or the DCA/limit order realms.

Open
OID
08e71a…a140:3
assertIsAuthorizedFeeCaller details

Inspect func

assertIsAdminOrGovStaker

func(caller .uverse.address)

assertIsAdminOrGovStaker panics if the caller is not admin or gov/staker.

Open
OID
08e71a…a140:5
assertIsAdminOrGovStaker details

Inspect func

assertIsValidPercent

func(pct int64)

assertIsValidPercent panics if the percentage is invalid (not between 0-10000).

Open
OID
08e71a…a140:6
assertIsValidPercent details

Inspect func

assertNotImplementYet

func()
Open
OID
08e71a…a140:7
assertNotImplementYet details

Inspect func

errInvalidPct

untyped string

Value

"[GNOSWAP-PROTOCOL_FEE-001] invalid percentage"

errInvalidAmount

untyped string

Value

"[GNOSWAP-PROTOCOL_FEE-002] invalid amount"

errProtocolFeeHalted

untyped string

Value

"[GNOSWAP-PROTOCOL_FEE-003] protocol fee halted"

errSpoofedRealm

untyped string

Value

"[GNOSWAP-PROTOCOL_FEE-004] rlm does not match the current crossing frame"

makeErrorWithDetail

func(message string, detail string) .uverse.error

makeErrorWithDetail creates an error with additional context.

Open
OID
08e71a…a140:8
makeErrorWithDetail details

Inspect func

registerProtocolFeeV1

func()
Open
OID
08e71a…a140:12
registerProtocolFeeV1 details

Inspect func

initStoreData

func(int, rlm .uverse.realm, protocolFeeStore protocol_fee.IProtocolFeeStore) .uverse.error
Open
OID
08e71a…a140:13
initStoreData details

Inspect func

protocolFeeV1

type

Value

v2.protocolFeeV1

NewProtocolFeeV1

func(protocolFeeStore protocol_fee.IProtocolFeeStore) protocol_fee.IProtocolFee

NewProtocolFeeV1 creates the protocol-fee v1 implementation backed by protocolFeeStore. Parameters: - protocolFeeStore: Store implementation containing the protocol-fee state for this version. Returns: - implementation: An IProtocolFee implementation that exposes v1 behavior through protocolFeeStore.

Open
OID
08e71a…a140:14
NewProtocolFeeV1 details

Inspect func

protocolFeeState

type

protocolFeeState holds all the state variables for protocol fee management

Value

v2.protocolFeeState

NewProtocolFeeStateBy

func(protocolFeeStore protocol_fee.IProtocolFeeStore) *v2.protocolFeeState

NewProtocolFeeState creates a new instance of protocolFeeState with initialized values Parameters: - protocolFeeStore: Store implementation backing the new protocol-fee state view. Returns: - state: New protocolFeeState wrapper backed by protocolFeeStore.

Open
OID
08e71a…a140:16
NewProtocolFeeStateBy details

Inspect func

retrieveAmount

func(tree *v0.BPTree, key string) int64
Open
OID
08e71a…a140:18
retrieveAmount details

Inspect func
roleOrderDCA : untyped string ="order_dca"
roleOrderLimit : untyped string ="order_limit"
assertIsAuthorizedFeeCaller : func(caller .uverse.address) Inspect
assertIsAdminOrGovStaker : func(caller .uverse.address) Inspect
assertIsValidPercent : func(pct int64) Inspect
assertNotImplementYet : func() Inspect
errInvalidPct : untyped string ="[GNOSWAP-PROTOCOL_FEE-001] invalid percentage"
errInvalidAmount : untyped string ="[GNOSWAP-PROTOCOL_FEE-002] invalid amount"
errProtocolFeeHalted : untyped string ="[GNOSWAP-PROTOCOL_FEE-003] protocol fee halted"
errSpoofedRealm : untyped string ="[GNOSWAP-PROTOCOL_FEE-004] rlm does not match the current crossing frame"
makeErrorWithDetail : func(message string, detail string) .uverse.error Inspect
init.11 : func() Inspect
registerProtocolFeeV1 : func() Inspect
initStoreData : func(int, rlm .uverse.realm, protocolFeeStore protocol_fee.IProtocolFeeStore) .uverse.error Inspect
protocolFeeV1 : type =v2.protocolFeeV1
NewProtocolFeeV1 : func(protocolFeeStore protocol_fee.IProtocolFeeStore) protocol_fee.IProtocolFee Inspect
protocolFeeState : type =v2.protocolFeeState
NewProtocolFeeStateBy : func(protocolFeeStore protocol_fee.IProtocolFeeStore) *v2.protocolFeeState Inspect
retrieveAmount : func(tree *v0.BPTree, key string) int64 Inspect