aboutsummaryrefslogtreecommitdiff
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
parent37c055adfb9b440d4848ae64e7a7b0dd3ab8aba8 (diff)
add the mc library code for referencev0.3.3-rc.2
-rw-r--r--multicoin.bin4
-rw-r--r--multicoin.sol11
2 files changed, 15 insertions, 0 deletions
diff --git a/multicoin.bin b/multicoin.bin
new file mode 100644
index 0000000..5b0110f
--- /dev/null
+++ b/multicoin.bin
@@ -0,0 +1,4 @@
+
+======= multicoin.sol:MultiCoin =======
+Binary of the runtime part:
+0x7300000000000000000000000000000000000000003014608060405260043610603d5760003560e01c80631e010439146042578063b6510bb314606e575b600080fd5b605c60048036036020811015605657600080fd5b503560b1565b60408051918252519081900360200190f35b818015607957600080fd5b5060af60048036036080811015608e57600080fd5b506001600160a01b03813516906020810135906040810135906060013560b6565b005b30cd90565b836001600160a01b031681836108fc8690811502906040516000604051808303818888878c8acf9550505050505015801560f4573d6000803e3d6000fd5b505050505056fea26469706673582212201eebce970fe3f5cb96bf8ac6ba5f5c133fc2908ae3dcd51082cfee8f583429d064736f6c634300060a0033
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);
+ }
+}