aboutsummaryrefslogtreecommitdiff
path: root/contracts/nativeAssets.sol
diff options
context:
space:
mode:
authorAaron Buchwald <[email protected]>2020-12-15 21:30:16 -0500
committerAaron Buchwald <[email protected]>2020-12-15 21:30:16 -0500
commit7c758da302baf80775876008958ec77055ab953a (patch)
tree6569bcfe3a62f3804a4f90b803b3d0d6cd96d732 /contracts/nativeAssets.sol
parent8026c5f6c44a02ff44bb25cb941915f53cdc9e1c (diff)
Remove contracts
Diffstat (limited to 'contracts/nativeAssets.sol')
-rw-r--r--contracts/nativeAssets.sol20
1 files changed, 0 insertions, 20 deletions
diff --git a/contracts/nativeAssets.sol b/contracts/nativeAssets.sol
deleted file mode 100644
index 836c4d8..0000000
--- a/contracts/nativeAssets.sol
+++ /dev/null
@@ -1,20 +0,0 @@
-// SPDX-License-Identifier: MIT
-
-pragma solidity >=0.6.0 <0.8.0;
-
-library NativeAssets {
- address constant balanceAddr = 0x0100000000000000000000000000000000000001;
- address constant transferAddr = 0x0100000000000000000000000000000000000002;
-
- function assetBalance(address addr, uint256 assetID) public returns (uint256) {
- (bool success, bytes memory data) = balanceAddr.call(abi.encodePacked(addr, assetID));
- require(success, "assetBalance failed");
- return abi.decode(data, (uint256));
- }
-
- function assetCall(address addr, uint256 assetID, uint256 assetAmount, bytes memory callData) public returns (bytes memory) {
- (bool success, bytes memory data) = transferAddr.call(abi.encodePacked(addr, assetID, assetAmount, callData));
- require(success, "assetCall failed");
- return data;
- }
-}