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

Add contract nonces related fields #257

Merged
merged 12 commits into from
May 31, 2023
6 changes: 6 additions & 0 deletions services/contract_call_local.proto
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,12 @@ message ContractFunctionResult {
* ContractCreateTransactionBody or a ContractCallTransactionBody.
*/
AccountID sender_id = 13;

/**
* Map used to track contract nonces for all contracts that have participated in the transaction.
* The keys would have the different contract IDs as strings in "shard.realm.num" format and the values are the new nonce values.
*/
map<string, int64> contract_nonces = 14;
MiroslavGatsanoga marked this conversation as resolved.
Show resolved Hide resolved
}

/**
Expand Down
16 changes: 14 additions & 2 deletions services/crypto_get_info.proto
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,22 @@ message CryptoGetInfoResponse {
*/
StakingInfo staking_info = 22;

message VirtualAddressInfo {
/**
* A virtual address entry.
*/
VirtualAddress virtual_address = 1;

/**
* The ethereum transaction nonce associated with this virtual address.
Nana-EC marked this conversation as resolved.
Show resolved Hide resolved
*/
int64 nonce = 2;
steven-sheehy marked this conversation as resolved.
Show resolved Hide resolved
MiroslavGatsanoga marked this conversation as resolved.
Show resolved Hide resolved
}

/**
* List of virtual addresses each of which is an EVM address that maps to an ECDSA key pair a user must prove ownership of.
* List of virtual addresses each of which is an EVM address that maps to an ECDSA key pair a user must prove ownership of and their corresponding nonce value.
*/
repeated VirtualAddress virtual_addresses = 24;
repeated VirtualAddressInfo virtual_addresses = 24;
}

/**
Expand Down