forked from magicalne/godwoken-metrics-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: parse mol for CustodianLockArgs
- Loading branch information
Showing
2 changed files
with
9 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
from time import sleep | ||
import unittest | ||
from agent.sched_custodian import get_custodian | ||
from agent.gw_config import testnet_config | ||
from agent.gw_config import testnet_v1_1_config, mainnet_v1_config | ||
|
||
|
||
class TestSchedCustodian(unittest.TestCase): | ||
def setUp(self) -> None: | ||
self.gw_config = testnet_config() | ||
self.indexer_url = "https://testnet.ckb.dev/indexer" | ||
#self.gw_config = testnet_v1_1_config() | ||
#self.indexer_url = "https://testnet.ckb.dev/indexer" | ||
self.gw_config = mainnet_v1_config() | ||
self.indexer_url = "https://mainnet.ckb.dev/indexer" | ||
|
||
def test_get_custodian(self) -> None: | ||
custodian = get_custodian(self.indexer_url, self.gw_config, 171987) | ||
custodian = get_custodian(self.indexer_url, self.gw_config, 53778) | ||
print(f'custodian: {custodian}') |