Skip to content

Commit 37f9237

Browse files
YashYash
authored andcommitted
multiwrap and pack common features
1 parent 98ab5af commit 37f9237

File tree

9 files changed

+453
-7
lines changed

9 files changed

+453
-7
lines changed

contracts/feature/TokenBundle.sol

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// SPDX-License-Identifier: Apache-2.0
2+
pragma solidity ^0.8.0;
3+
4+
import "./interface/ITokenBundle.sol";
5+
6+
abstract contract TokenBundle is ITokenBundle {
7+
8+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// SPDX-License-Identifier: Apache-2.0
2+
pragma solidity ^0.8.0;
3+
4+
interface ITokenBundle {
5+
6+
enum TokenType {
7+
ERC20,
8+
ERC721,
9+
ERC1155
10+
}
11+
12+
struct Token {
13+
address assetContract;
14+
TokenType tokenType;
15+
uint256 tokenId;
16+
uint256 totalAmountPacked;
17+
18+
}
19+
20+
struct BundleInfo {
21+
uint256 count;
22+
string uri;
23+
mapping(uint256=>Token) tokens;
24+
}
25+
26+
}

0 commit comments

Comments
 (0)