sablier 1.8.0-beta.14 → 1.8.0-beta.16

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.
Files changed (59) hide show
  1. package/dist/shapes/airdrops.d.ts +6 -95
  2. package/dist/shapes/airdrops.d.ts.map +1 -1
  3. package/dist/shapes/airdrops.js +30 -115
  4. package/dist/shapes/airdrops.js.map +1 -1
  5. package/dist/shapes/constants.d.ts +133 -0
  6. package/dist/shapes/constants.d.ts.map +1 -0
  7. package/dist/shapes/constants.js +139 -0
  8. package/dist/shapes/constants.js.map +1 -0
  9. package/dist/shapes/flow.d.ts +2 -3
  10. package/dist/shapes/flow.d.ts.map +1 -1
  11. package/dist/shapes/flow.js +6 -8
  12. package/dist/shapes/flow.js.map +1 -1
  13. package/dist/shapes/helpers.d.ts +1 -1
  14. package/dist/shapes/helpers.d.ts.map +1 -1
  15. package/dist/shapes/helpers.js +1 -0
  16. package/dist/shapes/helpers.js.map +1 -1
  17. package/dist/shapes/index.d.ts +23 -477
  18. package/dist/shapes/index.d.ts.map +1 -1
  19. package/dist/shapes/lockup/dynamic.d.ts +10 -0
  20. package/dist/shapes/lockup/dynamic.d.ts.map +1 -0
  21. package/dist/shapes/lockup/dynamic.js +47 -0
  22. package/dist/shapes/lockup/dynamic.js.map +1 -0
  23. package/dist/shapes/lockup/index.d.ts +24 -0
  24. package/dist/shapes/lockup/index.d.ts.map +1 -0
  25. package/dist/shapes/lockup/index.js +66 -0
  26. package/dist/shapes/lockup/index.js.map +1 -0
  27. package/dist/shapes/lockup/linear.d.ts +7 -0
  28. package/dist/shapes/lockup/linear.d.ts.map +1 -0
  29. package/dist/shapes/lockup/linear.js +37 -0
  30. package/dist/shapes/lockup/linear.js.map +1 -0
  31. package/dist/shapes/lockup/tranched.d.ts +6 -0
  32. package/dist/shapes/lockup/tranched.d.ts.map +1 -0
  33. package/dist/shapes/lockup/tranched.js +27 -0
  34. package/dist/shapes/lockup/tranched.js.map +1 -0
  35. package/dist/shapes/types.d.ts +15 -11
  36. package/dist/shapes/types.d.ts.map +1 -1
  37. package/dist/shapes/types.js +7 -0
  38. package/dist/shapes/types.js.map +1 -1
  39. package/package.json +1 -1
  40. package/dist/shapes/lockup.d.ts +0 -386
  41. package/dist/shapes/lockup.d.ts.map +0 -1
  42. package/dist/shapes/lockup.js +0 -501
  43. package/dist/shapes/lockup.js.map +0 -1
  44. /package/dist/evm/csv/lockup/duration/{cliffExponential.csv → dynamicCliffExponential.csv} +0 -0
  45. /package/dist/evm/csv/lockup/duration/{doubleUnlock.csv → dynamicDoubleUnlock.csv} +0 -0
  46. /package/dist/evm/csv/lockup/duration/{exponential.csv → dynamicExponential.csv} +0 -0
  47. /package/dist/evm/csv/lockup/duration/{unlockCliff.csv → linearUnlockCliff.csv} +0 -0
  48. /package/dist/evm/csv/lockup/duration/{unlockLinear.csv → linearUnlockLinear.csv} +0 -0
  49. /package/dist/evm/csv/lockup/duration/{stepper.csv → tranchedStepper.csv} +0 -0
  50. /package/dist/evm/csv/lockup/duration/{timelock.csv → tranchedTimelock.csv} +0 -0
  51. /package/dist/evm/csv/lockup/range/{cliffExponential.csv → dynamicCliffExponential.csv} +0 -0
  52. /package/dist/evm/csv/lockup/range/{doubleUnlock.csv → dynamicDoubleUnlock.csv} +0 -0
  53. /package/dist/evm/csv/lockup/range/{exponential.csv → dynamicExponential.csv} +0 -0
  54. /package/dist/evm/csv/lockup/range/{unlockCliff.csv → linearUnlockCliff.csv} +0 -0
  55. /package/dist/evm/csv/lockup/range/{unlockLinear.csv → linearUnlockLinear.csv} +0 -0
  56. /package/dist/evm/csv/lockup/range/{stepper.csv → tranchedStepper.csv} +0 -0
  57. /package/dist/evm/csv/lockup/range/{timelock.csv → tranchedTimelock.csv} +0 -0
  58. /package/dist/evm/csv/lockup/{backweighted.csv → tranchedBackweighted.csv} +0 -0
  59. /package/dist/evm/csv/lockup/{monthly.csv → tranchedMonthly.csv} +0 -0
@@ -1,99 +1,10 @@
1
1
  import { Shape } from "./enums";
2
2
  export declare const airdropShapes: {
3
- cliff: {
4
- evm: ({
5
- contract: string;
6
- createMethods: string[];
7
- version: "v2.0";
8
- } | {
9
- contract: string;
10
- createMethods: string[];
11
- version: "v1.3";
12
- } | {
13
- contract: string;
14
- createMethods: string[];
15
- version: "v1.2";
16
- } | {
17
- contract: string;
18
- createMethods: string[];
19
- version: "v1.1";
20
- })[];
21
- id: Shape.Airdrops.Cliff;
22
- name: string;
23
- };
24
- instant: {
25
- evm: ({
26
- contract: string;
27
- createMethods: string[];
28
- version: "v2.0";
29
- } | {
30
- contract: string;
31
- createMethods: string[];
32
- version: "v1.3";
33
- })[];
34
- id: Shape.Airdrops.Instant;
35
- name: string;
36
- solana: {
37
- createMethods: string[];
38
- program: string;
39
- version: "v0.1";
40
- }[];
41
- };
42
- linear: {
43
- evm: ({
44
- contract: string;
45
- createMethods: string[];
46
- version: "v2.0";
47
- } | {
48
- contract: string;
49
- createMethods: string[];
50
- version: "v1.3";
51
- } | {
52
- contract: string;
53
- createMethods: string[];
54
- version: "v1.2";
55
- } | {
56
- contract: string;
57
- createMethods: string[];
58
- version: "v1.1";
59
- })[];
60
- id: Shape.Airdrops.Linear;
61
- name: string;
62
- };
63
- linearUnlockCliff: {
64
- evm: {
65
- contract: string;
66
- createMethods: string[];
67
- version: "v2.0";
68
- }[];
69
- id: Shape.Airdrops.LinearUnlockCliff;
70
- name: string;
71
- };
72
- linearUnlockLinear: {
73
- evm: {
74
- contract: string;
75
- createMethods: string[];
76
- version: "v2.0";
77
- }[];
78
- id: Shape.Airdrops.LinearUnlockLinear;
79
- name: string;
80
- };
81
- tranchedStepper: {
82
- evm: ({
83
- contract: string;
84
- createMethods: string[];
85
- version: "v2.0";
86
- } | {
87
- contract: string;
88
- createMethods: string[];
89
- version: "v1.3";
90
- } | {
91
- contract: string;
92
- createMethods: string[];
93
- version: "v1.2";
94
- })[];
95
- id: Shape.Airdrops.TranchedStepper;
96
- name: string;
97
- };
3
+ cliff: import("./types").AirdropShapeDefinition<Shape.Airdrops.Cliff>;
4
+ instant: import("./types").AirdropShapeDefinition<Shape.Airdrops.Instant>;
5
+ linear: import("./types").AirdropShapeDefinition<Shape.Airdrops.Linear>;
6
+ linearUnlockCliff: import("./types").AirdropShapeDefinition<Shape.Airdrops.LinearUnlockCliff>;
7
+ linearUnlockLinear: import("./types").AirdropShapeDefinition<Shape.Airdrops.LinearUnlockLinear>;
8
+ tranchedStepper: import("./types").AirdropShapeDefinition<Shape.Airdrops.TranchedStepper>;
98
9
  };
99
10
  //# sourceMappingURL=airdrops.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"airdrops.d.ts","sourceRoot":"","sources":["../../src/shapes/airdrops.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AA8JhC,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOK,CAAC"}
1
+ {"version":3,"file":"airdrops.d.ts","sourceRoot":"","sources":["../../src/shapes/airdrops.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAqEhC,eAAO,MAAM,aAAa;;;;;;;CAOK,CAAC"}
@@ -1,125 +1,40 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.airdropShapes = void 0;
4
+ const constants_1 = require("./constants");
4
5
  const enums_1 = require("./enums");
5
- const cliff = {
6
- evm: [
7
- {
8
- contract: "SablierFactoryMerkleLL",
9
- createMethods: ["createMerkleLL"],
10
- version: "v2.0",
11
- },
12
- {
13
- contract: "SablierMerkleFactory",
14
- createMethods: ["createMerkleLL"],
15
- version: "v1.3",
16
- },
17
- {
18
- contract: "SablierV2MerkleLockupFactory",
19
- createMethods: ["createMerkleLL"],
20
- version: "v1.2",
21
- },
22
- {
23
- contract: "SablierV2MerkleStreamerFactory",
24
- createMethods: ["createMerkleStreamerLL"],
25
- version: "v1.1",
26
- },
27
- ],
28
- id: enums_1.Shape.Airdrops.Cliff,
29
- name: "Cliff",
30
- };
31
- const instant = {
32
- evm: [
33
- {
34
- contract: "SablierFactoryMerkleInstant",
35
- createMethods: ["createMerkleInstant"],
36
- version: "v2.0",
37
- },
38
- {
39
- contract: "SablierMerkleFactory",
40
- createMethods: ["createMerkleInstant"],
41
- version: "v1.3",
42
- },
43
- ],
44
- id: enums_1.Shape.Airdrops.Instant,
6
+ const types_1 = require("./types");
7
+ const instant = (0, types_1.defineAirdropShape)(enums_1.Shape.Airdrops.Instant, {
8
+ evm: constants_1.AIRDROP_EVM_INSTANT,
9
+ isDeprecated: false,
45
10
  name: "Instant",
46
- solana: [
47
- {
48
- createMethods: ["create_campaign"],
49
- program: "SablierMerkleInstant",
50
- version: "v0.1",
51
- },
52
- ],
53
- };
54
- const linear = {
55
- evm: [
56
- {
57
- contract: "SablierFactoryMerkleLL",
58
- createMethods: ["createMerkleLL"],
59
- version: "v2.0",
60
- },
61
- {
62
- contract: "SablierMerkleFactory",
63
- createMethods: ["createMerkleLL"],
64
- version: "v1.3",
65
- },
66
- {
67
- contract: "SablierV2MerkleLockupFactory",
68
- createMethods: ["createMerkleLL"],
69
- version: "v1.2",
70
- },
71
- {
72
- contract: "SablierV2MerkleStreamerFactory",
73
- createMethods: ["createMerkleStreamerLL"],
74
- version: "v1.1",
75
- },
76
- ],
77
- id: enums_1.Shape.Airdrops.Linear,
11
+ solana: constants_1.AIRDROP_SOLANA_INSTANT,
12
+ });
13
+ const linear = (0, types_1.defineAirdropShape)(enums_1.Shape.Airdrops.Linear, {
14
+ evm: constants_1.AIRDROP_EVM_LL,
15
+ isDeprecated: false,
78
16
  name: "Linear",
79
- };
80
- const tranchedStepper = {
81
- evm: [
82
- {
83
- contract: "SablierFactoryMerkleLT",
84
- createMethods: ["createMerkleLT"],
85
- version: "v2.0",
86
- },
87
- {
88
- contract: "SablierMerkleFactory",
89
- createMethods: ["createMerkleLT"],
90
- version: "v1.3",
91
- },
92
- {
93
- contract: "SablierV2MerkleLockupFactory",
94
- createMethods: ["createMerkleLT"],
95
- version: "v1.2",
96
- },
97
- ],
98
- id: enums_1.Shape.Airdrops.TranchedStepper,
99
- name: "Tranched Stepper",
100
- };
101
- const linearUnlockCliff = {
102
- evm: [
103
- {
104
- contract: "SablierFactoryMerkleLL",
105
- createMethods: ["createMerkleLL"],
106
- version: "v2.0",
107
- },
108
- ],
109
- id: enums_1.Shape.Airdrops.LinearUnlockCliff,
110
- name: "Linear Unlock Cliff",
111
- };
112
- const linearUnlockLinear = {
113
- evm: [
114
- {
115
- contract: "SablierFactoryMerkleLL",
116
- createMethods: ["createMerkleLL"],
117
- version: "v2.0",
118
- },
119
- ],
120
- id: enums_1.Shape.Airdrops.LinearUnlockLinear,
17
+ });
18
+ const cliff = (0, types_1.defineAirdropShape)(enums_1.Shape.Airdrops.Cliff, {
19
+ evm: constants_1.AIRDROP_EVM_LL,
20
+ isDeprecated: false,
21
+ name: "Cliff",
22
+ });
23
+ const linearUnlockLinear = (0, types_1.defineAirdropShape)(enums_1.Shape.Airdrops.LinearUnlockLinear, {
24
+ evm: constants_1.AIRDROP_EVM_LL_V2,
25
+ isDeprecated: false,
121
26
  name: "Linear Unlock Linear",
122
- };
27
+ });
28
+ const linearUnlockCliff = (0, types_1.defineAirdropShape)(enums_1.Shape.Airdrops.LinearUnlockCliff, {
29
+ evm: constants_1.AIRDROP_EVM_LL_V2,
30
+ isDeprecated: false,
31
+ name: "Linear Unlock Cliff",
32
+ });
33
+ const tranchedStepper = (0, types_1.defineAirdropShape)(enums_1.Shape.Airdrops.TranchedStepper, {
34
+ evm: constants_1.AIRDROP_EVM_LT,
35
+ isDeprecated: false,
36
+ name: "Tranched Stepper",
37
+ });
123
38
  exports.airdropShapes = {
124
39
  [enums_1.Shape.Airdrops.Cliff]: cliff,
125
40
  [enums_1.Shape.Airdrops.Instant]: instant,
@@ -1 +1 @@
1
- {"version":3,"file":"airdrops.js","sourceRoot":"","sources":["../../src/shapes/airdrops.ts"],"names":[],"mappings":";;;AAAA,mCAAgC;AAOhC,MAAM,KAAK,GAAG;IACZ,GAAG,EAAE;QACH;YACE,QAAQ,EAAE,wBAAwB;YAClC,aAAa,EAAE,CAAC,gBAAgB,CAAC;YACjC,OAAO,EAAE,MAAM;SAChB;QACD;YACE,QAAQ,EAAE,sBAAsB;YAChC,aAAa,EAAE,CAAC,gBAAgB,CAAC;YACjC,OAAO,EAAE,MAAM;SAChB;QACD;YACE,QAAQ,EAAE,8BAA8B;YACxC,aAAa,EAAE,CAAC,gBAAgB,CAAC;YACjC,OAAO,EAAE,MAAM;SAChB;QACD;YACE,QAAQ,EAAE,gCAAgC;YAC1C,aAAa,EAAE,CAAC,wBAAwB,CAAC;YACzC,OAAO,EAAE,MAAM;SAChB;KACF;IACD,EAAE,EAAE,aAAK,CAAC,QAAQ,CAAC,KAAK;IACxB,IAAI,EAAE,OAAO;CACmB,CAAC;AAOnC,MAAM,OAAO,GAAG;IACd,GAAG,EAAE;QACH;YACE,QAAQ,EAAE,6BAA6B;YACvC,aAAa,EAAE,CAAC,qBAAqB,CAAC;YACtC,OAAO,EAAE,MAAM;SAChB;QACD;YACE,QAAQ,EAAE,sBAAsB;YAChC,aAAa,EAAE,CAAC,qBAAqB,CAAC;YACtC,OAAO,EAAE,MAAM;SAChB;KACF;IACD,EAAE,EAAE,aAAK,CAAC,QAAQ,CAAC,OAAO;IAC1B,IAAI,EAAE,SAAS;IACf,MAAM,EAAE;QACN;YACE,aAAa,EAAE,CAAC,iBAAiB,CAAC;YAClC,OAAO,EAAE,sBAAsB;YAC/B,OAAO,EAAE,MAAM;SAChB;KACF;CAC+B,CAAC;AAMnC,MAAM,MAAM,GAAG;IACb,GAAG,EAAE;QACH;YACE,QAAQ,EAAE,wBAAwB;YAClC,aAAa,EAAE,CAAC,gBAAgB,CAAC;YACjC,OA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K,CAAC,QAAQ,CAAC,kBAAkB,EAAE;IAC/E,GAAG,EAAE,6BAAiB;IACtB,YAAY,EAAE,KAAK;IACnB,IAAI,EAAE,sBAAsB;CAC7B,CAAC,CAAC;AAMH,MAAM,iBAAiB,GAAG,IAAA,0BAAkB,EAAC,aAAK,CAAC,QAAQ,CAAC,iBAAiB,EAAE;IAC7E,GAAG,EAAE,6BAAiB;IACtB,YAAY,EAAE,KAAK;IACnB,IAAI,EAAE,qBAAqB;CAC5B,CAAC,CAAC;AAMH,MAAM,eAAe,GAAG,IAAA,0BAAkB,EAAC,aAAK,CAAC,QAAQ,CAAC,eAAe,EAAE;IACzE,GAAG,EAAE,0BAAc;IACnB,YAAY,EAAE,KAAK;IACnB,IAAI,EAAE,kBAAkB;CACzB,CAAC,CAAC;AAMU,QAAA,aAAa,GAAG;IAC3B,CAAC,aAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,KAAK;IAC7B,CAAC,aAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO;IACjC,CAAC,aAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM;IAC/B,CAAC,aAAK,CAAC,QAAQ,CAAC,iBAAiB,CAAC,EAAE,iBAAiB;IACrD,CAAC,aAAK,CAAC,QAAQ,CAAC,kBAAkB,CAAC,EAAE,kBAAkB;IACvD,CAAC,aAAK,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE,eAAe;CACpB,CAAC"}
@@ -0,0 +1,133 @@
1
+ import { Version } from "../evm/enums";
2
+ export declare const LOCKUP_EVM_LL: readonly [{
3
+ readonly contract: "SablierLockup";
4
+ readonly createMethods: readonly ["createWithDurationsLL", "createWithTimestampsLL"];
5
+ readonly version: Version.Lockup.V3_0;
6
+ }, {
7
+ readonly contract: "SablierLockup";
8
+ readonly createMethods: readonly ["createWithDurationsLL", "createWithTimestampsLL"];
9
+ readonly version: Version.Lockup.V2_0;
10
+ }, {
11
+ readonly contract: "SablierV2LockupLinear";
12
+ readonly createMethods: readonly ["createWithDurations", "createWithTimestamps"];
13
+ readonly version: Version.Lockup.V1_2;
14
+ }, {
15
+ readonly contract: "SablierV2LockupLinear";
16
+ readonly createMethods: readonly ["createWithDurations", "createWithTimestamps"];
17
+ readonly version: Version.Lockup.V1_1;
18
+ }, {
19
+ readonly contract: "SablierV2LockupLinear";
20
+ readonly createMethods: readonly ["createWithDurations", "createWithTimestamps"];
21
+ readonly version: Version.Lockup.V1_0;
22
+ }];
23
+ export declare const LOCKUP_EVM_LL_V2: readonly [{
24
+ readonly contract: "SablierLockup";
25
+ readonly createMethods: readonly ["createWithDurationsLL", "createWithTimestampsLL"];
26
+ readonly version: Version.Lockup.V3_0;
27
+ }, {
28
+ readonly contract: "SablierLockup";
29
+ readonly createMethods: readonly ["createWithDurationsLL", "createWithTimestampsLL"];
30
+ readonly version: Version.Lockup.V2_0;
31
+ }];
32
+ export declare const LOCKUP_SOLANA_LL: readonly [{
33
+ readonly createMethods: readonly ["create_with_durations_ll", "create_with_timestamps_ll"];
34
+ readonly program: "SablierLockupLinear";
35
+ readonly version: "v0.1";
36
+ }];
37
+ export declare const LOCKUP_EVM_LD: readonly [{
38
+ readonly contract: "SablierLockup";
39
+ readonly createMethods: readonly ["createWithDurationsLD", "createWithTimestampsLD"];
40
+ readonly version: Version.Lockup.V3_0;
41
+ }, {
42
+ readonly contract: "SablierLockup";
43
+ readonly createMethods: readonly ["createWithDurationsLD", "createWithTimestampsLD"];
44
+ readonly version: Version.Lockup.V2_0;
45
+ }, {
46
+ readonly contract: "SablierV2LockupDynamic";
47
+ readonly createMethods: readonly ["createWithDurations", "createWithTimestamps"];
48
+ readonly version: Version.Lockup.V1_2;
49
+ }, {
50
+ readonly contract: "SablierV2LockupDynamic";
51
+ readonly createMethods: readonly ["createWithDurations", "createWithTimestamps"];
52
+ readonly version: Version.Lockup.V1_1;
53
+ }, {
54
+ readonly contract: "SablierV2LockupDynamic";
55
+ readonly createMethods: readonly ["createWithDurations", "createWithTimestamps"];
56
+ readonly version: Version.Lockup.V1_0;
57
+ }];
58
+ export declare const LOCKUP_EVM_LT: readonly [{
59
+ readonly contract: "SablierLockup";
60
+ readonly createMethods: readonly ["createWithDurationsLT", "createWithTimestampsLT"];
61
+ readonly version: Version.Lockup.V3_0;
62
+ }, {
63
+ readonly contract: "SablierLockup";
64
+ readonly createMethods: readonly ["createWithDurationsLT", "createWithTimestampsLT"];
65
+ readonly version: Version.Lockup.V2_0;
66
+ }, {
67
+ readonly contract: "SablierV2LockupTranched";
68
+ readonly createMethods: readonly ["createWithDurations", "createWithTimestamps"];
69
+ readonly version: Version.Lockup.V1_2;
70
+ }];
71
+ export declare const FLOW_EVM: readonly [{
72
+ readonly contract: "SablierFlow";
73
+ readonly createMethods: readonly ["create", "createAndDeposit"];
74
+ readonly version: Version.Flow.V2_0;
75
+ }, {
76
+ readonly contract: "SablierFlow";
77
+ readonly createMethods: readonly ["create", "createAndDeposit"];
78
+ readonly version: Version.Flow.V1_1;
79
+ }, {
80
+ readonly contract: "SablierFlow";
81
+ readonly createMethods: readonly ["create", "createAndDeposit"];
82
+ readonly version: Version.Flow.V1_0;
83
+ }];
84
+ export declare const AIRDROP_EVM_INSTANT: readonly [{
85
+ readonly contract: "SablierFactoryMerkleInstant";
86
+ readonly createMethods: readonly ["createMerkleInstant"];
87
+ readonly version: Version.Airdrops.V2_0;
88
+ }, {
89
+ readonly contract: "SablierMerkleFactory";
90
+ readonly createMethods: readonly ["createMerkleInstant"];
91
+ readonly version: Version.Airdrops.V1_3;
92
+ }];
93
+ export declare const AIRDROP_SOLANA_INSTANT: readonly [{
94
+ readonly createMethods: readonly ["create_campaign"];
95
+ readonly program: "SablierMerkleInstant";
96
+ readonly version: "v0.1";
97
+ }];
98
+ export declare const AIRDROP_EVM_LL: readonly [{
99
+ readonly contract: "SablierFactoryMerkleLL";
100
+ readonly createMethods: readonly ["createMerkleLL"];
101
+ readonly version: Version.Airdrops.V2_0;
102
+ }, {
103
+ readonly contract: "SablierMerkleFactory";
104
+ readonly createMethods: readonly ["createMerkleLL"];
105
+ readonly version: Version.Airdrops.V1_3;
106
+ }, {
107
+ readonly contract: "SablierV2MerkleLockupFactory";
108
+ readonly createMethods: readonly ["createMerkleLL"];
109
+ readonly version: Version.Airdrops.V1_2;
110
+ }, {
111
+ readonly contract: "SablierV2MerkleStreamerFactory";
112
+ readonly createMethods: readonly ["createMerkleStreamerLL"];
113
+ readonly version: Version.Airdrops.V1_1;
114
+ }];
115
+ export declare const AIRDROP_EVM_LL_V2: readonly [{
116
+ readonly contract: "SablierFactoryMerkleLL";
117
+ readonly createMethods: readonly ["createMerkleLL"];
118
+ readonly version: Version.Airdrops.V2_0;
119
+ }];
120
+ export declare const AIRDROP_EVM_LT: readonly [{
121
+ readonly contract: "SablierFactoryMerkleLT";
122
+ readonly createMethods: readonly ["createMerkleLT"];
123
+ readonly version: Version.Airdrops.V2_0;
124
+ }, {
125
+ readonly contract: "SablierMerkleFactory";
126
+ readonly createMethods: readonly ["createMerkleLT"];
127
+ readonly version: Version.Airdrops.V1_3;
128
+ }, {
129
+ readonly contract: "SablierV2MerkleLockupFactory";
130
+ readonly createMethods: readonly ["createMerkleLT"];
131
+ readonly version: Version.Airdrops.V1_2;
132
+ }];
133
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/shapes/constants.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAWzC,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;EAMoB,CAAC;AAG/C,eAAO,MAAM,gBAAgB;;;;;;;;EAGiB,CAAC;AAG/C,eAAO,MAAM,gBAAgB;;;;EAMgB,CAAC;AAU9C,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;EAkBoB,CAAC;AAU/C,eAAO,MAAM,aAAa;;;;;;;;;;;;EAQoB,CAAC;AAO/C,eAAO,MAAM,QAAQ;;;;;;;;;;;;EAgByB,CAAC;AAO/C,eAAO,MAAM,mBAAmB;;;;;;;;EAWc,CAAC;AAG/C,eAAO,MAAM,sBAAsB;;;;EAMU,CAAC;AAG9C,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;EAqBmB,CAAC;AAG/C,eAAO,MAAM,iBAAiB;;;;EAMgB,CAAC;AAG/C,eAAO,MAAM,cAAc;;;;;;;;;;;;EAgBmB,CAAC"}
@@ -0,0 +1,139 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AIRDROP_EVM_LT = exports.AIRDROP_EVM_LL_V2 = exports.AIRDROP_EVM_LL = exports.AIRDROP_SOLANA_INSTANT = exports.AIRDROP_EVM_INSTANT = exports.FLOW_EVM = exports.LOCKUP_EVM_LT = exports.LOCKUP_EVM_LD = exports.LOCKUP_SOLANA_LL = exports.LOCKUP_EVM_LL_V2 = exports.LOCKUP_EVM_LL = void 0;
4
+ const enums_1 = require("../evm/enums");
5
+ const LL_METHODS = ["createWithDurationsLL", "createWithTimestampsLL"];
6
+ const LL_V1_METHODS = ["createWithDurations", "createWithTimestamps"];
7
+ exports.LOCKUP_EVM_LL = [
8
+ { contract: "SablierLockup", createMethods: LL_METHODS, version: enums_1.Version.Lockup.V3_0 },
9
+ { contract: "SablierLockup", createMethods: LL_METHODS, version: enums_1.Version.Lockup.V2_0 },
10
+ { contract: "SablierV2LockupLinear", createMethods: LL_V1_METHODS, version: enums_1.Version.Lockup.V1_2 },
11
+ { contract: "SablierV2LockupLinear", createMethods: LL_V1_METHODS, version: enums_1.Version.Lockup.V1_1 },
12
+ { contract: "SablierV2LockupLinear", createMethods: LL_V1_METHODS, version: enums_1.Version.Lockup.V1_0 },
13
+ ];
14
+ exports.LOCKUP_EVM_LL_V2 = [
15
+ { contract: "SablierLockup", createMethods: LL_METHODS, version: enums_1.Version.Lockup.V3_0 },
16
+ { contract: "SablierLockup", createMethods: LL_METHODS, version: enums_1.Version.Lockup.V2_0 },
17
+ ];
18
+ exports.LOCKUP_SOLANA_LL = [
19
+ {
20
+ createMethods: ["create_with_durations_ll", "create_with_timestamps_ll"],
21
+ program: "SablierLockupLinear",
22
+ version: "v0.1",
23
+ },
24
+ ];
25
+ const LD_METHODS = ["createWithDurationsLD", "createWithTimestampsLD"];
26
+ const LD_V1_METHODS = ["createWithDurations", "createWithTimestamps"];
27
+ exports.LOCKUP_EVM_LD = [
28
+ { contract: "SablierLockup", createMethods: LD_METHODS, version: enums_1.Version.Lockup.V3_0 },
29
+ { contract: "SablierLockup", createMethods: LD_METHODS, version: enums_1.Version.Lockup.V2_0 },
30
+ {
31
+ contract: "SablierV2LockupDynamic",
32
+ createMethods: LD_V1_METHODS,
33
+ version: enums_1.Version.Lockup.V1_2,
34
+ },
35
+ {
36
+ contract: "SablierV2LockupDynamic",
37
+ createMethods: LD_V1_METHODS,
38
+ version: enums_1.Version.Lockup.V1_1,
39
+ },
40
+ {
41
+ contract: "SablierV2LockupDynamic",
42
+ createMethods: LD_V1_METHODS,
43
+ version: enums_1.Version.Lockup.V1_0,
44
+ },
45
+ ];
46
+ const LT_METHODS = ["createWithDurationsLT", "createWithTimestampsLT"];
47
+ const LT_V1_METHODS = ["createWithDurations", "createWithTimestamps"];
48
+ exports.LOCKUP_EVM_LT = [
49
+ { contract: "SablierLockup", createMethods: LT_METHODS, version: enums_1.Version.Lockup.V3_0 },
50
+ { contract: "SablierLockup", createMethods: LT_METHODS, version: enums_1.Version.Lockup.V2_0 },
51
+ {
52
+ contract: "SablierV2LockupTranched",
53
+ createMethods: LT_V1_METHODS,
54
+ version: enums_1.Version.Lockup.V1_2,
55
+ },
56
+ ];
57
+ exports.FLOW_EVM = [
58
+ {
59
+ contract: "SablierFlow",
60
+ createMethods: ["create", "createAndDeposit"],
61
+ version: enums_1.Version.Flow.V2_0,
62
+ },
63
+ {
64
+ contract: "SablierFlow",
65
+ createMethods: ["create", "createAndDeposit"],
66
+ version: enums_1.Version.Flow.V1_1,
67
+ },
68
+ {
69
+ contract: "SablierFlow",
70
+ createMethods: ["create", "createAndDeposit"],
71
+ version: enums_1.Version.Flow.V1_0,
72
+ },
73
+ ];
74
+ exports.AIRDROP_EVM_INSTANT = [
75
+ {
76
+ contract: "SablierFactoryMerkleInstant",
77
+ createMethods: ["createMerkleInstant"],
78
+ version: enums_1.Version.Airdrops.V2_0,
79
+ },
80
+ {
81
+ contract: "SablierMerkleFactory",
82
+ createMethods: ["createMerkleInstant"],
83
+ version: enums_1.Version.Airdrops.V1_3,
84
+ },
85
+ ];
86
+ exports.AIRDROP_SOLANA_INSTANT = [
87
+ {
88
+ createMethods: ["create_campaign"],
89
+ program: "SablierMerkleInstant",
90
+ version: "v0.1",
91
+ },
92
+ ];
93
+ exports.AIRDROP_EVM_LL = [
94
+ {
95
+ contract: "SablierFactoryMerkleLL",
96
+ createMethods: ["createMerkleLL"],
97
+ version: enums_1.Version.Airdrops.V2_0,
98
+ },
99
+ {
100
+ contract: "SablierMerkleFactory",
101
+ createMethods: ["createMerkleLL"],
102
+ version: enums_1.Version.Airdrops.V1_3,
103
+ },
104
+ {
105
+ contract: "SablierV2MerkleLockupFactory",
106
+ createMethods: ["createMerkleLL"],
107
+ version: enums_1.Version.Airdrops.V1_2,
108
+ },
109
+ {
110
+ contract: "SablierV2MerkleStreamerFactory",
111
+ createMethods: ["createMerkleStreamerLL"],
112
+ version: enums_1.Version.Airdrops.V1_1,
113
+ },
114
+ ];
115
+ exports.AIRDROP_EVM_LL_V2 = [
116
+ {
117
+ contract: "SablierFactoryMerkleLL",
118
+ createMethods: ["createMerkleLL"],
119
+ version: enums_1.Version.Airdrops.V2_0,
120
+ },
121
+ ];
122
+ exports.AIRDROP_EVM_LT = [
123
+ {
124
+ contract: "SablierFactoryMerkleLT",
125
+ createMethods: ["createMerkleLT"],
126
+ version: enums_1.Version.Airdrops.V2_0,
127
+ },
128
+ {
129
+ contract: "SablierMerkleFactory",
130
+ createMethods: ["createMerkleLT"],
131
+ version: enums_1.Version.Airdrops.V1_3,
132
+ },
133
+ {
134
+ contract: "SablierV2MerkleLockupFactory",
135
+ createMethods: ["createMerkleLT"],
136
+ version: enums_1.Version.Airdrops.V1_2,
137
+ },
138
+ ];
139
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/shapes/constants.ts"],"names":[],"mappings":";;;AAWA,0CAAyC;AAOzC,MAAM,UAAU,GAAG,CAAC,uBAAuB,EAAE,wBAAwB,CAAU,CAAC;AAChF,MAAM,aAAa,GAAG,CAAC,qBAAqB,EAAE,sBAAsB,CAAU,CAAC;AAGlE,QAAA,aAAa,GAAG;IAC3B,EAAE,QAAQ,EAAE,eAAe,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,eAAO,CAAC,MAAM,CAAC,IAAI,EAAE;IACtF,EAAE,QAAQ,EAAE,eAAe,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,eAAO,CAAC,MAAM,CAAC,IAAI,EAAE;IACtF,EAAE,QAAQ,EAAE,uBAAuB,EAAE,aAAa,EAAE,aAAa,EAAE,OAAO,EAAE,eAAO,CAAC,MAAM,CAAC,IAAI,EAAE;IACjG,EAAE,QAAQ,EAAE,uBAAuB,EAAE,aAAa,EAAE,aAAa,EAAE,OAAO,EAAE,eAAO,CAAC,MAAM,CAAC,IAAI,EAAE;IACjG,EAAE,QAAQ,EAAE,uBAAuB,EAAE,aAAa,EAAE,aAAa,EAAE,OAAO,EAAE,eAAO,CAAC,MAAM,CAAC,IAAI,EAAE;CACrD,CAAC;AAGlC,QAAA,gBAAgB,GAAG;IAC9B,EAAE,QAAQ,EAAE,eAAe,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,eAAO,CAAC,MAAM,CAAC,IAAI,EAAE;IACtF,EAAE,QAAQ,EAAE,eAAe,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,eAAO,CAAC,MAAM,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D;QACE,QAAQ,EAAE,sBAAsB;QAChC,aAAa,EAAE,CAAC,gBAAgB,CAAC;QACjC,OAAO,EAAE,eAAO,CAAC,QAAQ,CAAC,IAAI;KAC/B;IACD;QACE,QAAQ,EAAE,8BAA8B;QACxC,aAAa,EAAE,CAAC,gBAAgB,CAAC;QACjC,OAAO,EAAE,eAAO,CAAC,QAAQ,CAAC,IAAI;KAC/B;IACD;QACE,QAAQ,EAAE,gCAAgC;QAC1C,aAAa,EAAE,CAAC,wBAAwB,CAAC;QACzC,OAAO,EAAE,eAAO,CAAC,QAAQ,CAAC,IAAI;KAC/B;CAC2C,CAAC;AAGlC,QAAA,iBAAiB,GAAG;IAC/B;QACE,QAAQ,EAAE,wBAAwB;QAClC,aAAa,EAAE,CAAC,gBAAgB,CAAC;QACjC,OAAO,EAAE,eAAO,CAAC,QAAQ,CAAC,IAAI;KAC/B;CAC2C,CAAC;AAGlC,QAAA,cAAc,GAAG;IAC5B;QACE,QAAQ,EAAE,wBAAwB;QAClC,aAAa,EAAE,CAAC,gBAAgB,CAAC;QACjC,OAAO,EAAE,eAAO,CAAC,QAAQ,CAAC,IAAI;KAC/B;IACD;QACE,QAAQ,EAAE,sBAAsB;QAChC,aAAa,EAAE,CAAC,gBAAgB,CAAC;QACjC,OAAO,EAAE,eAAO,CAAC,QAAQ,CAAC,IAAI;KAC/B;IACD;QACE,QAAQ,EAAE,8BAA8B;QACxC,aAAa,EAAE,CAAC,gBAAgB,CAAC;QACjC,OAAO,EAAE,eAAO,CAAC,QAAQ,CAAC,IAAI;KAC/B;CAC2C,CAAC"}
@@ -1,7 +1,6 @@
1
1
  import { Shape } from "./enums";
2
- import type { FlowShapeDefinition } from "./types";
3
- export declare const flow: FlowShapeDefinition<Shape.Flow.Flow>;
2
+ export declare const flow: import("./types").FlowShapeDefinition<Shape.Flow>;
4
3
  export declare const flowShapes: {
5
- readonly flow: FlowShapeDefinition<Shape.Flow>;
4
+ readonly flow: import("./types").FlowShapeDefinition<Shape.Flow>;
6
5
  };
7
6
  //# sourceMappingURL=flow.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"flow.d.ts","sourceRoot":"","sources":["../../src/shapes/flow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,KAAK,EAAE,mBAAmB,EAAoB,MAAM,SAAS,CAAC;AAMrE,eAAO,MAAM,IAAI,EAAE,mBAAmB,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAQvB,CAAC;AAGhC,eAAO,MAAM,UAAU;;CAEc,CAAC"}
1
+ {"version":3,"file":"flow.d.ts","sourceRoot":"","sources":["../../src/shapes/flow.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAQhC,eAAO,MAAM,IAAI,mDAIf,CAAC;AAGH,eAAO,MAAM,UAAU;;CAEc,CAAC"}
@@ -1,16 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.flowShapes = exports.flow = void 0;
4
+ const constants_1 = require("./constants");
4
5
  const enums_1 = require("./enums");
5
- exports.flow = {
6
- evm: [
7
- { contract: "SablierFlow", createMethods: ["create", "createAndDeposit"], version: "v2.0" },
8
- { contract: "SablierFlow", createMethods: ["create", "createAndDeposit"], version: "v1.1" },
9
- { contract: "SablierFlow", createMethods: ["create", "createAndDeposit"], version: "v1.0" },
10
- ],
11
- id: enums_1.Shape.Flow.Flow,
6
+ const types_1 = require("./types");
7
+ exports.flow = (0, types_1.defineFlowShape)(enums_1.Shape.Flow.Flow, {
8
+ evm: constants_1.FLOW_EVM,
9
+ isDeprecated: false,
12
10
  name: "Flow",
13
- };
11
+ });
14
12
  exports.flowShapes = {
15
13
  [enums_1.Shape.Flow.Flow]: exports.flow,
16
14
  };
@@ -1 +1 @@
1
- {"version":3,"file":"flow.js","sourceRoot":"","sources":["../../src/shapes/flow.ts"],"names":[],"mappings":";;;AAAA,mCAAgC;AAOnB,QAAA,IAAI,GAAyC;IACxD,GAAG,EAAE;QACH,EAAE,QAAQ,EAAE,aAAa,EAAE,aAAa,EAAE,CAAC,QAAQ,EAAE,kBAAkB,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE;QAC3F,EAAE,QAAQ,EAAE,aAAa,EAAE,aAAa,EAAE,CAAC,QAAQ,EAAE,kBAAkB,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE;QAC3F,EAAE,QAAQ,EAAE,aAAa,EAAE,aAAa,EAAE,CAAC,QAAQ,EAAE,kBAAkB,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE;KAC5F;IACD,EAAE,EAAE,aAAK,CAAC,IAAI,CAAC,IAAI;IACnB,IAAI,EAAE,MAAM;CACiB,CAAC;AAGnB,QAAA,UAAU,GAAG;IACxB,CAAC,aAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,YAAI;CACY,CAAC"}
1
+ {"version":3,"file":"flow.js","sourceRoot":"","sources":["../../src/shapes/flow.ts"],"names":[],"mappings":";;;AAMA,2CAAuC;AACvC,mCAAgC;AAEhC,mCAA0C;AAM7B,QAAA,IAAI,GAAG,IAAA,uBAAe,EAAC,aAAK,CAAC,IAAI,CAAC,IAAI,EAAE;IACnD,GAAG,EAAE,oBAAQ;IACb,YAAY,EAAE,KAAK;IACnB,IAAI,EAAE,MAAM;CACb,CAAC,CAAC;AAGU,QAAA,UAAU,GAAG;IACxB,CAAC,aAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,YAAI;CACY,CAAC"}
@@ -5,7 +5,7 @@ import type { AnyShape, ContractMethod, ProgramMethod, ShapeWithSolanaSupport }
5
5
  export declare const lockupShapeIds: Shape.Lockup[];
6
6
  export declare const flowShapeIds: Shape.Flow.Flow[];
7
7
  export declare const airdropShapeIds: Shape.Airdrops[];
8
- export declare const solanaLockupShapeIds: readonly [Shape.Lockup.Linear, Shape.Lockup.Cliff, Shape.Lockup.LinearUnlockLinear, Shape.Lockup.LinearUnlockCliff];
8
+ export declare const solanaLockupShapeIds: readonly [Shape.Lockup.Linear, Shape.Lockup.Cliff, Shape.Lockup.LinearUnlockLinear, Shape.Lockup.LinearUnlockCliff, Shape.Lockup.LinearTimelock];
9
9
  export declare const solanaAirdropShapeIds: readonly [Shape.Airdrops.Instant];
10
10
  export declare function getEvmShapesByVersion<T extends AnyShape>(shapes: Record<string, T>, version: EVM.Version): T[];
11
11
  export declare function getEvmContractMethodsForVersion(shape: AnyShape, version: EVM.Version): ContractMethod | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/shapes/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,aAAa,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAO/F,eAAO,MAAM,cAAc,gBAA8B,CAAC;AAG1D,eAAO,MAAM,YAAY,mBAA4B,CAAC;AAGtD,eAAO,MAAM,eAAe,kBAAgC,CAAC;AAG7D,eAAO,MAAM,oBAAoB,qHAKvB,CAAC;AAGX,eAAO,MAAM,qBAAqB,mCAAoC,CAAC;AAcvE,wBAAgB,qBAAqB,CAAC,CAAC,SAAS,QAAQ,EACtD,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,EACzB,OAAO,EAAE,GAAG,CAAC,OAAO,GACnB,CAAC,EAAE,CAEL;AAUD,wBAAgB,+BAA+B,CAC7C,KAAK,EAAE,QAAQ,EACf,OAAO,EAAE,GAAG,CAAC,OAAO,GACnB,cAAc,GAAG,SAAS,CAE5B;AASD,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,CAAC,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AAsB,EAC7B,OAAO,EAAE,MAAM,CAAC,OAAO,GACtB,OAAO,CAET;AAUD,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,sBAAsB,GAAG,aAAa,CAKzF;AAYD,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,KAAK,CAAC,MAAM,CAEnE;AAQD,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,KAAK,CAAC,IAAI,CAE/D;AAQD,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,KAAK,CAAC,QAAQ,CAEtE;AAQD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,QAAQ,GAAG,KAAK,IAAI,sBAAsB,CAEjF;AAQD,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,KAAK,CAAC,MAAM,GAClB,KAAK,IAAI,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAEhD;AAQD,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,KAAK,CAAC,QAAQ,GACpB,KAAK,IAAI,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAEjD"}
@@ -24,6 +24,7 @@ exports.solanaLockupShapeIds = [
24
24
  enums_1.Shape.Lockup.Cliff,
25
25
  enums_1.Shape.Lockup.LinearUnlockLinear,
26
26
  enums_1.Shape.Lockup.LinearUnlockCliff,
27
+ enums_1.Shape.Lockup.LinearTimelock,
27
28
  ];
28
29
  exports.solanaAirdropShapeIds = [enums_1.Shape.Airdrops.Instant];
29
30
  function getEvmShapesByVersion(shapes, version) {