Interact with Shio Contract

We check the PTB to ensure there is at least one submit_bid MoveCall to Shio package. The call must be in the PTB itself, rather than being called from another module.

Shio Contract exposes these methods:

module shio::auctioneer {
  
  public fun submit_bid(
        s: &mut GlobalState,
        bid_amount: u64, 
        fee: Balance<SUI>,
        _ctx: &mut TxContext) {}

}
  • Package is deployed at 0x1889977f0fb56ae730e7bda8e8e32859ce78874458c74910d36121a81a615123.

  • submid_bid:

    • s: A mutable reference to the global state. Currently 0xc32ce42eac951759666cbc993646b72387ec2708a2917c2c6fb7d21f00108c18 with initial shared version 72869622.

    • bid_amount : Bid amount in MIST. Make sure the number if exactly the same as in the bid.

    • fee: Balance of exactly bid_amount, to be consumed by the contract.

You can find example transactions here.

You can submit a test transaction with the following command invoking SUI CLI:

sui client ptb \
    --split-coins gas '[42]' \
    --assign coins \
    --move-call 'sui::coin::into_balance<sui::sui::SUI>' coins.0 \
    --assign fee \
    --move-call 0x1889977f0fb56ae730e7bda8e8e32859ce78874458c74910d36121a81a615123::auctioneer::submit_bid @0xc32ce42eac951759666cbc993646b72387ec2708a2917c2c6fb7d21f00108c18 42 fee

Last updated