Skip to content

Commit

Permalink
[doc] fix currency name and remove editorial note
Browse files Browse the repository at this point in the history
  • Loading branch information
emmazzz committed May 31, 2022
1 parent 46c36d5 commit 5f66e7c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions doc/src/build/transactions.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,13 @@ All updates to the Sui ledger happen via a transaction. This section describes t

All Sui transactions have the following common metadata:
* Sender address: The address of the user sending this transaction.
* Gas Input: An object reference pointing to the object that will be used to pay for this transaction's execution and storage. This object must be owned by the user and must be of type `Sui::Coin::Coin<GAS>` (i.e., the Sui native currency).
* Gas Input: An object reference pointing to the object that will be used to pay for this transaction's execution and storage. This object must be owned by the user and must be of type `Sui::Coin::Coin<SUI>` (i.e., the Sui native currency).
* Gas Price: An unsigned integer specifying the number of native tokens per gas unit this transaction will pay. The gas price must always be nonzero.
* Maximum Gas Budget: The maximum number of gas units that can be expended by executing this transaction. If this budget is exceeded, transaction execution will abort and have no effects other than debiting the gas input. The gas input object must have a value higher than the gas price multiplied by the max gas, and this product is the maximum amount that the gas input object will be debited for the transaction.
* Epoch: The Sui epoch this transaction is intended for.
* Type: A call, publish, or native transaction and its type-specific-data (see below).
* Authenticator: A cryptographic signature on the [Binary Canonical Serialization (BCS)](https://docs.rs/bcs/latest/bcs/)-encoded bytes of the data above, and a public key that both verifies against the signature and is cryptographically committed to by the sender address.

EDITORIAL NOTE: things are organized slightly differently today. Gas input and max gas live in types, but I think they should be moved up here since all transactions need them. Gas price does not exist yet, but eventually should. Epoch does not exist yet, but eventually should. Authenticator does not yet exist in the current form, but will eventually.

## Move call transaction

This transaction type is a *smart contract call* that invokes a function in a published Move package with objects owned by the sender and pure values (e.g., integers) as inputs. Executing a function may read, write, mutate, and transfer these input objects, as well as other objects created during execution.
Expand Down

0 comments on commit 5f66e7c

Please sign in to comment.