Claim drop AtomicHub

mainnet_claim_drop_atomichub.py
 1from litewax import Client
 2from litewax import WAXPayer
 3
 4
 5# try to get free cpu from atomichub
 6client = Client(
 7    private_key="5K...",
 8    node="https://wax.pink.gg"
 9)
10
11trx = client.Transaction(
12    client.Contract("atomicdropsx").assertdrop(
13        assets_to_mint_to_assert=[{"template_id":172121,"tokens_to_back":[]}],
14        drop_id="63075",
15        listing_price_to_assert="0.01 USD",
16        settlement_symbol_to_assert="8,WAX"
17    ),
18    client.Contract("atomicdropsx").claimdrop(
19        claim_amount="1",
20        claimer="atonicmaiket",
21        country="RU",
22        drop_id="63075",
23        intended_delphi_median="830",
24        referrer="atomichub"
25    ),
26    client.Contract("eosio.token").transfer(
27        _from="atonicmaiket",
28        to="atomicdropsx",
29        quantity="0.12048192 WAX",
30        memo="deposit"
31    )
32)
33
34
35trx = trx.payer(WAXPayer.ATOMICHUB) # atomichub pay your trx cpu only if you haven't enough wax staked in cpu
36print(trx)
37print(trx.push())