Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

v1 state

Back to all declarations

assertIsPoolOrPositionOrRouterOrStaker

func(caller .uverse.address)

assertIsPoolOrPositionOrRouterOrStaker panics if the caller is not the pool, router, or staker contract.

Open
OID
02af6e…7b3b:3
assertIsPoolOrPositionOrRouterOrStaker details

Inspect func

assertIsAdminOrGovStaker

func(caller .uverse.address)

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

Open
OID
02af6e…7b3b:5
assertIsAdminOrGovStaker details

Inspect func

assertIsValidPercent

func(pct int64)

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

Open
OID
02af6e…7b3b:6
assertIsValidPercent details

Inspect func

assertNotImplementYet

func()
Open
OID
02af6e…7b3b: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
02af6e…7b3b:8
makeErrorWithDetail details

Inspect func

registerProtocolFeeV1

func()
Open
OID
02af6e…7b3b:12
registerProtocolFeeV1 details

Inspect func

initStoreData

func(int, rlm .uverse.realm, protocolFeeStore protocol_fee.IProtocolFeeStore) .uverse.error
Open
OID
02af6e…7b3b:13
initStoreData details

Inspect func

protocolFeeV1

type

Value

v1.protocolFeeV1

NewProtocolFeeV1

func(protocolFeeStore protocol_fee.IProtocolFeeStore) protocol_fee.IProtocolFee
Open
OID
02af6e…7b3b:14
NewProtocolFeeV1 details

Inspect func

protocolFeeState

type

protocolFeeState holds all the state variables for protocol fee management

Value

v1.protocolFeeState

NewProtocolFeeStateBy

func(protocolFeeStore protocol_fee.IProtocolFeeStore) *v1.protocolFeeState

NewProtocolFeeState creates a new instance of protocolFeeState with initialized values

Open
OID
02af6e…7b3b:16
NewProtocolFeeStateBy details

Inspect func

retrieveAmount

func(tree *v0.BPTree, key string) int64
Open
OID
02af6e…7b3b:18
retrieveAmount details

Inspect func
assertIsPoolOrPositionOrRouterOrStaker : 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.9 : func() Inspect
registerProtocolFeeV1 : func() Inspect
initStoreData : func(int, rlm .uverse.realm, protocolFeeStore protocol_fee.IProtocolFeeStore) .uverse.error Inspect
protocolFeeV1 : type =v1.protocolFeeV1
NewProtocolFeeV1 : func(protocolFeeStore protocol_fee.IProtocolFeeStore) protocol_fee.IProtocolFee Inspect
protocolFeeState : type =v1.protocolFeeState
NewProtocolFeeStateBy : func(protocolFeeStore protocol_fee.IProtocolFeeStore) *v1.protocolFeeState Inspect
retrieveAmount : func(tree *v0.BPTree, key string) int64 Inspect