@longdotxyz/shared 0.0.43 → 0.0.45
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/contracts/asset.contract.d.ts +132 -132
- package/dist/contracts/asset.contract.js +29 -16
- package/dist/contracts/asset.contract.js.map +1 -1
- package/dist/contracts/auction-template.contract.d.ts +16 -0
- package/dist/contracts/auction-template.contract.js +2 -0
- package/dist/contracts/auction-template.contract.js.map +1 -1
- package/dist/contracts/index.d.ts +112 -102
- package/package.json +1 -1
|
@@ -14,7 +14,10 @@ const AssetResponse = zod_1.default
|
|
|
14
14
|
asset_numeraire_address: zod_1.default.string().pipe(types_1.hex).describe("**Quote Token Address** — EVM address of the numeraire (quote) token used for pricing this asset and directly paired with the asset in the auction."),
|
|
15
15
|
asset_creation_timestamp: zod_1.default.coerce.date().describe("**Creation Timestamp** — Date when the asset was initially created and deployed to the blockchain. Use this to calculate asset age or filter by creation date."),
|
|
16
16
|
asset_current_pool: zod_1.default.string().describe("**Current Pool** - The current pool that the asset is in. Can be `auction` or `graduation`."),
|
|
17
|
-
asset_migration_timestamp: zod_1.default.coerce
|
|
17
|
+
asset_migration_timestamp: zod_1.default.coerce
|
|
18
|
+
.date()
|
|
19
|
+
.nullable()
|
|
20
|
+
.describe("**Migration Timestamp** — Date when the asset was migrated from the auction pool to the graduation pool. Returns `null` if the asset hasn't migrated yet (still in auction phase) or auction ended unsuccessfully."),
|
|
18
21
|
asset_status: zod_1.default
|
|
19
22
|
.enum([types_1.AssetStatus.GRADUATED, types_1.AssetStatus.LIVE, types_1.AssetStatus.INCOMING, types_1.AssetStatus.STALL])
|
|
20
23
|
.default(types_1.AssetStatus.STALL)
|
|
@@ -45,8 +48,8 @@ const AssetResponse = zod_1.default
|
|
|
45
48
|
pool_address: zod_1.default.string().pipe(types_1.hex).describe("**Pool Address** — EVM address of the pool smart contract. Use this to interact directly with the pool on-chain (e.g., for swaps, adding liquidity) or view in block explorers."),
|
|
46
49
|
pool_config_starting_time: zod_1.default.string().describe('**Starts At** — Unix timestamp when the auction begins accepting trades (e.g., `"1759330983"`). Trades before this time will revert.'),
|
|
47
50
|
pool_config_ending_time: zod_1.default.string().describe('**Ends At** — Unix timestamp as string when the auction phase concludes (e.g., `"1759352583"`). After this, the pool may migrate if targets are met.'),
|
|
48
|
-
pool_migration_timestamp: zod_1.default
|
|
49
|
-
.
|
|
51
|
+
pool_migration_timestamp: zod_1.default.coerce
|
|
52
|
+
.date()
|
|
50
53
|
.nullable()
|
|
51
54
|
.describe("**Migration Timestamp** — Date when this pool migrated to the graduation pool. Returns `null` if still in active auction or if the auction ended unsuccessfully. Once migrated, this pool becomes read-only and trading moves to `graduation_pool`."),
|
|
52
55
|
pool_type: zod_1.default.string().describe('**Pool Type** — Uniswap protocol version used for this pool. Values: `"v2"`, `"v3"`, or `"v4"`. Use this for trading routing, quote calculations, and protocol-specific integrations (e.g., concentrated liquidity on V3/V4).'),
|
|
@@ -63,14 +66,18 @@ const AssetResponse = zod_1.default
|
|
|
63
66
|
image_hash: zod_1.default.string().optional(),
|
|
64
67
|
fee_receiver: zod_1.default.string().optional(),
|
|
65
68
|
social_links: zod_1.default.array(zod_1.default.string()).optional(),
|
|
66
|
-
vesting_recipients: zod_1.default
|
|
69
|
+
vesting_recipients: zod_1.default
|
|
70
|
+
.array(zod_1.default
|
|
71
|
+
.object({
|
|
67
72
|
address: zod_1.default.string(),
|
|
68
|
-
amount: zod_1.default.string().optional(),
|
|
69
|
-
percentage: zod_1.default.
|
|
70
|
-
})
|
|
73
|
+
amount: zod_1.default.coerce.string().optional(),
|
|
74
|
+
percentage: zod_1.default.coerce.string().optional(),
|
|
75
|
+
})
|
|
76
|
+
.transform((data) => ({
|
|
71
77
|
address: data.address,
|
|
72
|
-
amount: data.percentage
|
|
73
|
-
})))
|
|
78
|
+
amount: data.percentage || data.amount || "",
|
|
79
|
+
})))
|
|
80
|
+
.optional(),
|
|
74
81
|
})
|
|
75
82
|
.nullable()
|
|
76
83
|
.describe("**Metadata** — Full token metadata from URI. Contains `name`, `description`, `image_hash` (IPFS), `fee_receiver`, `social_links`, and `vesting_recipients` (with `address` and `amount` for each). Returns `null` if not set."),
|
|
@@ -108,21 +115,27 @@ const AssetResponse = zod_1.default
|
|
|
108
115
|
image_hash: zod_1.default.string().optional(),
|
|
109
116
|
fee_receiver: zod_1.default.string().optional(),
|
|
110
117
|
social_links: zod_1.default.array(zod_1.default.string()).optional(),
|
|
111
|
-
vesting_recipients: zod_1.default
|
|
118
|
+
vesting_recipients: zod_1.default
|
|
119
|
+
.array(zod_1.default
|
|
120
|
+
.object({
|
|
112
121
|
address: zod_1.default.string(),
|
|
113
|
-
amount: zod_1.default.string().optional(),
|
|
114
|
-
percentage: zod_1.default.
|
|
115
|
-
})
|
|
122
|
+
amount: zod_1.default.coerce.string().optional(),
|
|
123
|
+
percentage: zod_1.default.coerce.string().optional(),
|
|
124
|
+
})
|
|
125
|
+
.transform((data) => ({
|
|
116
126
|
address: data.address,
|
|
117
|
-
amount: data.percentage
|
|
118
|
-
})))
|
|
127
|
+
amount: data.percentage || data.amount || "",
|
|
128
|
+
})))
|
|
129
|
+
.optional(),
|
|
119
130
|
})
|
|
120
131
|
.nullable()
|
|
121
132
|
.describe("**Metadata** — Full token metadata from URI. Contains `name`, `description`, `image_hash` (IPFS), `fee_receiver`, `social_links`, and `vesting_recipients` (with `address` and `amount` for each). Returns `null` if not set."),
|
|
122
133
|
token_image_public_url: zod_1.default.string().nullable().describe("**Logo URL** — CDN-hosted image URL for the token logo. Optimized for fast loading. Use as `<img src>` in token displays."),
|
|
123
134
|
token_creator_address: zod_1.default.string().pipe(types_1.hex).describe("**Creator** — EVM address that deployed the token contract. This address controls token settings and may receive creator fees."),
|
|
124
135
|
token_fee_receiver_address: zod_1.default.string().pipe(types_1.hex).describe("**Fee Recipient** — EVM address receiving trading fees. May differ from creator address."),
|
|
125
|
-
token_vesting_recipient_addresses: zod_1.default
|
|
136
|
+
token_vesting_recipient_addresses: zod_1.default
|
|
137
|
+
.array(zod_1.default.string().pipe(types_1.hex))
|
|
138
|
+
.describe("**Vesting Recipients** — Array of EVM addresses receiving vested tokens. Amounts are specified in `token_uri_data.vesting_recipients` with `address` and `amount` for each recipient."),
|
|
126
139
|
integrator_address: zod_1.default.string().describe("**Integrator** — EVM address of the platform or protocol that integrated this token. May receive platform fees."),
|
|
127
140
|
})
|
|
128
141
|
.describe("**Token Details** — Complete metadata for the token in the graduation pool.\n\n> **Note:** Same token metadata as `auction_pool.base_token`. Duplicated for convenience so you can access it from either pool."),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asset.contract.js","sourceRoot":"","sources":["../../src/contracts/asset.contract.ts"],"names":[],"mappings":";;;AAAA,wCAA6C;AAC7C,6BAAoB;AAEpB,oCAAuE;AAEvE,MAAM,QAAQ,GAAG,IAAA,mBAAY,GAAE,CAAC;AAEhC,MAAM,aAAa,GAAG,aAAC;KAClB,MAAM,CAAC;IACJ,aAAa,EAAE,aAAC;SACX,MAAM,EAAE;SACR,IAAI,CAAC,WAAG,CAAC;SACT,QAAQ,CAAC,oOAAoO,CAAC;IACnP,uBAAuB,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,WAAG,CAAC,CAAC,QAAQ,CAAC,qJAAqJ,CAAC;IAC7M,wBAAwB,EAAE,aAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,gKAAgK,CAAC;IACpN,kBAAkB,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,6FAA6F,CAAC;IACtI,yBAAyB,EAAE,aAAC,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"asset.contract.js","sourceRoot":"","sources":["../../src/contracts/asset.contract.ts"],"names":[],"mappings":";;;AAAA,wCAA6C;AAC7C,6BAAoB;AAEpB,oCAAuE;AAEvE,MAAM,QAAQ,GAAG,IAAA,mBAAY,GAAE,CAAC;AAEhC,MAAM,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ZodString;
|
|
7
|
+
integrator_id: z.ZodString;
|
|
6
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
type: string;
|
|
7
10
|
name: string;
|
|
8
11
|
description: string | null;
|
|
9
12
|
id: string;
|
|
13
|
+
integrator_id: string;
|
|
10
14
|
}, {
|
|
15
|
+
type: string;
|
|
11
16
|
name: string;
|
|
12
17
|
description: string | null;
|
|
13
18
|
id: string;
|
|
19
|
+
integrator_id: string;
|
|
14
20
|
}>;
|
|
15
21
|
declare const auctionTemplateContract: {
|
|
16
22
|
listAuctionTemplates: {
|
|
@@ -30,26 +36,36 @@ declare const auctionTemplateContract: {
|
|
|
30
36
|
id: z.ZodString;
|
|
31
37
|
name: z.ZodString;
|
|
32
38
|
description: z.ZodNullable<z.ZodString>;
|
|
39
|
+
type: z.ZodString;
|
|
40
|
+
integrator_id: z.ZodString;
|
|
33
41
|
}, "strip", z.ZodTypeAny, {
|
|
42
|
+
type: string;
|
|
34
43
|
name: string;
|
|
35
44
|
description: string | null;
|
|
36
45
|
id: string;
|
|
46
|
+
integrator_id: string;
|
|
37
47
|
}, {
|
|
48
|
+
type: string;
|
|
38
49
|
name: string;
|
|
39
50
|
description: string | null;
|
|
40
51
|
id: string;
|
|
52
|
+
integrator_id: string;
|
|
41
53
|
}>, "many">;
|
|
42
54
|
}, "strip", z.ZodTypeAny, {
|
|
43
55
|
result: {
|
|
56
|
+
type: string;
|
|
44
57
|
name: string;
|
|
45
58
|
description: string | null;
|
|
46
59
|
id: string;
|
|
60
|
+
integrator_id: string;
|
|
47
61
|
}[];
|
|
48
62
|
}, {
|
|
49
63
|
result: {
|
|
64
|
+
type: string;
|
|
50
65
|
name: string;
|
|
51
66
|
description: string | null;
|
|
52
67
|
id: string;
|
|
68
|
+
integrator_id: string;
|
|
53
69
|
}[];
|
|
54
70
|
}>;
|
|
55
71
|
};
|
|
@@ -9,6 +9,8 @@ const AuctionTemplateResponse = zod_1.default.object({
|
|
|
9
9
|
id: zod_1.default.string(),
|
|
10
10
|
name: zod_1.default.string(),
|
|
11
11
|
description: zod_1.default.string().nullable(),
|
|
12
|
+
type: zod_1.default.string(),
|
|
13
|
+
integrator_id: zod_1.default.string(),
|
|
12
14
|
});
|
|
13
15
|
exports.AuctionTemplateResponse = AuctionTemplateResponse;
|
|
14
16
|
const auctionTemplateContract = contract.router({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auction-template.contract.js","sourceRoot":"","sources":["../../src/contracts/auction-template.contract.ts"],"names":[],"mappings":";;;AAAA,wCAA6C;AAC7C,6BAAoB;AAEpB,oCAAmC;AAEnC,MAAM,QAAQ,GAAG,IAAA,mBAAY,GAAE,CAAC;AAEhC,MAAM,uBAAuB,GAAG,aAAC,CAAC,MAAM,CAAC;IACrC,EAAE,EAAE,aAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;
|
|
1
|
+
{"version":3,"file":"auction-template.contract.js","sourceRoot":"","sources":["../../src/contracts/auction-template.contract.ts"],"names":[],"mappings":";;;AAAA,wCAA6C;AAC7C,6BAAoB;AAEpB,oCAAmC;AAEnC,MAAM,QAAQ,GAAG,IAAA,mBAAY,GAAE,CAAC;AAEhC,MAAM,uBAAuB,GAAG,aAAC,CAAC,MAAM,CAAC;IACrC,EAAE,EAAE,aAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE;IAChB,aAAa,EAAE,aAAC,CAAC,MAAM,EAAE;CAC5B,CAAC,CAAC;AA+B+B,0DAAuB;AA7BzD,MAAM,uBAAuB,GAAG,QAAQ,CAAC,MAAM,CAC3C;IACI,oBAAoB,EAAE;QAClB,MAAM,EAAE,KAAK;QACb,I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