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

Object 0784cb0e…86e33f:2 state

Back to all declarations

3

func(routePaths string, inputToken string, outputToken string)
Open
OID
0784cb…e33f:7
3 details

Inspect func

4

func(routePaths string, inputToken string, outputToken string)
Open
OID
0784cb…e33f:8
4 details

Inspect func

8

func(hopIndex int, specifiedAmount int64, consumedAmount int64)
Open
OID
0784cb…e33f:12
8 details

Inspect func

9

func(hopIndex int, specifiedAmount int64, consumedAmount int64) .uverse.error
Open
OID
0784cb…e33f:13
9 details

Inspect func

10

int

Value

1

11

untyped string

Value

"*POOL*"

12

type

Value

v2.RouterOperation

13

func(int, rlm .uverse.realm, op v2.RouterOperation) (*v2.SwapResult, .uverse.error)
Open
OID
0784cb…e33f:14
13 details

Inspect func

14

type

Value

v2.BaseSwapParams

15

type

Value

v2.baseSwapOperation

16

type

Value

v2.SwapRouteParams

18

func(r *v2.routerV1, params v2.SwapRouteParams) (v2.RouterOperation, .uverse.error)
Open
OID
0784cb…e33f:17
18 details

Inspect func

19

untyped string

Value

"gno.land/r/gnoswap/router"

22

untyped string

Value

"[GNOSWAP-ROUTER-001] slippage check failed"

23

untyped string

Value

"[GNOSWAP-ROUTER-002] invalid routes and quotes"

24

untyped string

Value

"[GNOSWAP-ROUTER-003] transaction expired"

25

untyped string

Value

"[GNOSWAP-ROUTER-004] invalid input data"

26

untyped string

Value

"[GNOSWAP-ROUTER-005] invalid pool fee tier"

27

untyped string

Value

"[GNOSWAP-ROUTER-006] invalid swap fee"

28

untyped string

Value

"[GNOSWAP-ROUTER-007] invalid swap type"

29

untyped string

Value

"[GNOSWAP-ROUTER-008] invalid pool path"

30

untyped string

Value

"[GNOSWAP-ROUTER-009] unauthorized caller"

31

untyped string

Value

"[GNOSWAP-ROUTER-010] number of hops must be 1~3"

32

untyped string

Value

"[GNOSWAP-ROUTER-011] cannot swap same token"

33

untyped string

Value

"[GNOSWAP-ROUTER-013] invalid route path"

34

untyped string

Value

"[GNOSWAP-ROUTER-014] invalid route first token"

35

untyped string

Value

"[GNOSWAP-ROUTER-015] invalid route last token"

36

untyped string

Value

"[GNOSWAP-ROUTER-016] invalid swap amount"

37

untyped string

Value

"[GNOSWAP-ROUTER-017] route hop disconnected"

38

untyped string

Value

"[GNOSWAP-ROUTER-018] insufficient balance for swap"

39

untyped string

Value

"[GNOSWAP-ROUTER-019] rlm does not match the current crossing frame"

40

untyped string

Value

"[GNOSWAP-ROUTER-020] insufficient liquidity for swap"

41

func(message string, detail string) string
Open
OID
0784cb…e33f:21
41 details

Inspect func

42

func(message string, detail string) .uverse.error
Open
OID
0784cb…e33f:23
42 details

Inspect func

43

type

Value

v2.ExactInSwapOperation

44

func(r *v2.routerV1, pp v2.ExactInParams) *v2.ExactInSwapOperation
Open
OID
0784cb…e33f:24
44 details

Inspect func

45

type

Value

v2.ExactOutSwapOperation

46

func(r *v2.routerV1, pp v2.ExactOutParams) *v2.ExactOutSwapOperation
Open
OID
0784cb…e33f:26
46 details

Inspect func

47

uint64

Value

15

50

func(int, rlm .uverse.realm, routerStore router.IRouterStore) .uverse.error
Open
OID
0784cb…e33f:31
50 details

Inspect func

51

type

Value

v2.routerV1

52

func(routerStore router.IRouterStore) router.IRouter
Open
OID
0784cb…e33f:32
52 details

Inspect func

53

func(amount int64, swapFee uint64) int64
Open
OID
0784cb…e33f:34
53 details

Inspect func

54

func(amount int64, swapFee uint64) int64
Open
OID
0784cb…e33f:36
54 details

Inspect func

55

uint64

Value

1000

56

untyped string

Value

"consumed input does not match requested (requested=%d, consumed=%d)"

57

untyped string

Value

"received more than requested in requested=%d, actual=%d"

58

untyped string

Value

"route length(%d) must be 1~7"

59

untyped string

Value

"mismatch between routes(%d) and quotes(%d) length"

60

untyped string

Value

"invalid quote(%s) at index(%d)"

61

untyped string

Value

"quote(%s) at index(%d) must be positive value"

62

untyped string

Value

"quote(%s) at index(%d) must be less than or equal to %d"

63

untyped string

Value

"quote sum exceeds 100 at index(%d)"

64

untyped string

Value

"quote sum(%d) must be 100"

65

untyped string

Value

"ExactIn: too few received (min:%d, got:%d)"

66

untyped string

Value

"ExactOut: too much spent (max:%d, used:%d)"

67

untyped string

Value

"routes cannot be empty"

68

type

Value

v2.SwapValidator

69

type

Value

v2.RouteParser

71

func(routes string, quotes string) ([]string, []string, .uverse.error)
Open
OID
0784cb…e33f:39
71 details

Inspect func

72

untyped bigint

Value

(100 <untyped> bigint)

73

untyped bigint

Value

(0 <untyped> bigint)

74

int64

Value

100

75

untyped string

Value

"unknown swapType(%s)"

76

untyped string

Value

"invalid amount(%s), must be positive"

77

untyped string

Value

"quote(%d) must be %d~%d"

78

type

Value

v2.SwapProcessor

79

func(swapType v2.SwapType, numHops int) int
Open
OID
0784cb…e33f:40
79 details

Inspect func

80

string

Value

"4295128740"

81

string

Value

"1461446703485210103287273052203988822378723970341"

82

func(zeroForOne bool, sqrtPriceLimitX96 *v1.Uint) string
Open
OID
0784cb…e33f:42
82 details

Inspect func

83

untyped string

Value

"UNKNOWN"

84

untyped string

Value

"EXACT_IN"

85

untyped string

Value

"EXACT_OUT"

86

.uverse.address

Value

<gnolang.StringValue>

87

type

Value

v2.SwapType

88

v2.SwapType

Value

<gnolang.StringValue>

89

v2.SwapType

Value

<gnolang.StringValue>

90

v2.SwapType

Value

<gnolang.StringValue>

91

func(swapType string) (v2.SwapType, .uverse.error)
Open
OID
0784cb…e33f:44
91 details

Inspect func

92

type

Value

v2.SingleSwapParams

93

type

Value

v2.SwapParams

94

func(tokenIn string, tokenOut string, fee uint32, recipient .uverse.address, amountSpecified int64) *v2.SwapParams
Open
OID
0784cb…e33f:46
94 details

Inspect func

95

type

Value

v2.SwapResult

96

type

Value

v2.SwapParamsI

97

type

Value

v2.SwapCallbackData

98

func(params v2.SwapParamsI, payer .uverse.address) v2.SwapCallbackData
Open
OID
0784cb…e33f:47
98 details

Inspect func

99

func(params v2.SwapParamsI) v2.SwapCallbackData
Open
OID
0784cb…e33f:48
99 details

Inspect func

100

type

Value

v2.ExactInParams

101

func(baseParams v2.BaseSwapParams, amountIn int64, amountOutMin int64) v2.ExactInParams
Open
OID
0784cb…e33f:49
101 details

Inspect func

102

type

Value

v2.ExactOutParams

103

func(baseParams v2.BaseSwapParams, amountOut int64, amountInMax int64) v2.ExactOutParams
Open
OID
0784cb…e33f:50
103 details

Inspect func

104

func(amountSpecified int64, quote string) (int64, .uverse.error)
Open
OID
0784cb…e33f:51
104 details

Inspect func

106

func(poolPath string) (token0 string, token1 string, fee uint32)
Open
OID
0784cb…e33f:54
106 details

Inspect func

107

func(poolPath string) (string, string, uint32, .uverse.error)
Open
OID
0784cb…e33f:55
107 details

Inspect func

108

func(possiblePath string, poolIdx int) (token0 string, token1 string, fee uint32)
Open
OID
0784cb…e33f:56
108 details

Inspect func

109

func(x *v1.Int, y *v1.Int) (min *v1.Uint, max *v1.Uint)
Open
OID
0784cb…e33f:57
109 details

Inspect func

110

func(routePathArrString string, inputToken string, outputToken string) .uverse.error
Open
OID
0784cb…e33f:58
110 details

Inspect func

111

func(routePath string, inputToken string, outputToken string) .uverse.error
Open
OID
0784cb…e33f:59
111 details

Inspect func

112

func(routePoolPaths []string) .uverse.error
Open
OID
0784cb…e33f:60
112 details

Inspect func

113

func(s string, sep uint8) []string
Open
OID
0784cb…e33f:61
113 details

Inspect func

114

func(routePathArr string) ([]string, .uverse.error)
Open
OID
0784cb…e33f:62
114 details

Inspect func

115

func(tokenA string, tokenB string, fee uint32) string
Open
OID
0784cb…e33f:63
115 details

Inspect func
0 : func(deadline int64) Inspect
1 : func(p *v2.SingleSwapParams) Inspect
2 : func(sqrtPriceLimitX96 string) Inspect
3 : func(routePaths string, inputToken string, outputToken string) Inspect
4 : func(routePaths string, inputToken string, outputToken string) Inspect
5 : func(routePathArr string) Inspect
6 : func(caller .uverse.address) Inspect
7 : func(int, rlm .uverse.realm) Inspect
8 : func(hopIndex int, specifiedAmount int64, consumedAmount int64) Inspect
9 : func(hopIndex int, specifiedAmount int64, consumedAmount int64) .uverse.error Inspect
10 : int =1
11 : untyped string ="*POOL*"
12 : type =v2.RouterOperation
13 : func(int, rlm .uverse.realm, op v2.RouterOperation) (*v2.SwapResult, .uverse.error) Inspect
14 : type =v2.BaseSwapParams
15 : type =v2.baseSwapOperation
16 : type =v2.SwapRouteParams
17 : func(routeArr string) []string Inspect
18 : func(r *v2.routerV1, params v2.SwapRouteParams) (v2.RouterOperation, .uverse.error) Inspect
19 : untyped string ="gno.land/r/gnoswap/router"
20 : <gnolang.heapItemType> Inspect
21 : func() Inspect
22 : untyped string ="[GNOSWAP-ROUTER-001] slippage check failed"
23 : untyped string ="[GNOSWAP-ROUTER-002] invalid routes and quotes"
24 : untyped string ="[GNOSWAP-ROUTER-003] transaction expired"
25 : untyped string ="[GNOSWAP-ROUTER-004] invalid input data"
26 : untyped string ="[GNOSWAP-ROUTER-005] invalid pool fee tier"
27 : untyped string ="[GNOSWAP-ROUTER-006] invalid swap fee"
28 : untyped string ="[GNOSWAP-ROUTER-007] invalid swap type"
29 : untyped string ="[GNOSWAP-ROUTER-008] invalid pool path"
30 : untyped string ="[GNOSWAP-ROUTER-009] unauthorized caller"
31 : untyped string ="[GNOSWAP-ROUTER-010] number of hops must be 1~3"
32 : untyped string ="[GNOSWAP-ROUTER-011] cannot swap same token"
33 : untyped string ="[GNOSWAP-ROUTER-013] invalid route path"
34 : untyped string ="[GNOSWAP-ROUTER-014] invalid route first token"
35 : untyped string ="[GNOSWAP-ROUTER-015] invalid route last token"
36 : untyped string ="[GNOSWAP-ROUTER-016] invalid swap amount"
37 : untyped string ="[GNOSWAP-ROUTER-017] route hop disconnected"
38 : untyped string ="[GNOSWAP-ROUTER-018] insufficient balance for swap"
39 : untyped string ="[GNOSWAP-ROUTER-019] rlm does not match the current crossing frame"
40 : untyped string ="[GNOSWAP-ROUTER-020] insufficient liquidity for swap"
41 : func(message string, detail string) string Inspect
42 : func(message string, detail string) .uverse.error Inspect
43 : type =v2.ExactInSwapOperation
44 : func(r *v2.routerV1, pp v2.ExactInParams) *v2.ExactInSwapOperation Inspect
45 : type =v2.ExactOutSwapOperation
46 : func(r *v2.routerV1, pp v2.ExactOutParams) *v2.ExactOutSwapOperation Inspect
47 : uint64 =15
48 : func() Inspect
49 : func() Inspect
50 : func(int, rlm .uverse.realm, routerStore router.IRouterStore) .uverse.error Inspect
51 : type =v2.routerV1
52 : func(routerStore router.IRouterStore) router.IRouter Inspect
53 : func(amount int64, swapFee uint64) int64 Inspect
54 : func(amount int64, swapFee uint64) int64 Inspect
55 : uint64 =1000
56 : untyped string ="consumed input does not match requested (requested=%d, consumed=%d)"
57 : untyped string ="received more than requested in requested=%d, actual=%d"
58 : untyped string ="route length(%d) must be 1~7"
59 : untyped string ="mismatch between routes(%d) and quotes(%d) length"
60 : untyped string ="invalid quote(%s) at index(%d)"
61 : untyped string ="quote(%s) at index(%d) must be positive value"
62 : untyped string ="quote(%s) at index(%d) must be less than or equal to %d"
63 : untyped string ="quote sum exceeds 100 at index(%d)"
64 : untyped string ="quote sum(%d) must be 100"
65 : untyped string ="ExactIn: too few received (min:%d, got:%d)"
66 : untyped string ="ExactOut: too much spent (max:%d, used:%d)"
67 : untyped string ="routes cannot be empty"
68 : type =v2.SwapValidator
69 : type =v2.RouteParser
70 : func() *v2.RouteParser Inspect
71 : func(routes string, quotes string) ([]string, []string, .uverse.error) Inspect
72 : untyped bigint =(100 <untyped> bigint)
73 : untyped bigint =(0 <untyped> bigint)
74 : int64 =100
75 : untyped string ="unknown swapType(%s)"
76 : untyped string ="invalid amount(%s), must be positive"
77 : untyped string ="quote(%d) must be %d~%d"
78 : type =v2.SwapProcessor
79 : func(swapType v2.SwapType, numHops int) int Inspect
80 : string ="4295128740"
81 : string ="1461446703485210103287273052203988822378723970341"
82 : func(zeroForOne bool, sqrtPriceLimitX96 *v1.Uint) string Inspect
83 : untyped string ="UNKNOWN"
84 : untyped string ="EXACT_IN"
85 : untyped string ="EXACT_OUT"
86 : .uverse.address =<gnolang.StringValue>
87 : type =v2.SwapType
88 : v2.SwapType =<gnolang.StringValue>
89 : v2.SwapType =<gnolang.StringValue>
90 : v2.SwapType =<gnolang.StringValue>
91 : func(swapType string) (v2.SwapType, .uverse.error) Inspect
92 : type =v2.SingleSwapParams
93 : type =v2.SwapParams
94 : func(tokenIn string, tokenOut string, fee uint32, recipient .uverse.address, amountSpecified int64) *v2.SwapParams Inspect
95 : type =v2.SwapResult
96 : type =v2.SwapParamsI
97 : type =v2.SwapCallbackData
98 : func(params v2.SwapParamsI, payer .uverse.address) v2.SwapCallbackData Inspect
99 : func(params v2.SwapParamsI) v2.SwapCallbackData Inspect
100 : type =v2.ExactInParams
101 : func(baseParams v2.BaseSwapParams, amountIn int64, amountOutMin int64) v2.ExactInParams Inspect
102 : type =v2.ExactOutParams
103 : func(baseParams v2.BaseSwapParams, amountOut int64, amountInMax int64) v2.ExactOutParams Inspect
104 : func(amountSpecified int64, quote string) (int64, .uverse.error) Inspect
105 : func(hops int) Inspect
106 : func(poolPath string) (token0 string, token1 string, fee uint32) Inspect
107 : func(poolPath string) (string, string, uint32, .uverse.error) Inspect
108 : func(possiblePath string, poolIdx int) (token0 string, token1 string, fee uint32) Inspect
109 : func(x *v1.Int, y *v1.Int) (min *v1.Uint, max *v1.Uint) Inspect
110 : func(routePathArrString string, inputToken string, outputToken string) .uverse.error Inspect
111 : func(routePath string, inputToken string, outputToken string) .uverse.error Inspect
112 : func(routePoolPaths []string) .uverse.error Inspect
113 : func(s string, sep uint8) []string Inspect
114 : func(routePathArr string) ([]string, .uverse.error) Inspect
115 : func(tokenA string, tokenB string, fee uint32) string Inspect