Exemplo n.º 1
0
 def __init__(self, *args, **kwargs):
     super(Testcases, self).__init__(*args, **kwargs)
     transnet = Transnet(
         "wss://transnet.space:10443/ws",
         nobroadcast=True,
     )
     set_shared_transnet_instance(transnet)
Exemplo n.º 2
0
    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)

        self.bts = Transnet("wss://node.testnet.transnet.eu",
                            nobroadcast=True,
                            keys={"active": wif})
        set_shared_transnet_instance(self.bts)
        self.bts.set_default_account("init0")
Exemplo n.º 3
0
    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)

        self.bts = Transnet(
            nobroadcast=True,
            # We want to bundle many operations into a single transaction
            bundle=True,
            # Overwrite wallet to use this list of wifs only
            wif=[wif])
        self.bts.set_default_account("init0")
        set_shared_transnet_instance(self.bts)
Exemplo n.º 4
0
    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)

        self.bts = Transnet(
            "wss://node.testnet.transnet.eu",
            nobroadcast=True,
            keys={"active": wif},
        )
        # from getpass import getpass
        # self.trns.wallet.unlock(getpass())
        set_shared_transnet_instance(self.bts)
        self.bts.set_default_account("init0")
Exemplo n.º 5
0
    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)

        self.bts = Transnet(
            "wss://node.testnet.transnet.eu",
            nobroadcast=True,
        )
        set_shared_transnet_instance(self.bts)
        self.asset = Asset("1.3.0")
        self.symbol = self.asset["symbol"]
        self.precision = self.asset["precision"]
        self.asset2 = Asset("1.3.1")
Exemplo n.º 6
0
    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)

        self.bts = Transnet(nobroadcast=True, )
        set_shared_transnet_instance(self.bts)