@echoxyz/sonar-core 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/README.md +2 -2
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +3 -4
- package/dist/index.d.ts +3 -4
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -77,7 +77,7 @@ export async function exampleCalls() {
|
|
|
77
77
|
// Run a pre-purchase check
|
|
78
78
|
const pre = await client.prePurchaseCheck({
|
|
79
79
|
saleUUID,
|
|
80
|
-
|
|
80
|
+
entityID: Entity.EntityID,
|
|
81
81
|
walletAddress: "0x1234...abcd" as `0x${string}`,
|
|
82
82
|
});
|
|
83
83
|
|
|
@@ -85,7 +85,7 @@ export async function exampleCalls() {
|
|
|
85
85
|
// Generate a purchase permit
|
|
86
86
|
const permit = await client.generatePurchasePermit({
|
|
87
87
|
saleUUID,
|
|
88
|
-
|
|
88
|
+
entityID: Entity.EntityID,
|
|
89
89
|
walletAddress: "0x1234...abcd" as `0x${string}`,
|
|
90
90
|
});
|
|
91
91
|
console.log(permit.Signature, permit.Permit);
|
package/dist/index.cjs
CHANGED
|
@@ -277,14 +277,14 @@ var SonarClient = class {
|
|
|
277
277
|
async prePurchaseCheck(args) {
|
|
278
278
|
return this.postJSON("/externalapi.PrePurchaseCheck", {
|
|
279
279
|
SaleUUID: args.saleUUID,
|
|
280
|
-
|
|
280
|
+
EntityID: args.entityID,
|
|
281
281
|
PurchasingWalletAddress: args.walletAddress
|
|
282
282
|
});
|
|
283
283
|
}
|
|
284
284
|
async generatePurchasePermit(args) {
|
|
285
285
|
return this.postJSON("/externalapi.GenerateSalePurchasePermit", {
|
|
286
286
|
SaleUUID: args.saleUUID,
|
|
287
|
-
|
|
287
|
+
EntityID: args.entityID,
|
|
288
288
|
PurchasingWalletAddress: args.walletAddress
|
|
289
289
|
});
|
|
290
290
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -80,12 +80,11 @@ declare enum InvestingRegion {
|
|
|
80
80
|
}
|
|
81
81
|
type EntityDetails = {
|
|
82
82
|
Label: string;
|
|
83
|
-
|
|
83
|
+
EntityID: Hex;
|
|
84
84
|
EntityType: EntityType;
|
|
85
85
|
EntitySetupState: EntitySetupState;
|
|
86
86
|
SaleEligibility: SaleEligibility;
|
|
87
87
|
InvestingRegion: InvestingRegion;
|
|
88
|
-
ObfuscatedEntityID: `0x${string}`;
|
|
89
88
|
};
|
|
90
89
|
|
|
91
90
|
type FetchLike = (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
|
|
@@ -135,12 +134,12 @@ declare class SonarClient {
|
|
|
135
134
|
}>;
|
|
136
135
|
prePurchaseCheck(args: {
|
|
137
136
|
saleUUID: string;
|
|
138
|
-
|
|
137
|
+
entityID: Hex;
|
|
139
138
|
walletAddress: string;
|
|
140
139
|
}): Promise<PrePurchaseCheckResponse>;
|
|
141
140
|
generatePurchasePermit(args: {
|
|
142
141
|
saleUUID: string;
|
|
143
|
-
|
|
142
|
+
entityID: Hex;
|
|
144
143
|
walletAddress: string;
|
|
145
144
|
}): Promise<GeneratePurchasePermitResponse>;
|
|
146
145
|
fetchAllocation(args: {
|
package/dist/index.d.ts
CHANGED
|
@@ -80,12 +80,11 @@ declare enum InvestingRegion {
|
|
|
80
80
|
}
|
|
81
81
|
type EntityDetails = {
|
|
82
82
|
Label: string;
|
|
83
|
-
|
|
83
|
+
EntityID: Hex;
|
|
84
84
|
EntityType: EntityType;
|
|
85
85
|
EntitySetupState: EntitySetupState;
|
|
86
86
|
SaleEligibility: SaleEligibility;
|
|
87
87
|
InvestingRegion: InvestingRegion;
|
|
88
|
-
ObfuscatedEntityID: `0x${string}`;
|
|
89
88
|
};
|
|
90
89
|
|
|
91
90
|
type FetchLike = (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
|
|
@@ -135,12 +134,12 @@ declare class SonarClient {
|
|
|
135
134
|
}>;
|
|
136
135
|
prePurchaseCheck(args: {
|
|
137
136
|
saleUUID: string;
|
|
138
|
-
|
|
137
|
+
entityID: Hex;
|
|
139
138
|
walletAddress: string;
|
|
140
139
|
}): Promise<PrePurchaseCheckResponse>;
|
|
141
140
|
generatePurchasePermit(args: {
|
|
142
141
|
saleUUID: string;
|
|
143
|
-
|
|
142
|
+
entityID: Hex;
|
|
144
143
|
walletAddress: string;
|
|
145
144
|
}): Promise<GeneratePurchasePermitResponse>;
|
|
146
145
|
fetchAllocation(args: {
|
package/dist/index.js
CHANGED
|
@@ -240,14 +240,14 @@ var SonarClient = class {
|
|
|
240
240
|
async prePurchaseCheck(args) {
|
|
241
241
|
return this.postJSON("/externalapi.PrePurchaseCheck", {
|
|
242
242
|
SaleUUID: args.saleUUID,
|
|
243
|
-
|
|
243
|
+
EntityID: args.entityID,
|
|
244
244
|
PurchasingWalletAddress: args.walletAddress
|
|
245
245
|
});
|
|
246
246
|
}
|
|
247
247
|
async generatePurchasePermit(args) {
|
|
248
248
|
return this.postJSON("/externalapi.GenerateSalePurchasePermit", {
|
|
249
249
|
SaleUUID: args.saleUUID,
|
|
250
|
-
|
|
250
|
+
EntityID: args.entityID,
|
|
251
251
|
PurchasingWalletAddress: args.walletAddress
|
|
252
252
|
});
|
|
253
253
|
}
|