sablier 3.1.0 → 3.3.0

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 (54) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/csv/evm/common.schema.json +5 -0
  3. package/csv/evm/lockup/duration/linearStepper.csv +3 -0
  4. package/csv/evm/lockup/duration/linearStepper.schema.json +22 -0
  5. package/csv/evm/lockup/range/linearStepper.csv +3 -0
  6. package/csv/evm/lockup/range/linearStepper.schema.json +25 -0
  7. package/dist/cjs/evm/csv/lockup/duration/index.js.map +1 -1
  8. package/dist/cjs/evm/csv/lockup/range/index.js.map +1 -1
  9. package/dist/cjs/shapes/airdrops.js +17 -10
  10. package/dist/cjs/shapes/airdrops.js.map +1 -1
  11. package/dist/cjs/shapes/{constants.js → contracts.js} +17 -10
  12. package/dist/cjs/shapes/contracts.js.map +1 -0
  13. package/dist/cjs/shapes/enums.js +1 -0
  14. package/dist/cjs/shapes/enums.js.map +1 -1
  15. package/dist/cjs/shapes/flow.js +2 -2
  16. package/dist/cjs/shapes/flow.js.map +1 -1
  17. package/dist/cjs/shapes/lockup/dynamic.js +9 -9
  18. package/dist/cjs/shapes/lockup/dynamic.js.map +1 -1
  19. package/dist/cjs/shapes/lockup/linear.js +12 -12
  20. package/dist/cjs/shapes/lockup/linear.js.map +1 -1
  21. package/dist/cjs/shapes/lockup/tranched.js +5 -5
  22. package/dist/cjs/shapes/lockup/tranched.js.map +1 -1
  23. package/dist/esm/evm/csv/lockup/duration/index.js.map +1 -1
  24. package/dist/esm/evm/csv/lockup/range/index.js.map +1 -1
  25. package/dist/esm/shapes/airdrops.js +17 -10
  26. package/dist/esm/shapes/airdrops.js.map +1 -1
  27. package/dist/esm/shapes/{constants.js → contracts.js} +16 -9
  28. package/dist/esm/shapes/contracts.js.map +1 -0
  29. package/dist/esm/shapes/enums.js +1 -0
  30. package/dist/esm/shapes/enums.js.map +1 -1
  31. package/dist/esm/shapes/flow.js +1 -1
  32. package/dist/esm/shapes/flow.js.map +1 -1
  33. package/dist/esm/shapes/lockup/dynamic.js +1 -1
  34. package/dist/esm/shapes/lockup/dynamic.js.map +1 -1
  35. package/dist/esm/shapes/lockup/linear.js +5 -5
  36. package/dist/esm/shapes/lockup/linear.js.map +1 -1
  37. package/dist/esm/shapes/lockup/tranched.js +1 -1
  38. package/dist/esm/shapes/lockup/tranched.js.map +1 -1
  39. package/dist/types/evm/csv/lockup/duration/index.d.ts +4 -1
  40. package/dist/types/evm/csv/lockup/duration/index.d.ts.map +1 -1
  41. package/dist/types/evm/csv/lockup/range/index.d.ts +4 -1
  42. package/dist/types/evm/csv/lockup/range/index.d.ts.map +1 -1
  43. package/dist/types/shapes/airdrops.d.ts +1 -0
  44. package/dist/types/shapes/airdrops.d.ts.map +1 -1
  45. package/dist/types/shapes/{constants.d.ts → contracts.d.ts} +14 -9
  46. package/dist/types/shapes/contracts.d.ts.map +1 -0
  47. package/dist/types/shapes/enums.d.ts +1 -0
  48. package/dist/types/shapes/enums.d.ts.map +1 -1
  49. package/dist/types/shapes/index.d.ts +1 -0
  50. package/dist/types/shapes/index.d.ts.map +1 -1
  51. package/package.json +1 -1
  52. package/dist/cjs/shapes/constants.js.map +0 -1
  53. package/dist/esm/shapes/constants.js.map +0 -1
  54. package/dist/types/shapes/constants.d.ts.map +0 -1
@@ -24,7 +24,7 @@ export declare const LOCKUP_EVM_LL: readonly [{
24
24
  readonly createMethods: readonly ["createWithDurations", "createWithTimestamps"];
25
25
  readonly version: Version.Lockup.V1_0;
26
26
  }];
27
- export declare const LOCKUP_EVM_LL_V2: readonly [{
27
+ export declare const LOCKUP_V2_EVM_LL: readonly [{
28
28
  readonly contract: "SablierLockup";
29
29
  readonly createMethods: readonly ["createWithDurationsLL", "createWithTimestampsLL"];
30
30
  readonly version: Version.Lockup.V4_0;
@@ -37,7 +37,7 @@ export declare const LOCKUP_EVM_LL_V2: readonly [{
37
37
  readonly createMethods: readonly ["createWithDurationsLL", "createWithTimestampsLL"];
38
38
  readonly version: Version.Lockup.V2_0;
39
39
  }];
40
- export declare const LOCKUP_EVM_LL_V4: readonly [{
40
+ export declare const LOCKUP_V4_EVM_LL: readonly [{
41
41
  readonly contract: "SablierLockup";
42
42
  readonly createMethods: readonly ["createWithDurationsLL", "createWithTimestampsLL"];
43
43
  readonly version: Version.Lockup.V4_0;
@@ -106,7 +106,7 @@ export declare const FLOW_EVM: readonly [{
106
106
  readonly createMethods: readonly ["create", "createAndDeposit"];
107
107
  readonly version: Version.Flow.V1_0;
108
108
  }];
109
- export declare const AIRDROP_EVM_INSTANT: readonly [{
109
+ export declare const AIRDROPS_EVM_INSTANT: readonly [{
110
110
  readonly contract: "SablierFactoryMerkleInstant";
111
111
  readonly createMethods: readonly ["createMerkleInstant"];
112
112
  readonly version: Version.Airdrops.V3_0;
@@ -119,12 +119,12 @@ export declare const AIRDROP_EVM_INSTANT: readonly [{
119
119
  readonly createMethods: readonly ["createMerkleInstant"];
120
120
  readonly version: Version.Airdrops.V1_3;
121
121
  }];
122
- export declare const AIRDROP_SOLANA_INSTANT: readonly [{
122
+ export declare const AIRDROPS_SOLANA_INSTANT: readonly [{
123
123
  readonly createMethods: readonly ["create_campaign"];
124
124
  readonly program: "SablierMerkleInstant";
125
125
  readonly version: "v0.1";
126
126
  }];
127
- export declare const AIRDROP_EVM_LL: readonly [{
127
+ export declare const AIRDROPS_EVM_LL: readonly [{
128
128
  readonly contract: "SablierFactoryMerkleLL";
129
129
  readonly createMethods: readonly ["createMerkleLL"];
130
130
  readonly version: Version.Airdrops.V3_0;
@@ -145,7 +145,12 @@ export declare const AIRDROP_EVM_LL: readonly [{
145
145
  readonly createMethods: readonly ["createMerkleStreamerLL"];
146
146
  readonly version: Version.Airdrops.V1_1;
147
147
  }];
148
- export declare const AIRDROP_EVM_LL_V2: readonly [{
148
+ export declare const AIRDROPS_V3_EVM_LL: readonly [{
149
+ readonly contract: "SablierFactoryMerkleLL";
150
+ readonly createMethods: readonly ["createMerkleLL"];
151
+ readonly version: Version.Airdrops.V3_0;
152
+ }];
153
+ export declare const AIRDROPS_V2_EVM_LL: readonly [{
149
154
  readonly contract: "SablierFactoryMerkleLL";
150
155
  readonly createMethods: readonly ["createMerkleLL"];
151
156
  readonly version: Version.Airdrops.V3_0;
@@ -154,7 +159,7 @@ export declare const AIRDROP_EVM_LL_V2: readonly [{
154
159
  readonly createMethods: readonly ["createMerkleLL"];
155
160
  readonly version: Version.Airdrops.V2_0;
156
161
  }];
157
- export declare const AIRDROP_EVM_VCA: readonly [{
162
+ export declare const AIRDROPS_EVM_VCA: readonly [{
158
163
  readonly contract: "SablierFactoryMerkleVCA";
159
164
  readonly createMethods: readonly ["createMerkleVCA"];
160
165
  readonly version: Version.Airdrops.V3_0;
@@ -163,7 +168,7 @@ export declare const AIRDROP_EVM_VCA: readonly [{
163
168
  readonly createMethods: readonly ["createMerkleVCA"];
164
169
  readonly version: Version.Airdrops.V2_0;
165
170
  }];
166
- export declare const AIRDROP_EVM_LT: readonly [{
171
+ export declare const AIRDROPS_EVM_LT: readonly [{
167
172
  readonly contract: "SablierFactoryMerkleLT";
168
173
  readonly createMethods: readonly ["createMerkleLT"];
169
174
  readonly version: Version.Airdrops.V3_0;
@@ -180,4 +185,4 @@ export declare const AIRDROP_EVM_LT: readonly [{
180
185
  readonly createMethods: readonly ["createMerkleLT"];
181
186
  readonly version: Version.Airdrops.V1_2;
182
187
  }];
183
- //# sourceMappingURL=constants.d.ts.map
188
+ //# sourceMappingURL=contracts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../../../src/shapes/contracts.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAW7C,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;EAOoB,CAAC;AAG/C,eAAO,MAAM,gBAAgB;;;;;;;;;;;;EAIiB,CAAC;AAG/C,eAAO,MAAM,gBAAgB;;;;EAEiB,CAAC;AAG/C,eAAO,MAAM,gBAAgB;;;;EAMgB,CAAC;AAU9C,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;EAmBoB,CAAC;AAU/C,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;EASoB,CAAC;AAO/C,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;EAqByB,CAAC;AAO/C,eAAO,MAAM,oBAAoB;;;;;;;;;;;;EAgBa,CAAC;AAG/C,eAAO,MAAM,uBAAuB;;;;EAMS,CAAC;AAG9C,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;EA0BkB,CAAC;AAG/C,eAAO,MAAM,kBAAkB;;;;EAMe,CAAC;AAG/C,eAAO,MAAM,kBAAkB;;;;;;;;EAWe,CAAC;AAG/C,eAAO,MAAM,gBAAgB;;;;;;;;EAWiB,CAAC;AAG/C,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;EAqBkB,CAAC"}
@@ -28,6 +28,7 @@ export declare namespace Shape {
28
28
  Cliff = "cliff",
29
29
  LinearUnlockLinear = "linearUnlockLinear",
30
30
  LinearUnlockCliff = "linearUnlockCliff",
31
+ LinearStepper = "linearStepper",
31
32
  TranchedStepper = "tranchedStepper",
32
33
  VariableClaimAmount = "variableClaimAmount"
33
34
  }
@@ -1 +1 @@
1
- {"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../src/shapes/enums.ts"],"names":[],"mappings":"AAAA,yBAAiB,KAAK,CAAC;IACrB,KAAY,MAAM;QAChB,MAAM,WAAW;QACjB,KAAK,UAAU;QACf,uBAAuB,4BAA4B;QACnD,kBAAkB,uBAAuB;QACzC,oBAAoB,yBAAyB;QAC7C,eAAe,oBAAoB;QACnC,eAAe,oBAAoB;QACnC,gBAAgB,qBAAqB;QACrC,kBAAkB,uBAAuB;QACzC,iBAAiB,sBAAsB;QACvC,aAAa,kBAAkB;QAC/B,cAAc,mBAAmB;QACjC,eAAe,oBAAoB;QACnC,cAAc,mBAAmB;QACjC,cAAc,mBAAmB;QACjC,kBAAkB,uBAAuB;QACzC,mBAAmB,wBAAwB;QAC3C,mBAAmB,wBAAwB;KAC5C;IAED,KAAY,IAAI;QACd,IAAI,SAAS;KACd;IAED,KAAY,QAAQ;QAClB,OAAO,YAAY;QACnB,MAAM,WAAW;QACjB,KAAK,UAAU;QACf,kBAAkB,uBAAuB;QACzC,iBAAiB,sBAAsB;QACvC,eAAe,oBAAoB;QACnC,mBAAmB,wBAAwB;KAC5C;CACF"}
1
+ {"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../src/shapes/enums.ts"],"names":[],"mappings":"AAAA,yBAAiB,KAAK,CAAC;IACrB,KAAY,MAAM;QAChB,MAAM,WAAW;QACjB,KAAK,UAAU;QACf,uBAAuB,4BAA4B;QACnD,kBAAkB,uBAAuB;QACzC,oBAAoB,yBAAyB;QAC7C,eAAe,oBAAoB;QACnC,eAAe,oBAAoB;QACnC,gBAAgB,qBAAqB;QACrC,kBAAkB,uBAAuB;QACzC,iBAAiB,sBAAsB;QACvC,aAAa,kBAAkB;QAC/B,cAAc,mBAAmB;QACjC,eAAe,oBAAoB;QACnC,cAAc,mBAAmB;QACjC,cAAc,mBAAmB;QACjC,kBAAkB,uBAAuB;QACzC,mBAAmB,wBAAwB;QAC3C,mBAAmB,wBAAwB;KAC5C;IAED,KAAY,IAAI;QACd,IAAI,SAAS;KACd;IAED,KAAY,QAAQ;QAClB,OAAO,YAAY;QACnB,MAAM,WAAW;QACjB,KAAK,UAAU;QACf,kBAAkB,uBAAuB;QACzC,iBAAiB,sBAAsB;QACvC,aAAa,kBAAkB;QAC/B,eAAe,oBAAoB;QACnC,mBAAmB,wBAAwB;KAC5C;CACF"}
@@ -9,6 +9,7 @@ export declare const shapes: {
9
9
  cliff: import("./types.js").AirdropShapeDefinition<import("./enums.js").Shape.Airdrops.Cliff>;
10
10
  instant: import("./types.js").AirdropShapeDefinition<import("./enums.js").Shape.Airdrops.Instant>;
11
11
  linear: import("./types.js").AirdropShapeDefinition<import("./enums.js").Shape.Airdrops.Linear>;
12
+ linearStepper: import("./types.js").AirdropShapeDefinition<import("./enums.js").Shape.Airdrops.LinearStepper>;
12
13
  linearUnlockCliff: import("./types.js").AirdropShapeDefinition<import("./enums.js").Shape.Airdrops.LinearUnlockCliff>;
13
14
  linearUnlockLinear: import("./types.js").AirdropShapeDefinition<import("./enums.js").Shape.Airdrops.LinearUnlockLinear>;
14
15
  tranchedStepper: import("./types.js").AirdropShapeDefinition<import("./enums.js").Shape.Airdrops.TranchedStepper>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shapes/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC7C,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,cAAc,YAAY,CAAC;AAG3B,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIlB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shapes/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC7C,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,cAAc,YAAY,CAAC;AAG3B,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIlB,CAAC"}
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "sideEffects": false,
8
8
  "types": "./dist/types/index.d.ts",
9
9
  "typings": "./dist/types/index.d.ts",
10
- "version": "3.1.0",
10
+ "version": "3.3.0",
11
11
  "type": "module",
12
12
  "author": {
13
13
  "name": "Sablier Labs Ltd",
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/shapes/constants.ts"],"names":[],"mappings":";;;AAWA,iDAA6C;AAO7C,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,kBAAO,CAAC,MAAM,CAAC,IAAI,EAAE;IACtF,EAAE,QAAQ,EAAE,eAAe,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,kBAAO,CAAC,MAAM,CAAC,IAAI,EAAE;IACtF,EAAE,QAAQ,EAAE,eAAe,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,kBAAO,CAAC,MAAM,CAAC,IAAI,EAAE;IACtF,EAAE,QAAQ,EAAE,uBAAuB,EAAE,aAAa,EAAE,aAAa,EAAE,OAAO,EAAE,kBAAO,CAAC,MAAM,CAAC,IAAI,EAAE;IACjG,EAAE,QAAQ,EAAE,uBAAuB,EAAE,aAAa,EAAE,aAAa,EAAE,OAAO,EAAE,kBAAO,CAAC,MAAM,CAAC,IAAI,EAAE;IACjG,EAAE,QAAQ,EAAE,uBAAuB,EAAE,aAAa,EAAE,aAAa,EAAE,OAAO,EAAE,kBAAO,CAAC,MAAM,CAAC,IAAI,EAAE;CACrD,CAAC;AAGlC,QAAA,gBAAgB,GAAG;IAC9B,EAAE,QAAQ,EAAE,eAAe,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,kBAAO,CAAC,MAAM,CAAC,IAAI,EAAE;IACtF,EAAE,QAAQ,EAAE,eAAe,EAAE,aAAa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;KAC/B;CAC2C,CAAC","sourcesContent":["/**\n * Shared EVM and Solana contract configurations for shape definitions.\n *\n * These constants eliminate code duplication across shape files by providing\n * reusable contract/method mappings organized by lockup type (LL, LD, LT).\n *\n * @remarks\n * Arrays are marked `as const` for type safety. Consumers should treat them\n * as read-only - do not mutate `shape.evm` or `createMethods` arrays.\n */\n\nimport { Version } from \"@/src/evm/enums.js\";\nimport type { ContractMethod, ProgramMethod } from \"./types.js\";\n\n/* -------------------------------------------------------------------------- */\n/* LOCKUP LINEAR (LL) CONTRACTS */\n/* -------------------------------------------------------------------------- */\n\nconst LL_METHODS = [\"createWithDurationsLL\", \"createWithTimestampsLL\"] as const;\nconst LL_V1_METHODS = [\"createWithDurations\", \"createWithTimestamps\"] as const;\n\n/** Lockup Linear contracts - full version history */\nexport const LOCKUP_EVM_LL = [\n { contract: \"SablierLockup\", createMethods: LL_METHODS, version: Version.Lockup.V4_0 },\n { contract: \"SablierLockup\", createMethods: LL_METHODS, version: Version.Lockup.V3_0 },\n { contract: \"SablierLockup\", createMethods: LL_METHODS, version: Version.Lockup.V2_0 },\n { contract: \"SablierV2LockupLinear\", createMethods: LL_V1_METHODS, version: Version.Lockup.V1_2 },\n { contract: \"SablierV2LockupLinear\", createMethods: LL_V1_METHODS, version: Version.Lockup.V1_1 },\n { contract: \"SablierV2LockupLinear\", createMethods: LL_V1_METHODS, version: Version.Lockup.V1_0 },\n] as const satisfies readonly ContractMethod[];\n\n/** Lockup Linear contracts - v2.0+ only */\nexport const LOCKUP_EVM_LL_V2 = [\n { contract: \"SablierLockup\", createMethods: LL_METHODS, version: Version.Lockup.V4_0 },\n { contract: \"SablierLockup\", createMethods: LL_METHODS, version: Version.Lockup.V3_0 },\n { contract: \"SablierLockup\", createMethods: LL_METHODS, version: Version.Lockup.V2_0 },\n] as const satisfies readonly ContractMethod[];\n\n/** Lockup Linear contracts - v4.0+ only (granularity feature) */\nexport const LOCKUP_EVM_LL_V4 = [\n { contract: \"SablierLockup\", createMethods: LL_METHODS, version: Version.Lockup.V4_0 },\n] as const satisfies readonly ContractMethod[];\n\n/** Solana Lockup Linear program */\nexport const LOCKUP_SOLANA_LL = [\n {\n createMethods: [\"create_with_durations_ll\", \"create_with_timestamps_ll\"],\n program: \"SablierLockupLinear\",\n version: \"v0.1\",\n },\n] as const satisfies readonly ProgramMethod[];\n\n/* -------------------------------------------------------------------------- */\n/* LOCKUP DYNAMIC (LD) CONTRACTS */\n/* -------------------------------------------------------------------------- */\n\nconst LD_METHODS = [\"createWithDurationsLD\", \"createWithTimestampsLD\"] as const;\nconst LD_V1_METHODS = [\"createWithDurations\", \"createWithTimestamps\"] as const;\n\n/** Lockup Dynamic contracts - full version history */\nexport const LOCKUP_EVM_LD = [\n { contract: \"SablierLockup\", createMethods: LD_METHODS, version: Version.Lockup.V4_0 },\n { contract: \"SablierLockup\", createMethods: LD_METHODS, version: Version.Lockup.V3_0 },\n { contract: \"SablierLockup\", createMethods: LD_METHODS, version: Version.Lockup.V2_0 },\n {\n contract: \"SablierV2LockupDynamic\",\n createMethods: LD_V1_METHODS,\n version: Version.Lockup.V1_2,\n },\n {\n contract: \"SablierV2LockupDynamic\",\n createMethods: LD_V1_METHODS,\n version: Version.Lockup.V1_1,\n },\n {\n contract: \"SablierV2LockupDynamic\",\n createMethods: LD_V1_METHODS,\n version: Version.Lockup.V1_0,\n },\n] as const satisfies readonly ContractMethod[];\n\n/* -------------------------------------------------------------------------- */\n/* LOCKUP TRANCHED (LT) CONTRACTS */\n/* -------------------------------------------------------------------------- */\n\nconst LT_METHODS = [\"createWithDurationsLT\", \"createWithTimestampsLT\"] as const;\nconst LT_V1_METHODS = [\"createWithDurations\", \"createWithTimestamps\"] as const;\n\n/** Lockup Tranched contracts - v1.2+ only (LT introduced in v1.2) */\nexport const LOCKUP_EVM_LT = [\n { contract: \"SablierLockup\", createMethods: LT_METHODS, version: Version.Lockup.V4_0 },\n { contract: \"SablierLockup\", createMethods: LT_METHODS, version: Version.Lockup.V3_0 },\n { contract: \"SablierLockup\", createMethods: LT_METHODS, version: Version.Lockup.V2_0 },\n {\n contract: \"SablierV2LockupTranched\",\n createMethods: LT_V1_METHODS,\n version: Version.Lockup.V1_2,\n },\n] as const satisfies readonly ContractMethod[];\n\n/* -------------------------------------------------------------------------- */\n/* FLOW CONTRACTS */\n/* -------------------------------------------------------------------------- */\n\n/** Flow contracts - v1.0 through v3.0 */\nexport const FLOW_EVM = [\n {\n contract: \"SablierFlow\",\n createMethods: [\"create\", \"createAndDeposit\"],\n version: Version.Flow.V3_0,\n },\n {\n contract: \"SablierFlow\",\n createMethods: [\"create\", \"createAndDeposit\"],\n version: Version.Flow.V2_0,\n },\n {\n contract: \"SablierFlow\",\n createMethods: [\"create\", \"createAndDeposit\"],\n version: Version.Flow.V1_1,\n },\n {\n contract: \"SablierFlow\",\n createMethods: [\"create\", \"createAndDeposit\"],\n version: Version.Flow.V1_0,\n },\n] as const satisfies readonly ContractMethod[];\n\n/* -------------------------------------------------------------------------- */\n/* AIRDROP CONTRACTS */\n/* -------------------------------------------------------------------------- */\n\n/** Airdrop Instant factory contracts - v1.3+ */\nexport const AIRDROP_EVM_INSTANT = [\n {\n contract: \"SablierFactoryMerkleInstant\",\n createMethods: [\"createMerkleInstant\"],\n version: Version.Airdrops.V3_0,\n },\n {\n contract: \"SablierFactoryMerkleInstant\",\n createMethods: [\"createMerkleInstant\"],\n version: Version.Airdrops.V2_0,\n },\n {\n contract: \"SablierMerkleFactory\",\n createMethods: [\"createMerkleInstant\"],\n version: Version.Airdrops.V1_3,\n },\n] as const satisfies readonly ContractMethod[];\n\n/** Solana Airdrop Instant program */\nexport const AIRDROP_SOLANA_INSTANT = [\n {\n createMethods: [\"create_campaign\"],\n program: \"SablierMerkleInstant\",\n version: \"v0.1\",\n },\n] as const satisfies readonly ProgramMethod[];\n\n/** Airdrop Linear (LL) factory contracts - full history */\nexport const AIRDROP_EVM_LL = [\n {\n contract: \"SablierFactoryMerkleLL\",\n createMethods: [\"createMerkleLL\"],\n version: Version.Airdrops.V3_0,\n },\n {\n contract: \"SablierFactoryMerkleLL\",\n createMethods: [\"createMerkleLL\"],\n version: Version.Airdrops.V2_0,\n },\n {\n contract: \"SablierMerkleFactory\",\n createMethods: [\"createMerkleLL\"],\n version: Version.Airdrops.V1_3,\n },\n {\n contract: \"SablierV2MerkleLockupFactory\",\n createMethods: [\"createMerkleLL\"],\n version: Version.Airdrops.V1_2,\n },\n {\n contract: \"SablierV2MerkleStreamerFactory\",\n createMethods: [\"createMerkleStreamerLL\"],\n version: Version.Airdrops.V1_1,\n },\n] as const satisfies readonly ContractMethod[];\n\n/** Airdrop Linear (LL) factory contracts - v2.0+ only */\nexport const AIRDROP_EVM_LL_V2 = [\n {\n contract: \"SablierFactoryMerkleLL\",\n createMethods: [\"createMerkleLL\"],\n version: Version.Airdrops.V3_0,\n },\n {\n contract: \"SablierFactoryMerkleLL\",\n createMethods: [\"createMerkleLL\"],\n version: Version.Airdrops.V2_0,\n },\n] as const satisfies readonly ContractMethod[];\n\n/** Airdrop VCA factory contracts - v2.0+ */\nexport const AIRDROP_EVM_VCA = [\n {\n contract: \"SablierFactoryMerkleVCA\",\n createMethods: [\"createMerkleVCA\"],\n version: Version.Airdrops.V3_0,\n },\n {\n contract: \"SablierFactoryMerkleVCA\",\n createMethods: [\"createMerkleVCA\"],\n version: Version.Airdrops.V2_0,\n },\n] as const satisfies readonly ContractMethod[];\n\n/** Airdrop Tranched (LT) factory contracts - v1.2+ */\nexport const AIRDROP_EVM_LT = [\n {\n contract: \"SablierFactoryMerkleLT\",\n createMethods: [\"createMerkleLT\"],\n version: Version.Airdrops.V3_0,\n },\n {\n contract: \"SablierFactoryMerkleLT\",\n createMethods: [\"createMerkleLT\"],\n version: Version.Airdrops.V2_0,\n },\n {\n contract: \"SablierMerkleFactory\",\n createMethods: [\"createMerkleLT\"],\n version: Version.Airdrops.V1_3,\n },\n {\n contract: \"SablierV2MerkleLockupFactory\",\n createMethods: [\"createMerkleLT\"],\n version: Version.Airdrops.V1_2,\n },\n] as const satisfies readonly ContractMethod[];\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/shapes/constants.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAO7C,MAAM,UAAU,GAAG,CAAC,uBAAuB,EAAE,wBAAwB,CAAU,CAAC;AAChF,MAAM,aAAa,GAAG,CAAC,qBAAqB,EAAE,sBAAsB,CAAU,CAAC;AAG/E,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,EAAE,QAAQ,EAAE,eAAe,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE;IACtF,EAAE,QAAQ,EAAE,eAAe,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE;IACtF,EAAE,QAAQ,EAAE,eAAe,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE;IACtF,EAAE,QAAQ,EAAE,uBAAuB,EAAE,aAAa,EAAE,aAAa,EAAE,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE;IACjG,EAAE,QAAQ,EAAE,uBAAuB,EAAE,aAAa,EAAE,aAAa,EAAE,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE;IACjG,EAAE,QAAQ,EAAE,uBAAuB,EAAE,aAAa,EAAE,aAAa,EAAE,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE;CACrD,CAAC;AAG/C,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,EAAE,QAAQ,EAAE,eAAe,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE;IACtF,EAAE,QAAQ,EAAE,eAAe,EAAE,aAAa,EA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B;QACxC,aAAa,EAAE,CAAC,gBAAgB,CAAC;QACjC,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI;KAC/B;CAC2C,CAAC","sourcesContent":["/**\n * Shared EVM and Solana contract configurations for shape definitions.\n *\n * These constants eliminate code duplication across shape files by providing\n * reusable contract/method mappings organized by lockup type (LL, LD, LT).\n *\n * @remarks\n * Arrays are marked `as const` for type safety. Consumers should treat them\n * as read-only - do not mutate `shape.evm` or `createMethods` arrays.\n */\n\nimport { Version } from \"@/src/evm/enums.js\";\nimport type { ContractMethod, ProgramMethod } from \"./types.js\";\n\n/* -------------------------------------------------------------------------- */\n/* LOCKUP LINEAR (LL) CONTRACTS */\n/* -------------------------------------------------------------------------- */\n\nconst LL_METHODS = [\"createWithDurationsLL\", \"createWithTimestampsLL\"] as const;\nconst LL_V1_METHODS = [\"createWithDurations\", \"createWithTimestamps\"] as const;\n\n/** Lockup Linear contracts - full version history */\nexport const LOCKUP_EVM_LL = [\n { contract: \"SablierLockup\", createMethods: LL_METHODS, version: Version.Lockup.V4_0 },\n { contract: \"SablierLockup\", createMethods: LL_METHODS, version: Version.Lockup.V3_0 },\n { contract: \"SablierLockup\", createMethods: LL_METHODS, version: Version.Lockup.V2_0 },\n { contract: \"SablierV2LockupLinear\", createMethods: LL_V1_METHODS, version: Version.Lockup.V1_2 },\n { contract: \"SablierV2LockupLinear\", createMethods: LL_V1_METHODS, version: Version.Lockup.V1_1 },\n { contract: \"SablierV2LockupLinear\", createMethods: LL_V1_METHODS, version: Version.Lockup.V1_0 },\n] as const satisfies readonly ContractMethod[];\n\n/** Lockup Linear contracts - v2.0+ only */\nexport const LOCKUP_EVM_LL_V2 = [\n { contract: \"SablierLockup\", createMethods: LL_METHODS, version: Version.Lockup.V4_0 },\n { contract: \"SablierLockup\", createMethods: LL_METHODS, version: Version.Lockup.V3_0 },\n { contract: \"SablierLockup\", createMethods: LL_METHODS, version: Version.Lockup.V2_0 },\n] as const satisfies readonly ContractMethod[];\n\n/** Lockup Linear contracts - v4.0+ only (granularity feature) */\nexport const LOCKUP_EVM_LL_V4 = [\n { contract: \"SablierLockup\", createMethods: LL_METHODS, version: Version.Lockup.V4_0 },\n] as const satisfies readonly ContractMethod[];\n\n/** Solana Lockup Linear program */\nexport const LOCKUP_SOLANA_LL = [\n {\n createMethods: [\"create_with_durations_ll\", \"create_with_timestamps_ll\"],\n program: \"SablierLockupLinear\",\n version: \"v0.1\",\n },\n] as const satisfies readonly ProgramMethod[];\n\n/* -------------------------------------------------------------------------- */\n/* LOCKUP DYNAMIC (LD) CONTRACTS */\n/* -------------------------------------------------------------------------- */\n\nconst LD_METHODS = [\"createWithDurationsLD\", \"createWithTimestampsLD\"] as const;\nconst LD_V1_METHODS = [\"createWithDurations\", \"createWithTimestamps\"] as const;\n\n/** Lockup Dynamic contracts - full version history */\nexport const LOCKUP_EVM_LD = [\n { contract: \"SablierLockup\", createMethods: LD_METHODS, version: Version.Lockup.V4_0 },\n { contract: \"SablierLockup\", createMethods: LD_METHODS, version: Version.Lockup.V3_0 },\n { contract: \"SablierLockup\", createMethods: LD_METHODS, version: Version.Lockup.V2_0 },\n {\n contract: \"SablierV2LockupDynamic\",\n createMethods: LD_V1_METHODS,\n version: Version.Lockup.V1_2,\n },\n {\n contract: \"SablierV2LockupDynamic\",\n createMethods: LD_V1_METHODS,\n version: Version.Lockup.V1_1,\n },\n {\n contract: \"SablierV2LockupDynamic\",\n createMethods: LD_V1_METHODS,\n version: Version.Lockup.V1_0,\n },\n] as const satisfies readonly ContractMethod[];\n\n/* -------------------------------------------------------------------------- */\n/* LOCKUP TRANCHED (LT) CONTRACTS */\n/* -------------------------------------------------------------------------- */\n\nconst LT_METHODS = [\"createWithDurationsLT\", \"createWithTimestampsLT\"] as const;\nconst LT_V1_METHODS = [\"createWithDurations\", \"createWithTimestamps\"] as const;\n\n/** Lockup Tranched contracts - v1.2+ only (LT introduced in v1.2) */\nexport const LOCKUP_EVM_LT = [\n { contract: \"SablierLockup\", createMethods: LT_METHODS, version: Version.Lockup.V4_0 },\n { contract: \"SablierLockup\", createMethods: LT_METHODS, version: Version.Lockup.V3_0 },\n { contract: \"SablierLockup\", createMethods: LT_METHODS, version: Version.Lockup.V2_0 },\n {\n contract: \"SablierV2LockupTranched\",\n createMethods: LT_V1_METHODS,\n version: Version.Lockup.V1_2,\n },\n] as const satisfies readonly ContractMethod[];\n\n/* -------------------------------------------------------------------------- */\n/* FLOW CONTRACTS */\n/* -------------------------------------------------------------------------- */\n\n/** Flow contracts - v1.0 through v3.0 */\nexport const FLOW_EVM = [\n {\n contract: \"SablierFlow\",\n createMethods: [\"create\", \"createAndDeposit\"],\n version: Version.Flow.V3_0,\n },\n {\n contract: \"SablierFlow\",\n createMethods: [\"create\", \"createAndDeposit\"],\n version: Version.Flow.V2_0,\n },\n {\n contract: \"SablierFlow\",\n createMethods: [\"create\", \"createAndDeposit\"],\n version: Version.Flow.V1_1,\n },\n {\n contract: \"SablierFlow\",\n createMethods: [\"create\", \"createAndDeposit\"],\n version: Version.Flow.V1_0,\n },\n] as const satisfies readonly ContractMethod[];\n\n/* -------------------------------------------------------------------------- */\n/* AIRDROP CONTRACTS */\n/* -------------------------------------------------------------------------- */\n\n/** Airdrop Instant factory contracts - v1.3+ */\nexport const AIRDROP_EVM_INSTANT = [\n {\n contract: \"SablierFactoryMerkleInstant\",\n createMethods: [\"createMerkleInstant\"],\n version: Version.Airdrops.V3_0,\n },\n {\n contract: \"SablierFactoryMerkleInstant\",\n createMethods: [\"createMerkleInstant\"],\n version: Version.Airdrops.V2_0,\n },\n {\n contract: \"SablierMerkleFactory\",\n createMethods: [\"createMerkleInstant\"],\n version: Version.Airdrops.V1_3,\n },\n] as const satisfies readonly ContractMethod[];\n\n/** Solana Airdrop Instant program */\nexport const AIRDROP_SOLANA_INSTANT = [\n {\n createMethods: [\"create_campaign\"],\n program: \"SablierMerkleInstant\",\n version: \"v0.1\",\n },\n] as const satisfies readonly ProgramMethod[];\n\n/** Airdrop Linear (LL) factory contracts - full history */\nexport const AIRDROP_EVM_LL = [\n {\n contract: \"SablierFactoryMerkleLL\",\n createMethods: [\"createMerkleLL\"],\n version: Version.Airdrops.V3_0,\n },\n {\n contract: \"SablierFactoryMerkleLL\",\n createMethods: [\"createMerkleLL\"],\n version: Version.Airdrops.V2_0,\n },\n {\n contract: \"SablierMerkleFactory\",\n createMethods: [\"createMerkleLL\"],\n version: Version.Airdrops.V1_3,\n },\n {\n contract: \"SablierV2MerkleLockupFactory\",\n createMethods: [\"createMerkleLL\"],\n version: Version.Airdrops.V1_2,\n },\n {\n contract: \"SablierV2MerkleStreamerFactory\",\n createMethods: [\"createMerkleStreamerLL\"],\n version: Version.Airdrops.V1_1,\n },\n] as const satisfies readonly ContractMethod[];\n\n/** Airdrop Linear (LL) factory contracts - v2.0+ only */\nexport const AIRDROP_EVM_LL_V2 = [\n {\n contract: \"SablierFactoryMerkleLL\",\n createMethods: [\"createMerkleLL\"],\n version: Version.Airdrops.V3_0,\n },\n {\n contract: \"SablierFactoryMerkleLL\",\n createMethods: [\"createMerkleLL\"],\n version: Version.Airdrops.V2_0,\n },\n] as const satisfies readonly ContractMethod[];\n\n/** Airdrop VCA factory contracts - v2.0+ */\nexport const AIRDROP_EVM_VCA = [\n {\n contract: \"SablierFactoryMerkleVCA\",\n createMethods: [\"createMerkleVCA\"],\n version: Version.Airdrops.V3_0,\n },\n {\n contract: \"SablierFactoryMerkleVCA\",\n createMethods: [\"createMerkleVCA\"],\n version: Version.Airdrops.V2_0,\n },\n] as const satisfies readonly ContractMethod[];\n\n/** Airdrop Tranched (LT) factory contracts - v1.2+ */\nexport const AIRDROP_EVM_LT = [\n {\n contract: \"SablierFactoryMerkleLT\",\n createMethods: [\"createMerkleLT\"],\n version: Version.Airdrops.V3_0,\n },\n {\n contract: \"SablierFactoryMerkleLT\",\n createMethods: [\"createMerkleLT\"],\n version: Version.Airdrops.V2_0,\n },\n {\n contract: \"SablierMerkleFactory\",\n createMethods: [\"createMerkleLT\"],\n version: Version.Airdrops.V1_3,\n },\n {\n contract: \"SablierV2MerkleLockupFactory\",\n createMethods: [\"createMerkleLT\"],\n version: Version.Airdrops.V1_2,\n },\n] as const satisfies readonly ContractMethod[];\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/shapes/constants.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAW7C,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;EAOoB,CAAC;AAG/C,eAAO,MAAM,gBAAgB;;;;;;;;;;;;EAIiB,CAAC;AAG/C,eAAO,MAAM,gBAAgB;;;;EAEiB,CAAC;AAG/C,eAAO,MAAM,gBAAgB;;;;EAMgB,CAAC;AAU9C,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;EAmBoB,CAAC;AAU/C,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;EASoB,CAAC;AAO/C,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;EAqByB,CAAC;AAO/C,eAAO,MAAM,mBAAmB;;;;;;;;;;;;EAgBc,CAAC;AAG/C,eAAO,MAAM,sBAAsB;;;;EAMU,CAAC;AAG9C,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;EA0BmB,CAAC;AAG/C,eAAO,MAAM,iBAAiB;;;;;;;;EAWgB,CAAC;AAG/C,eAAO,MAAM,eAAe;;;;;;;;EAWkB,CAAC;AAG/C,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;EAqBmB,CAAC"}