@merkl/api 0.19.26 → 0.19.28
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/src/eden/index.d.ts +35 -10
- package/dist/src/engine/opportunityMetadata/implementations/Clamm.js +3 -1
- package/dist/src/engine/opportunityMetadata/implementations/JsonAirdrop.d.ts +2 -2
- package/dist/src/index.d.ts +7 -2
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +6 -1
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +1 -0
- package/dist/src/modules/v4/opportunity/opportunity.model.js +1 -0
- package/dist/src/modules/v4/opportunity/opportunity.repository.js +2 -1
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +3 -3
- package/dist/src/modules/v4/protocol/protocol.model.d.ts +1 -1
- package/dist/src/modules/v4/protocol/protocol.model.js +0 -1
- package/dist/src/modules/v4/protocol/protocol.service.js +21 -0
- package/dist/src/modules/v4/router.d.ts +7 -2
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/src/eden/index.d.ts
CHANGED
@@ -130,7 +130,7 @@ declare const eden: {
|
|
130
130
|
} & {
|
131
131
|
price?: number | null | undefined;
|
132
132
|
})[];
|
133
|
-
mainProtocol: "splice" | "morpho" | "euler" | "ambient" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quick-swap" | "ramses" | "retro" | "stryke" | "sushiswap" | "swapr" | "thruster" | "voltage" | "zero" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "fraxlend" | "ironclad" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "
|
133
|
+
mainProtocol: "splice" | "morpho" | "euler" | "ambient" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quick-swap" | "ramses" | "retro" | "stryke" | "sushiswap" | "swapr" | "thruster" | "voltage" | "zero" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "fraxlend" | "ironclad" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "gamma" | "oku" | "hourglass" | "veda" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "angles" | "enzyme" | "toros" | "vicuna" | "bunni" | "beratrax" | "concrete" | "cian" | "pendle" | "yei" | "filament" | "gammaswap" | "maha" | "tempest" | "uranium" | "holdstation" | "katana" | "satlayer" | undefined;
|
134
134
|
depositUrl: any;
|
135
135
|
tags: string[];
|
136
136
|
};
|
@@ -474,6 +474,7 @@ declare const eden: {
|
|
474
474
|
identifier?: string | undefined;
|
475
475
|
page?: number | undefined;
|
476
476
|
action?: string | undefined;
|
477
|
+
campaignId?: string | undefined;
|
477
478
|
creatorAddress?: string | undefined;
|
478
479
|
chainId?: string | undefined;
|
479
480
|
mainProtocolId?: string | undefined;
|
@@ -663,6 +664,7 @@ declare const eden: {
|
|
663
664
|
identifier?: string | undefined;
|
664
665
|
page?: number | undefined;
|
665
666
|
action?: string | undefined;
|
667
|
+
campaignId?: string | undefined;
|
666
668
|
creatorAddress?: string | undefined;
|
667
669
|
chainId?: string | undefined;
|
668
670
|
mainProtocolId?: string | undefined;
|
@@ -870,6 +872,7 @@ declare const eden: {
|
|
870
872
|
identifier?: string | undefined;
|
871
873
|
page?: number | undefined;
|
872
874
|
action?: string | undefined;
|
875
|
+
campaignId?: string | undefined;
|
873
876
|
creatorAddress?: string | undefined;
|
874
877
|
chainId?: string | undefined;
|
875
878
|
mainProtocolId?: string | undefined;
|
@@ -903,6 +906,7 @@ declare const eden: {
|
|
903
906
|
identifier?: string | undefined;
|
904
907
|
page?: number | undefined;
|
905
908
|
action?: string | undefined;
|
909
|
+
campaignId?: string | undefined;
|
906
910
|
creatorAddress?: string | undefined;
|
907
911
|
chainId?: string | undefined;
|
908
912
|
mainProtocolId?: string | undefined;
|
@@ -936,6 +940,7 @@ declare const eden: {
|
|
936
940
|
identifier?: string | undefined;
|
937
941
|
page?: number | undefined;
|
938
942
|
action?: string | undefined;
|
943
|
+
campaignId?: string | undefined;
|
939
944
|
creatorAddress?: string | undefined;
|
940
945
|
chainId?: string | undefined;
|
941
946
|
mainProtocolId?: string | undefined;
|
@@ -1210,7 +1215,7 @@ declare const eden: {
|
|
1210
1215
|
} & {
|
1211
1216
|
price?: number | null | undefined;
|
1212
1217
|
})[][];
|
1213
|
-
mainProtocol: "splice" | "morpho" | "euler" | "ambient" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quick-swap" | "ramses" | "retro" | "stryke" | "sushiswap" | "swapr" | "thruster" | "voltage" | "zero" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "fraxlend" | "ironclad" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "
|
1218
|
+
mainProtocol: "splice" | "morpho" | "euler" | "ambient" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quick-swap" | "ramses" | "retro" | "stryke" | "sushiswap" | "swapr" | "thruster" | "voltage" | "zero" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "fraxlend" | "ironclad" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "gamma" | "oku" | "hourglass" | "veda" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "angles" | "enzyme" | "toros" | "vicuna" | "bunni" | "beratrax" | "concrete" | "cian" | "pendle" | "yei" | "filament" | "gammaswap" | "maha" | "tempest" | "uranium" | "holdstation" | "katana" | "satlayer" | undefined;
|
1214
1219
|
depositUrl: any;
|
1215
1220
|
tags: string[];
|
1216
1221
|
};
|
@@ -3780,7 +3785,7 @@ declare const eden: {
|
|
3780
3785
|
} & {
|
3781
3786
|
price?: number | null | undefined;
|
3782
3787
|
})[];
|
3783
|
-
mainProtocol: "splice" | "morpho" | "euler" | "ambient" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quick-swap" | "ramses" | "retro" | "stryke" | "sushiswap" | "swapr" | "thruster" | "voltage" | "zero" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "fraxlend" | "ironclad" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "
|
3788
|
+
mainProtocol: "splice" | "morpho" | "euler" | "ambient" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quick-swap" | "ramses" | "retro" | "stryke" | "sushiswap" | "swapr" | "thruster" | "voltage" | "zero" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "fraxlend" | "ironclad" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "gamma" | "oku" | "hourglass" | "veda" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "angles" | "enzyme" | "toros" | "vicuna" | "bunni" | "beratrax" | "concrete" | "cian" | "pendle" | "yei" | "filament" | "gammaswap" | "maha" | "tempest" | "uranium" | "holdstation" | "katana" | "satlayer" | undefined;
|
3784
3789
|
depositUrl: any;
|
3785
3790
|
tags: string[];
|
3786
3791
|
};
|
@@ -4124,6 +4129,7 @@ declare const eden: {
|
|
4124
4129
|
identifier?: string | undefined;
|
4125
4130
|
page?: number | undefined;
|
4126
4131
|
action?: string | undefined;
|
4132
|
+
campaignId?: string | undefined;
|
4127
4133
|
creatorAddress?: string | undefined;
|
4128
4134
|
chainId?: string | undefined;
|
4129
4135
|
mainProtocolId?: string | undefined;
|
@@ -4313,6 +4319,7 @@ declare const eden: {
|
|
4313
4319
|
identifier?: string | undefined;
|
4314
4320
|
page?: number | undefined;
|
4315
4321
|
action?: string | undefined;
|
4322
|
+
campaignId?: string | undefined;
|
4316
4323
|
creatorAddress?: string | undefined;
|
4317
4324
|
chainId?: string | undefined;
|
4318
4325
|
mainProtocolId?: string | undefined;
|
@@ -4520,6 +4527,7 @@ declare const eden: {
|
|
4520
4527
|
identifier?: string | undefined;
|
4521
4528
|
page?: number | undefined;
|
4522
4529
|
action?: string | undefined;
|
4530
|
+
campaignId?: string | undefined;
|
4523
4531
|
creatorAddress?: string | undefined;
|
4524
4532
|
chainId?: string | undefined;
|
4525
4533
|
mainProtocolId?: string | undefined;
|
@@ -4553,6 +4561,7 @@ declare const eden: {
|
|
4553
4561
|
identifier?: string | undefined;
|
4554
4562
|
page?: number | undefined;
|
4555
4563
|
action?: string | undefined;
|
4564
|
+
campaignId?: string | undefined;
|
4556
4565
|
creatorAddress?: string | undefined;
|
4557
4566
|
chainId?: string | undefined;
|
4558
4567
|
mainProtocolId?: string | undefined;
|
@@ -4586,6 +4595,7 @@ declare const eden: {
|
|
4586
4595
|
identifier?: string | undefined;
|
4587
4596
|
page?: number | undefined;
|
4588
4597
|
action?: string | undefined;
|
4598
|
+
campaignId?: string | undefined;
|
4589
4599
|
creatorAddress?: string | undefined;
|
4590
4600
|
chainId?: string | undefined;
|
4591
4601
|
mainProtocolId?: string | undefined;
|
@@ -4860,7 +4870,7 @@ declare const eden: {
|
|
4860
4870
|
} & {
|
4861
4871
|
price?: number | null | undefined;
|
4862
4872
|
})[][];
|
4863
|
-
mainProtocol: "splice" | "morpho" | "euler" | "ambient" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quick-swap" | "ramses" | "retro" | "stryke" | "sushiswap" | "swapr" | "thruster" | "voltage" | "zero" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "fraxlend" | "ironclad" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "
|
4873
|
+
mainProtocol: "splice" | "morpho" | "euler" | "ambient" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quick-swap" | "ramses" | "retro" | "stryke" | "sushiswap" | "swapr" | "thruster" | "voltage" | "zero" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "fraxlend" | "ironclad" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "gamma" | "oku" | "hourglass" | "veda" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "angles" | "enzyme" | "toros" | "vicuna" | "bunni" | "beratrax" | "concrete" | "cian" | "pendle" | "yei" | "filament" | "gammaswap" | "maha" | "tempest" | "uranium" | "holdstation" | "katana" | "satlayer" | undefined;
|
4864
4874
|
depositUrl: any;
|
4865
4875
|
tags: string[];
|
4866
4876
|
};
|
@@ -8201,7 +8211,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
8201
8211
|
} & {
|
8202
8212
|
price?: number | null | undefined;
|
8203
8213
|
})[];
|
8204
|
-
mainProtocol: "splice" | "morpho" | "euler" | "ambient" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quick-swap" | "ramses" | "retro" | "stryke" | "sushiswap" | "swapr" | "thruster" | "voltage" | "zero" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "fraxlend" | "ironclad" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "
|
8214
|
+
mainProtocol: "splice" | "morpho" | "euler" | "ambient" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quick-swap" | "ramses" | "retro" | "stryke" | "sushiswap" | "swapr" | "thruster" | "voltage" | "zero" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "fraxlend" | "ironclad" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "gamma" | "oku" | "hourglass" | "veda" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "angles" | "enzyme" | "toros" | "vicuna" | "bunni" | "beratrax" | "concrete" | "cian" | "pendle" | "yei" | "filament" | "gammaswap" | "maha" | "tempest" | "uranium" | "holdstation" | "katana" | "satlayer" | undefined;
|
8205
8215
|
depositUrl: any;
|
8206
8216
|
tags: string[];
|
8207
8217
|
};
|
@@ -8226,6 +8236,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
8226
8236
|
identifier?: string | undefined;
|
8227
8237
|
page?: number | undefined;
|
8228
8238
|
action?: string | undefined;
|
8239
|
+
campaignId?: string | undefined;
|
8229
8240
|
creatorAddress?: string | undefined;
|
8230
8241
|
chainId?: string | undefined;
|
8231
8242
|
mainProtocolId?: string | undefined;
|
@@ -8420,6 +8431,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
8420
8431
|
identifier?: string | undefined;
|
8421
8432
|
page?: number | undefined;
|
8422
8433
|
action?: string | undefined;
|
8434
|
+
campaignId?: string | undefined;
|
8423
8435
|
creatorAddress?: string | undefined;
|
8424
8436
|
chainId?: string | undefined;
|
8425
8437
|
mainProtocolId?: string | undefined;
|
@@ -8915,6 +8927,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
8915
8927
|
identifier?: string | undefined;
|
8916
8928
|
page?: number | undefined;
|
8917
8929
|
action?: string | undefined;
|
8930
|
+
campaignId?: string | undefined;
|
8918
8931
|
creatorAddress?: string | undefined;
|
8919
8932
|
chainId?: string | undefined;
|
8920
8933
|
mainProtocolId?: string | undefined;
|
@@ -8956,6 +8969,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
8956
8969
|
identifier?: string | undefined;
|
8957
8970
|
page?: number | undefined;
|
8958
8971
|
action?: string | undefined;
|
8972
|
+
campaignId?: string | undefined;
|
8959
8973
|
creatorAddress?: string | undefined;
|
8960
8974
|
chainId?: string | undefined;
|
8961
8975
|
mainProtocolId?: string | undefined;
|
@@ -8998,6 +9012,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
8998
9012
|
identifier?: string | undefined;
|
8999
9013
|
page?: number | undefined;
|
9000
9014
|
action?: string | undefined;
|
9015
|
+
campaignId?: string | undefined;
|
9001
9016
|
creatorAddress?: string | undefined;
|
9002
9017
|
chainId?: string | undefined;
|
9003
9018
|
mainProtocolId?: string | undefined;
|
@@ -9266,7 +9281,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
9266
9281
|
} & {
|
9267
9282
|
price?: number | null | undefined;
|
9268
9283
|
})[][];
|
9269
|
-
mainProtocol: "splice" | "morpho" | "euler" | "ambient" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quick-swap" | "ramses" | "retro" | "stryke" | "sushiswap" | "swapr" | "thruster" | "voltage" | "zero" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "fraxlend" | "ironclad" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "
|
9284
|
+
mainProtocol: "splice" | "morpho" | "euler" | "ambient" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quick-swap" | "ramses" | "retro" | "stryke" | "sushiswap" | "swapr" | "thruster" | "voltage" | "zero" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "fraxlend" | "ironclad" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "gamma" | "oku" | "hourglass" | "veda" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "angles" | "enzyme" | "toros" | "vicuna" | "bunni" | "beratrax" | "concrete" | "cian" | "pendle" | "yei" | "filament" | "gammaswap" | "maha" | "tempest" | "uranium" | "holdstation" | "katana" | "satlayer" | undefined;
|
9270
9285
|
depositUrl: any;
|
9271
9286
|
tags: string[];
|
9272
9287
|
};
|
@@ -13494,7 +13509,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
13494
13509
|
} & {
|
13495
13510
|
price?: number | null | undefined;
|
13496
13511
|
})[];
|
13497
|
-
mainProtocol: "splice" | "morpho" | "euler" | "ambient" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quick-swap" | "ramses" | "retro" | "stryke" | "sushiswap" | "swapr" | "thruster" | "voltage" | "zero" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "fraxlend" | "ironclad" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "
|
13512
|
+
mainProtocol: "splice" | "morpho" | "euler" | "ambient" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quick-swap" | "ramses" | "retro" | "stryke" | "sushiswap" | "swapr" | "thruster" | "voltage" | "zero" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "fraxlend" | "ironclad" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "gamma" | "oku" | "hourglass" | "veda" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "angles" | "enzyme" | "toros" | "vicuna" | "bunni" | "beratrax" | "concrete" | "cian" | "pendle" | "yei" | "filament" | "gammaswap" | "maha" | "tempest" | "uranium" | "holdstation" | "katana" | "satlayer" | undefined;
|
13498
13513
|
depositUrl: any;
|
13499
13514
|
tags: string[];
|
13500
13515
|
};
|
@@ -13838,6 +13853,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
13838
13853
|
identifier?: string | undefined;
|
13839
13854
|
page?: number | undefined;
|
13840
13855
|
action?: string | undefined;
|
13856
|
+
campaignId?: string | undefined;
|
13841
13857
|
creatorAddress?: string | undefined;
|
13842
13858
|
chainId?: string | undefined;
|
13843
13859
|
mainProtocolId?: string | undefined;
|
@@ -14027,6 +14043,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
14027
14043
|
identifier?: string | undefined;
|
14028
14044
|
page?: number | undefined;
|
14029
14045
|
action?: string | undefined;
|
14046
|
+
campaignId?: string | undefined;
|
14030
14047
|
creatorAddress?: string | undefined;
|
14031
14048
|
chainId?: string | undefined;
|
14032
14049
|
mainProtocolId?: string | undefined;
|
@@ -14234,6 +14251,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
14234
14251
|
identifier?: string | undefined;
|
14235
14252
|
page?: number | undefined;
|
14236
14253
|
action?: string | undefined;
|
14254
|
+
campaignId?: string | undefined;
|
14237
14255
|
creatorAddress?: string | undefined;
|
14238
14256
|
chainId?: string | undefined;
|
14239
14257
|
mainProtocolId?: string | undefined;
|
@@ -14267,6 +14285,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
14267
14285
|
identifier?: string | undefined;
|
14268
14286
|
page?: number | undefined;
|
14269
14287
|
action?: string | undefined;
|
14288
|
+
campaignId?: string | undefined;
|
14270
14289
|
creatorAddress?: string | undefined;
|
14271
14290
|
chainId?: string | undefined;
|
14272
14291
|
mainProtocolId?: string | undefined;
|
@@ -14300,6 +14319,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
14300
14319
|
identifier?: string | undefined;
|
14301
14320
|
page?: number | undefined;
|
14302
14321
|
action?: string | undefined;
|
14322
|
+
campaignId?: string | undefined;
|
14303
14323
|
creatorAddress?: string | undefined;
|
14304
14324
|
chainId?: string | undefined;
|
14305
14325
|
mainProtocolId?: string | undefined;
|
@@ -14574,7 +14594,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
14574
14594
|
} & {
|
14575
14595
|
price?: number | null | undefined;
|
14576
14596
|
})[][];
|
14577
|
-
mainProtocol: "splice" | "morpho" | "euler" | "ambient" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quick-swap" | "ramses" | "retro" | "stryke" | "sushiswap" | "swapr" | "thruster" | "voltage" | "zero" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "fraxlend" | "ironclad" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "
|
14597
|
+
mainProtocol: "splice" | "morpho" | "euler" | "ambient" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quick-swap" | "ramses" | "retro" | "stryke" | "sushiswap" | "swapr" | "thruster" | "voltage" | "zero" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "fraxlend" | "ironclad" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "gamma" | "oku" | "hourglass" | "veda" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "angles" | "enzyme" | "toros" | "vicuna" | "bunni" | "beratrax" | "concrete" | "cian" | "pendle" | "yei" | "filament" | "gammaswap" | "maha" | "tempest" | "uranium" | "holdstation" | "katana" | "satlayer" | undefined;
|
14578
14598
|
depositUrl: any;
|
14579
14599
|
tags: string[];
|
14580
14600
|
};
|
@@ -17144,7 +17164,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
17144
17164
|
} & {
|
17145
17165
|
price?: number | null | undefined;
|
17146
17166
|
})[];
|
17147
|
-
mainProtocol: "splice" | "morpho" | "euler" | "ambient" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quick-swap" | "ramses" | "retro" | "stryke" | "sushiswap" | "swapr" | "thruster" | "voltage" | "zero" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "fraxlend" | "ironclad" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "
|
17167
|
+
mainProtocol: "splice" | "morpho" | "euler" | "ambient" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quick-swap" | "ramses" | "retro" | "stryke" | "sushiswap" | "swapr" | "thruster" | "voltage" | "zero" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "fraxlend" | "ironclad" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "gamma" | "oku" | "hourglass" | "veda" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "angles" | "enzyme" | "toros" | "vicuna" | "bunni" | "beratrax" | "concrete" | "cian" | "pendle" | "yei" | "filament" | "gammaswap" | "maha" | "tempest" | "uranium" | "holdstation" | "katana" | "satlayer" | undefined;
|
17148
17168
|
depositUrl: any;
|
17149
17169
|
tags: string[];
|
17150
17170
|
};
|
@@ -17488,6 +17508,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
17488
17508
|
identifier?: string | undefined;
|
17489
17509
|
page?: number | undefined;
|
17490
17510
|
action?: string | undefined;
|
17511
|
+
campaignId?: string | undefined;
|
17491
17512
|
creatorAddress?: string | undefined;
|
17492
17513
|
chainId?: string | undefined;
|
17493
17514
|
mainProtocolId?: string | undefined;
|
@@ -17677,6 +17698,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
17677
17698
|
identifier?: string | undefined;
|
17678
17699
|
page?: number | undefined;
|
17679
17700
|
action?: string | undefined;
|
17701
|
+
campaignId?: string | undefined;
|
17680
17702
|
creatorAddress?: string | undefined;
|
17681
17703
|
chainId?: string | undefined;
|
17682
17704
|
mainProtocolId?: string | undefined;
|
@@ -17884,6 +17906,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
17884
17906
|
identifier?: string | undefined;
|
17885
17907
|
page?: number | undefined;
|
17886
17908
|
action?: string | undefined;
|
17909
|
+
campaignId?: string | undefined;
|
17887
17910
|
creatorAddress?: string | undefined;
|
17888
17911
|
chainId?: string | undefined;
|
17889
17912
|
mainProtocolId?: string | undefined;
|
@@ -17917,6 +17940,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
17917
17940
|
identifier?: string | undefined;
|
17918
17941
|
page?: number | undefined;
|
17919
17942
|
action?: string | undefined;
|
17943
|
+
campaignId?: string | undefined;
|
17920
17944
|
creatorAddress?: string | undefined;
|
17921
17945
|
chainId?: string | undefined;
|
17922
17946
|
mainProtocolId?: string | undefined;
|
@@ -17950,6 +17974,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
17950
17974
|
identifier?: string | undefined;
|
17951
17975
|
page?: number | undefined;
|
17952
17976
|
action?: string | undefined;
|
17977
|
+
campaignId?: string | undefined;
|
17953
17978
|
creatorAddress?: string | undefined;
|
17954
17979
|
chainId?: string | undefined;
|
17955
17980
|
mainProtocolId?: string | undefined;
|
@@ -18224,7 +18249,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
18224
18249
|
} & {
|
18225
18250
|
price?: number | null | undefined;
|
18226
18251
|
})[][];
|
18227
|
-
mainProtocol: "splice" | "morpho" | "euler" | "ambient" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quick-swap" | "ramses" | "retro" | "stryke" | "sushiswap" | "swapr" | "thruster" | "voltage" | "zero" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "fraxlend" | "ironclad" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "
|
18252
|
+
mainProtocol: "splice" | "morpho" | "euler" | "ambient" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quick-swap" | "ramses" | "retro" | "stryke" | "sushiswap" | "swapr" | "thruster" | "voltage" | "zero" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "fraxlend" | "ironclad" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "gamma" | "oku" | "hourglass" | "veda" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "angles" | "enzyme" | "toros" | "vicuna" | "bunni" | "beratrax" | "concrete" | "cian" | "pendle" | "yei" | "filament" | "gammaswap" | "maha" | "tempest" | "uranium" | "holdstation" | "katana" | "satlayer" | undefined;
|
18228
18253
|
depositUrl: any;
|
18229
18254
|
tags: string[];
|
18230
18255
|
};
|
@@ -70,10 +70,12 @@ export class ClammMetadata {
|
|
70
70
|
}
|
71
71
|
// Protocol id normalization
|
72
72
|
let mainProtocolId = AMM[params.amm]
|
73
|
-
? camelToKebabCase(AMM[params.amm].replace(/\/?(V(\d+_)?\d+)/g, "")
|
73
|
+
? camelToKebabCase(AMM[params.amm].replace(/\/?(V(\d+_)?\d+)/g, ""))
|
74
74
|
: undefined;
|
75
75
|
if (mainProtocolId?.includes("stryke"))
|
76
76
|
mainProtocolId = "stryke";
|
77
|
+
else if (mainProtocolId?.includes("quickswap"))
|
78
|
+
mainProtocolId = "quickswap";
|
77
79
|
// Make sure the protocol exist in the correct type
|
78
80
|
const protocol = (await ProtocolService.findMany({ id: mainProtocolId }))?.[0];
|
79
81
|
if (!!protocol) {
|
@@ -9,13 +9,13 @@ export declare class JsonAirdropMetadata implements MetadataBuilder<campaignType
|
|
9
9
|
chainId: ChainId;
|
10
10
|
address: string;
|
11
11
|
}[];
|
12
|
-
mainProtocol: "splice" | "morpho" | "euler" | "ambient" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quick-swap" | "ramses" | "retro" | "stryke" | "sushiswap" | "swapr" | "thruster" | "voltage" | "zero" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "fraxlend" | "ironclad" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "
|
12
|
+
mainProtocol: "splice" | "morpho" | "euler" | "ambient" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quick-swap" | "ramses" | "retro" | "stryke" | "sushiswap" | "swapr" | "thruster" | "voltage" | "zero" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "fraxlend" | "ironclad" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "gamma" | "oku" | "hourglass" | "veda" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "angles" | "enzyme" | "toros" | "vicuna" | "bunni" | "beratrax" | "concrete" | "cian" | "pendle" | "yei" | "filament" | "gammaswap" | "maha" | "tempest" | "uranium" | "holdstation" | "katana" | "satlayer" | undefined;
|
13
13
|
depositUrl?: undefined;
|
14
14
|
} | {
|
15
15
|
action: "DROP";
|
16
16
|
name: string;
|
17
17
|
tokens: never[];
|
18
|
-
mainProtocol: "splice" | "morpho" | "euler" | "ambient" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quick-swap" | "ramses" | "retro" | "stryke" | "sushiswap" | "swapr" | "thruster" | "voltage" | "zero" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "fraxlend" | "ironclad" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "
|
18
|
+
mainProtocol: "splice" | "morpho" | "euler" | "ambient" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quick-swap" | "ramses" | "retro" | "stryke" | "sushiswap" | "swapr" | "thruster" | "voltage" | "zero" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "fraxlend" | "ironclad" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "gamma" | "oku" | "hourglass" | "veda" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "angles" | "enzyme" | "toros" | "vicuna" | "bunni" | "beratrax" | "concrete" | "cian" | "pendle" | "yei" | "filament" | "gammaswap" | "maha" | "tempest" | "uranium" | "holdstation" | "katana" | "satlayer" | undefined;
|
19
19
|
depositUrl: any;
|
20
20
|
}>;
|
21
21
|
static generateUrl(_computeChainId: ChainId, params: CampaignParameters<campaignType>["campaignParameters"]): any;
|
package/dist/src/index.d.ts
CHANGED
@@ -238,7 +238,7 @@ declare const app: Elysia<"", false, {
|
|
238
238
|
} & {
|
239
239
|
price?: number | null | undefined;
|
240
240
|
})[];
|
241
|
-
mainProtocol: "splice" | "morpho" | "euler" | "ambient" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quick-swap" | "ramses" | "retro" | "stryke" | "sushiswap" | "swapr" | "thruster" | "voltage" | "zero" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "fraxlend" | "ironclad" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "
|
241
|
+
mainProtocol: "splice" | "morpho" | "euler" | "ambient" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quick-swap" | "ramses" | "retro" | "stryke" | "sushiswap" | "swapr" | "thruster" | "voltage" | "zero" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "fraxlend" | "ironclad" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "gamma" | "oku" | "hourglass" | "veda" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "angles" | "enzyme" | "toros" | "vicuna" | "bunni" | "beratrax" | "concrete" | "cian" | "pendle" | "yei" | "filament" | "gammaswap" | "maha" | "tempest" | "uranium" | "holdstation" | "katana" | "satlayer" | undefined;
|
242
242
|
depositUrl: any;
|
243
243
|
tags: string[];
|
244
244
|
};
|
@@ -263,6 +263,7 @@ declare const app: Elysia<"", false, {
|
|
263
263
|
identifier?: string | undefined;
|
264
264
|
page?: number | undefined;
|
265
265
|
action?: string | undefined;
|
266
|
+
campaignId?: string | undefined;
|
266
267
|
creatorAddress?: string | undefined;
|
267
268
|
chainId?: string | undefined;
|
268
269
|
mainProtocolId?: string | undefined;
|
@@ -457,6 +458,7 @@ declare const app: Elysia<"", false, {
|
|
457
458
|
identifier?: string | undefined;
|
458
459
|
page?: number | undefined;
|
459
460
|
action?: string | undefined;
|
461
|
+
campaignId?: string | undefined;
|
460
462
|
creatorAddress?: string | undefined;
|
461
463
|
chainId?: string | undefined;
|
462
464
|
mainProtocolId?: string | undefined;
|
@@ -952,6 +954,7 @@ declare const app: Elysia<"", false, {
|
|
952
954
|
identifier?: string | undefined;
|
953
955
|
page?: number | undefined;
|
954
956
|
action?: string | undefined;
|
957
|
+
campaignId?: string | undefined;
|
955
958
|
creatorAddress?: string | undefined;
|
956
959
|
chainId?: string | undefined;
|
957
960
|
mainProtocolId?: string | undefined;
|
@@ -993,6 +996,7 @@ declare const app: Elysia<"", false, {
|
|
993
996
|
identifier?: string | undefined;
|
994
997
|
page?: number | undefined;
|
995
998
|
action?: string | undefined;
|
999
|
+
campaignId?: string | undefined;
|
996
1000
|
creatorAddress?: string | undefined;
|
997
1001
|
chainId?: string | undefined;
|
998
1002
|
mainProtocolId?: string | undefined;
|
@@ -1035,6 +1039,7 @@ declare const app: Elysia<"", false, {
|
|
1035
1039
|
identifier?: string | undefined;
|
1036
1040
|
page?: number | undefined;
|
1037
1041
|
action?: string | undefined;
|
1042
|
+
campaignId?: string | undefined;
|
1038
1043
|
creatorAddress?: string | undefined;
|
1039
1044
|
chainId?: string | undefined;
|
1040
1045
|
mainProtocolId?: string | undefined;
|
@@ -1303,7 +1308,7 @@ declare const app: Elysia<"", false, {
|
|
1303
1308
|
} & {
|
1304
1309
|
price?: number | null | undefined;
|
1305
1310
|
})[][];
|
1306
|
-
mainProtocol: "splice" | "morpho" | "euler" | "ambient" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quick-swap" | "ramses" | "retro" | "stryke" | "sushiswap" | "swapr" | "thruster" | "voltage" | "zero" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "fraxlend" | "ironclad" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "
|
1311
|
+
mainProtocol: "splice" | "morpho" | "euler" | "ambient" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quick-swap" | "ramses" | "retro" | "stryke" | "sushiswap" | "swapr" | "thruster" | "voltage" | "zero" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "fraxlend" | "ironclad" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "gamma" | "oku" | "hourglass" | "veda" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "angles" | "enzyme" | "toros" | "vicuna" | "bunni" | "beratrax" | "concrete" | "cian" | "pendle" | "yei" | "filament" | "gammaswap" | "maha" | "tempest" | "uranium" | "holdstation" | "katana" | "satlayer" | undefined;
|
1307
1312
|
depositUrl: any;
|
1308
1313
|
tags: string[];
|
1309
1314
|
};
|
@@ -220,7 +220,7 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
|
|
220
220
|
} & {
|
221
221
|
price?: number | null | undefined;
|
222
222
|
})[][];
|
223
|
-
mainProtocol: "splice" | "morpho" | "euler" | "ambient" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quick-swap" | "ramses" | "retro" | "stryke" | "sushiswap" | "swapr" | "thruster" | "voltage" | "zero" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "fraxlend" | "ironclad" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "
|
223
|
+
mainProtocol: "splice" | "morpho" | "euler" | "ambient" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quick-swap" | "ramses" | "retro" | "stryke" | "sushiswap" | "swapr" | "thruster" | "voltage" | "zero" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "fraxlend" | "ironclad" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "gamma" | "oku" | "hourglass" | "veda" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "angles" | "enzyme" | "toros" | "vicuna" | "bunni" | "beratrax" | "concrete" | "cian" | "pendle" | "yei" | "filament" | "gammaswap" | "maha" | "tempest" | "uranium" | "holdstation" | "katana" | "satlayer" | undefined;
|
224
224
|
depositUrl: any;
|
225
225
|
tags: string[];
|
226
226
|
};
|
@@ -93,7 +93,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
93
93
|
} & {
|
94
94
|
price?: number | null | undefined;
|
95
95
|
})[];
|
96
|
-
mainProtocol: "splice" | "morpho" | "euler" | "ambient" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quick-swap" | "ramses" | "retro" | "stryke" | "sushiswap" | "swapr" | "thruster" | "voltage" | "zero" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "fraxlend" | "ironclad" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "
|
96
|
+
mainProtocol: "splice" | "morpho" | "euler" | "ambient" | "uniswap" | "arthswap" | "base-swap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancake-swap" | "quick-swap" | "ramses" | "retro" | "stryke" | "sushiswap" | "swapr" | "thruster" | "voltage" | "zero" | "koi" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap" | "neptune" | "zkSwapThreePool" | "rfx" | "ra" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "fraxlend" | "ironclad" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "gamma" | "oku" | "hourglass" | "veda" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "angles" | "enzyme" | "toros" | "vicuna" | "bunni" | "beratrax" | "concrete" | "cian" | "pendle" | "yei" | "filament" | "gammaswap" | "maha" | "tempest" | "uranium" | "holdstation" | "katana" | "satlayer" | undefined;
|
97
97
|
depositUrl: any;
|
98
98
|
tags: string[];
|
99
99
|
};
|
@@ -118,6 +118,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
118
118
|
identifier?: string | undefined;
|
119
119
|
page?: number | undefined;
|
120
120
|
action?: string | undefined;
|
121
|
+
campaignId?: string | undefined;
|
121
122
|
creatorAddress?: string | undefined;
|
122
123
|
chainId?: string | undefined;
|
123
124
|
mainProtocolId?: string | undefined;
|
@@ -312,6 +313,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
312
313
|
identifier?: string | undefined;
|
313
314
|
page?: number | undefined;
|
314
315
|
action?: string | undefined;
|
316
|
+
campaignId?: string | undefined;
|
315
317
|
creatorAddress?: string | undefined;
|
316
318
|
chainId?: string | undefined;
|
317
319
|
mainProtocolId?: string | undefined;
|
@@ -807,6 +809,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
807
809
|
identifier?: string | undefined;
|
808
810
|
page?: number | undefined;
|
809
811
|
action?: string | undefined;
|
812
|
+
campaignId?: string | undefined;
|
810
813
|
creatorAddress?: string | undefined;
|
811
814
|
chainId?: string | undefined;
|
812
815
|
mainProtocolId?: string | undefined;
|
@@ -848,6 +851,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
848
851
|
identifier?: string | undefined;
|
849
852
|
page?: number | undefined;
|
850
853
|
action?: string | undefined;
|
854
|
+
campaignId?: string | undefined;
|
851
855
|
creatorAddress?: string | undefined;
|
852
856
|
chainId?: string | undefined;
|
853
857
|
mainProtocolId?: string | undefined;
|
@@ -890,6 +894,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
|
|
890
894
|
identifier?: string | undefined;
|
891
895
|
page?: number | undefined;
|
892
896
|
action?: string | undefined;
|
897
|
+
campaignId?: string | undefined;
|
893
898
|
creatorAddress?: string | undefined;
|
894
899
|
chainId?: string | undefined;
|
895
900
|
mainProtocolId?: string | undefined;
|
@@ -276,6 +276,7 @@ export declare const AggregationResourceDto: import("@sinclair/typebox").TObject
|
|
276
276
|
}>;
|
277
277
|
export declare const GetOpportunitiesQueryDto: import("@sinclair/typebox").TObject<{
|
278
278
|
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
279
|
+
campaignId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
279
280
|
chainId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRegExp>;
|
280
281
|
action: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRegExp>;
|
281
282
|
type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
@@ -50,6 +50,7 @@ export const AggregationResourceDto = t.Object({
|
|
50
50
|
});
|
51
51
|
export const GetOpportunitiesQueryDto = t.Object({
|
52
52
|
name: t.Optional(t.String({ description: "Filter by name" })),
|
53
|
+
campaignId: t.Optional(t.String({ description: "Search the opportunity linked to a given campaignId" })),
|
53
54
|
//TODO: find a systemic way of handling query param arrays
|
54
55
|
chainId: t.Optional(t.RegExp(/^\d+(,\d+)*$/, {
|
55
56
|
description: "A comma separated list of chain ids. Example: ?chainId=1,42161<br>You can get the list of all supported chains by calling [GET /v4/chains](#tag/chains/GET/v4/chains/)",
|
@@ -38,10 +38,11 @@ export class OpportunityRepository {
|
|
38
38
|
status: !status ? undefined : { in: status },
|
39
39
|
mainProtocolId: !protocols ? undefined : { in: protocols, mode: "insensitive" },
|
40
40
|
identifier: !identifier ? undefined : { in: identifiers, mode: "insensitive" },
|
41
|
-
Campaigns: test && !creatorAddress && !rewardTokenSymbol
|
41
|
+
Campaigns: test && !creatorAddress && !rewardTokenSymbol && !filters.campaignId
|
42
42
|
? undefined
|
43
43
|
: {
|
44
44
|
some: {
|
45
|
+
campaignId: filters.campaignId ? filters.campaignId : undefined,
|
45
46
|
RewardToken: test && !rewardTokenSymbol
|
46
47
|
? undefined
|
47
48
|
: {
|