aboutsummaryrefslogtreecommitdiff
path: root/multicoin.sol
diff options
context:
space:
mode:
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);
+ }
+}