-
Notifications
You must be signed in to change notification settings - Fork 31
/
method.go
89 lines (80 loc) · 4.29 KB
/
method.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
package client
const (
SuiXPrefix = "suix_"
SuiPrefix = "sui_"
UnsafePrefix = "unsafe_"
)
type Method interface {
String() string
}
type SuiMethod string
func (s SuiMethod) String() string {
return SuiPrefix + string(s)
}
type SuiXMethod string
func (s SuiXMethod) String() string {
return SuiXPrefix + string(s)
}
type UnsafeMethod string
func (u UnsafeMethod) String() string {
return UnsafePrefix + string(u)
}
const (
devInspectTransactionBlock SuiMethod = "devInspectTransactionBlock"
dryRunTransactionBlock SuiMethod = "dryRunTransactionBlock"
executeTransactionBlock SuiMethod = "executeTransactionBlock"
getCheckpoint SuiMethod = "getCheckpoint"
getCheckpoints SuiMethod = "getCheckpoints"
getEvents SuiMethod = "getEvents"
getLatestCheckpointSequenceNumber SuiMethod = "getLatestCheckpointSequenceNumber"
getMoveFunctionArgTypes SuiMethod = "getMoveFunctionArgTypes"
getNormalizedMoveFunction SuiMethod = "getNormalizedMoveFunction"
getNormalizedMoveModule SuiMethod = "getNormalizedMoveModule"
getNormalizedMoveModulesByPackage SuiMethod = "getNormalizedMoveModulesByPackage"
getNormalizedMoveStruct SuiMethod = "getNormalizedMoveStruct"
getObject SuiMethod = "getObject"
getTotalTransactionBlocks SuiMethod = "getTotalTransactionBlocks"
getTransactionBlock SuiMethod = "getTransactionBlock"
multiGetObjects SuiMethod = "multiGetObjects"
multiGetTransactionBlocks SuiMethod = "multiGetTransactionBlocks"
tryGetPastObject SuiMethod = "tryGetPastObject"
tryMultiGetPastObjects SuiMethod = "tryMultiGetPastObjects"
getAllBalances SuiXMethod = "getAllBalances"
getAllCoins SuiXMethod = "getAllCoins"
getBalance SuiXMethod = "getBalance"
getCoinMetadata SuiXMethod = "getCoinMetadata"
getCoins SuiXMethod = "getCoins"
getCommitteeInfo SuiXMethod = "getCommitteeInfo"
getCurrentEpoch SuiXMethod = "getCurrentEpoch"
getDynamicFieldObject SuiXMethod = "getDynamicFieldObject"
getDynamicFields SuiXMethod = "getDynamicFields"
getEpochs SuiXMethod = "getEpochs"
getLatestSuiSystemState SuiXMethod = "getLatestSuiSystemState"
getMoveCallMetrics SuiXMethod = "getMoveCallMetrics"
getNetworkMetrics SuiXMethod = "getNetworkMetrics"
getOwnedObjects SuiXMethod = "getOwnedObjects"
getReferenceGasPrice SuiXMethod = "getReferenceGasPrice"
getStakes SuiXMethod = "getStakes"
getStakesByIds SuiXMethod = "getStakesByIds"
getTotalSupply SuiXMethod = "getTotalSupply"
getValidatorsApy SuiXMethod = "getValidatorsApy"
queryEvents SuiXMethod = "queryEvents"
queryObjects SuiXMethod = "queryObjects"
queryTransactionBlocks SuiXMethod = "queryTransactionBlocks"
resolveNameServiceAddress SuiXMethod = "resolveNameServiceAddress"
resolveNameServiceNames SuiXMethod = "resolveNameServiceNames"
subscribeEvent SuiXMethod = "subscribeEvent"
batchTransaction UnsafeMethod = "batchTransaction"
mergeCoins UnsafeMethod = "mergeCoins"
moveCall UnsafeMethod = "moveCall"
pay UnsafeMethod = "pay"
payAllSui UnsafeMethod = "payAllSui"
paySui UnsafeMethod = "paySui"
publish UnsafeMethod = "publish"
requestAddStake UnsafeMethod = "requestAddStake"
requestWithdrawStake UnsafeMethod = "requestWithdrawStake"
splitCoin UnsafeMethod = "splitCoin"
splitCoinEqual UnsafeMethod = "splitCoinEqual"
transferObject UnsafeMethod = "transferObject"
transferSui UnsafeMethod = "transferSui"
)