Skip to content

Commit 013db87

Browse files
committed
rename sui-tx bis
1 parent 0ecec34 commit 013db87

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

nexus-next/crates/sui-tx.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Leader SUI Transactions
2+
3+
The Leader will be assigned a wallet via the `SUI_SECRET_MNEMONIC` environment variable. This wallet will hold N `leader_cap`s. These are owned objects that are used to verify that the TX submission was done from the Leader. On Sui, to avoid equivocation, only one parallel TX can be sent per-`leader_cap`. The wallet is assigned N `Coin<Sui>` objects as gas (on mainnet) or Coin objects are poured from a faucet (on localnet and testnet).
4+
5+
{% hint style="warning" %} Important thing to note is that, upon a failed transaction, Sui will lock all objects associated with the transaction until the next epoch, which is 24 hours. That means that we need to "damage" a `leader_cap` if a transaction fails and not use it for the next 24 hours. {% endhint %}
6+
7+
Initially, there will only be one transaction type from Leader back to Workflow. This transaction notifies the Workflow of the Tool invocation result. More details are available in the [Leader](leader.md) documentation.
8+
9+
Once on-chain Tools are defined, the Leader will also have to send transactions to invoke these Tools. This is however as of now an unexplored topic.

0 commit comments

Comments
 (0)