sablier 1.8.0-beta.0 → 1.8.0-beta.2
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/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/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/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/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/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/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/dist/solana/csv/schemas/airdrop.csv +5 -0
- package/package.json +11 -36
|
@@ -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":""}
|
|
@@ -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":""}
|
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"}
|
|
@@ -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":""}
|
|
@@ -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"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { BaseColumns } from "../../types";
|
|
2
|
+
import type { BackweightedColumns as DurationBackweightedColumns, MonthlyColumns as DurationMonthlyColumns } from "../duration/index";
|
|
3
|
+
export type BackweightedColumns = DurationBackweightedColumns;
|
|
4
|
+
export type LinearColumns = BaseColumns & {
|
|
5
|
+
start: string;
|
|
6
|
+
end: string;
|
|
7
|
+
};
|
|
8
|
+
export type CliffColumns = LinearColumns & {
|
|
9
|
+
cliffEnd: string;
|
|
10
|
+
cliffAmount: string;
|
|
11
|
+
};
|
|
12
|
+
export type CliffExponentialColumns = CliffColumns;
|
|
13
|
+
export type DoubleUnlockColumns = LinearColumns & {
|
|
14
|
+
firstUnlockEnd: string;
|
|
15
|
+
firstUnlockAmount: string;
|
|
16
|
+
secondUnlockEnd: string;
|
|
17
|
+
secondUnlockAmount: string;
|
|
18
|
+
};
|
|
19
|
+
export type ExponentialColumns = LinearColumns;
|
|
20
|
+
export type MonthlyColumns = DurationMonthlyColumns;
|
|
21
|
+
export type StepperColumns = LinearColumns & {
|
|
22
|
+
steps: string;
|
|
23
|
+
};
|
|
24
|
+
export type TimelockColumns = BaseColumns & {
|
|
25
|
+
end: string;
|
|
26
|
+
};
|
|
27
|
+
export type UnlockCliffColumns = LinearColumns & {
|
|
28
|
+
cliffEnd: string;
|
|
29
|
+
unlock: string;
|
|
30
|
+
cliffAmount: string;
|
|
31
|
+
};
|
|
32
|
+
export type UnlockLinearColumns = LinearColumns & {
|
|
33
|
+
unlock: string;
|
|
34
|
+
};
|
|
35
|
+
export type Columns = BackweightedColumns | CliffColumns | CliffExponentialColumns | DoubleUnlockColumns | ExponentialColumns | LinearColumns | MonthlyColumns | StepperColumns | TimelockColumns | UnlockCliffColumns | UnlockLinearColumns;
|
|
36
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/evm/csv/lockup/range/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,KAAK,EACV,mBAAmB,IAAI,2BAA2B,EAClD,cAAc,IAAI,sBAAsB,EACzC,MAAM,mBAAmB,CAAC;AAO3B,MAAM,MAAM,mBAAmB,GAAG,2BAA2B,CAAC;AAG9D,MAAM,MAAM,aAAa,GAAG,WAAW,GAAG;IAExC,KAAK,EAAE,MAAM,CAAC;IAEd,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAGF,MAAM,MAAM,YAAY,GAAG,aAAa,GAAG;IAEzC,QAAQ,EAAE,MAAM,CAAC;IAEjB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAMF,MAAM,MAAM,uBAAuB,GAAG,YAAY,CAAC;AAGnD,MAAM,MAAM,mBAAmB,GAAG,aAAa,GAAG;IAEhD,cAAc,EAAE,MAAM,CAAC;IAEvB,iBAAiB,EAAE,MAAM,CAAC;IAE1B,eAAe,EAAE,MAAM,CAAC;IAExB,kBAAkB,EAAE,MAAM,CAAC;CAC5B,CAAC;AAMF,MAAM,MAAM,kBAAkB,GAAG,aAAa,CAAC;AAO/C,MAAM,MAAM,cAAc,GAAG,sBAAsB,CAAC;AAGpD,MAAM,MAAM,cAAc,GAAG,aAAa,GAAG;IAE3C,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAGF,MAAM,MAAM,eAAe,GAAG,WAAW,GAAG;IAE1C,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAGF,MAAM,MAAM,kBAAkB,GAAG,aAAa,GAAG;IAE/C,QAAQ,EAAE,MAAM,CAAC;IAEjB,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/range/index.ts"],"names":[],"mappings":""}
|
package/dist/evm/csv/types.d.ts
CHANGED
|
@@ -1,81 +1,13 @@
|
|
|
1
|
+
import type { Columns as AirdropColumns } from "./airdrops";
|
|
2
|
+
import type { Columns as FlowColumns } from "./flow";
|
|
3
|
+
import type { DurationColumns, RangeColumns } from "./lockup";
|
|
1
4
|
export declare const TIMINGS: readonly ["duration", "range"];
|
|
2
|
-
export declare const SHAPES: readonly ["backweighted", "cliff", "cliff-exponential", "double-unlock", "exponential", "linear", "monthly", "stepper", "timelock", "unlock-cliff", "unlock-linear"];
|
|
5
|
+
export declare const SHAPES: readonly ["instant", "stream", "backweighted", "cliff", "cliff-exponential", "double-unlock", "exponential", "linear", "monthly", "stepper", "timelock", "unlock-cliff", "unlock-linear"];
|
|
3
6
|
export type Timing = (typeof TIMINGS)[number];
|
|
4
7
|
export type Shape = (typeof SHAPES)[number];
|
|
5
8
|
export type BaseColumns = {
|
|
6
9
|
address: string;
|
|
7
10
|
amount: string;
|
|
8
11
|
};
|
|
9
|
-
export type
|
|
10
|
-
start: string;
|
|
11
|
-
years: string;
|
|
12
|
-
unlocks: string;
|
|
13
|
-
};
|
|
14
|
-
export type DurationCliffColumns = DurationLinearColumns & {
|
|
15
|
-
cliffDuration: string;
|
|
16
|
-
cliffAmount: string;
|
|
17
|
-
};
|
|
18
|
-
export type DurationCliffExponentialColumns = DurationCliffColumns;
|
|
19
|
-
export type DurationDoubleUnlockColumns = DurationLinearColumns & {
|
|
20
|
-
firstUnlockDuration: string;
|
|
21
|
-
firstUnlockAmount: string;
|
|
22
|
-
secondUnlockDuration: string;
|
|
23
|
-
secondUnlockAmount: string;
|
|
24
|
-
};
|
|
25
|
-
export type DurationExponentialColumns = DurationLinearColumns;
|
|
26
|
-
export type DurationLinearColumns = BaseColumns & {
|
|
27
|
-
duration: string;
|
|
28
|
-
};
|
|
29
|
-
export type DurationMonthlyColumns = BaseColumns & {
|
|
30
|
-
start: string;
|
|
31
|
-
months: string;
|
|
32
|
-
initial: string;
|
|
33
|
-
};
|
|
34
|
-
export type DurationStepperColumns = DurationLinearColumns & {
|
|
35
|
-
steps: string;
|
|
36
|
-
};
|
|
37
|
-
export type DurationTimelockColumns = DurationLinearColumns;
|
|
38
|
-
export type DurationUnlockCliffColumns = DurationLinearColumns & {
|
|
39
|
-
cliffDuration: string;
|
|
40
|
-
unlock: string;
|
|
41
|
-
cliffAmount: string;
|
|
42
|
-
};
|
|
43
|
-
export type DurationUnlockLinearColumns = DurationLinearColumns & {
|
|
44
|
-
unlock: string;
|
|
45
|
-
};
|
|
46
|
-
export type RangeBackweightedColumns = DurationBackweightedColumns;
|
|
47
|
-
export type RangeCliffColumns = RangeLinearColumns & {
|
|
48
|
-
cliffEnd: string;
|
|
49
|
-
cliffAmount: string;
|
|
50
|
-
};
|
|
51
|
-
export type RangeCliffExponentialColumns = RangeCliffColumns;
|
|
52
|
-
export type RangeDoubleUnlockColumns = RangeLinearColumns & {
|
|
53
|
-
firstUnlockEnd: string;
|
|
54
|
-
firstUnlockAmount: string;
|
|
55
|
-
secondUnlockEnd: string;
|
|
56
|
-
secondUnlockAmount: string;
|
|
57
|
-
};
|
|
58
|
-
export type RangeExponentialColumns = RangeLinearColumns;
|
|
59
|
-
export type RangeLinearColumns = BaseColumns & {
|
|
60
|
-
start: string;
|
|
61
|
-
end: string;
|
|
62
|
-
};
|
|
63
|
-
export type RangeMonthlyColumns = DurationMonthlyColumns;
|
|
64
|
-
export type RangeStepperColumns = RangeLinearColumns & {
|
|
65
|
-
steps: string;
|
|
66
|
-
};
|
|
67
|
-
export type RangeTimelockColumns = BaseColumns & {
|
|
68
|
-
end: string;
|
|
69
|
-
};
|
|
70
|
-
export type RangeUnlockCliffColumns = RangeLinearColumns & {
|
|
71
|
-
cliffEnd: string;
|
|
72
|
-
unlock: string;
|
|
73
|
-
cliffAmount: string;
|
|
74
|
-
};
|
|
75
|
-
export type RangeUnlockLinearColumns = RangeLinearColumns & {
|
|
76
|
-
unlock: string;
|
|
77
|
-
};
|
|
78
|
-
export type DurationColumns = DurationBackweightedColumns | DurationCliffColumns | DurationCliffExponentialColumns | DurationDoubleUnlockColumns | DurationExponentialColumns | DurationLinearColumns | DurationMonthlyColumns | DurationStepperColumns | DurationTimelockColumns | DurationUnlockCliffColumns | DurationUnlockLinearColumns;
|
|
79
|
-
export type RangeColumns = RangeBackweightedColumns | RangeCliffColumns | RangeCliffExponentialColumns | RangeDoubleUnlockColumns | RangeExponentialColumns | RangeLinearColumns | RangeMonthlyColumns | RangeStepperColumns | RangeTimelockColumns | RangeUnlockCliffColumns | RangeUnlockLinearColumns;
|
|
80
|
-
export type Columns = DurationColumns | RangeColumns;
|
|
12
|
+
export type Columns = AirdropColumns | FlowColumns | DurationColumns | RangeColumns;
|
|
81
13
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/evm/csv/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/evm/csv/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,KAAK,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,QAAQ,CAAC;AACrD,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAK9D,eAAO,MAAM,OAAO,gCAAiC,CAAC;AAKtD,eAAO,MAAM,MAAM,2LAcT,CAAC;AAMX,MAAM,MAAM,MAAM,GAAG,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC;AAM9C,MAAM,MAAM,KAAK,GAAG,CAAC,OAAO,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC;AAG5C,MAAM,MAAM,WAAW,GAAG;IAExB,OAAO,EAAE,MAAM,CAAC;IAEhB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAGF,MAAM,MAAM,OAAO,GAAG,cAAc,GAAG,WAAW,GAAG,eAAe,GAAG,YAAY,CAAC"}
|
package/dist/evm/csv/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/evm/csv/types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/evm/csv/types.ts"],"names":[],"mappings":";;;AAOa,QAAA,OAAO,GAAG,CAAC,UAAU,EAAE,OAAO,CAAU,CAAC;AAKzC,QAAA,MAAM,GAAG;IACpB,SAAS;IACT,QAAQ;IACR,cAAc;IACd,OAAO;IACP,mBAAmB;IACnB,eAAe;IACf,aAAa;IACb,QAAQ;IACR,SAAS;IACT,SAAS;IACT,UAAU;IACV,cAAc;IACd,eAAe;CACP,CAAC"}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"license": "GPL-3.0-or-later",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
|
-
"version": "1.8.0-beta.
|
|
7
|
+
"version": "1.8.0-beta.2",
|
|
8
8
|
"author": {
|
|
9
9
|
"name": "Sablier Labs Ltd",
|
|
10
10
|
"url": "https://sablier.com"
|
|
@@ -57,48 +57,23 @@
|
|
|
57
57
|
"types": "./dist/evm/index.d.ts",
|
|
58
58
|
"default": "./dist/evm/index.js"
|
|
59
59
|
},
|
|
60
|
-
"./evm
|
|
61
|
-
"types": "./dist/evm
|
|
62
|
-
"default": "./dist/evm
|
|
63
|
-
},
|
|
64
|
-
"./evm/contracts": {
|
|
65
|
-
"types": "./dist/evm/contracts/index.d.ts",
|
|
66
|
-
"default": "./dist/evm/contracts/index.js"
|
|
67
|
-
},
|
|
68
|
-
"./evm/releases": {
|
|
69
|
-
"types": "./dist/evm/releases/index.d.ts",
|
|
70
|
-
"default": "./dist/evm/releases/index.js"
|
|
71
|
-
},
|
|
72
|
-
"./csv": {
|
|
73
|
-
"types": "./dist/csv/index.d.ts",
|
|
74
|
-
"default": "./dist/csv/index.js"
|
|
60
|
+
"./evm/*": {
|
|
61
|
+
"types": "./dist/evm/*/index.d.ts",
|
|
62
|
+
"default": "./dist/evm/*/index.js"
|
|
75
63
|
},
|
|
76
64
|
"./solana": {
|
|
77
65
|
"types": "./dist/solana/index.d.ts",
|
|
78
66
|
"default": "./dist/solana/index.js"
|
|
79
67
|
},
|
|
80
|
-
"./solana
|
|
81
|
-
"types": "./dist/solana
|
|
82
|
-
"default": "./dist/solana
|
|
83
|
-
},
|
|
84
|
-
"./solana/releases/lockup/*": {
|
|
85
|
-
"types": "./dist/solana/releases/lockup/*/index.d.ts",
|
|
86
|
-
"default": "./dist/solana/releases/lockup/*/index.js"
|
|
87
|
-
},
|
|
88
|
-
"./solana/releases/airdrops/*": {
|
|
89
|
-
"types": "./dist/solana/releases/airdrops/*/index.d.ts",
|
|
90
|
-
"default": "./dist/solana/releases/airdrops/*/index.js"
|
|
91
|
-
},
|
|
92
|
-
"./solana/releases/lockup/*/idl": {
|
|
93
|
-
"types": "./dist/solana/releases/lockup/*/idl.d.ts",
|
|
94
|
-
"default": "./dist/solana/releases/lockup/*/idl.js"
|
|
68
|
+
"./solana/*": {
|
|
69
|
+
"types": "./dist/solana/*/index.d.ts",
|
|
70
|
+
"default": "./dist/solana/*/index.js"
|
|
95
71
|
},
|
|
96
|
-
"./solana/releases
|
|
97
|
-
"types": "./dist/solana/releases
|
|
98
|
-
"default": "./dist/solana/releases
|
|
72
|
+
"./solana/releases/*/idl": {
|
|
73
|
+
"types": "./dist/solana/releases/*/idl.d.ts",
|
|
74
|
+
"default": "./dist/solana/releases/*/idl.js"
|
|
99
75
|
},
|
|
100
|
-
"./package.json": "./package.json"
|
|
101
|
-
"./dist/*": "./dist/*"
|
|
76
|
+
"./package.json": "./package.json"
|
|
102
77
|
},
|
|
103
78
|
"files": [
|
|
104
79
|
"dist"
|