Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EasyGas #242

Merged
merged 6 commits into from
Aug 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build/StarcoinFramework/BuildInfo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ compiled_package_info:
StarcoinAssociation: "0x0000000000000000000000000a550c18"
StarcoinFramework: "0x00000000000000000000000000000001"
VMReserved: "0x00000000000000000000000000000000"
source_digest: 88545469FF3E16035E05352124B98D1C4408DD2CFDC741EEE1C13000F9EBB4E6
source_digest: DEAD5E4489A0087D5ECEDCE704BCF29BF0E73B77A305D5324A9F453D3803B69B
build_flags:
dev_mode: false
test_mode: false
Expand Down
Binary file not shown.
Binary file added build/StarcoinFramework/abis/EasyGas/register.abi
Binary file not shown.
Binary file added build/StarcoinFramework/abis/EasyGas/update.abi
Binary file not shown.
Binary file not shown.
Binary file modified build/StarcoinFramework/bytecode_modules/Account.mv
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified build/StarcoinFramework/bytecode_modules/StdlibUpgradeScripts.mv
Binary file not shown.
Binary file modified build/StarcoinFramework/bytecode_modules/TransactionManager.mv
Binary file not shown.
372 changes: 305 additions & 67 deletions build/StarcoinFramework/docs/Account.md

Large diffs are not rendered by default.

113 changes: 113 additions & 0 deletions build/StarcoinFramework/docs/EasyGas.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@

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

# Module `0x1::EasyGasScript`



- [Function `register`](#0x1_EasyGasScript_register)
- [Function `init_data_source`](#0x1_EasyGasScript_init_data_source)
- [Function `update`](#0x1_EasyGasScript_update)
- [Function `withdraw_gas_fee_entry`](#0x1_EasyGasScript_withdraw_gas_fee_entry)


<pre><code><b>use</b> <a href="EasyGas.md#0x1_EasyGas">0x1::EasyGas</a>;
</code></pre>



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

## Function `register`



<pre><code><b>public</b> entry <b>fun</b> <a href="EasyGas.md#0x1_EasyGasScript_register">register</a>&lt;TokenType: store&gt;(sender: signer, precision: u8)
</code></pre>



<details>
<summary>Implementation</summary>


<pre><code><b>public</b> entry <b>fun</b> <a href="EasyGas.md#0x1_EasyGasScript_register">register</a>&lt;TokenType: store&gt;(sender: signer, precision: u8) {
<a href="EasyGas.md#0x1_EasyGas_register_oracle">EasyGas::register_oracle</a>&lt;TokenType&gt;(&sender, precision)
}
</code></pre>



</details>

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

## Function `init_data_source`



<pre><code><b>public</b> entry <b>fun</b> <a href="EasyGas.md#0x1_EasyGasScript_init_data_source">init_data_source</a>&lt;TokenType: store&gt;(sender: signer, init_value: u128)
</code></pre>



<details>
<summary>Implementation</summary>


<pre><code><b>public</b> entry <b>fun</b> <a href="EasyGas.md#0x1_EasyGasScript_init_data_source">init_data_source</a>&lt;TokenType: store&gt;(sender: signer, init_value: u128) {
<a href="EasyGas.md#0x1_EasyGas_init_oracle_source">EasyGas::init_oracle_source</a>&lt;TokenType&gt;(&sender, init_value);
}
</code></pre>



</details>

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

## Function `update`



<pre><code><b>public</b> entry <b>fun</b> <b>update</b>&lt;TokenType: store&gt;(sender: signer, value: u128)
</code></pre>



<details>
<summary>Implementation</summary>


<pre><code><b>public</b> entry <b>fun</b> <b>update</b>&lt;TokenType: store&gt;(sender: signer, value: u128) {
<a href="EasyGas.md#0x1_EasyGas_update_oracle">EasyGas::update_oracle</a>&lt;TokenType&gt;(&sender, value)
}
</code></pre>



</details>

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

## Function `withdraw_gas_fee_entry`



<pre><code><b>public</b> entry <b>fun</b> <a href="EasyGas.md#0x1_EasyGasScript_withdraw_gas_fee_entry">withdraw_gas_fee_entry</a>&lt;TokenType: store&gt;(sender: signer, amount: u128)
</code></pre>



<details>
<summary>Implementation</summary>


<pre><code><b>public</b> entry <b>fun</b> <a href="EasyGas.md#0x1_EasyGasScript_withdraw_gas_fee_entry">withdraw_gas_fee_entry</a>&lt;TokenType: store&gt;(sender: signer, amount: u128) {
<a href="EasyGas.md#0x1_EasyGas_withdraw_gas_fee">EasyGas::withdraw_gas_fee</a>&lt;TokenType&gt;(&sender, amount);
}
</code></pre>



</details>
2 changes: 2 additions & 0 deletions build/StarcoinFramework/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ This is the root document for the Move StarcoinFramework module documentation. T
- [`0x1::DummyToken`](DummyToken.md#0x1_DummyToken)
- [`0x1::DummyTokenScripts`](DummyToken.md#0x1_DummyTokenScripts)
- [`0x1::EVMAddress`](Signature.md#0x1_EVMAddress)
- [`0x1::EasyGas`](EasyGas.md#0x1_EasyGas)
- [`0x1::EasyGasScript`](EasyGas.md#0x1_EasyGasScript)
- [`0x1::EmptyScripts`](EmptyScripts.md#0x1_EmptyScripts)
- [`0x1::Epoch`](Epoch.md#0x1_Epoch)
- [`0x1::Errors`](Errors.md#0x1_Errors)
Expand Down
5 changes: 5 additions & 0 deletions build/StarcoinFramework/docs/StdlibUpgradeScripts.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ The module for StdlibUpgrade init scripts
<b>use</b> <a href="Collection.md#0x1_Collection">0x1::Collection</a>;
<b>use</b> <a href="Config.md#0x1_Config">0x1::Config</a>;
<b>use</b> <a href="CoreAddresses.md#0x1_CoreAddresses">0x1::CoreAddresses</a>;
<b>use</b> <a href="EasyGas.md#0x1_EasyGas">0x1::EasyGas</a>;
<b>use</b> <a href="GenesisNFT.md#0x1_GenesisNFT">0x1::GenesisNFT</a>;
<b>use</b> <a href="GenesisSignerCapability.md#0x1_GenesisSignerCapability">0x1::GenesisSignerCapability</a>;
<b>use</b> <a href="LanguageVersion.md#0x1_LanguageVersion">0x1::LanguageVersion</a>;
Expand Down Expand Up @@ -339,6 +340,10 @@ deprecated, use <code>do_upgrade_from_v6_to_v7_with_language_version</code>.

<pre><code><b>public</b> <b>fun</b> <a href="StdlibUpgradeScripts.md#0x1_StdlibUpgradeScripts_do_upgrade_from_v11_to_v12">do_upgrade_from_v11_to_v12</a>(sender: &signer) {
{
<a href="EasyGas.md#0x1_EasyGas_initialize">EasyGas::initialize</a>(sender,
@0x8c109349c6bd91411d6bc962e080c4a3,
b"STAR",b"STAR",
@0x8c109349c6bd91411d6bc962e080c4a3);
<a href="Block.md#0x1_Block_checkpoints_init">Block::checkpoints_init</a>(sender);
};
}
Expand Down
Loading
Loading