File tree Expand file tree Collapse file tree 1 file changed +0
-26
lines changed
Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,6 @@ package icon
22
33import (
44 iconclient "github.com/icon-project/goloop/client"
5- "github.com/icon-project/goloop/server/jsonrpc"
6- "github.com/shopspring/decimal"
75)
86
97// ClientConnectionResult is the struct that contains the result of connecting to the specific endpoint.
@@ -12,27 +10,3 @@ type ClientConnectionResult struct {
1210 Client * iconclient.ClientV3
1311 BlockHeight uint64
1412}
15-
16- type ContractData struct {
17- Method string `json:"method"`
18- Params interface {} `json:"params"`
19- }
20-
21- type GetRefDataBulkParams struct {
22- Bases []string `json:"bases"`
23- Quotes []string `json:"quotes"`
24- }
25-
26- type ContractOutput struct {
27- Rate jsonrpc.HexInt `json:"rate"`
28- LastUpdateBase jsonrpc.HexInt `json:"last_update_base"`
29- LastUpdateQuote jsonrpc.HexInt `json:"last_update_quote"`
30- }
31-
32- func (c ContractOutput ) Parse () (decimal.Decimal , error ) {
33- rb , err := c .Rate .BigInt ()
34- if err != nil {
35- return decimal.Decimal {}, err
36- }
37- return decimal .NewFromBigInt (rb , 0 ), nil
38- }
You can’t perform that action at this time.
0 commit comments