def test_asset_claim_fees(self): self.op = operations.Asset_claim_fees( **{ "fee": {"amount": 0, "asset_id": "1.3.0"}, "issuer": "1.2.123", "amount_to_claim": {"amount": 1123456, "asset_id": "1.3.0"}, "extensions": [], } ) self.cm = ( "f68585abf4dce7c80457012b0000000000000000007b80241100" "00000000000000011f3c93aa7fd19e065361261ad4f7902d73ee" "8991f1b47d4bb62298f38e93ace2c26b7e06dff026b77515200f" "99c88a07aa5bfd2e7647e412f94a7246185d8c2d31" ) self.doit()
def claim_market_fee(self, amount, **kwargs): """ Claim market fee :param float amount: Amount to claim """ # append operation op = operations.Asset_claim_fees( **{ "fee": {"amount": 0, "asset_id": "1.3.0"}, "issuer": self["issuer"], "amount_to_claim": { "amount": int(float(amount) * 10 ** self["precision"]), "asset_id": self["id"] }, "extensions": [], } ) return self.blockchain.finalizeOp(op, self["issuer"], "active", **kwargs)