@settlemint/sdk-eas 2.4.0-prcf35f1e3 → 2.4.0-prd61aaa2c
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/README.md +9 -9
- package/dist/browser/eas.d.ts +4 -3
- package/dist/browser/eas.js +4 -3
- package/dist/browser/eas.js.map +1 -1
- package/dist/eas.cjs +4 -3
- package/dist/eas.cjs.map +1 -1
- package/dist/eas.d.cts +4 -3
- package/dist/eas.d.ts +4 -3
- package/dist/eas.js +4 -3
- package/dist/eas.js.map +1 -1
- package/package.json +6 -4
package/README.md
CHANGED
|
@@ -74,7 +74,7 @@ The SettleMint EAS SDK provides a lightweight wrapper for the Ethereum Attestati
|
|
|
74
74
|
|
|
75
75
|
import type { Address, Hex } from "viem";
|
|
76
76
|
import { decodeAbiParameters, encodeAbiParameters, parseAbiParameters } from "viem";
|
|
77
|
-
import { ZERO_ADDRESS, ZERO_BYTES32
|
|
77
|
+
import { createEASClient, ZERO_ADDRESS, ZERO_BYTES32 } from "../eas.ts"; // Replace this path with "@settlemint/sdk-eas";
|
|
78
78
|
|
|
79
79
|
const CONFIG = {
|
|
80
80
|
instance: process.env.SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT,
|
|
@@ -123,7 +123,7 @@ async function runEASWorkflow() {
|
|
|
123
123
|
console.log("🚀 Simple EAS SDK Workflow");
|
|
124
124
|
console.log("===========================\n");
|
|
125
125
|
|
|
126
|
-
let
|
|
126
|
+
let _deployedAddresses: { easAddress: Address; schemaRegistryAddress: Address };
|
|
127
127
|
|
|
128
128
|
// Step 1: Initialize EAS Client
|
|
129
129
|
console.log("📋 Step 1: Initialize EAS Client");
|
|
@@ -145,7 +145,7 @@ async function runEASWorkflow() {
|
|
|
145
145
|
console.log(` EAS: ${deployment.easAddress}`);
|
|
146
146
|
console.log(` Schema Registry: ${deployment.schemaRegistryAddress}\n`);
|
|
147
147
|
|
|
148
|
-
|
|
148
|
+
_deployedAddresses = {
|
|
149
149
|
easAddress: deployment.easAddress,
|
|
150
150
|
schemaRegistryAddress: deployment.schemaRegistryAddress,
|
|
151
151
|
};
|
|
@@ -670,7 +670,7 @@ TODO: Implement using The Graph subgraph for EAS data queries
|
|
|
670
670
|
|
|
671
671
|
###### getAttestations()
|
|
672
672
|
|
|
673
|
-
> **getAttestations**(`
|
|
673
|
+
> **getAttestations**(`_options?`): `Promise`\<[`AttestationInfo`](#attestationinfo)[]\>
|
|
674
674
|
|
|
675
675
|
Defined in: [sdk/eas/src/eas.ts:539](https://github.com/settlemint/sdk/blob/v2.4.0/sdk/eas/src/eas.ts#L539)
|
|
676
676
|
|
|
@@ -682,7 +682,7 @@ TODO: Implement using The Graph subgraph for EAS data queries
|
|
|
682
682
|
|
|
683
683
|
| Parameter | Type |
|
|
684
684
|
| ------ | ------ |
|
|
685
|
-
| `
|
|
685
|
+
| `_options?` | [`GetAttestationsOptions`](#getattestationsoptions) |
|
|
686
686
|
|
|
687
687
|
###### Returns
|
|
688
688
|
|
|
@@ -757,7 +757,7 @@ TODO: Implement using The Graph subgraph for EAS data queries
|
|
|
757
757
|
|
|
758
758
|
###### getSchemas()
|
|
759
759
|
|
|
760
|
-
> **getSchemas**(`
|
|
760
|
+
> **getSchemas**(`_options?`): `Promise`\<[`SchemaData`](#schemadata)[]\>
|
|
761
761
|
|
|
762
762
|
Defined in: [sdk/eas/src/eas.ts:519](https://github.com/settlemint/sdk/blob/v2.4.0/sdk/eas/src/eas.ts#L519)
|
|
763
763
|
|
|
@@ -769,7 +769,7 @@ TODO: Implement using The Graph subgraph for EAS data queries
|
|
|
769
769
|
|
|
770
770
|
| Parameter | Type |
|
|
771
771
|
| ------ | ------ |
|
|
772
|
-
| `
|
|
772
|
+
| `_options?` | [`GetSchemasOptions`](#getschemasoptions) |
|
|
773
773
|
|
|
774
774
|
###### Returns
|
|
775
775
|
|
|
@@ -791,7 +791,7 @@ TODO: Fix Portal GraphQL query parameter encoding or use The Graph subgraph
|
|
|
791
791
|
|
|
792
792
|
###### isValidAttestation()
|
|
793
793
|
|
|
794
|
-
> **isValidAttestation**(`
|
|
794
|
+
> **isValidAttestation**(`_uid`): `Promise`\<`boolean`\>
|
|
795
795
|
|
|
796
796
|
Defined in: [sdk/eas/src/eas.ts:548](https://github.com/settlemint/sdk/blob/v2.4.0/sdk/eas/src/eas.ts#L548)
|
|
797
797
|
|
|
@@ -803,7 +803,7 @@ TODO: Implement using The Graph subgraph for EAS data queries
|
|
|
803
803
|
|
|
804
804
|
| Parameter | Type |
|
|
805
805
|
| ------ | ------ |
|
|
806
|
-
| `
|
|
806
|
+
| `_uid` | `` `0x${string}` `` |
|
|
807
807
|
|
|
808
808
|
###### Returns
|
|
809
809
|
|
package/dist/browser/eas.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* SettleMint EAS SDK - Portal Optimized */
|
|
1
2
|
import { createPortalClient } from "@settlemint/sdk-portal";
|
|
2
3
|
import { Address, Hex } from "viem";
|
|
3
4
|
import { z } from "zod/v4";
|
|
@@ -4310,7 +4311,7 @@ declare class EASClient {
|
|
|
4310
4311
|
*
|
|
4311
4312
|
* TODO: Implement using The Graph subgraph for EAS data queries
|
|
4312
4313
|
*/
|
|
4313
|
-
getSchemas(
|
|
4314
|
+
getSchemas(_options?: GetSchemasOptions): Promise<SchemaData[]>;
|
|
4314
4315
|
/**
|
|
4315
4316
|
* Get an attestation by UID
|
|
4316
4317
|
*
|
|
@@ -4322,13 +4323,13 @@ declare class EASClient {
|
|
|
4322
4323
|
*
|
|
4323
4324
|
* TODO: Implement using The Graph subgraph for EAS data queries
|
|
4324
4325
|
*/
|
|
4325
|
-
getAttestations(
|
|
4326
|
+
getAttestations(_options?: GetAttestationsOptions): Promise<AttestationInfo[]>;
|
|
4326
4327
|
/**
|
|
4327
4328
|
* Check if an attestation is valid
|
|
4328
4329
|
*
|
|
4329
4330
|
* TODO: Implement using The Graph subgraph for EAS data queries
|
|
4330
4331
|
*/
|
|
4331
|
-
isValidAttestation(
|
|
4332
|
+
isValidAttestation(_uid: Hex): Promise<boolean>;
|
|
4332
4333
|
/**
|
|
4333
4334
|
* Get the current timestamp from the contract
|
|
4334
4335
|
*
|
package/dist/browser/eas.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* SettleMint EAS SDK - Portal Optimized */
|
|
1
2
|
import { createPortalClient, waitForTransactionReceipt } from "@settlemint/sdk-portal";
|
|
2
3
|
import { createLogger, requestLogger } from "@settlemint/sdk-utils/logging";
|
|
3
4
|
import { ApplicationAccessTokenSchema, UrlSchema, validate } from "@settlemint/sdk-utils/validation";
|
|
@@ -11266,7 +11267,7 @@ var EASClient = class {
|
|
|
11266
11267
|
*
|
|
11267
11268
|
* TODO: Implement using The Graph subgraph for EAS data queries
|
|
11268
11269
|
*/
|
|
11269
|
-
async getSchemas(
|
|
11270
|
+
async getSchemas(_options) {
|
|
11270
11271
|
throw new Error("Schema listing not implemented yet. Use The Graph subgraph for reading schema data.");
|
|
11271
11272
|
}
|
|
11272
11273
|
/**
|
|
@@ -11282,7 +11283,7 @@ var EASClient = class {
|
|
|
11282
11283
|
*
|
|
11283
11284
|
* TODO: Implement using The Graph subgraph for EAS data queries
|
|
11284
11285
|
*/
|
|
11285
|
-
async getAttestations(
|
|
11286
|
+
async getAttestations(_options) {
|
|
11286
11287
|
throw new Error("Attestation listing not implemented yet. Use The Graph subgraph for reading attestation data.");
|
|
11287
11288
|
}
|
|
11288
11289
|
/**
|
|
@@ -11290,7 +11291,7 @@ var EASClient = class {
|
|
|
11290
11291
|
*
|
|
11291
11292
|
* TODO: Implement using The Graph subgraph for EAS data queries
|
|
11292
11293
|
*/
|
|
11293
|
-
async isValidAttestation(
|
|
11294
|
+
async isValidAttestation(_uid) {
|
|
11294
11295
|
return false;
|
|
11295
11296
|
}
|
|
11296
11297
|
/**
|