-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* EasyGas * Update exp * easygas setting gas fee address custom * easygas: deletegate gas fee account * Fix prover * update mpm version
- Loading branch information
Showing
33 changed files
with
1,514 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+10 Bytes
(100%)
build/StarcoinFramework/bytecode_modules/GenesisSignerCapability.mv
Binary file not shown.
Binary file modified
BIN
+62 Bytes
(100%)
build/StarcoinFramework/bytecode_modules/StdlibUpgradeScripts.mv
Binary file not shown.
Binary file modified
BIN
+1.25 KB
(200%)
build/StarcoinFramework/bytecode_modules/TransactionManager.mv
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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><TokenType: store>(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><TokenType: store>(sender: signer, precision: u8) { | ||
<a href="EasyGas.md#0x1_EasyGas_register_oracle">EasyGas::register_oracle</a><TokenType>(&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><TokenType: store>(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><TokenType: store>(sender: signer, init_value: u128) { | ||
<a href="EasyGas.md#0x1_EasyGas_init_oracle_source">EasyGas::init_oracle_source</a><TokenType>(&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><TokenType: store>(sender: signer, value: u128) | ||
</code></pre> | ||
|
||
|
||
|
||
<details> | ||
<summary>Implementation</summary> | ||
|
||
|
||
<pre><code><b>public</b> entry <b>fun</b> <b>update</b><TokenType: store>(sender: signer, value: u128) { | ||
<a href="EasyGas.md#0x1_EasyGas_update_oracle">EasyGas::update_oracle</a><TokenType>(&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><TokenType: store>(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><TokenType: store>(sender: signer, amount: u128) { | ||
<a href="EasyGas.md#0x1_EasyGas_withdraw_gas_fee">EasyGas::withdraw_gas_fee</a><TokenType>(&sender, amount); | ||
} | ||
</code></pre> | ||
|
||
|
||
|
||
</details> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.