aboutsummaryrefslogtreecommitdiff
path: root/multicoin.sol
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2020-09-20 15:31:33 -0400
committerDeterminant <[email protected]>2020-09-20 15:31:33 -0400
commit9284f6d1193247adfaa29025934a3514a46188a3 (patch)
treeb5a66715d035ae7931b0617e9f5d15f35507559d /multicoin.sol
parent37c055adfb9b440d4848ae64e7a7b0dd3ab8aba8 (diff)
add the mc library code for referencev0.3.3-rc.2
Diffstat (limited to 'multicoin.sol')
-rw-r--r--multicoin.sol11
1 files changed, 11 insertions, 0 deletions
diff --git a/multicoin.sol b/multicoin.sol
new file mode 100644
index 0000000..97d9cdd
--- /dev/null
+++ b/multicoin.sol
@@ -0,0 +1,11 @@
+pragma solidity >=0.6.0;
+
+library MultiCoin {
+ function transfer(address payable recipient, uint256 amount, uint256 coinid, uint256 amount2) public {
+ recipient.transferex(amount, coinid, amount2);
+ }
+
+ function getBalance(uint256 coinid) public view returns (uint256) {
+ return address(this).balancemc(coinid);
+ }
+}