Skip to content

Commit

Permalink
Update solidity interface for the DIP-6 (#1482)
Browse files Browse the repository at this point in the history
  • Loading branch information
boundless-forest authored Apr 19, 2024
1 parent 1b9ff8b commit 351a0b3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 76 deletions.
63 changes: 0 additions & 63 deletions precompile/metadata/abi/staking.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,6 @@
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "claim",
"outputs":
[
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs":
[
Expand Down Expand Up @@ -96,32 +82,6 @@
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs":
[
{
"internalType": "uint256",
"name": "ringAmount",
"type": "uint256"
},
{
"internalType": "uint16[]",
"name": "depositIds",
"type": "uint16[]"
}
],
"name": "restake",
"outputs":
[
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs":
[
Expand Down Expand Up @@ -188,14 +148,6 @@
"_0": "returns true on success, false otherwise."
}
},
"claim()":
{
"details": "Claim the stakes from the pallet/contract account.",
"returns":
{
"_0": "returns true on success, false otherwise."
}
},
"collect(uint32)":
{
"details": "Declare the desire to collect.",
Expand Down Expand Up @@ -232,19 +184,6 @@
"_0": "returns true on success, false otherwise."
}
},
"restake(uint256,uint16[])":
{
"details": "Re-stake the unstaking assets immediately.",
"params":
{
"depositIds": "The deposit ids list",
"ringAmount": "The amount of staking RING asset"
},
"returns":
{
"_0": "true on success, false otherwise."
}
},
"stake(uint256,uint16[])":
{
"details": "Add stakes to the staking pool.",
Expand Down Expand Up @@ -278,11 +217,9 @@
"hashes":
{
"chill()": "2b8a3ae6",
"claim()": "4e71d92d",
"collect(uint32)": "10a66536",
"nominate(address)": "b332180b",
"payout(address)": "0b7e9c44",
"restake(uint256,uint16[])": "1ed0818e",
"stake(uint256,uint16[])": "88fd3d50",
"unstake(uint256,uint16[])": "0e198447"
}
Expand Down
13 changes: 0 additions & 13 deletions precompile/metadata/sol/staking.sol
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,6 @@ interface Staking {
uint16[] memory depositIds
) external returns (bool);

/// @dev Re-stake the unstaking assets immediately.
/// @param ringAmount The amount of staking RING asset
/// @param depositIds The deposit ids list
/// @return true on success, false otherwise.
function restake(
uint256 ringAmount,
uint16[] memory depositIds
) external returns (bool);

/// @dev Claim the stakes from the pallet/contract account.
/// @return returns true on success, false otherwise.
function claim() external returns (bool);

/// @dev Declare the desire to collect.
/// @param commission collator commission, 0 ~ 100
/// @return returns true on success, false otherwise.
Expand Down

0 comments on commit 351a0b3

Please sign in to comment.