sablier 1.8.0-beta.1 → 1.8.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/evm/csv/airdrops/index.d.ts +4 -0
- package/dist/evm/csv/airdrops/index.d.ts.map +1 -0
- package/dist/evm/csv/airdrops/index.js +3 -0
- package/dist/evm/csv/airdrops/index.js.map +1 -0
- package/dist/evm/csv/airdrops/instant.csv +4 -0
- package/dist/evm/csv/airdrops/instant.schema.json +16 -0
- package/dist/evm/csv/constants.d.ts +1 -1
- package/dist/evm/csv/constants.d.ts.map +1 -1
- package/dist/evm/csv/constants.js +3 -3
- package/dist/evm/csv/constants.js.map +1 -1
- package/dist/evm/csv/flow/index.d.ts +8 -0
- package/dist/evm/csv/flow/index.d.ts.map +1 -0
- package/dist/evm/csv/flow/index.js +3 -0
- package/dist/evm/csv/flow/index.js.map +1 -0
- package/dist/evm/csv/flow/stream.csv +4 -0
- package/dist/evm/csv/flow/stream.schema.json +26 -0
- package/dist/evm/csv/index.d.ts +5 -2
- package/dist/evm/csv/index.d.ts.map +1 -1
- package/dist/evm/csv/index.js +30 -5
- package/dist/evm/csv/index.js.map +1 -1
- package/dist/evm/csv/{schemas → lockup}/duration/backweighted.schema.json +5 -5
- package/dist/evm/csv/{schemas → lockup}/duration/cliff-exponential.schema.json +5 -5
- package/dist/evm/csv/{schemas → lockup}/duration/cliff.schema.json +5 -5
- package/dist/evm/csv/{schemas → lockup}/duration/double-unlock.schema.json +7 -7
- package/dist/evm/csv/{schemas → lockup}/duration/exponential.schema.json +3 -3
- package/dist/evm/csv/lockup/duration/index.d.ts +40 -0
- package/dist/evm/csv/lockup/duration/index.d.ts.map +1 -0
- package/dist/evm/csv/lockup/duration/index.js +3 -0
- package/dist/evm/csv/lockup/duration/index.js.map +1 -0
- package/dist/evm/csv/{schemas → lockup}/duration/linear.schema.json +3 -3
- package/dist/evm/csv/{schemas → lockup}/duration/monthly.schema.json +5 -5
- package/dist/evm/csv/{schemas → lockup}/duration/stepper.schema.json +4 -4
- package/dist/evm/csv/{schemas → lockup}/duration/timelock.schema.json +3 -3
- package/dist/evm/csv/{schemas → lockup}/duration/unlock-cliff.schema.json +6 -6
- package/dist/evm/csv/{schemas → lockup}/duration/unlock-linear.schema.json +4 -4
- package/dist/evm/csv/lockup/index.d.ts +5 -0
- package/dist/evm/csv/lockup/index.d.ts.map +1 -0
- package/dist/evm/csv/lockup/index.js +39 -0
- package/dist/evm/csv/lockup/index.js.map +1 -0
- package/dist/evm/csv/{schemas → lockup}/range/backweighted.schema.json +5 -5
- package/dist/evm/csv/{schemas → lockup}/range/cliff-exponential.schema.json +6 -6
- package/dist/evm/csv/{schemas → lockup}/range/cliff.schema.json +6 -6
- package/dist/evm/csv/{schemas → lockup}/range/double-unlock.schema.json +8 -8
- package/dist/evm/csv/{schemas → lockup}/range/exponential.schema.json +4 -4
- package/dist/evm/csv/lockup/range/index.d.ts +36 -0
- package/dist/evm/csv/lockup/range/index.d.ts.map +1 -0
- package/dist/evm/csv/lockup/range/index.js +3 -0
- package/dist/evm/csv/lockup/range/index.js.map +1 -0
- package/dist/evm/csv/{schemas → lockup}/range/linear.schema.json +4 -4
- package/dist/evm/csv/{schemas → lockup}/range/monthly.schema.json +5 -5
- package/dist/evm/csv/{schemas → lockup}/range/stepper.schema.json +5 -5
- package/dist/evm/csv/{schemas → lockup}/range/timelock.schema.json +3 -3
- package/dist/evm/csv/{schemas → lockup}/range/unlock-cliff.schema.json +7 -7
- package/dist/evm/csv/{schemas → lockup}/range/unlock-linear.schema.json +5 -5
- package/dist/evm/csv/types.d.ts +5 -73
- package/dist/evm/csv/types.d.ts.map +1 -1
- package/dist/evm/csv/types.js +2 -0
- package/dist/evm/csv/types.js.map +1 -1
- package/package.json +11 -36
- /package/dist/evm/csv/{schemas/common.schema.json → common.schema.json} +0 -0
- /package/dist/evm/csv/{schemas → lockup}/backweighted.csv +0 -0
- /package/dist/evm/csv/{schemas → lockup}/duration/cliff-exponential.csv +0 -0
- /package/dist/evm/csv/{schemas → lockup}/duration/cliff.csv +0 -0
- /package/dist/evm/csv/{schemas → lockup}/duration/double-unlock.csv +0 -0
- /package/dist/evm/csv/{schemas → lockup}/duration/exponential.csv +0 -0
- /package/dist/evm/csv/{schemas → lockup}/duration/linear.csv +0 -0
- /package/dist/evm/csv/{schemas → lockup}/duration/stepper.csv +0 -0
- /package/dist/evm/csv/{schemas → lockup}/duration/timelock.csv +0 -0
- /package/dist/evm/csv/{schemas → lockup}/duration/unlock-cliff.csv +0 -0
- /package/dist/evm/csv/{schemas → lockup}/duration/unlock-linear.csv +0 -0
- /package/dist/evm/csv/{schemas → lockup}/monthly.csv +0 -0
- /package/dist/evm/csv/{schemas → lockup}/range/cliff-exponential.csv +0 -0
- /package/dist/evm/csv/{schemas → lockup}/range/cliff.csv +0 -0
- /package/dist/evm/csv/{schemas → lockup}/range/double-unlock.csv +0 -0
- /package/dist/evm/csv/{schemas → lockup}/range/exponential.csv +0 -0
- /package/dist/evm/csv/{schemas → lockup}/range/linear.csv +0 -0
- /package/dist/evm/csv/{schemas → lockup}/range/stepper.csv +0 -0
- /package/dist/evm/csv/{schemas → lockup}/range/timelock.csv +0 -0
- /package/dist/evm/csv/{schemas → lockup}/range/unlock-cliff.csv +0 -0
- /package/dist/evm/csv/{schemas → lockup}/range/unlock-linear.csv +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/evm/csv/airdrops/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAG5C,MAAM,MAAM,cAAc,GAAG,WAAW,CAAC;AAEzC,MAAM,MAAM,OAAO,GAAG,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/evm/csv/airdrops/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "Airdrop CSV Schema",
|
|
4
|
+
"description": "Schema for instant airdrops (no vesting)",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"address": {
|
|
8
|
+
"$ref": "../common.schema.json#/$defs/address"
|
|
9
|
+
},
|
|
10
|
+
"amount": {
|
|
11
|
+
"$ref": "../common.schema.json#/$defs/amount"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"required": ["address", "amount"],
|
|
15
|
+
"additionalProperties": false
|
|
16
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { SHAPES, TIMINGS } from "./types
|
|
1
|
+
export { SHAPES, TIMINGS } from "./types";
|
|
2
2
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/evm/csv/constants.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/evm/csv/constants.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TIMINGS = exports.SHAPES = void 0;
|
|
4
|
-
var
|
|
5
|
-
Object.defineProperty(exports, "SHAPES", { enumerable: true, get: function () { return
|
|
6
|
-
Object.defineProperty(exports, "TIMINGS", { enumerable: true, get: function () { return
|
|
4
|
+
var types_1 = require("./types");
|
|
5
|
+
Object.defineProperty(exports, "SHAPES", { enumerable: true, get: function () { return types_1.SHAPES; } });
|
|
6
|
+
Object.defineProperty(exports, "TIMINGS", { enumerable: true, get: function () { return types_1.TIMINGS; } });
|
|
7
7
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/evm/csv/constants.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/evm/csv/constants.ts"],"names":[],"mappings":";;;AACA,iCAA0C;AAAjC,+FAAA,MAAM,OAAA;AAAE,gGAAA,OAAO,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/evm/csv/flow/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAG5C,MAAM,MAAM,aAAa,GAAG,WAAW,GAAG;IAExC,IAAI,EAAE,MAAM,CAAC;IAEb,QAAQ,EAAE,MAAM,CAAC;IAEjB,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/evm/csv/flow/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "Flow Stream CSV Schema",
|
|
4
|
+
"description": "Schema for Flow streams with rate-based distribution",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"address": {
|
|
8
|
+
"$ref": "../common.schema.json#/$defs/address"
|
|
9
|
+
},
|
|
10
|
+
"rate": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"pattern": "^[0-9]+(\\.[0-9]+)?$",
|
|
13
|
+
"description": "Token amount per interval"
|
|
14
|
+
},
|
|
15
|
+
"interval": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"enum": ["second", "minute", "hour", "day", "week", "month", "year"],
|
|
18
|
+
"description": "Time interval for rate"
|
|
19
|
+
},
|
|
20
|
+
"initialDeposit": {
|
|
21
|
+
"$ref": "../common.schema.json#/$defs/amount"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"required": ["address", "rate", "interval", "initialDeposit"],
|
|
25
|
+
"additionalProperties": false
|
|
26
|
+
}
|
package/dist/evm/csv/index.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export * as airdrops from "./airdrops";
|
|
2
|
+
export { SHAPES, TIMINGS } from "./constants";
|
|
3
|
+
export * as flow from "./flow";
|
|
4
|
+
export * as lockup from "./lockup";
|
|
5
|
+
export * from "./types";
|
|
3
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/evm/csv/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/evm/csv/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,cAAc,SAAS,CAAC"}
|
package/dist/evm/csv/index.js
CHANGED
|
@@ -10,13 +10,38 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
11
11
|
o[k2] = m[k];
|
|
12
12
|
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
13
35
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
37
|
};
|
|
16
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.TIMINGS = exports.SHAPES = void 0;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
Object.defineProperty(exports, "
|
|
21
|
-
|
|
39
|
+
exports.lockup = exports.flow = exports.TIMINGS = exports.SHAPES = exports.airdrops = void 0;
|
|
40
|
+
exports.airdrops = __importStar(require("./airdrops"));
|
|
41
|
+
var constants_1 = require("./constants");
|
|
42
|
+
Object.defineProperty(exports, "SHAPES", { enumerable: true, get: function () { return constants_1.SHAPES; } });
|
|
43
|
+
Object.defineProperty(exports, "TIMINGS", { enumerable: true, get: function () { return constants_1.TIMINGS; } });
|
|
44
|
+
exports.flow = __importStar(require("./flow"));
|
|
45
|
+
exports.lockup = __importStar(require("./lockup"));
|
|
46
|
+
__exportStar(require("./types"), exports);
|
|
22
47
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/evm/csv/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/evm/csv/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uDAAuC;AACvC,yCAA8C;AAArC,mGAAA,MAAM,OAAA;AAAE,oGAAA,OAAO,OAAA;AACxB,+CAA+B;AAC/B,mDAAmC;AACnC,0CAAwB"}
|
|
@@ -5,19 +5,19 @@
|
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
7
|
"address": {
|
|
8
|
-
"$ref": "
|
|
8
|
+
"$ref": "../../common.schema.json#/$defs/address"
|
|
9
9
|
},
|
|
10
10
|
"amount": {
|
|
11
|
-
"$ref": "
|
|
11
|
+
"$ref": "../../common.schema.json#/$defs/amount"
|
|
12
12
|
},
|
|
13
13
|
"start": {
|
|
14
|
-
"$ref": "
|
|
14
|
+
"$ref": "../../common.schema.json#/$defs/timestamp"
|
|
15
15
|
},
|
|
16
16
|
"years": {
|
|
17
|
-
"$ref": "
|
|
17
|
+
"$ref": "../../common.schema.json#/$defs/positiveInteger"
|
|
18
18
|
},
|
|
19
19
|
"unlocks": {
|
|
20
|
-
"$ref": "
|
|
20
|
+
"$ref": "../../common.schema.json#/$defs/unlockPercentages"
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
"required": ["address", "amount", "start", "years", "unlocks"],
|
|
@@ -5,19 +5,19 @@
|
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
7
|
"address": {
|
|
8
|
-
"$ref": "
|
|
8
|
+
"$ref": "../../common.schema.json#/$defs/address"
|
|
9
9
|
},
|
|
10
10
|
"amount": {
|
|
11
|
-
"$ref": "
|
|
11
|
+
"$ref": "../../common.schema.json#/$defs/amount"
|
|
12
12
|
},
|
|
13
13
|
"duration": {
|
|
14
|
-
"$ref": "
|
|
14
|
+
"$ref": "../../common.schema.json#/$defs/duration"
|
|
15
15
|
},
|
|
16
16
|
"cliffDuration": {
|
|
17
|
-
"$ref": "
|
|
17
|
+
"$ref": "../../common.schema.json#/$defs/duration"
|
|
18
18
|
},
|
|
19
19
|
"cliffAmount": {
|
|
20
|
-
"$ref": "
|
|
20
|
+
"$ref": "../../common.schema.json#/$defs/amount"
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
"required": ["address", "amount", "duration", "cliffDuration", "cliffAmount"],
|
|
@@ -5,19 +5,19 @@
|
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
7
|
"address": {
|
|
8
|
-
"$ref": "
|
|
8
|
+
"$ref": "../../common.schema.json#/$defs/address"
|
|
9
9
|
},
|
|
10
10
|
"amount": {
|
|
11
|
-
"$ref": "
|
|
11
|
+
"$ref": "../../common.schema.json#/$defs/amount"
|
|
12
12
|
},
|
|
13
13
|
"duration": {
|
|
14
|
-
"$ref": "
|
|
14
|
+
"$ref": "../../common.schema.json#/$defs/duration"
|
|
15
15
|
},
|
|
16
16
|
"cliffDuration": {
|
|
17
|
-
"$ref": "
|
|
17
|
+
"$ref": "../../common.schema.json#/$defs/duration"
|
|
18
18
|
},
|
|
19
19
|
"cliffAmount": {
|
|
20
|
-
"$ref": "
|
|
20
|
+
"$ref": "../../common.schema.json#/$defs/amount"
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
"required": ["address", "amount", "duration", "cliffDuration", "cliffAmount"],
|
|
@@ -5,25 +5,25 @@
|
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
7
|
"address": {
|
|
8
|
-
"$ref": "
|
|
8
|
+
"$ref": "../../common.schema.json#/$defs/address"
|
|
9
9
|
},
|
|
10
10
|
"amount": {
|
|
11
|
-
"$ref": "
|
|
11
|
+
"$ref": "../../common.schema.json#/$defs/amount"
|
|
12
12
|
},
|
|
13
13
|
"duration": {
|
|
14
|
-
"$ref": "
|
|
14
|
+
"$ref": "../../common.schema.json#/$defs/duration"
|
|
15
15
|
},
|
|
16
16
|
"firstUnlockDuration": {
|
|
17
|
-
"$ref": "
|
|
17
|
+
"$ref": "../../common.schema.json#/$defs/duration"
|
|
18
18
|
},
|
|
19
19
|
"firstUnlockAmount": {
|
|
20
|
-
"$ref": "
|
|
20
|
+
"$ref": "../../common.schema.json#/$defs/amount"
|
|
21
21
|
},
|
|
22
22
|
"secondUnlockDuration": {
|
|
23
|
-
"$ref": "
|
|
23
|
+
"$ref": "../../common.schema.json#/$defs/duration"
|
|
24
24
|
},
|
|
25
25
|
"secondUnlockAmount": {
|
|
26
|
-
"$ref": "
|
|
26
|
+
"$ref": "../../common.schema.json#/$defs/amount"
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
"required": [
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
7
|
"address": {
|
|
8
|
-
"$ref": "
|
|
8
|
+
"$ref": "../../common.schema.json#/$defs/address"
|
|
9
9
|
},
|
|
10
10
|
"amount": {
|
|
11
|
-
"$ref": "
|
|
11
|
+
"$ref": "../../common.schema.json#/$defs/amount"
|
|
12
12
|
},
|
|
13
13
|
"duration": {
|
|
14
|
-
"$ref": "
|
|
14
|
+
"$ref": "../../common.schema.json#/$defs/duration"
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
"required": ["address", "amount", "duration"],
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { BaseColumns } from "../../types";
|
|
2
|
+
export type BackweightedColumns = BaseColumns & {
|
|
3
|
+
start: string;
|
|
4
|
+
years: string;
|
|
5
|
+
unlocks: string;
|
|
6
|
+
};
|
|
7
|
+
export type LinearColumns = BaseColumns & {
|
|
8
|
+
duration: string;
|
|
9
|
+
};
|
|
10
|
+
export type CliffColumns = LinearColumns & {
|
|
11
|
+
cliffDuration: string;
|
|
12
|
+
cliffAmount: string;
|
|
13
|
+
};
|
|
14
|
+
export type CliffExponentialColumns = CliffColumns;
|
|
15
|
+
export type DoubleUnlockColumns = LinearColumns & {
|
|
16
|
+
firstUnlockDuration: string;
|
|
17
|
+
firstUnlockAmount: string;
|
|
18
|
+
secondUnlockDuration: string;
|
|
19
|
+
secondUnlockAmount: string;
|
|
20
|
+
};
|
|
21
|
+
export type ExponentialColumns = LinearColumns;
|
|
22
|
+
export type MonthlyColumns = BaseColumns & {
|
|
23
|
+
start: string;
|
|
24
|
+
months: string;
|
|
25
|
+
initial: string;
|
|
26
|
+
};
|
|
27
|
+
export type StepperColumns = LinearColumns & {
|
|
28
|
+
steps: string;
|
|
29
|
+
};
|
|
30
|
+
export type TimelockColumns = LinearColumns;
|
|
31
|
+
export type UnlockCliffColumns = LinearColumns & {
|
|
32
|
+
cliffDuration: string;
|
|
33
|
+
unlock: string;
|
|
34
|
+
cliffAmount: string;
|
|
35
|
+
};
|
|
36
|
+
export type UnlockLinearColumns = LinearColumns & {
|
|
37
|
+
unlock: string;
|
|
38
|
+
};
|
|
39
|
+
export type Columns = BackweightedColumns | CliffColumns | CliffExponentialColumns | DoubleUnlockColumns | ExponentialColumns | LinearColumns | MonthlyColumns | StepperColumns | TimelockColumns | UnlockCliffColumns | UnlockLinearColumns;
|
|
40
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/evm/csv/lockup/duration/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG/C,MAAM,MAAM,mBAAmB,GAAG,WAAW,GAAG;IAE9C,KAAK,EAAE,MAAM,CAAC;IAEd,KAAK,EAAE,MAAM,CAAC;IAEd,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAGF,MAAM,MAAM,aAAa,GAAG,WAAW,GAAG;IAExC,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAGF,MAAM,MAAM,YAAY,GAAG,aAAa,GAAG;IAEzC,aAAa,EAAE,MAAM,CAAC;IAEtB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAMF,MAAM,MAAM,uBAAuB,GAAG,YAAY,CAAC;AAGnD,MAAM,MAAM,mBAAmB,GAAG,aAAa,GAAG;IAEhD,mBAAmB,EAAE,MAAM,CAAC;IAE5B,iBAAiB,EAAE,MAAM,CAAC;IAE1B,oBAAoB,EAAE,MAAM,CAAC;IAE7B,kBAAkB,EAAE,MAAM,CAAC;CAC5B,CAAC;AAMF,MAAM,MAAM,kBAAkB,GAAG,aAAa,CAAC;AAG/C,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG;IAEzC,KAAK,EAAE,MAAM,CAAC;IAEd,MAAM,EAAE,MAAM,CAAC;IAEf,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAGF,MAAM,MAAM,cAAc,GAAG,aAAa,GAAG;IAE3C,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAMF,MAAM,MAAM,eAAe,GAAG,aAAa,CAAC;AAG5C,MAAM,MAAM,kBAAkB,GAAG,aAAa,GAAG;IAE/C,aAAa,EAAE,MAAM,CAAC;IAEtB,MAAM,EAAE,MAAM,CAAC;IAEf,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAGF,MAAM,MAAM,mBAAmB,GAAG,aAAa,GAAG;IAEhD,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAGF,MAAM,MAAM,OAAO,GACf,mBAAmB,GACnB,YAAY,GACZ,uBAAuB,GACvB,mBAAmB,GACnB,kBAAkB,GAClB,aAAa,GACb,cAAc,GACd,cAAc,GACd,eAAe,GACf,kBAAkB,GAClB,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/evm/csv/lockup/duration/index.ts"],"names":[],"mappings":""}
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
7
|
"address": {
|
|
8
|
-
"$ref": "
|
|
8
|
+
"$ref": "../../common.schema.json#/$defs/address"
|
|
9
9
|
},
|
|
10
10
|
"amount": {
|
|
11
|
-
"$ref": "
|
|
11
|
+
"$ref": "../../common.schema.json#/$defs/amount"
|
|
12
12
|
},
|
|
13
13
|
"duration": {
|
|
14
|
-
"$ref": "
|
|
14
|
+
"$ref": "../../common.schema.json#/$defs/duration"
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
"required": ["address", "amount", "duration"],
|
|
@@ -5,19 +5,19 @@
|
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
7
|
"address": {
|
|
8
|
-
"$ref": "
|
|
8
|
+
"$ref": "../../common.schema.json#/$defs/address"
|
|
9
9
|
},
|
|
10
10
|
"amount": {
|
|
11
|
-
"$ref": "
|
|
11
|
+
"$ref": "../../common.schema.json#/$defs/amount"
|
|
12
12
|
},
|
|
13
13
|
"start": {
|
|
14
|
-
"$ref": "
|
|
14
|
+
"$ref": "../../common.schema.json#/$defs/timestamp"
|
|
15
15
|
},
|
|
16
16
|
"months": {
|
|
17
|
-
"$ref": "
|
|
17
|
+
"$ref": "../../common.schema.json#/$defs/positiveInteger"
|
|
18
18
|
},
|
|
19
19
|
"initial": {
|
|
20
|
-
"$ref": "
|
|
20
|
+
"$ref": "../../common.schema.json#/$defs/duration"
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
"required": ["address", "amount", "start", "months", "initial"],
|
|
@@ -5,16 +5,16 @@
|
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
7
|
"address": {
|
|
8
|
-
"$ref": "
|
|
8
|
+
"$ref": "../../common.schema.json#/$defs/address"
|
|
9
9
|
},
|
|
10
10
|
"amount": {
|
|
11
|
-
"$ref": "
|
|
11
|
+
"$ref": "../../common.schema.json#/$defs/amount"
|
|
12
12
|
},
|
|
13
13
|
"duration": {
|
|
14
|
-
"$ref": "
|
|
14
|
+
"$ref": "../../common.schema.json#/$defs/duration"
|
|
15
15
|
},
|
|
16
16
|
"steps": {
|
|
17
|
-
"$ref": "
|
|
17
|
+
"$ref": "../../common.schema.json#/$defs/positiveInteger"
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
"required": ["address", "amount", "duration", "steps"],
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
7
|
"address": {
|
|
8
|
-
"$ref": "
|
|
8
|
+
"$ref": "../../common.schema.json#/$defs/address"
|
|
9
9
|
},
|
|
10
10
|
"amount": {
|
|
11
|
-
"$ref": "
|
|
11
|
+
"$ref": "../../common.schema.json#/$defs/amount"
|
|
12
12
|
},
|
|
13
13
|
"duration": {
|
|
14
|
-
"$ref": "
|
|
14
|
+
"$ref": "../../common.schema.json#/$defs/duration"
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
"required": ["address", "amount", "duration"],
|
|
@@ -5,22 +5,22 @@
|
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
7
|
"address": {
|
|
8
|
-
"$ref": "
|
|
8
|
+
"$ref": "../../common.schema.json#/$defs/address"
|
|
9
9
|
},
|
|
10
10
|
"amount": {
|
|
11
|
-
"$ref": "
|
|
11
|
+
"$ref": "../../common.schema.json#/$defs/amount"
|
|
12
12
|
},
|
|
13
13
|
"duration": {
|
|
14
|
-
"$ref": "
|
|
14
|
+
"$ref": "../../common.schema.json#/$defs/duration"
|
|
15
15
|
},
|
|
16
16
|
"cliffDuration": {
|
|
17
|
-
"$ref": "
|
|
17
|
+
"$ref": "../../common.schema.json#/$defs/duration"
|
|
18
18
|
},
|
|
19
19
|
"unlock": {
|
|
20
|
-
"$ref": "
|
|
20
|
+
"$ref": "../../common.schema.json#/$defs/amount"
|
|
21
21
|
},
|
|
22
22
|
"cliffAmount": {
|
|
23
|
-
"$ref": "
|
|
23
|
+
"$ref": "../../common.schema.json#/$defs/amount"
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"required": ["address", "amount", "duration", "cliffDuration", "unlock", "cliffAmount"],
|
|
@@ -5,16 +5,16 @@
|
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
7
|
"address": {
|
|
8
|
-
"$ref": "
|
|
8
|
+
"$ref": "../../common.schema.json#/$defs/address"
|
|
9
9
|
},
|
|
10
10
|
"amount": {
|
|
11
|
-
"$ref": "
|
|
11
|
+
"$ref": "../../common.schema.json#/$defs/amount"
|
|
12
12
|
},
|
|
13
13
|
"duration": {
|
|
14
|
-
"$ref": "
|
|
14
|
+
"$ref": "../../common.schema.json#/$defs/duration"
|
|
15
15
|
},
|
|
16
16
|
"unlock": {
|
|
17
|
-
"$ref": "
|
|
17
|
+
"$ref": "../../common.schema.json#/$defs/amount"
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
"required": ["address", "amount", "duration", "unlock"],
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/evm/csv/lockup/index.ts"],"names":[],"mappings":"AACA,YAAY,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC;AACvC,YAAY,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,SAAS,CAAC;AACvD,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.range = exports.duration = void 0;
|
|
37
|
+
exports.duration = __importStar(require("./duration"));
|
|
38
|
+
exports.range = __importStar(require("./range"));
|
|
39
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/evm/csv/lockup/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,uDAAuC;AAEvC,iDAAiC"}
|
|
@@ -5,19 +5,19 @@
|
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
7
|
"address": {
|
|
8
|
-
"$ref": "
|
|
8
|
+
"$ref": "../../common.schema.json#/$defs/address"
|
|
9
9
|
},
|
|
10
10
|
"amount": {
|
|
11
|
-
"$ref": "
|
|
11
|
+
"$ref": "../../common.schema.json#/$defs/amount"
|
|
12
12
|
},
|
|
13
13
|
"start": {
|
|
14
|
-
"$ref": "
|
|
14
|
+
"$ref": "../../common.schema.json#/$defs/timestamp"
|
|
15
15
|
},
|
|
16
16
|
"years": {
|
|
17
|
-
"$ref": "
|
|
17
|
+
"$ref": "../../common.schema.json#/$defs/positiveInteger"
|
|
18
18
|
},
|
|
19
19
|
"unlocks": {
|
|
20
|
-
"$ref": "
|
|
20
|
+
"$ref": "../../common.schema.json#/$defs/unlockPercentages"
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
"required": ["address", "amount", "start", "years", "unlocks"],
|
|
@@ -5,22 +5,22 @@
|
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
7
|
"address": {
|
|
8
|
-
"$ref": "
|
|
8
|
+
"$ref": "../../common.schema.json#/$defs/address"
|
|
9
9
|
},
|
|
10
10
|
"amount": {
|
|
11
|
-
"$ref": "
|
|
11
|
+
"$ref": "../../common.schema.json#/$defs/amount"
|
|
12
12
|
},
|
|
13
13
|
"start": {
|
|
14
|
-
"$ref": "
|
|
14
|
+
"$ref": "../../common.schema.json#/$defs/timestamp"
|
|
15
15
|
},
|
|
16
16
|
"end": {
|
|
17
|
-
"$ref": "
|
|
17
|
+
"$ref": "../../common.schema.json#/$defs/timestamp"
|
|
18
18
|
},
|
|
19
19
|
"cliffEnd": {
|
|
20
|
-
"$ref": "
|
|
20
|
+
"$ref": "../../common.schema.json#/$defs/timestamp"
|
|
21
21
|
},
|
|
22
22
|
"cliffAmount": {
|
|
23
|
-
"$ref": "
|
|
23
|
+
"$ref": "../../common.schema.json#/$defs/amount"
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"required": ["address", "amount", "start", "end", "cliffEnd", "cliffAmount"],
|