Skip to content

Commit

Permalink
[RVN]: Update block explorer (#3708)
Browse files Browse the repository at this point in the history
* [RVN]: Update block explorer

* [Misc]: Fix Protobuf comments regarding U256 encoding
  • Loading branch information
satoshiotomakan authored Feb 28, 2024
1 parent 80f66bb commit f8ccbc9
Show file tree
Hide file tree
Showing 17 changed files with 68 additions and 68 deletions.
2 changes: 1 addition & 1 deletion registry.json
Original file line number Diff line number Diff line change
Expand Up @@ -1593,7 +1593,7 @@
"publicKeyHasher": "sha256ripemd",
"base58Hasher": "sha256d",
"explorer": {
"url": "https://ravencoin.network",
"url": "https://blockbook.ravencoin.org",
"txPath": "/tx/",
"accountPath": "/address/"
},
Expand Down
4 changes: 2 additions & 2 deletions src/proto/Aeternity.proto
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ message SigningInput {
// Address of the recipient with "ak_" prefix
string to_address = 2;

// Amount (uint256, serialized little endian)
// Amount (uint256, serialized big endian)
bytes amount = 3;

// Fee amount (uint256, serialized little endian)
// Fee amount (uint256, serialized big endian)
bytes fee = 4;

// Message, optional
Expand Down
8 changes: 4 additions & 4 deletions src/proto/Aion.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ import "Common.proto";

// Input data necessary to create a signed transaction.
message SigningInput {
// Nonce (uint256, serialized little endian)
// Nonce (uint256, serialized big endian)
bytes nonce = 1;

// Gas price (uint256, serialized little endian)
// Gas price (uint256, serialized big endian)
bytes gas_price = 2;

// Gas limit (uint256, serialized little endian)
// Gas limit (uint256, serialized big endian)
bytes gas_limit = 3;

// Recipient's address.
string to_address = 4;

// Amount to send in wei (uint256, serialized little endian)
// Amount to send in wei (uint256, serialized big endian)
bytes amount = 5;

// Optional payload
Expand Down
2 changes: 1 addition & 1 deletion src/proto/Cardano.proto
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ message TokenAmount {
// The name of the asset (within the policy)
string asset_name = 2;

// The amount (uint256, serialized little endian)
// The amount (uint256, serialized big endian)
bytes amount = 3;

// The name of the asset (hex encoded). Ignored if `asset_name` is set
Expand Down
4 changes: 2 additions & 2 deletions src/proto/EOS.proto
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ message Asset {

// Input data necessary to create a signed transaction.
message SigningInput {
// Chain id (uint256, serialized little endian)
// Chain id (uint256, serialized big endian)
bytes chain_id = 1;

// Reference Block Id (uint256, serialized little endian)
// Reference Block Id (uint256, serialized big endian)
bytes reference_block_id = 2;

// Timestamp on the reference block
Expand Down
30 changes: 15 additions & 15 deletions src/proto/Ethereum.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import "Common.proto";
message Transaction {
// Native coin transfer transaction
message Transfer {
// Amount to send in wei (uint256, serialized little endian)
// Amount to send in wei (uint256, serialized big endian)
bytes amount = 1;

// Optional payload data
Expand All @@ -21,7 +21,7 @@ message Transaction {
// destination address (string)
string to = 1;

// Amount to send (uint256, serialized little endian)
// Amount to send (uint256, serialized big endian)
bytes amount = 2;
}

Expand All @@ -30,7 +30,7 @@ message Transaction {
// Target of the approval
string spender = 1;

// Amount to send (uint256, serialized little endian)
// Amount to send (uint256, serialized big endian)
bytes amount = 2;
}

Expand All @@ -42,7 +42,7 @@ message Transaction {
// Destination address
string to = 2;

// ID of the token (uint256, serialized little endian)
// ID of the token (uint256, serialized big endian)
bytes token_id = 3;
}

Expand All @@ -54,18 +54,18 @@ message Transaction {
// Destination address
string to = 2;

// ID of the token (uint256, serialized little endian)
// ID of the token (uint256, serialized big endian)
bytes token_id = 3;

// The amount of tokens being transferred (uint256, serialized little endian)
// The amount of tokens being transferred (uint256, serialized big endian)
bytes value = 4;

bytes data = 5;
}

// Generic smart contract transaction
message ContractGeneric {
// Amount to send in wei (uint256, serialized little endian)
// Amount to send in wei (uint256, serialized big endian)
bytes amount = 1;

// Contract call payload data
Expand All @@ -78,7 +78,7 @@ message Transaction {
// Recipient addresses.
string address = 1;

// Amounts to send in wei (uint256, serialized little endian)
// Amounts to send in wei (uint256, serialized big endian)
bytes amount = 2;

// Contract call payloads data
Expand Down Expand Up @@ -136,28 +136,28 @@ message UserOperation {
// Input data necessary to create a signed transaction.
// Legacy and EIP2718/EIP1559 transactions supported, see TransactionMode.
message SigningInput {
// Chain identifier (uint256, serialized little endian)
// Chain identifier (uint256, serialized big endian)
bytes chain_id = 1;

// Nonce (uint256, serialized little endian)
// Nonce (uint256, serialized big endian)
bytes nonce = 2;

// Transaction version selector: Legacy or enveloped, has impact on fee structure.
// Default is Legacy (value 0)
TransactionMode tx_mode = 3;

// Gas price (uint256, serialized little endian)
// Gas price (uint256, serialized big endian)
// Relevant for legacy transactions only (disregarded for enveloped/EIP1559)
bytes gas_price = 4;

// Gas limit (uint256, serialized little endian)
// Gas limit (uint256, serialized big endian)
bytes gas_limit = 5;

// Maximum optional inclusion fee (aka tip) (uint256, serialized little endian)
// Maximum optional inclusion fee (aka tip) (uint256, serialized big endian)
// Relevant for enveloped/EIP1559 transactions only, tx_mode=Enveloped, (disregarded for legacy)
bytes max_inclusion_fee_per_gas = 6;

// Maximum fee (uint256, serialized little endian)
// Maximum fee (uint256, serialized big endian)
// Relevant for enveloped/EIP1559 transactions only, tx_mode=Enveloped, (disregarded for legacy)
bytes max_fee_per_gas = 7;

Expand All @@ -180,7 +180,7 @@ message SigningOutput {
// Signed and encoded transaction bytes.
bytes encoded = 1;

// The V, R, S components of the resulting signature, (each uint256, serialized little endian)
// The V, R, S components of the resulting signature, (each uint256, serialized big endian)
bytes v = 2;
bytes r = 3;
bytes s = 4;
Expand Down
6 changes: 3 additions & 3 deletions src/proto/Filecoin.proto
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ message SigningInput {
// Transaction nonce.
uint64 nonce = 3;

// Transfer value (uint256, serialized little endian)
// Transfer value (uint256, serialized big endian)
bytes value = 4;

// Gas limit.
int64 gas_limit = 5;

// Gas fee cap (uint256, serialized little endian)
// Gas fee cap (uint256, serialized big endian)
bytes gas_fee_cap = 6;

// Gas premium (uint256, serialized little endian)
// Gas premium (uint256, serialized big endian)
bytes gas_premium = 7;

// Message params.
Expand Down
24 changes: 12 additions & 12 deletions src/proto/Harmony.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import "Common.proto";

// Input data necessary to create a signed transaction.
message SigningInput {
// Chain identifier (uint256, serialized little endian)
// Chain identifier (uint256, serialized big endian)
bytes chain_id = 1;

// The secret private key used for signing (32 bytes).
Expand Down Expand Up @@ -39,28 +39,28 @@ message SigningOutput {

// A Transfer message
message TransactionMessage {
// Nonce (uint256, serialized little endian)
// Nonce (uint256, serialized big endian)
bytes nonce = 1;

// Gas price (uint256, serialized little endian)
// Gas price (uint256, serialized big endian)
bytes gas_price = 2;

// Gas limit (uint256, serialized little endian)
// Gas limit (uint256, serialized big endian)
bytes gas_limit = 3;

// Recipient's address.
string to_address = 4;

// Amount to send in wei (uint256, serialized little endian)
// Amount to send in wei (uint256, serialized big endian)
bytes amount = 5;

// Optional payload
bytes payload = 6;

// From shard ID (uint256, serialized little endian)
// From shard ID (uint256, serialized big endian)
bytes from_shard_id = 7;

// To Shard ID (uint256, serialized little endian)
// To Shard ID (uint256, serialized big endian)
bytes to_shard_id = 8;
}

Expand All @@ -75,13 +75,13 @@ message StakingMessage {
DirectiveCollectRewards collect_rewards = 5;
}

// Nonce (uint256, serialized little endian)
// Nonce (uint256, serialized big endian)
bytes nonce = 6;

// Gas price (uint256, serialized little endian)
// Gas price (uint256, serialized big endian)
bytes gas_price = 7;

// Gas limit (uint256, serialized little endian)
// Gas limit (uint256, serialized big endian)
bytes gas_limit = 8;
}

Expand Down Expand Up @@ -156,7 +156,7 @@ message DirectiveDelegate {
// Validator address
string validator_address = 2;

// Delegate amount (uint256, serialized little endian)
// Delegate amount (uint256, serialized big endian)
bytes amount = 3;
}

Expand All @@ -168,7 +168,7 @@ message DirectiveUndelegate {
// Validator address
string validator_address = 2;

// Undelegate amount (uint256, serialized little endian)
// Undelegate amount (uint256, serialized big endian)
bytes amount = 3;
}

Expand Down
2 changes: 1 addition & 1 deletion src/proto/Icon.proto
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ message SigningInput {
// Recipient address.
string to_address = 2;

// Transfer amount (uint256, serialized little endian)
// Transfer amount (uint256, serialized big endian)
bytes value = 3;

// The amount of step to send with the transaction.
Expand Down
4 changes: 2 additions & 2 deletions src/proto/NULS.proto
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ message TransactionCoinTo {
// ID of the asset
uint32 assets_id = 3;

// transaction amount (uint256, serialized little endian)
// transaction amount (uint256, serialized big endian)
bytes id_amount = 4;

// lock time
Expand Down Expand Up @@ -97,7 +97,7 @@ message SigningInput {
// Destination address
string to = 3;

// Transfer amount (uint256, serialized little endian)
// Transfer amount (uint256, serialized big endian)
bytes amount = 4;

// Chain ID
Expand Down
18 changes: 9 additions & 9 deletions src/proto/Nebulas.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,25 @@ message SigningInput {
// sender's address.
string from_address = 1;

// Chain identifier (uint256, serialized little endian)
// Chain identifier (uint256, serialized big endian)
bytes chain_id = 2;

// Nonce (uint256, serialized little endian)
// Nonce (uint256, serialized big endian)
bytes nonce = 3;

// Gas price (uint256, serialized little endian)
// Gas price (uint256, serialized big endian)
bytes gas_price = 4;

// Gas limit (uint256, serialized little endian)
// Gas limit (uint256, serialized big endian)
bytes gas_limit = 5;

// Recipient's address.
string to_address = 6;

// Amount to send in wei, 1 NAS = 10^18 Wei (uint256, serialized little endian)
// Amount to send in wei, 1 NAS = 10^18 Wei (uint256, serialized big endian)
bytes amount = 7;

// Timestamp to create transaction (uint256, serialized little endian)
// Timestamp to create transaction (uint256, serialized big endian)
bytes timestamp = 8;

// Optional payload
Expand Down Expand Up @@ -65,7 +65,7 @@ message RawTransaction {
// destination address
bytes to = 3;

// amount (uint256, serialized little endian)
// amount (uint256, serialized big endian)
bytes value = 4;

// Nonce (should be larger than in the last transaction of the account)
Expand All @@ -80,10 +80,10 @@ message RawTransaction {
// chain ID (4 bytes)
uint32 chain_id = 8;

// gas price (uint256, serialized little endian)
// gas price (uint256, serialized big endian)
bytes gas_price = 9;

// gas limit (uint256, serialized little endian)
// gas limit (uint256, serialized big endian)
bytes gas_limit = 10;

// algorithm
Expand Down
Loading

0 comments on commit f8ccbc9

Please sign in to comment.