-
Notifications
You must be signed in to change notification settings - Fork 708
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
4455: Read only call args (coins/fee) r=modship a=modship * [x] document all added functions * [x] try in sandbox /simulation/labnet * [ ] if part of node-launch, checked using the `resync_check` flag * [x] unit tests on the added/changed features * [x] make tests compile * [x] make tests pass * [ ] add logs allowing easy debugging in case the changes caused problems * [x] if the API has changed, update the API specification TODO - [x] GRPC (proto) - [x] massa-client - [x] JSONRpc api doc Co-authored-by: modship <[email protected]>
- Loading branch information
Showing
12 changed files
with
121 additions
and
23 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
// Copyright (c) 2022 MASSA LABS <[email protected]> | ||
|
||
use massa_final_state::StateChanges; | ||
use massa_models::{address::Address, output_event::SCOutputEvent, slot::Slot}; | ||
use massa_models::{address::Address, amount::Amount, output_event::SCOutputEvent, slot::Slot}; | ||
use serde::{Deserialize, Serialize}; | ||
use std::{collections::VecDeque, fmt::Display}; | ||
|
||
|
@@ -63,6 +63,8 @@ pub struct ReadOnlyBytecodeExecution { | |
pub address: Option<Address>, | ||
/// Operation datastore, optional | ||
pub operation_datastore: Option<Vec<u8>>, | ||
/// fee | ||
pub fee: Option<Amount>, | ||
/// whether to start execution from final or active state. Default false | ||
#[serde(default)] | ||
pub is_final: bool, | ||
|
@@ -81,6 +83,10 @@ pub struct ReadOnlyCall { | |
pub parameter: Vec<u8>, | ||
/// caller's address, optional | ||
pub caller_address: Option<Address>, | ||
/// coins | ||
pub coins: Option<Amount>, | ||
/// fee | ||
pub fee: Option<Amount>, | ||
/// whether to start execution from final or active state. Default false | ||
#[serde(default)] | ||
pub is_final: bool, | ||
|
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
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
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
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
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