Skip to content

Commit

Permalink
set fields public
Browse files Browse the repository at this point in the history
Signed-off-by: charles2023wood <[email protected]>
  • Loading branch information
charles2022wood committed Jul 15, 2024
1 parent 19eb286 commit cd9d1a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
8 changes: 4 additions & 4 deletions contracts/BitcoinAgent.sol
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ contract BitcoinAgent is IAgent, System, IParamSubscriber {

// Key: candidate
// value: btc amount;
mapping (address => StakeAmount) candidateMap;
mapping (address => StakeAmount) public candidateMap;

// key: bitcoin tx id
// value: bitcoin receipt.
mapping(bytes32 => BtcReceipt) btcReceiptMap;
mapping(bytes32 => BtcReceipt) public btcReceiptMap;

// minimum acceptable value for a BTC staking transaction
uint64 public minBtcValue;
Expand All @@ -40,9 +40,9 @@ contract BitcoinAgent is IAgent, System, IParamSubscriber {
uint32 public btcConfirmBlock;

// key: delegator, value: fee
mapping(address => uint256) liabilities;
mapping(address => uint256) public liabilities;
// key: relayer, value: fee
mapping(address => uint256) creditors;
mapping(address => uint256) public creditors;

struct BtcReceipt {
uint32 version;
Expand Down
5 changes: 1 addition & 4 deletions contracts/PledgeAgent.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,12 @@ import "./lib/Memory.sol";
import "./lib/SatoshiPlusHelper.sol";
import "./System.sol";

/// This contract manages user delegate, also known as stake
/// Including both coin delegate and hash delegate

/// This contract manages user delegate CORE.
/// HARDFORK V-1.0.3
/// `effective transfer` is introduced in this hardfork to keep the rewards for users
/// when transferring CORE tokens from one validator to another
/// `effective transfer` only contains the amount of CORE tokens transferred
/// which are eligible for claiming rewards in the acting round

contract PledgeAgent is IAgent, System, IParamSubscriber {
using BitcoinHelper for *;
using TypedMemView for *;
Expand Down

0 comments on commit cd9d1a5

Please sign in to comment.