-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathFukuTypes.sol
43 lines (36 loc) · 1.01 KB
/
FukuTypes.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
enum OptionDuration {
ThirtyDays,
NinetyDays
}
struct BidInputParams {
bytes12 vault; // the vault from where the funds for the bid originate
address nft; // the address of the nft collection
uint256 nftIndex; // the index of the nft in the collection
uint256 amount; // the bid amount
}
struct BidInfo {
BidInputParams bidInput; // the input params used to create bid
address bidder; // the address of the bidder
}
struct OptionInputParams {
BidInputParams bidInput;
uint256 premium;
OptionDuration duration;
}
struct OptionInfo {
OptionInputParams optionInput; // the input params used to create base part of bid
bool exercisable; // true if option can be exercised, false otherwise
address bidder; // the bidder (buyer)
}
struct AcceptedOption {
uint256 expiry;
address seller;
}
struct AirdropInit {
bytes32 merkleRoot;
address token;
uint256 totalAmount;
uint256 initialUnlockBps;
}