Skip to content

Commit

Permalink
snapshot'ing around
Browse files Browse the repository at this point in the history
  • Loading branch information
dariorussi committed Oct 7, 2024
1 parent bcde5f6 commit 547b001
Show file tree
Hide file tree
Showing 5 changed files with 145 additions and 14 deletions.
115 changes: 115 additions & 0 deletions crates/sui-framework/docs/sui-framework/tx_context.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ title: Module `0x2::tx_context`
- [Function `fresh_object_address`](#0x2_tx_context_fresh_object_address)
- [Function `ids_created`](#0x2_tx_context_ids_created)
- [Function `derive_id`](#0x2_tx_context_derive_id)
- [Function `native_sender`](#0x2_tx_context_native_sender)
- [Function `native_digest`](#0x2_tx_context_native_digest)
- [Function `native_epoch`](#0x2_tx_context_native_epoch)
- [Function `native_epoch_timestamp_ms`](#0x2_tx_context_native_epoch_timestamp_ms)
- [Function `native_sponsor`](#0x2_tx_context_native_sponsor)


<pre><code></code></pre>
Expand Down Expand Up @@ -252,4 +257,114 @@ Native function for deriving an ID via hash(tx_hash || ids_created)



</details>

<a name="0x2_tx_context_native_sender"></a>

## Function `native_sender`



<pre><code><b>fun</b> <a href="../sui-framework/tx_context.md#0x2_tx_context_native_sender">native_sender</a>(): <b>address</b>
</code></pre>



<details>
<summary>Implementation</summary>


<pre><code><b>native</b> <b>fun</b> <a href="../sui-framework/tx_context.md#0x2_tx_context_native_sender">native_sender</a>(): <b>address</b>;
</code></pre>



</details>

<a name="0x2_tx_context_native_digest"></a>

## Function `native_digest`



<pre><code><b>fun</b> <a href="../sui-framework/tx_context.md#0x2_tx_context_native_digest">native_digest</a>(): &<a href="../move-stdlib/vector.md#0x1_vector">vector</a>&lt;u8&gt;
</code></pre>



<details>
<summary>Implementation</summary>


<pre><code><b>native</b> <b>fun</b> <a href="../sui-framework/tx_context.md#0x2_tx_context_native_digest">native_digest</a>(): &<a href="../move-stdlib/vector.md#0x1_vector">vector</a>&lt;u8&gt;;
</code></pre>



</details>

<a name="0x2_tx_context_native_epoch"></a>

## Function `native_epoch`



<pre><code><b>fun</b> <a href="../sui-framework/tx_context.md#0x2_tx_context_native_epoch">native_epoch</a>(): <a href="../move-stdlib/u64.md#0x1_u64">u64</a>
</code></pre>



<details>
<summary>Implementation</summary>


<pre><code><b>native</b> <b>fun</b> <a href="../sui-framework/tx_context.md#0x2_tx_context_native_epoch">native_epoch</a>(): <a href="../move-stdlib/u64.md#0x1_u64">u64</a>;
</code></pre>



</details>

<a name="0x2_tx_context_native_epoch_timestamp_ms"></a>

## Function `native_epoch_timestamp_ms`



<pre><code><b>fun</b> <a href="../sui-framework/tx_context.md#0x2_tx_context_native_epoch_timestamp_ms">native_epoch_timestamp_ms</a>(): <a href="../move-stdlib/u64.md#0x1_u64">u64</a>
</code></pre>



<details>
<summary>Implementation</summary>


<pre><code><b>native</b> <b>fun</b> <a href="../sui-framework/tx_context.md#0x2_tx_context_native_epoch_timestamp_ms">native_epoch_timestamp_ms</a>(): <a href="../move-stdlib/u64.md#0x1_u64">u64</a>;
</code></pre>



</details>

<a name="0x2_tx_context_native_sponsor"></a>

## Function `native_sponsor`



<pre><code><b>fun</b> <a href="../sui-framework/tx_context.md#0x2_tx_context_native_sponsor">native_sponsor</a>(): <b>address</b>
</code></pre>



<details>
<summary>Implementation</summary>


<pre><code><b>native</b> <b>fun</b> <a href="../sui-framework/tx_context.md#0x2_tx_context_native_sponsor">native_sponsor</a>(): <b>address</b>;
</code></pre>



</details>
Binary file modified crates/sui-framework/packages_compiled/sui-framework
Binary file not shown.
15 changes: 15 additions & 0 deletions crates/sui-framework/published_api.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1135,6 +1135,21 @@ ids_created
derive_id
fun
0x2::tx_context
native_sender
fun
0x2::tx_context
native_digest
fun
0x2::tx_context
native_epoch
fun
0x2::tx_context
native_epoch_timestamp_ms
fun
0x2::tx_context
native_sponsor
fun
0x2::tx_context
ID
public struct
0x2::object
Expand Down
1 change: 1 addition & 0 deletions crates/sui-open-rpc/spec/openrpc.json
Original file line number Diff line number Diff line change
Expand Up @@ -1352,6 +1352,7 @@
"simplified_unwrap_then_delete": false,
"soft_bundle": false,
"throughput_aware_consensus_submission": false,
"transaction_context_native": false,
"txn_base_cost_as_multiplier": false,
"upgraded_multisig_supported": false,
"validate_identifier_inputs": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,56 +240,56 @@ validators:
next_epoch_worker_address: ~
extra_fields:
id:
id: "0x4f629d26c57551fd5ccf03e0bd64bb9005687e7d0680508f26dcace639b165ef"
id: "0x981370d13d5d4c95bcaf2942633b8384777fbcbad33d8cea16578305bc5206f3"
size: 0
voting_power: 10000
operation_cap_id: "0x2fba4507d8d6ab5b21d44342d3406b5112a82ede7602c1070e7c53ff20521467"
operation_cap_id: "0x9fdecd036d807120626c225e9fc202c71c79dce2d0a52f2b00131512362797d6"
gas_price: 1000
staking_pool:
id: "0xb1ac0597cf93273a32eebf6eb921676365db6d63788321cabdb472a2d5c0b170"
id: "0x8bd4208b71e14fed2a695b0e2a1e57f13c4416027ef1ae3c934764ec96b3ec14"
activation_epoch: 0
deactivation_epoch: ~
sui_balance: 20000000000000000
rewards_pool:
value: 0
pool_token_balance: 20000000000000000
exchange_rates:
id: "0x019ff669614a8fb22bef655912832f39ba675b637930a42ddb65abf19aa6b24c"
id: "0xe1348a490473323af252a6b57f127798ec46066fa637547e25d5f88506f50950"
size: 1
pending_stake: 0
pending_total_sui_withdraw: 0
pending_pool_token_withdraw: 0
extra_fields:
id:
id: "0xa8f2c5692de4e9f72f8d7d9c70e00c54704f8f232ca28028df668463d5297cb7"
id: "0x9f011fb317c8c78449b32fd0b92346c55b95c51d2b285b953e175230e5530940"
size: 0
commission_rate: 200
next_epoch_stake: 20000000000000000
next_epoch_gas_price: 1000
next_epoch_commission_rate: 200
extra_fields:
id:
id: "0x1ee8eb11345dadf1d88acf5cb26bfdbff625433fe833359510b71b67a773ae02"
id: "0x4ed897aa8da6d8aaa7f0e61c8e3c8e2687f764c8e935a9364bd69bb27993f96b"
size: 0
pending_active_validators:
contents:
id: "0xddb2e575ff0b5aa6819847fa500e70eef24500cf40524789811a93d771ca0ff2"
id: "0x1e1b464df1241140e4ff0ab039f893d9ba33eeb861ace98975a0fb507c876b48"
size: 0
pending_removals: []
staking_pool_mappings:
id: "0x96908877d2a68c389469b4bc1739382761dfeb083a121979e64f55ea4f790695"
id: "0x359b00616b49617755a48d33c46792a5b9ef14adaa69ad416870b41b14128ad9"
size: 1
inactive_validators:
id: "0xcf9ee70ea65e35e6fcc751fbaad2b60ab36b0104afcc3c2adea1663f6dd0f74f"
id: "0x505bfb3c0552fc4adecaba3c9b995bc00123b5fdf7b7bc2e0ce6c08223b46c1f"
size: 0
validator_candidates:
id: "0xa5b70ebd266ccf00af5311ba400eb01871e7f3fa423cc7ca5a2c253f5241f40c"
id: "0xae0547a90fd5cb2f560badb9e41db6e82853ef333c178bf262eead78310bc628"
size: 0
at_risk_validators:
contents: []
extra_fields:
id:
id: "0x2d0e822d9c1acada00c0822a9b09058f92b9d7211c85c45998561af90f5bc0ef"
id: "0xc1418bf87dc2288a1ed8df6c64d9afdf3eadee14704c9e27ae8708e84d66a11f"
size: 0
storage_fund:
total_object_storage_rebates:
Expand All @@ -306,7 +306,7 @@ parameters:
validator_low_stake_grace_period: 7
extra_fields:
id:
id: "0xa026eaa35feb14bd1eb1e71f988d42e87d66c85388feaa3f53c3a22b7b3831d8"
id: "0x8aeb99cea980e81033a861609bddb6b0b7b6a48f575f4873efb4613341fffdbc"
size: 0
reference_gas_price: 1000
validator_report_records:
Expand All @@ -320,7 +320,7 @@ stake_subsidy:
stake_subsidy_decrease_rate: 1000
extra_fields:
id:
id: "0x7eb42ca897dc4f88c6b72f51872657f5b946d925154743d0330ce96ff023787a"
id: "0xf790c47d85b4cb1b104593f18b879df753f88b3096b424cdf7e823256ec173dd"
size: 0
safe_mode: false
safe_mode_storage_rewards:
Expand All @@ -332,6 +332,6 @@ safe_mode_non_refundable_storage_fee: 0
epoch_start_timestamp_ms: 10
extra_fields:
id:
id: "0x061bfc58ee1164bf043c5ce8662126eb8a67936ec682ffd855fd2877212af86f"
id: "0xe107590ae75091bd784e0e693988056d02c4d34fbe341793d277a89f386e3417"
size: 0

0 comments on commit 547b001

Please sign in to comment.