Shio
  • 👋INTRODUCTION
    • Shio
    • Defi Integrations
    • Campaign
    • Join the Community
    • Brand Kit
  • 🎮SHIO PRODUCTS
    • Shio Endpoint
  • 🤖Searcher Guides
    • Getting Started as a Searcher
    • Connect to Shio Feed
      • auctionStarted Event
    • Submit Bid
      • Simulate Bid
    • Interact with Shio Contract
    • Inspect Historical Auction Events
    • Searcher FAQ
Powered by GitBook
On this page
  • Making a call
  • Global State Objects

Was this helpful?

  1. Searcher Guides

Interact with Shio Contract

PreviousSimulate BidNextInspect Historical Auction Events

Last updated 6 months ago

Was this helpful?

Making a call

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. There are 32 such objects and you are advised to choose a random one from for each submission.

    • 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 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

Global State Objects

To avoid object congestion should the network becomes extremely busy, we have provided 32 global state objects.

For each submission, you must randomly choose one of them to use, to minimize the chance that your bid gets congestion controlled by the network.

A full list of global shared objects is as follows:

[
  {
    "objectId": "0xc32ce42eac951759666cbc993646b72387ec2708a2917c2c6fb7d21f00108c18",
    "initialSharedVersion": 72869622
  },
  {
    "objectId": "0x0289acae0edcdf1fe3aedc2e886bc23064d41c359e0179a18152a64d1c1c2b3e",
    "initialSharedVersion": 327637282
  },
  {
    "objectId": "0x03132160e8c2c45208abf3ccf165e82edcc42fee2e614afe54582f9740a808b8",
    "initialSharedVersion": 327637282
  },
  {
    "objectId": "0x072ae7307459e535379f422995a0d10132f12a3450298f8cf0cc07bd164f9999",
    "initialSharedVersion": 327637282
  },
  {
    "objectId": "0x1c1a96a2f4a34ea09ab15b8ff98f4b6b4338ce89f4158eb7d3eb2cd4dcbd6d86",
    "initialSharedVersion": 327637282
  },
  {
    "objectId": "0x20d76f37ad9f2421a9e6afaf3bb204250b1c2241c50e8a955e86a1a48767d06f",
    "initialSharedVersion": 327637282
  },
  {
    "objectId": "0x213ed368233cc7480fcb6336e70c5ae7ee106b2317ba02ccb5d0478e45bcc046",
    "initialSharedVersion": 327637282
  },
  {
    "objectId": "0x22ce1e80937354eba5549fed2937dc6e2b24026d03505bb51a3e4a64aa4142f6",
    "initialSharedVersion": 327637282
  },
  {
    "objectId": "0x26188cb7ce5ae633279f440f66081cb65cc585e428de18e194f8843e866f799f",
    "initialSharedVersion": 327637282
  },
  {
    "objectId": "0x38642f01422480128388d3e2948d3dc1b2680f9914077edb6bd3451ae1c5bcf0",
    "initialSharedVersion": 327637282
  },
  {
    "objectId": "0x3dd85b6424aea1cae9eff6e55456ca783e056226325f1362106eca8b3ed04ca0",
    "initialSharedVersion": 327637282
  },
  {
    "objectId": "0x42f8adc490542369d9c3b95e9f6eb70b2583102900feb7e103072ed49ba7fc3d",
    "initialSharedVersion": 327637282
  },
  {
    "objectId": "0x46b8158c82fa6bda7230d31a127d934c7295a0042083b4900f3096e9191f6f3f",
    "initialSharedVersion": 327637282
  },
  {
    "objectId": "0x6ebac88a8c3f7a4a9fb05ea49d188a1fe8520ae59ee736e0473004d3033512a4",
    "initialSharedVersion": 327637282
  },
  {
    "objectId": "0x6f55ad6cb40cfc124c11b11c19be0a80237b104acd955e7b52ccb7bf9046fe33",
    "initialSharedVersion": 327637282
  },
  {
    "objectId": "0x71aafb8bac986e82e5f78846bf3b36c2a82505585625207324140227a27ff279",
    "initialSharedVersion": 327637282
  },
  {
    "objectId": "0x7fe9b08680d4179de5672f213b863525b21f10604ca161538075e9338d1d2324",
    "initialSharedVersion": 327637282
  },
  {
    "objectId": "0x81538ef2909a3e0dd3d7f38bcbee191509bae4e8666272938ced295672e2ee8d",
    "initialSharedVersion": 327637282
  },
  {
    "objectId": "0x828eb6b3354ad68a23dd792313a16a0d888b7ea4fdb884bb22bd569f8e61319e",
    "initialSharedVersion": 327637282
  },
  {
    "objectId": "0x9705a332b8c1650dd7fe687ef9f9a9638afb51c30c0b34db150d60b920bc07eb",
    "initialSharedVersion": 327637282
  },
  {
    "objectId": "0x9918f73797a9390e9888b55454f2b31bc01de1a4634acab08f80641c4248e8a5",
    "initialSharedVersion": 327637282
  },
  {
    "objectId": "0x9cd4c08bdf2e132ec2cc77b0f03be60a94951e046d8e82ed5494f44e609edd2f",
    "initialSharedVersion": 327637282
  },
  {
    "objectId": "0xac8ce2033571140509788337c8a1f3aa8941a320ecd7047acda310d39cad9e03",
    "initialSharedVersion": 327637282
  },
  {
    "objectId": "0xbcd4527035265461a9a7b4f1e57c63ea7a6bdf0dc223c66033c218d880f928b1",
    "initialSharedVersion": 327637282
  },
  {
    "objectId": "0xbfdb691b8cc0b3c3a3b7a654f6682f3e53b164d9ee00b9582cdb4d0a353440a9",
    "initialSharedVersion": 327637282
  },
  {
    "objectId": "0xc2559d5c52ae04837ddf943a8c2cd53a5a0b512cee615d30d3abe25aa339465e",
    "initialSharedVersion": 327637282
  },
  {
    "objectId": "0xc56db634d02511e66d7ca1254312b71c60d64dc44bf67ea46b922c52d8aebba6",
    "initialSharedVersion": 327637282
  },
  {
    "objectId": "0xc84545cbff1b36b874ab2b69d11a3d108f23562e87550588c0bda335b27101e0",
    "initialSharedVersion": 327637282
  },
  {
    "objectId": "0xcc141659b5885043f9bfcfe470064819ab9ac667953bcedd1000e0652e90ee76",
    "initialSharedVersion": 327637282
  },
  {
    "objectId": "0xef6bf4952968d25d3e79f7e4db1dc38f2e9d99d61ad38f3829acb4100fe6383a",
    "initialSharedVersion": 327637282
  },
  {
    "objectId": "0xf2ed8d00ef829de5c4a3c5adf2d6b0f41f7fec005fb9c88e5616b98173b2fd66",
    "initialSharedVersion": 327637282
  },
  {
    "objectId": "0xfce73f3c32c3f56ddb924a04cabd44dd870b72954bbe7c3d7767c3b8c25c4326",
    "initialSharedVersion": 327637282
  }
]

You can find example transactions .

🤖
here
the list