Skip to content

Commit cc4aae3

Browse files
committed
feat: add custom network
1 parent c36fb82 commit cc4aae3

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

pyinjective/constant.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,5 +140,16 @@ def local(cls):
140140
env='local'
141141
)
142142

143+
@classmethod
144+
def custom(cls, lcd_endpoint, grpc_endpoint, grpc_exchange_endpoint, chain_id, env):
145+
return cls(
146+
lcd_endpoint=lcd_endpoint,
147+
grpc_endpoint=grpc_endpoint,
148+
grpc_exchange_endpoint=grpc_exchange_endpoint,
149+
chain_id=chain_id,
150+
fee_denom='inj',
151+
env=env
152+
)
153+
143154
def string(self):
144155
return self.env

0 commit comments

Comments
 (0)