This repository has been archived by the owner on Mar 14, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add new chain RPC method get_cellbase_output_capacity_details
- Loading branch information
Showing
6 changed files
with
59 additions
and
0 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
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// | ||
// BlockReward.swift | ||
// | ||
// Copyright © 2019 Nervos Foundation. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
public struct BlockReward: Codable { | ||
public let proposalReward: Capacity | ||
public let primary: Capacity | ||
public let secondary: Capacity | ||
public let total: Capacity | ||
public let txFee: Capacity | ||
|
||
enum CodingKeys: String, CodingKey { | ||
case proposalReward = "proposal_reward" | ||
case primary | ||
case secondary | ||
case total | ||
case txFee = "tx_fee" | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"id": 1, | ||
"jsonrpc": "2.0", | ||
"result": { | ||
"primary": "100000000000", | ||
"proposal_reward": "0", | ||
"secondary": "3936000", | ||
"total": "100003936000", | ||
"tx_fee": "0" | ||
} | ||
} |