Skip to content

Commit ca6128b

Browse files
Nattapat IammelapNattapat Iammelap
authored andcommitted
remove unused code
1 parent 30a636b commit ca6128b

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

relayer/chains/icon/types.go

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ package icon
22

33
import (
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-
}

0 commit comments

Comments
 (0)