File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ type ChainClient interface {
83
83
DefaultSubaccount (acc cosmtypes.AccAddress ) eth.Hash
84
84
85
85
GetSubAccountNonce (ctx context.Context , subaccountId eth.Hash ) (* exchangetypes.QuerySubaccountTradeNonceResponse , error )
86
+ GetFeeDiscountInfo (ctx context.Context , account string ) (* exchangetypes.QueryFeeDiscountAccountInfoResponse , error )
86
87
ComputeOrderHashes (spotOrders []exchangetypes.SpotOrder , derivativeOrders []exchangetypes.DerivativeOrder ) (OrderHashes , error )
87
88
88
89
SpotOrder (defaultSubaccountID eth.Hash , network common.Network , d * SpotOrderData ) * exchangetypes.SpotOrder
@@ -416,6 +417,13 @@ func (c *chainClient) SyncBroadcastMsg(msgs ...sdk.Msg) (*txtypes.BroadcastTxRes
416
417
return res , nil
417
418
}
418
419
420
+ func (c * chainClient ) GetFeeDiscountInfo (ctx context.Context , account string ) (* exchangetypes.QueryFeeDiscountAccountInfoResponse , error ) {
421
+ req := & exchangetypes.QueryFeeDiscountAccountInfoRequest {
422
+ Account : account ,
423
+ }
424
+ return c .exchangeQueryClient .FeeDiscountAccountInfo (ctx , req )
425
+ }
426
+
419
427
func (c * chainClient ) SimulateMsg (clientCtx client.Context , msgs ... sdk.Msg ) (* txtypes.SimulateResponse , error ) {
420
428
c .txFactory = c .txFactory .WithSequence (c .accSeq )
421
429
c .txFactory = c .txFactory .WithAccountNumber (c .accNum )
Original file line number Diff line number Diff line change @@ -29,7 +29,17 @@ func getFileAbsPath(relativePath string) string {
29
29
}
30
30
31
31
func LoadNetwork (name string , node string ) Network {
32
- if name == "devnet" {
32
+ if name == "devnet-1" {
33
+ return Network {
34
+ LcdEndpoint : "https://devnet-1.lcd.injective.dev" ,
35
+ TmEndpoint : "https://devnet-1.tm.injective.dev:443" ,
36
+ ChainGrpcEndpoint : "tcp://devnet-1.grpc.injective.dev:9900" ,
37
+ ExchangeGrpcEndpoint : "tcp://devnet-1.api.injective.dev:9910" ,
38
+ ChainId : "injective-777" ,
39
+ Fee_denom : "inj" ,
40
+ Name : "devnet-1" ,
41
+ }
42
+ } else if name == "devnet" {
33
43
return Network {
34
44
LcdEndpoint : "https://devnet.lcd.injective.dev" ,
35
45
TmEndpoint : "https://devnet.tm.injective.dev:443" ,
You can’t perform that action at this time.
0 commit comments