@merkl/api 1.14.26 → 1.16.6
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/constants.js.map +1 -1
- package/dist/src/eden/index.d.ts +519 -35
- package/dist/src/engine/deprecated/dynamicData/implementations/EventBased.js.map +1 -1
- package/dist/src/engine/implementations/AaveNetBorrowing/metadata.js.map +1 -1
- package/dist/src/engine/implementations/AaveNetLending/metadata.js.map +1 -1
- package/dist/src/engine/implementations/AaveV4Hub/metadata.d.ts +41 -0
- package/dist/src/engine/implementations/AaveV4Hub/metadata.js.map +1 -0
- package/dist/src/engine/implementations/AaveV4Spoke/metadata.d.ts +40 -0
- package/dist/src/engine/implementations/AaveV4Spoke/metadata.js.map +1 -0
- package/dist/src/engine/implementations/Blend/metadata.js.map +1 -1
- package/dist/src/engine/implementations/Blend/tvl.d.ts +13 -0
- package/dist/src/engine/implementations/Blend/tvl.js.map +1 -0
- package/dist/src/engine/implementations/Ekubo/tvl.js.map +1 -1
- package/dist/src/engine/implementations/FluidVault/tvl.js.map +1 -1
- package/dist/src/engine/implementations/SacHolder/tvl.d.ts +12 -0
- package/dist/src/engine/implementations/SacHolder/tvl.js.map +1 -0
- package/dist/src/engine/implementations/clamm/utils.js.map +1 -1
- package/dist/src/engine/implementations/morphoCollateral/tvl.js.map +1 -1
- package/dist/src/engine/implementations/uniswapv4/tvl.js.map +1 -1
- package/dist/src/engine/metadata/factory.js.map +1 -1
- package/dist/src/engine/tvl/factory.js.map +1 -1
- package/dist/src/engine/tvl/logStates.js.map +1 -1
- package/dist/src/index.d.ts +593 -38
- package/dist/src/jobs/auto-claim-etl/config.d.ts +2 -0
- package/dist/src/jobs/auto-claim-etl/config.js.map +1 -0
- package/dist/src/jobs/auto-claim-etl/index.js.map +1 -0
- package/dist/src/jobs/diff-breakdown-etl/index.js.map +1 -1
- package/dist/src/jobs/diff-etl/index.js.map +1 -1
- package/dist/src/jobs/leaf-breakdown-etl/index.js.map +1 -1
- package/dist/src/jobs/leaf-etl/index.js.map +1 -1
- package/dist/src/jobs/reward-breakdowns-etl/index.js.map +1 -1
- package/dist/src/jobs/rewards-etl/index.js.map +1 -1
- package/dist/src/jobs/tx-executor/hooks/auto-claim.d.ts +10 -0
- package/dist/src/jobs/tx-executor/hooks/auto-claim.js.map +1 -0
- package/dist/src/jobs/tx-executor/hooks/index.d.ts +9 -0
- package/dist/src/jobs/tx-executor/hooks/index.js.map +1 -0
- package/dist/src/jobs/tx-executor/index.d.ts +1 -0
- package/dist/src/jobs/tx-executor/index.js.map +1 -0
- package/dist/src/jobs/tx-executor/process.d.ts +11 -0
- package/dist/src/jobs/tx-executor/process.js.map +1 -0
- package/dist/src/jobs/tx-executor/types.d.ts +56 -0
- package/dist/src/jobs/tx-executor/types.js.map +1 -0
- package/dist/src/jobs/update-commit-stats.d.ts +1 -0
- package/dist/src/jobs/update-commit-stats.js.map +1 -0
- package/dist/src/jobs/update-rpc-calls-cache.js.map +1 -1
- package/dist/src/jobs/utils/etl.d.ts +4 -32
- package/dist/src/jobs/utils/etl.js.map +1 -1
- package/dist/src/modules/v4/autoclaim/autoclaim.controller.d.ts +430 -0
- package/dist/src/modules/v4/autoclaim/autoclaim.controller.js.map +1 -0
- package/dist/src/modules/v4/autoclaim/autoclaim.model.d.ts +52 -0
- package/dist/src/modules/v4/autoclaim/autoclaim.model.js.map +1 -0
- package/dist/src/modules/v4/autoclaim/autoclaim.pricing.d.ts +10 -0
- package/dist/src/modules/v4/autoclaim/autoclaim.pricing.js.map +1 -0
- package/dist/src/modules/v4/autoclaim/autoclaim.repository.d.ts +260 -0
- package/dist/src/modules/v4/autoclaim/autoclaim.repository.js.map +1 -0
- package/dist/src/modules/v4/autoclaim/autoclaim.service.d.ts +219 -0
- package/dist/src/modules/v4/autoclaim/autoclaim.service.js.map +1 -0
- package/dist/src/modules/v4/blacklist/blacklist.controller.d.ts +3 -1
- package/dist/src/modules/v4/blacklist/blacklist.service.d.ts +3 -1
- package/dist/src/modules/v4/blacklist/blacklist.service.js.map +1 -1
- package/dist/src/modules/v4/cache/cache.repository.d.ts +2 -0
- package/dist/src/modules/v4/cache/cache.repository.js.map +1 -1
- package/dist/src/modules/v4/cache/cache.service.d.ts +4 -0
- package/dist/src/modules/v4/cache/cache.service.js.map +1 -1
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +16 -4
- package/dist/src/modules/v4/campaign/campaign.controller.js.map +1 -1
- package/dist/src/modules/v4/campaign/campaign.formatter.d.ts +2 -1
- package/dist/src/modules/v4/campaign/campaign.formatter.js.map +1 -1
- package/dist/src/modules/v4/campaign/campaign.model.d.ts +4 -2
- package/dist/src/modules/v4/campaign/campaign.model.js.map +1 -1
- package/dist/src/modules/v4/campaign/campaign.query-transformer.d.ts +70 -70
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +11 -0
- package/dist/src/modules/v4/campaign/campaign.repository.js.map +1 -1
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +24 -10
- package/dist/src/modules/v4/campaign/campaign.service.js.map +1 -1
- package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +4 -0
- package/dist/src/modules/v4/campaignStatus/campaignStatus.repository.d.ts +1 -0
- package/dist/src/modules/v4/campaignStatus/campaignStatus.service.d.ts +1 -1
- package/dist/src/modules/v4/campaignToProcess/campaignToProcess.repository.js.map +1 -1
- package/dist/src/modules/v4/chain/chain.service.d.ts +1 -0
- package/dist/src/modules/v4/chain/chain.service.js.map +1 -1
- package/dist/src/modules/v4/claims/claims.service.js.map +1 -1
- package/dist/src/modules/v4/clamm/clamm.controller.js.map +1 -1
- package/dist/src/modules/v4/clamm/clamm.service.js.map +1 -1
- package/dist/src/modules/v4/coingecko/coingecko.service.js.map +1 -1
- package/dist/src/modules/v4/config/config.controller.d.ts +1 -0
- package/dist/src/modules/v4/config/config.service.d.ts +1 -0
- package/dist/src/modules/v4/creator/creator.controller.d.ts +6 -1
- package/dist/src/modules/v4/creator/creator.controller.js.map +1 -1
- package/dist/src/modules/v4/creator/creator.model.d.ts +1 -0
- package/dist/src/modules/v4/creator/creator.service.d.ts +3 -1
- package/dist/src/modules/v4/credit/credit.controller.d.ts +181 -0
- package/dist/src/modules/v4/credit/credit.controller.js.map +1 -0
- package/dist/src/modules/v4/credit/credit.model.d.ts +20 -0
- package/dist/src/modules/v4/credit/credit.model.js.map +1 -0
- package/dist/src/modules/v4/credit/credit.repository.d.ts +51 -0
- package/dist/src/modules/v4/credit/credit.repository.js.map +1 -0
- package/dist/src/modules/v4/credit/credit.service.d.ts +52 -0
- package/dist/src/modules/v4/credit/credit.service.js.map +1 -0
- package/dist/src/modules/v4/discord/discord.service.d.ts +1 -6
- package/dist/src/modules/v4/discord/discord.service.js.map +1 -1
- package/dist/src/modules/v4/dynamicData/dynamicData.service.js.map +1 -1
- package/dist/src/modules/v4/enum/enum.service.js.map +1 -1
- package/dist/src/modules/v4/euler/euler.controller.js.map +1 -1
- package/dist/src/modules/v4/euler/euler.service.js.map +1 -1
- package/dist/src/modules/v4/icon/icon.service.d.ts +1 -1
- package/dist/src/modules/v4/icon/icon.service.js.map +1 -1
- package/dist/src/modules/v4/indexingRange/indexingRange.repository.d.ts +5 -0
- package/dist/src/modules/v4/indexingRange/indexingRange.repository.js.map +1 -1
- package/dist/src/modules/v4/leaf/leaf.repository.d.ts +4 -0
- package/dist/src/modules/v4/leaf/leaf.service.d.ts +12 -8
- package/dist/src/modules/v4/leaf/leaf.service.js.map +1 -1
- package/dist/src/modules/v4/leaf/leafClaim.repository.d.ts +9 -3
- package/dist/src/modules/v4/leaf/leafClaim.repository.js.map +1 -1
- package/dist/src/modules/v4/legacy-claims/claims.controller.js.map +1 -1
- package/dist/src/modules/v4/legacy-claims/claims.service.d.ts +0 -12
- package/dist/src/modules/v4/legacy-claims/claims.service.js.map +1 -1
- package/dist/src/modules/v4/merklRoot/merklRoot.repository.d.ts +0 -4
- package/dist/src/modules/v4/merklRoot/merklRoot.repository.js.map +1 -1
- package/dist/src/modules/v4/merklRoot/merklRoot.service.d.ts +8 -3
- package/dist/src/modules/v4/merklRoot/merklRoot.service.js.map +1 -1
- package/dist/src/modules/v4/node/nodeStatus.service.js.map +1 -1
- package/dist/src/modules/v4/ofac/ofac.controller.js.map +1 -1
- package/dist/src/modules/v4/ofac/ofac.service.js.map +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +16 -0
- package/dist/src/modules/v4/opportunity/opportunity.formatter.d.ts +2 -1
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +4 -0
- package/dist/src/modules/v4/opportunity/opportunity.model.js.map +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.query-transformer.d.ts +9 -0
- package/dist/src/modules/v4/opportunity/opportunity.query-transformer.js.map +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +6 -0
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +11 -2
- package/dist/src/modules/v4/payload/payload.controller.d.ts +3 -0
- package/dist/src/modules/v4/payload/payload.service.d.ts +4 -0
- package/dist/src/modules/v4/programPayload/programPayload.service.js.map +1 -1
- package/dist/src/modules/v4/protocol/protocol.controller.js.map +1 -1
- package/dist/src/modules/v4/protocol/protocol.service.d.ts +1 -5
- package/dist/src/modules/v4/protocol/protocol.service.js.map +1 -1
- package/dist/src/modules/v4/reward/reward.controller.js.map +1 -1
- package/dist/src/modules/v4/reward/reward.service.d.ts +6 -1
- package/dist/src/modules/v4/reward/reward.service.js.map +1 -1
- package/dist/src/modules/v4/router.d.ts +593 -38
- package/dist/src/modules/v4/router.js.map +1 -1
- package/dist/src/modules/v4/stateDescription/stateDescription.controller.js.map +1 -1
- package/dist/src/modules/v4/stateDescription/stateDescription.service.d.ts +0 -6
- package/dist/src/modules/v4/stateDescription/stateDescription.service.js.map +1 -1
- package/dist/src/modules/v4/token/token.service.d.ts +5 -0
- package/dist/src/modules/v4/token/token.service.js.map +1 -1
- package/dist/src/modules/v4/transaction/transaction.service.d.ts +2178 -1650
- package/dist/src/modules/v4/uniswap/uniswap.controller.js.map +1 -1
- package/dist/src/modules/v4/uniswap/uniswap.service.js.map +1 -1
- package/dist/src/modules/v4/user/user.service.js.map +1 -1
- package/dist/src/utils/getAPR.d.ts +1299 -1035
- package/dist/src/utils/parseDistributionType.d.ts +268 -4
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/src/jobs/auto-claim/index.js.map +0 -1
- package/dist/src/modules/v4/bucket/bucket.model.d.ts +0 -9
- package/dist/src/modules/v4/bucket/bucket.model.js.map +0 -1
- package/dist/src/modules/v4/bucket/bucket.service.d.ts +0 -14
- package/dist/src/modules/v4/bucket/bucket.service.js.map +0 -1
- package/dist/src/modules/v4/github/github.controller.d.ts +0 -61
- package/dist/src/modules/v4/github/github.controller.js.map +0 -1
- /package/dist/src/jobs/{auto-claim → auto-claim-etl}/index.d.ts +0 -0
package/dist/src/eden/index.d.ts
CHANGED
|
@@ -1206,6 +1206,356 @@ declare const eden: {
|
|
|
1206
1206
|
}>>;
|
|
1207
1207
|
};
|
|
1208
1208
|
};
|
|
1209
|
+
autoclaim: ((params: {
|
|
1210
|
+
chainId: string | number;
|
|
1211
|
+
}) => {} & ((params: {
|
|
1212
|
+
scopeId: string | number;
|
|
1213
|
+
}) => {
|
|
1214
|
+
get: (options?: {
|
|
1215
|
+
fetch?: RequestInit | undefined;
|
|
1216
|
+
headers?: Record<string, unknown> | undefined;
|
|
1217
|
+
query?: Record<string, unknown> | undefined;
|
|
1218
|
+
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
|
1219
|
+
200: {
|
|
1220
|
+
Campaign: {
|
|
1221
|
+
id: string;
|
|
1222
|
+
computeChainId: number;
|
|
1223
|
+
distributionChainId: number;
|
|
1224
|
+
campaignId: string;
|
|
1225
|
+
type: string;
|
|
1226
|
+
distributionType: import("@package/databases").DistributionType;
|
|
1227
|
+
subType: number | null;
|
|
1228
|
+
rewardTokenId: string;
|
|
1229
|
+
amount: string;
|
|
1230
|
+
opportunityId: string;
|
|
1231
|
+
startTimestamp: bigint;
|
|
1232
|
+
endTimestamp: bigint;
|
|
1233
|
+
params: import("@prisma/client/runtime/client").JsonValue;
|
|
1234
|
+
description: string | null;
|
|
1235
|
+
pauseCompute: string | null;
|
|
1236
|
+
pausePrecompute: string | null;
|
|
1237
|
+
dailyRewards: number;
|
|
1238
|
+
apr: number;
|
|
1239
|
+
creatorAddress: string;
|
|
1240
|
+
manualOverrides: import("@package/databases").CampaignManualOverride[];
|
|
1241
|
+
createdAt: Date;
|
|
1242
|
+
rootCampaignId: string | null;
|
|
1243
|
+
parentCampaignId: string | null;
|
|
1244
|
+
isPrivate: boolean;
|
|
1245
|
+
campaignEncodingHash: string | null;
|
|
1246
|
+
} | null;
|
|
1247
|
+
Creator: {
|
|
1248
|
+
Credit: {
|
|
1249
|
+
creatorId: string;
|
|
1250
|
+
amount: number;
|
|
1251
|
+
} | null;
|
|
1252
|
+
} & {
|
|
1253
|
+
id: string;
|
|
1254
|
+
icon: string | null;
|
|
1255
|
+
name: string;
|
|
1256
|
+
rebateFee: number;
|
|
1257
|
+
hubspotCompanyId: string | null;
|
|
1258
|
+
};
|
|
1259
|
+
Token: {
|
|
1260
|
+
id: string;
|
|
1261
|
+
name: string | null;
|
|
1262
|
+
chainId: number;
|
|
1263
|
+
address: string;
|
|
1264
|
+
decimals: number;
|
|
1265
|
+
symbol: string;
|
|
1266
|
+
displaySymbol: string;
|
|
1267
|
+
icon: string;
|
|
1268
|
+
verified: boolean;
|
|
1269
|
+
isTest: boolean;
|
|
1270
|
+
type: import("@package/databases").TokenType;
|
|
1271
|
+
isNative: boolean;
|
|
1272
|
+
underlyingTokenId: string | null;
|
|
1273
|
+
price: number | null;
|
|
1274
|
+
updatedAt: number | null;
|
|
1275
|
+
priceSource: string | null;
|
|
1276
|
+
} | null;
|
|
1277
|
+
User: {
|
|
1278
|
+
address: string;
|
|
1279
|
+
tags: string[];
|
|
1280
|
+
creatorId: string | null;
|
|
1281
|
+
} | null;
|
|
1282
|
+
} & {
|
|
1283
|
+
chainId: number;
|
|
1284
|
+
scopeType: import("@package/databases").AutoClaimScopeType;
|
|
1285
|
+
scopeId: string;
|
|
1286
|
+
creatorId: string;
|
|
1287
|
+
tokenAddress: string | null;
|
|
1288
|
+
campaignId: string | null;
|
|
1289
|
+
userAddress: string | null;
|
|
1290
|
+
minimumAmount: number | null;
|
|
1291
|
+
minimumInterval: number | null;
|
|
1292
|
+
active: boolean;
|
|
1293
|
+
pricingConfig: import("@prisma/client/runtime/client").JsonValue;
|
|
1294
|
+
};
|
|
1295
|
+
422: {
|
|
1296
|
+
type: "validation";
|
|
1297
|
+
on: string;
|
|
1298
|
+
summary?: string | undefined;
|
|
1299
|
+
message?: string | undefined;
|
|
1300
|
+
found?: unknown;
|
|
1301
|
+
property?: string | undefined;
|
|
1302
|
+
expected?: string | undefined;
|
|
1303
|
+
};
|
|
1304
|
+
}>>;
|
|
1305
|
+
patch: (body: {
|
|
1306
|
+
minimumAmount?: number | undefined;
|
|
1307
|
+
minimumInterval?: number | undefined;
|
|
1308
|
+
active?: boolean | undefined;
|
|
1309
|
+
pricingConfig?: {
|
|
1310
|
+
type: import("@package/resources/enums").PricingConfigType.PER_CLAIM;
|
|
1311
|
+
pricePerClaim?: number | undefined;
|
|
1312
|
+
allowNegativeCredits?: boolean | undefined;
|
|
1313
|
+
} | null | undefined;
|
|
1314
|
+
}, options: {
|
|
1315
|
+
fetch?: RequestInit | undefined;
|
|
1316
|
+
headers: {
|
|
1317
|
+
authorization: string;
|
|
1318
|
+
};
|
|
1319
|
+
query?: Record<string, unknown> | undefined;
|
|
1320
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
|
1321
|
+
200: {
|
|
1322
|
+
chainId: number;
|
|
1323
|
+
scopeType: import("@package/databases").AutoClaimScopeType;
|
|
1324
|
+
scopeId: string;
|
|
1325
|
+
creatorId: string;
|
|
1326
|
+
tokenAddress: string | null;
|
|
1327
|
+
campaignId: string | null;
|
|
1328
|
+
userAddress: string | null;
|
|
1329
|
+
minimumAmount: number | null;
|
|
1330
|
+
minimumInterval: number | null;
|
|
1331
|
+
active: boolean;
|
|
1332
|
+
pricingConfig: import("@prisma/client/runtime/client").JsonValue;
|
|
1333
|
+
};
|
|
1334
|
+
422: {
|
|
1335
|
+
type: "validation";
|
|
1336
|
+
on: string;
|
|
1337
|
+
summary?: string | undefined;
|
|
1338
|
+
message?: string | undefined;
|
|
1339
|
+
found?: unknown;
|
|
1340
|
+
property?: string | undefined;
|
|
1341
|
+
expected?: string | undefined;
|
|
1342
|
+
};
|
|
1343
|
+
}>>;
|
|
1344
|
+
claims: {
|
|
1345
|
+
get: (options: {
|
|
1346
|
+
fetch?: RequestInit | undefined;
|
|
1347
|
+
headers: {
|
|
1348
|
+
authorization: string;
|
|
1349
|
+
};
|
|
1350
|
+
query?: Record<string, unknown> | undefined;
|
|
1351
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
|
1352
|
+
200: {
|
|
1353
|
+
recipient: string;
|
|
1354
|
+
tokenAddress: string;
|
|
1355
|
+
tokenSymbol: string;
|
|
1356
|
+
tokenDecimals: number;
|
|
1357
|
+
tokenIcon: string;
|
|
1358
|
+
distributionChainId: number;
|
|
1359
|
+
amount: string;
|
|
1360
|
+
claimed: string;
|
|
1361
|
+
unclaimed: string;
|
|
1362
|
+
unclaimedUsd: number;
|
|
1363
|
+
proof: string[];
|
|
1364
|
+
root: string;
|
|
1365
|
+
lastClaimedTimestamp: number | undefined;
|
|
1366
|
+
}[];
|
|
1367
|
+
422: {
|
|
1368
|
+
type: "validation";
|
|
1369
|
+
on: string;
|
|
1370
|
+
summary?: string | undefined;
|
|
1371
|
+
message?: string | undefined;
|
|
1372
|
+
found?: unknown;
|
|
1373
|
+
property?: string | undefined;
|
|
1374
|
+
expected?: string | undefined;
|
|
1375
|
+
};
|
|
1376
|
+
}>>;
|
|
1377
|
+
};
|
|
1378
|
+
tracked: {
|
|
1379
|
+
get: (options: {
|
|
1380
|
+
fetch?: RequestInit | undefined;
|
|
1381
|
+
headers: {
|
|
1382
|
+
authorization: string;
|
|
1383
|
+
};
|
|
1384
|
+
query?: Record<string, unknown> | undefined;
|
|
1385
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
|
1386
|
+
200: {
|
|
1387
|
+
recipient: string;
|
|
1388
|
+
tokenAddress: string;
|
|
1389
|
+
tokenSymbol: string;
|
|
1390
|
+
tokenDecimals: number;
|
|
1391
|
+
tokenIcon: string;
|
|
1392
|
+
distributionChainId: number;
|
|
1393
|
+
amount: string;
|
|
1394
|
+
claimed: string;
|
|
1395
|
+
unclaimed: string;
|
|
1396
|
+
unclaimedUsd: number;
|
|
1397
|
+
proof: string[];
|
|
1398
|
+
root: string;
|
|
1399
|
+
lastClaimedTimestamp: number | undefined;
|
|
1400
|
+
}[];
|
|
1401
|
+
422: {
|
|
1402
|
+
type: "validation";
|
|
1403
|
+
on: string;
|
|
1404
|
+
summary?: string | undefined;
|
|
1405
|
+
message?: string | undefined;
|
|
1406
|
+
found?: unknown;
|
|
1407
|
+
property?: string | undefined;
|
|
1408
|
+
expected?: string | undefined;
|
|
1409
|
+
};
|
|
1410
|
+
}>>;
|
|
1411
|
+
};
|
|
1412
|
+
})) & {
|
|
1413
|
+
get: (options: {
|
|
1414
|
+
fetch?: RequestInit | undefined;
|
|
1415
|
+
headers?: Record<string, unknown> | undefined;
|
|
1416
|
+
query: {
|
|
1417
|
+
page?: number | undefined;
|
|
1418
|
+
items?: number | undefined;
|
|
1419
|
+
chainId?: number | undefined;
|
|
1420
|
+
scopeType?: "CAMPAIGN" | "CREATOR" | "TOKEN" | "USER" | undefined;
|
|
1421
|
+
creatorId?: string | undefined;
|
|
1422
|
+
tokenAddress?: string | undefined;
|
|
1423
|
+
userAddress?: string | undefined;
|
|
1424
|
+
active?: boolean | undefined;
|
|
1425
|
+
};
|
|
1426
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
|
1427
|
+
200: ({
|
|
1428
|
+
Campaign: {
|
|
1429
|
+
id: string;
|
|
1430
|
+
computeChainId: number;
|
|
1431
|
+
distributionChainId: number;
|
|
1432
|
+
campaignId: string;
|
|
1433
|
+
type: string;
|
|
1434
|
+
distributionType: import("@package/databases").DistributionType;
|
|
1435
|
+
subType: number | null;
|
|
1436
|
+
rewardTokenId: string;
|
|
1437
|
+
amount: string;
|
|
1438
|
+
opportunityId: string;
|
|
1439
|
+
startTimestamp: bigint;
|
|
1440
|
+
endTimestamp: bigint;
|
|
1441
|
+
params: import("@prisma/client/runtime/client").JsonValue;
|
|
1442
|
+
description: string | null;
|
|
1443
|
+
pauseCompute: string | null;
|
|
1444
|
+
pausePrecompute: string | null;
|
|
1445
|
+
dailyRewards: number;
|
|
1446
|
+
apr: number;
|
|
1447
|
+
creatorAddress: string;
|
|
1448
|
+
manualOverrides: import("@package/databases").CampaignManualOverride[];
|
|
1449
|
+
createdAt: Date;
|
|
1450
|
+
rootCampaignId: string | null;
|
|
1451
|
+
parentCampaignId: string | null;
|
|
1452
|
+
isPrivate: boolean;
|
|
1453
|
+
campaignEncodingHash: string | null;
|
|
1454
|
+
} | null;
|
|
1455
|
+
Creator: {
|
|
1456
|
+
Credit: {
|
|
1457
|
+
creatorId: string;
|
|
1458
|
+
amount: number;
|
|
1459
|
+
} | null;
|
|
1460
|
+
} & {
|
|
1461
|
+
id: string;
|
|
1462
|
+
icon: string | null;
|
|
1463
|
+
name: string;
|
|
1464
|
+
rebateFee: number;
|
|
1465
|
+
hubspotCompanyId: string | null;
|
|
1466
|
+
};
|
|
1467
|
+
Token: {
|
|
1468
|
+
id: string;
|
|
1469
|
+
name: string | null;
|
|
1470
|
+
chainId: number;
|
|
1471
|
+
address: string;
|
|
1472
|
+
decimals: number;
|
|
1473
|
+
symbol: string;
|
|
1474
|
+
displaySymbol: string;
|
|
1475
|
+
icon: string;
|
|
1476
|
+
verified: boolean;
|
|
1477
|
+
isTest: boolean;
|
|
1478
|
+
type: import("@package/databases").TokenType;
|
|
1479
|
+
isNative: boolean;
|
|
1480
|
+
underlyingTokenId: string | null;
|
|
1481
|
+
price: number | null;
|
|
1482
|
+
updatedAt: number | null;
|
|
1483
|
+
priceSource: string | null;
|
|
1484
|
+
} | null;
|
|
1485
|
+
User: {
|
|
1486
|
+
address: string;
|
|
1487
|
+
tags: string[];
|
|
1488
|
+
creatorId: string | null;
|
|
1489
|
+
} | null;
|
|
1490
|
+
} & {
|
|
1491
|
+
chainId: number;
|
|
1492
|
+
scopeType: import("@package/databases").AutoClaimScopeType;
|
|
1493
|
+
scopeId: string;
|
|
1494
|
+
creatorId: string;
|
|
1495
|
+
tokenAddress: string | null;
|
|
1496
|
+
campaignId: string | null;
|
|
1497
|
+
userAddress: string | null;
|
|
1498
|
+
minimumAmount: number | null;
|
|
1499
|
+
minimumInterval: number | null;
|
|
1500
|
+
active: boolean;
|
|
1501
|
+
pricingConfig: import("@prisma/client/runtime/client").JsonValue;
|
|
1502
|
+
})[];
|
|
1503
|
+
422: {
|
|
1504
|
+
type: "validation";
|
|
1505
|
+
on: string;
|
|
1506
|
+
summary?: string | undefined;
|
|
1507
|
+
message?: string | undefined;
|
|
1508
|
+
found?: unknown;
|
|
1509
|
+
property?: string | undefined;
|
|
1510
|
+
expected?: string | undefined;
|
|
1511
|
+
};
|
|
1512
|
+
}>>;
|
|
1513
|
+
post: (body: {
|
|
1514
|
+
chainId: number;
|
|
1515
|
+
scopeType: "CAMPAIGN" | "CREATOR" | "TOKEN" | "USER";
|
|
1516
|
+
scopeId: string;
|
|
1517
|
+
creatorId: string;
|
|
1518
|
+
tokenAddress?: string | undefined;
|
|
1519
|
+
campaignId?: string | undefined;
|
|
1520
|
+
userAddress?: string | undefined;
|
|
1521
|
+
minimumAmount?: number | undefined;
|
|
1522
|
+
minimumInterval?: number | undefined;
|
|
1523
|
+
pricingConfig?: {
|
|
1524
|
+
type: import("@package/resources/enums").PricingConfigType.PER_CLAIM;
|
|
1525
|
+
pricePerClaim?: number | undefined;
|
|
1526
|
+
allowNegativeCredits?: boolean | undefined;
|
|
1527
|
+
} | undefined;
|
|
1528
|
+
}, options: {
|
|
1529
|
+
fetch?: RequestInit | undefined;
|
|
1530
|
+
headers: {
|
|
1531
|
+
authorization: string;
|
|
1532
|
+
};
|
|
1533
|
+
query?: Record<string, unknown> | undefined;
|
|
1534
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
|
1535
|
+
200: {
|
|
1536
|
+
chainId: number;
|
|
1537
|
+
scopeType: import("@package/databases").AutoClaimScopeType;
|
|
1538
|
+
scopeId: string;
|
|
1539
|
+
creatorId: string;
|
|
1540
|
+
tokenAddress: string | null;
|
|
1541
|
+
campaignId: string | null;
|
|
1542
|
+
userAddress: string | null;
|
|
1543
|
+
minimumAmount: number | null;
|
|
1544
|
+
minimumInterval: number | null;
|
|
1545
|
+
active: boolean;
|
|
1546
|
+
pricingConfig: import("@prisma/client/runtime/client").JsonValue;
|
|
1547
|
+
};
|
|
1548
|
+
422: {
|
|
1549
|
+
type: "validation";
|
|
1550
|
+
on: string;
|
|
1551
|
+
summary?: string | undefined;
|
|
1552
|
+
message?: string | undefined;
|
|
1553
|
+
found?: unknown;
|
|
1554
|
+
property?: string | undefined;
|
|
1555
|
+
expected?: string | undefined;
|
|
1556
|
+
};
|
|
1557
|
+
}>>;
|
|
1558
|
+
};
|
|
1209
1559
|
blacklists: {
|
|
1210
1560
|
get: (options: {
|
|
1211
1561
|
fetch?: RequestInit | undefined;
|
|
@@ -1288,7 +1638,9 @@ declare const eden: {
|
|
|
1288
1638
|
fetch?: RequestInit | undefined;
|
|
1289
1639
|
headers?: Record<string, unknown> | undefined;
|
|
1290
1640
|
query?: Record<string, unknown> | undefined;
|
|
1291
|
-
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
|
1641
|
+
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
|
1642
|
+
200: Record<string, boolean>;
|
|
1643
|
+
}>>;
|
|
1292
1644
|
};
|
|
1293
1645
|
user: ((params: {
|
|
1294
1646
|
address: string | number;
|
|
@@ -2037,6 +2389,7 @@ declare const eden: {
|
|
|
2037
2389
|
onChainCampaignId?: string | undefined;
|
|
2038
2390
|
}[] | undefined;
|
|
2039
2391
|
pauseCompute?: string | null | undefined;
|
|
2392
|
+
pausePrecompute?: string | null | undefined;
|
|
2040
2393
|
hasOverrides?: boolean | undefined;
|
|
2041
2394
|
isPrivate: boolean;
|
|
2042
2395
|
campaignEncodingHash?: string | undefined;
|
|
@@ -2163,6 +2516,7 @@ declare const eden: {
|
|
|
2163
2516
|
params: unknown;
|
|
2164
2517
|
parentCampaignId?: string | null | undefined;
|
|
2165
2518
|
pauseCompute?: string | null | undefined;
|
|
2519
|
+
pausePrecompute?: string | null | undefined;
|
|
2166
2520
|
rewardToken: {
|
|
2167
2521
|
id: string;
|
|
2168
2522
|
name: string | null;
|
|
@@ -2200,6 +2554,7 @@ declare const eden: {
|
|
|
2200
2554
|
patch: (body: {
|
|
2201
2555
|
description?: string | undefined;
|
|
2202
2556
|
pauseCompute?: string | null | undefined;
|
|
2557
|
+
pausePrecompute?: string | null | undefined;
|
|
2203
2558
|
}, options: {
|
|
2204
2559
|
fetch?: RequestInit | undefined;
|
|
2205
2560
|
headers: {
|
|
@@ -2209,7 +2564,7 @@ declare const eden: {
|
|
|
2209
2564
|
applyToAllCampaignsInOpportunity?: boolean | undefined;
|
|
2210
2565
|
};
|
|
2211
2566
|
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
|
2212
|
-
200: (Omit<CampaignWithParams<CampaignType>, "createdAt" | "endTimestamp" | "manualOverrides" | "parentCampaignId" | "pauseCompute" | "rootCampaignId" | "startTimestamp" | "subType"> & {
|
|
2567
|
+
200: (Omit<CampaignWithParams<CampaignType>, "createdAt" | "endTimestamp" | "manualOverrides" | "parentCampaignId" | "pauseCompute" | "pausePrecompute" | "rootCampaignId" | "startTimestamp" | "subType"> & {
|
|
2213
2568
|
subType: number | null;
|
|
2214
2569
|
startTimestamp: number;
|
|
2215
2570
|
endTimestamp: number;
|
|
@@ -2217,7 +2572,8 @@ declare const eden: {
|
|
|
2217
2572
|
parentCampaignId?: string | undefined;
|
|
2218
2573
|
rootCampaignId?: string | undefined;
|
|
2219
2574
|
pauseCompute?: string | undefined;
|
|
2220
|
-
|
|
2575
|
+
pausePrecompute?: string | undefined;
|
|
2576
|
+
})[] | (Omit<CampaignWithParams<CampaignType>, "createdAt" | "endTimestamp" | "manualOverrides" | "parentCampaignId" | "pauseCompute" | "pausePrecompute" | "rootCampaignId" | "startTimestamp" | "subType"> & {
|
|
2221
2577
|
subType: number | null;
|
|
2222
2578
|
startTimestamp: number;
|
|
2223
2579
|
endTimestamp: number;
|
|
@@ -2225,6 +2581,7 @@ declare const eden: {
|
|
|
2225
2581
|
parentCampaignId?: string | undefined;
|
|
2226
2582
|
rootCampaignId?: string | undefined;
|
|
2227
2583
|
pauseCompute?: string | undefined;
|
|
2584
|
+
pausePrecompute?: string | undefined;
|
|
2228
2585
|
} & {
|
|
2229
2586
|
Opportunity: {
|
|
2230
2587
|
chainId: number;
|
|
@@ -2686,6 +3043,7 @@ declare const eden: {
|
|
|
2686
3043
|
onChainCampaignId?: string | undefined;
|
|
2687
3044
|
}[] | undefined;
|
|
2688
3045
|
pauseCompute?: string | null | undefined;
|
|
3046
|
+
pausePrecompute?: string | null | undefined;
|
|
2689
3047
|
hasOverrides?: boolean | undefined;
|
|
2690
3048
|
isPrivate: boolean;
|
|
2691
3049
|
campaignEncodingHash?: string | undefined;
|
|
@@ -2966,6 +3324,7 @@ declare const eden: {
|
|
|
2966
3324
|
onChainCampaignId?: string | undefined;
|
|
2967
3325
|
}[] | undefined;
|
|
2968
3326
|
pauseCompute?: string | null | undefined;
|
|
3327
|
+
pausePrecompute?: string | null | undefined;
|
|
2969
3328
|
hasOverrides?: boolean | undefined;
|
|
2970
3329
|
isPrivate: boolean;
|
|
2971
3330
|
campaignEncodingHash?: string | undefined;
|
|
@@ -3246,6 +3605,7 @@ declare const eden: {
|
|
|
3246
3605
|
onChainCampaignId?: string | undefined;
|
|
3247
3606
|
}[] | undefined;
|
|
3248
3607
|
pauseCompute?: string | null | undefined;
|
|
3608
|
+
pausePrecompute?: string | null | undefined;
|
|
3249
3609
|
hasOverrides?: boolean | undefined;
|
|
3250
3610
|
isPrivate: boolean;
|
|
3251
3611
|
campaignEncodingHash?: string | undefined;
|
|
@@ -3463,6 +3823,7 @@ declare const eden: {
|
|
|
3463
3823
|
onChainCampaignId?: string | undefined;
|
|
3464
3824
|
}[] | undefined;
|
|
3465
3825
|
pauseCompute?: string | null | undefined;
|
|
3826
|
+
pausePrecompute?: string | null | undefined;
|
|
3466
3827
|
hasOverrides?: boolean | undefined;
|
|
3467
3828
|
isPrivate: boolean;
|
|
3468
3829
|
campaignEncodingHash?: string | undefined;
|
|
@@ -3589,6 +3950,7 @@ declare const eden: {
|
|
|
3589
3950
|
params: unknown;
|
|
3590
3951
|
parentCampaignId?: string | null | undefined;
|
|
3591
3952
|
pauseCompute?: string | null | undefined;
|
|
3953
|
+
pausePrecompute?: string | null | undefined;
|
|
3592
3954
|
rewardToken: {
|
|
3593
3955
|
id: string;
|
|
3594
3956
|
name: string | null;
|
|
@@ -4040,6 +4402,7 @@ declare const eden: {
|
|
|
4040
4402
|
params: import("@prisma/client/runtime/client").JsonValue;
|
|
4041
4403
|
description: string | null;
|
|
4042
4404
|
pauseCompute: string | null;
|
|
4405
|
+
pausePrecompute: string | null;
|
|
4043
4406
|
dailyRewards: number;
|
|
4044
4407
|
apr: number;
|
|
4045
4408
|
creatorAddress: string;
|
|
@@ -4295,6 +4658,7 @@ declare const eden: {
|
|
|
4295
4658
|
params: import("@prisma/client/runtime/client").JsonValue;
|
|
4296
4659
|
description: string | null;
|
|
4297
4660
|
pauseCompute: string | null;
|
|
4661
|
+
pausePrecompute: string | null;
|
|
4298
4662
|
dailyRewards: number;
|
|
4299
4663
|
apr: number;
|
|
4300
4664
|
creatorAddress: string;
|
|
@@ -4549,6 +4913,7 @@ declare const eden: {
|
|
|
4549
4913
|
params: import("@prisma/client/runtime/client").JsonValue;
|
|
4550
4914
|
description: string | null;
|
|
4551
4915
|
pauseCompute: string | null;
|
|
4916
|
+
pausePrecompute: string | null;
|
|
4552
4917
|
dailyRewards: number;
|
|
4553
4918
|
apr: number;
|
|
4554
4919
|
creatorAddress: string;
|
|
@@ -4803,6 +5168,7 @@ declare const eden: {
|
|
|
4803
5168
|
params: import("@prisma/client/runtime/client").JsonValue;
|
|
4804
5169
|
description: string | null;
|
|
4805
5170
|
pauseCompute: string | null;
|
|
5171
|
+
pausePrecompute: string | null;
|
|
4806
5172
|
dailyRewards: number;
|
|
4807
5173
|
apr: number;
|
|
4808
5174
|
creatorAddress: string;
|
|
@@ -5554,7 +5920,7 @@ declare const eden: {
|
|
|
5554
5920
|
};
|
|
5555
5921
|
query?: Record<string, unknown> | undefined;
|
|
5556
5922
|
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
|
5557
|
-
200: Omit<CampaignWithParams<CampaignType>, "createdAt" | "endTimestamp" | "manualOverrides" | "parentCampaignId" | "pauseCompute" | "rootCampaignId" | "startTimestamp" | "subType"> & {
|
|
5923
|
+
200: Omit<CampaignWithParams<CampaignType>, "createdAt" | "endTimestamp" | "manualOverrides" | "parentCampaignId" | "pauseCompute" | "pausePrecompute" | "rootCampaignId" | "startTimestamp" | "subType"> & {
|
|
5558
5924
|
subType: number | null;
|
|
5559
5925
|
startTimestamp: number;
|
|
5560
5926
|
endTimestamp: number;
|
|
@@ -5562,6 +5928,7 @@ declare const eden: {
|
|
|
5562
5928
|
parentCampaignId?: string | undefined;
|
|
5563
5929
|
rootCampaignId?: string | undefined;
|
|
5564
5930
|
pauseCompute?: string | undefined;
|
|
5931
|
+
pausePrecompute?: string | undefined;
|
|
5565
5932
|
} & {
|
|
5566
5933
|
Opportunity: {
|
|
5567
5934
|
chainId: number;
|
|
@@ -5723,7 +6090,7 @@ declare const eden: {
|
|
|
5723
6090
|
};
|
|
5724
6091
|
query?: Record<string, unknown> | undefined;
|
|
5725
6092
|
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
|
5726
|
-
200: Omit<CampaignWithParams<CampaignType>, "createdAt" | "endTimestamp" | "manualOverrides" | "parentCampaignId" | "pauseCompute" | "rootCampaignId" | "startTimestamp" | "subType"> & {
|
|
6093
|
+
200: Omit<CampaignWithParams<CampaignType>, "createdAt" | "endTimestamp" | "manualOverrides" | "parentCampaignId" | "pauseCompute" | "pausePrecompute" | "rootCampaignId" | "startTimestamp" | "subType"> & {
|
|
5727
6094
|
subType: number | null;
|
|
5728
6095
|
startTimestamp: number;
|
|
5729
6096
|
endTimestamp: number;
|
|
@@ -5731,6 +6098,7 @@ declare const eden: {
|
|
|
5731
6098
|
parentCampaignId?: string | undefined;
|
|
5732
6099
|
rootCampaignId?: string | undefined;
|
|
5733
6100
|
pauseCompute?: string | undefined;
|
|
6101
|
+
pausePrecompute?: string | undefined;
|
|
5734
6102
|
} & {
|
|
5735
6103
|
Opportunity: {
|
|
5736
6104
|
chainId: number;
|
|
@@ -9055,6 +9423,7 @@ declare const eden: {
|
|
|
9055
9423
|
params: import("@prisma/client/runtime/client").JsonValue;
|
|
9056
9424
|
description: string | null;
|
|
9057
9425
|
pauseCompute: string | null;
|
|
9426
|
+
pausePrecompute: string | null;
|
|
9058
9427
|
dailyRewards: number;
|
|
9059
9428
|
apr: number;
|
|
9060
9429
|
creatorAddress: string;
|
|
@@ -9460,7 +9829,7 @@ declare const eden: {
|
|
|
9460
9829
|
status?: "FUTURE" | "LIVE" | "PAST" | undefined;
|
|
9461
9830
|
};
|
|
9462
9831
|
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
|
9463
|
-
200: (Omit<CampaignWithParams<CampaignType>, "createdAt" | "endTimestamp" | "manualOverrides" | "parentCampaignId" | "pauseCompute" | "rootCampaignId" | "startTimestamp" | "subType"> & {
|
|
9832
|
+
200: (Omit<CampaignWithParams<CampaignType>, "createdAt" | "endTimestamp" | "manualOverrides" | "parentCampaignId" | "pauseCompute" | "pausePrecompute" | "rootCampaignId" | "startTimestamp" | "subType"> & {
|
|
9464
9833
|
subType: number | null;
|
|
9465
9834
|
startTimestamp: number;
|
|
9466
9835
|
endTimestamp: number;
|
|
@@ -9468,6 +9837,7 @@ declare const eden: {
|
|
|
9468
9837
|
parentCampaignId?: string | undefined;
|
|
9469
9838
|
rootCampaignId?: string | undefined;
|
|
9470
9839
|
pauseCompute?: string | undefined;
|
|
9840
|
+
pausePrecompute?: string | undefined;
|
|
9471
9841
|
})[] | ({
|
|
9472
9842
|
Opportunity: {
|
|
9473
9843
|
id: string;
|
|
@@ -9513,6 +9883,7 @@ declare const eden: {
|
|
|
9513
9883
|
params: import("@prisma/client/runtime/client").JsonValue;
|
|
9514
9884
|
description: string | null;
|
|
9515
9885
|
pauseCompute: string | null;
|
|
9886
|
+
pausePrecompute: string | null;
|
|
9516
9887
|
dailyRewards: number;
|
|
9517
9888
|
apr: number;
|
|
9518
9889
|
creatorAddress: string;
|
|
@@ -9650,6 +10021,7 @@ declare const eden: {
|
|
|
9650
10021
|
maximumDailyRewards?: number | undefined;
|
|
9651
10022
|
status?: string | undefined;
|
|
9652
10023
|
identifier?: string | undefined;
|
|
10024
|
+
id?: string | undefined;
|
|
9653
10025
|
tokens?: string | undefined;
|
|
9654
10026
|
stablecoin?: boolean | undefined;
|
|
9655
10027
|
rewardTokenSymbol?: string | undefined;
|
|
@@ -9938,6 +10310,7 @@ declare const eden: {
|
|
|
9938
10310
|
onChainCampaignId?: string | undefined;
|
|
9939
10311
|
}[] | undefined;
|
|
9940
10312
|
pauseCompute?: string | null | undefined;
|
|
10313
|
+
pausePrecompute?: string | null | undefined;
|
|
9941
10314
|
hasOverrides?: boolean | undefined;
|
|
9942
10315
|
isPrivate: boolean;
|
|
9943
10316
|
campaignEncodingHash?: string | undefined;
|
|
@@ -9974,6 +10347,7 @@ declare const eden: {
|
|
|
9974
10347
|
maximumDailyRewards?: number | undefined;
|
|
9975
10348
|
status?: string | undefined;
|
|
9976
10349
|
identifier?: string | undefined;
|
|
10350
|
+
id?: string | undefined;
|
|
9977
10351
|
tokens?: string | undefined;
|
|
9978
10352
|
stablecoin?: boolean | undefined;
|
|
9979
10353
|
rewardTokenSymbol?: string | undefined;
|
|
@@ -10190,6 +10564,126 @@ declare const eden: {
|
|
|
10190
10564
|
};
|
|
10191
10565
|
}) & {};
|
|
10192
10566
|
};
|
|
10567
|
+
credits: ((params: {
|
|
10568
|
+
creatorId: string | number;
|
|
10569
|
+
}) => {
|
|
10570
|
+
get: (options?: {
|
|
10571
|
+
fetch?: RequestInit | undefined;
|
|
10572
|
+
headers?: Record<string, unknown> | undefined;
|
|
10573
|
+
query?: Record<string, unknown> | undefined;
|
|
10574
|
+
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
|
10575
|
+
200: {
|
|
10576
|
+
Creator: {
|
|
10577
|
+
id: string;
|
|
10578
|
+
icon: string | null;
|
|
10579
|
+
name: string;
|
|
10580
|
+
rebateFee: number;
|
|
10581
|
+
hubspotCompanyId: string | null;
|
|
10582
|
+
};
|
|
10583
|
+
CreditOperations: {
|
|
10584
|
+
id: string;
|
|
10585
|
+
creatorId: string;
|
|
10586
|
+
type: import("@package/databases").CreditOperationType;
|
|
10587
|
+
amount: number;
|
|
10588
|
+
label: string;
|
|
10589
|
+
timestamp: Date;
|
|
10590
|
+
}[];
|
|
10591
|
+
} & {
|
|
10592
|
+
creatorId: string;
|
|
10593
|
+
amount: number;
|
|
10594
|
+
};
|
|
10595
|
+
422: {
|
|
10596
|
+
type: "validation";
|
|
10597
|
+
on: string;
|
|
10598
|
+
summary?: string | undefined;
|
|
10599
|
+
message?: string | undefined;
|
|
10600
|
+
found?: unknown;
|
|
10601
|
+
property?: string | undefined;
|
|
10602
|
+
expected?: string | undefined;
|
|
10603
|
+
};
|
|
10604
|
+
}>>;
|
|
10605
|
+
operations: {
|
|
10606
|
+
get: (options: {
|
|
10607
|
+
fetch?: RequestInit | undefined;
|
|
10608
|
+
headers?: Record<string, unknown> | undefined;
|
|
10609
|
+
query: {
|
|
10610
|
+
page?: number | undefined;
|
|
10611
|
+
items?: number | undefined;
|
|
10612
|
+
};
|
|
10613
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
|
10614
|
+
200: {
|
|
10615
|
+
id: string;
|
|
10616
|
+
creatorId: string;
|
|
10617
|
+
type: import("@package/databases").CreditOperationType;
|
|
10618
|
+
amount: number;
|
|
10619
|
+
label: string;
|
|
10620
|
+
timestamp: string;
|
|
10621
|
+
}[];
|
|
10622
|
+
422: {
|
|
10623
|
+
type: "validation";
|
|
10624
|
+
on: string;
|
|
10625
|
+
summary?: string | undefined;
|
|
10626
|
+
message?: string | undefined;
|
|
10627
|
+
found?: unknown;
|
|
10628
|
+
property?: string | undefined;
|
|
10629
|
+
expected?: string | undefined;
|
|
10630
|
+
};
|
|
10631
|
+
}>>;
|
|
10632
|
+
};
|
|
10633
|
+
}) & {
|
|
10634
|
+
post: (body: {
|
|
10635
|
+
creatorId: string;
|
|
10636
|
+
amount: number;
|
|
10637
|
+
label: string;
|
|
10638
|
+
}, options: {
|
|
10639
|
+
fetch?: RequestInit | undefined;
|
|
10640
|
+
headers: {
|
|
10641
|
+
authorization: string;
|
|
10642
|
+
};
|
|
10643
|
+
query?: Record<string, unknown> | undefined;
|
|
10644
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
|
10645
|
+
200: {
|
|
10646
|
+
creatorId: string;
|
|
10647
|
+
amount: number;
|
|
10648
|
+
};
|
|
10649
|
+
422: {
|
|
10650
|
+
type: "validation";
|
|
10651
|
+
on: string;
|
|
10652
|
+
summary?: string | undefined;
|
|
10653
|
+
message?: string | undefined;
|
|
10654
|
+
found?: unknown;
|
|
10655
|
+
property?: string | undefined;
|
|
10656
|
+
expected?: string | undefined;
|
|
10657
|
+
};
|
|
10658
|
+
}>>;
|
|
10659
|
+
subtract: {
|
|
10660
|
+
post: (body: {
|
|
10661
|
+
creatorId: string;
|
|
10662
|
+
amount: number;
|
|
10663
|
+
label: string;
|
|
10664
|
+
}, options: {
|
|
10665
|
+
fetch?: RequestInit | undefined;
|
|
10666
|
+
headers: {
|
|
10667
|
+
authorization: string;
|
|
10668
|
+
};
|
|
10669
|
+
query?: Record<string, unknown> | undefined;
|
|
10670
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
|
10671
|
+
200: {
|
|
10672
|
+
creatorId: string;
|
|
10673
|
+
amount: number;
|
|
10674
|
+
};
|
|
10675
|
+
422: {
|
|
10676
|
+
type: "validation";
|
|
10677
|
+
on: string;
|
|
10678
|
+
summary?: string | undefined;
|
|
10679
|
+
message?: string | undefined;
|
|
10680
|
+
found?: unknown;
|
|
10681
|
+
property?: string | undefined;
|
|
10682
|
+
expected?: string | undefined;
|
|
10683
|
+
};
|
|
10684
|
+
}>>;
|
|
10685
|
+
};
|
|
10686
|
+
};
|
|
10193
10687
|
diffs: {
|
|
10194
10688
|
get: (options: {
|
|
10195
10689
|
fetch?: RequestInit | undefined;
|
|
@@ -10883,35 +11377,6 @@ declare const eden: {
|
|
|
10883
11377
|
};
|
|
10884
11378
|
}>>;
|
|
10885
11379
|
};
|
|
10886
|
-
github: {
|
|
10887
|
-
get: (options: {
|
|
10888
|
-
fetch?: RequestInit | undefined;
|
|
10889
|
-
headers: {
|
|
10890
|
-
authorization: string;
|
|
10891
|
-
};
|
|
10892
|
-
query: {
|
|
10893
|
-
month: number;
|
|
10894
|
-
year: number;
|
|
10895
|
-
};
|
|
10896
|
-
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
|
10897
|
-
200: {
|
|
10898
|
-
count: number;
|
|
10899
|
-
additions: number;
|
|
10900
|
-
deletions: number;
|
|
10901
|
-
author: string;
|
|
10902
|
-
category: string;
|
|
10903
|
-
}[];
|
|
10904
|
-
422: {
|
|
10905
|
-
type: "validation";
|
|
10906
|
-
on: string;
|
|
10907
|
-
summary?: string | undefined;
|
|
10908
|
-
message?: string | undefined;
|
|
10909
|
-
found?: unknown;
|
|
10910
|
-
property?: string | undefined;
|
|
10911
|
-
expected?: string | undefined;
|
|
10912
|
-
};
|
|
10913
|
-
}>>;
|
|
10914
|
-
};
|
|
10915
11380
|
"indexing-range": {
|
|
10916
11381
|
engine: {
|
|
10917
11382
|
lock: ((params: {
|
|
@@ -11692,6 +12157,7 @@ declare const eden: {
|
|
|
11692
12157
|
onChainCampaignId?: string | undefined;
|
|
11693
12158
|
}[] | undefined;
|
|
11694
12159
|
pauseCompute?: string | null | undefined;
|
|
12160
|
+
pausePrecompute?: string | null | undefined;
|
|
11695
12161
|
hasOverrides?: boolean | undefined;
|
|
11696
12162
|
isPrivate: boolean;
|
|
11697
12163
|
campaignEncodingHash?: string | undefined;
|
|
@@ -11971,6 +12437,7 @@ declare const eden: {
|
|
|
11971
12437
|
onChainCampaignId?: string | undefined;
|
|
11972
12438
|
}[] | undefined;
|
|
11973
12439
|
pauseCompute?: string | null | undefined;
|
|
12440
|
+
pausePrecompute?: string | null | undefined;
|
|
11974
12441
|
hasOverrides?: boolean | undefined;
|
|
11975
12442
|
isPrivate: boolean;
|
|
11976
12443
|
campaignEncodingHash?: string | undefined;
|
|
@@ -12060,6 +12527,7 @@ declare const eden: {
|
|
|
12060
12527
|
params: import("@prisma/client/runtime/client").JsonValue;
|
|
12061
12528
|
description: string | null;
|
|
12062
12529
|
pauseCompute: string | null;
|
|
12530
|
+
pausePrecompute: string | null;
|
|
12063
12531
|
dailyRewards: number;
|
|
12064
12532
|
apr: number;
|
|
12065
12533
|
creatorAddress: string;
|
|
@@ -12603,6 +13071,7 @@ declare const eden: {
|
|
|
12603
13071
|
onChainCampaignId?: string | undefined;
|
|
12604
13072
|
}[] | undefined;
|
|
12605
13073
|
pauseCompute?: string | null | undefined;
|
|
13074
|
+
pausePrecompute?: string | null | undefined;
|
|
12606
13075
|
hasOverrides?: boolean | undefined;
|
|
12607
13076
|
isPrivate: boolean;
|
|
12608
13077
|
campaignEncodingHash?: string | undefined;
|
|
@@ -12842,6 +13311,7 @@ declare const eden: {
|
|
|
12842
13311
|
params: import("@prisma/client/runtime/client").JsonValue;
|
|
12843
13312
|
description: string | null;
|
|
12844
13313
|
pauseCompute: string | null;
|
|
13314
|
+
pausePrecompute: string | null;
|
|
12845
13315
|
dailyRewards: number;
|
|
12846
13316
|
apr: number;
|
|
12847
13317
|
creatorAddress: string;
|
|
@@ -13148,6 +13618,7 @@ declare const eden: {
|
|
|
13148
13618
|
maximumDailyRewards?: number | undefined;
|
|
13149
13619
|
status?: string | undefined;
|
|
13150
13620
|
identifier?: string | undefined;
|
|
13621
|
+
id?: string | undefined;
|
|
13151
13622
|
campaigns?: boolean | undefined;
|
|
13152
13623
|
tokens?: string | undefined;
|
|
13153
13624
|
stablecoin?: boolean | undefined;
|
|
@@ -13439,6 +13910,7 @@ declare const eden: {
|
|
|
13439
13910
|
onChainCampaignId?: string | undefined;
|
|
13440
13911
|
}[] | undefined;
|
|
13441
13912
|
pauseCompute?: string | null | undefined;
|
|
13913
|
+
pausePrecompute?: string | null | undefined;
|
|
13442
13914
|
hasOverrides?: boolean | undefined;
|
|
13443
13915
|
isPrivate: boolean;
|
|
13444
13916
|
campaignEncodingHash?: string | undefined;
|
|
@@ -13718,6 +14190,7 @@ declare const eden: {
|
|
|
13718
14190
|
onChainCampaignId?: string | undefined;
|
|
13719
14191
|
}[] | undefined;
|
|
13720
14192
|
pauseCompute?: string | null | undefined;
|
|
14193
|
+
pausePrecompute?: string | null | undefined;
|
|
13721
14194
|
hasOverrides?: boolean | undefined;
|
|
13722
14195
|
isPrivate: boolean;
|
|
13723
14196
|
campaignEncodingHash?: string | undefined;
|
|
@@ -13762,6 +14235,7 @@ declare const eden: {
|
|
|
13762
14235
|
maximumDailyRewards?: number | undefined;
|
|
13763
14236
|
status?: string | undefined;
|
|
13764
14237
|
identifier?: string | undefined;
|
|
14238
|
+
id?: string | undefined;
|
|
13765
14239
|
campaigns?: boolean | undefined;
|
|
13766
14240
|
tokens?: string | undefined;
|
|
13767
14241
|
stablecoin?: boolean | undefined;
|
|
@@ -13821,6 +14295,7 @@ declare const eden: {
|
|
|
13821
14295
|
maximumDailyRewards?: number | undefined;
|
|
13822
14296
|
status?: string | undefined;
|
|
13823
14297
|
identifier?: string | undefined;
|
|
14298
|
+
id?: string | undefined;
|
|
13824
14299
|
campaigns?: boolean | undefined;
|
|
13825
14300
|
tokens?: string | undefined;
|
|
13826
14301
|
stablecoin?: boolean | undefined;
|
|
@@ -13880,6 +14355,7 @@ declare const eden: {
|
|
|
13880
14355
|
maximumDailyRewards?: number | undefined;
|
|
13881
14356
|
status?: string | undefined;
|
|
13882
14357
|
identifier?: string | undefined;
|
|
14358
|
+
id?: string | undefined;
|
|
13883
14359
|
campaigns?: boolean | undefined;
|
|
13884
14360
|
tokens?: string | undefined;
|
|
13885
14361
|
stablecoin?: boolean | undefined;
|
|
@@ -13976,6 +14452,7 @@ declare const eden: {
|
|
|
13976
14452
|
maximumDailyRewards?: number | undefined;
|
|
13977
14453
|
status?: string | undefined;
|
|
13978
14454
|
identifier?: string | undefined;
|
|
14455
|
+
id?: string | undefined;
|
|
13979
14456
|
campaigns?: boolean | undefined;
|
|
13980
14457
|
tokens?: string | undefined;
|
|
13981
14458
|
stablecoin?: boolean | undefined;
|
|
@@ -14037,6 +14514,7 @@ declare const eden: {
|
|
|
14037
14514
|
maximumDailyRewards?: number | undefined;
|
|
14038
14515
|
status?: string | undefined;
|
|
14039
14516
|
identifier?: string | undefined;
|
|
14517
|
+
id?: string | undefined;
|
|
14040
14518
|
campaigns?: boolean | undefined;
|
|
14041
14519
|
tokens?: string | undefined;
|
|
14042
14520
|
stablecoin?: boolean | undefined;
|
|
@@ -14098,6 +14576,7 @@ declare const eden: {
|
|
|
14098
14576
|
maximumDailyRewards?: number | undefined;
|
|
14099
14577
|
status?: string | undefined;
|
|
14100
14578
|
identifier?: string | undefined;
|
|
14579
|
+
id?: string | undefined;
|
|
14101
14580
|
campaigns?: boolean | undefined;
|
|
14102
14581
|
tokens?: string | undefined;
|
|
14103
14582
|
stablecoin?: boolean | undefined;
|
|
@@ -14449,6 +14928,7 @@ declare const eden: {
|
|
|
14449
14928
|
onChainCampaignId?: string | undefined;
|
|
14450
14929
|
}[] | undefined;
|
|
14451
14930
|
pauseCompute?: string | null | undefined;
|
|
14931
|
+
pausePrecompute?: string | null | undefined;
|
|
14452
14932
|
hasOverrides?: boolean | undefined;
|
|
14453
14933
|
isPrivate: boolean;
|
|
14454
14934
|
campaignEncodingHash?: string | undefined;
|
|
@@ -14501,6 +14981,7 @@ declare const eden: {
|
|
|
14501
14981
|
maximumDailyRewards?: number | undefined;
|
|
14502
14982
|
status?: string | undefined;
|
|
14503
14983
|
identifier?: string | undefined;
|
|
14984
|
+
id?: string | undefined;
|
|
14504
14985
|
campaigns?: boolean | undefined;
|
|
14505
14986
|
tokens?: string | undefined;
|
|
14506
14987
|
stablecoin?: boolean | undefined;
|
|
@@ -14787,6 +15268,7 @@ declare const eden: {
|
|
|
14787
15268
|
params: import("@prisma/client/runtime/client").JsonValue;
|
|
14788
15269
|
description: string | null;
|
|
14789
15270
|
pauseCompute: string | null;
|
|
15271
|
+
pausePrecompute: string | null;
|
|
14790
15272
|
dailyRewards: number;
|
|
14791
15273
|
apr: number;
|
|
14792
15274
|
creatorAddress: string;
|
|
@@ -15082,6 +15564,7 @@ declare const eden: {
|
|
|
15082
15564
|
params: import("@prisma/client/runtime/client").JsonValue;
|
|
15083
15565
|
description: string | null;
|
|
15084
15566
|
pauseCompute: string | null;
|
|
15567
|
+
pausePrecompute: string | null;
|
|
15085
15568
|
dailyRewards: number;
|
|
15086
15569
|
apr: number;
|
|
15087
15570
|
creatorAddress: string;
|
|
@@ -15423,6 +15906,7 @@ declare const eden: {
|
|
|
15423
15906
|
params: import("@prisma/client/runtime/client").JsonValue;
|
|
15424
15907
|
description: string | null;
|
|
15425
15908
|
pauseCompute: string | null;
|
|
15909
|
+
pausePrecompute: string | null;
|
|
15426
15910
|
dailyRewards: number;
|
|
15427
15911
|
apr: number;
|
|
15428
15912
|
creatorAddress: string;
|