@settlemint/sdk-eas 2.4.0 → 2.4.1-main722d543c
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 +110 -100
- 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
|
};
|
|
@@ -471,7 +471,7 @@ export { runEASWorkflow, type UserReputationSchema };
|
|
|
471
471
|
|
|
472
472
|
> **createEASClient**(`options`): [`EASClient`](#easclient)
|
|
473
473
|
|
|
474
|
-
Defined in: [sdk/eas/src/eas.ts:632](https://github.com/settlemint/sdk/blob/v2.4.
|
|
474
|
+
Defined in: [sdk/eas/src/eas.ts:632](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/eas.ts#L632)
|
|
475
475
|
|
|
476
476
|
Create an EAS client instance
|
|
477
477
|
|
|
@@ -510,7 +510,7 @@ const deployment = await easClient.deploy("0x1234...deployer-address");
|
|
|
510
510
|
|
|
511
511
|
#### EASClient
|
|
512
512
|
|
|
513
|
-
Defined in: [sdk/eas/src/eas.ts:44](https://github.com/settlemint/sdk/blob/v2.4.
|
|
513
|
+
Defined in: [sdk/eas/src/eas.ts:44](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/eas.ts#L44)
|
|
514
514
|
|
|
515
515
|
Main EAS client class for interacting with Ethereum Attestation Service via Portal
|
|
516
516
|
|
|
@@ -535,7 +535,7 @@ console.log("EAS deployed at:", deployment.easAddress);
|
|
|
535
535
|
|
|
536
536
|
> **new EASClient**(`options`): [`EASClient`](#easclient)
|
|
537
537
|
|
|
538
|
-
Defined in: [sdk/eas/src/eas.ts:55](https://github.com/settlemint/sdk/blob/v2.4.
|
|
538
|
+
Defined in: [sdk/eas/src/eas.ts:55](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/eas.ts#L55)
|
|
539
539
|
|
|
540
540
|
Create a new EAS client instance
|
|
541
541
|
|
|
@@ -560,7 +560,7 @@ Create a new EAS client instance
|
|
|
560
560
|
|
|
561
561
|
> **attest**(`request`, `fromAddress`, `gasLimit?`): `Promise`\<[`TransactionResult`](#transactionresult)\>
|
|
562
562
|
|
|
563
|
-
Defined in: [sdk/eas/src/eas.ts:295](https://github.com/settlemint/sdk/blob/v2.4.
|
|
563
|
+
Defined in: [sdk/eas/src/eas.ts:295](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/eas.ts#L295)
|
|
564
564
|
|
|
565
565
|
Create an attestation
|
|
566
566
|
|
|
@@ -610,7 +610,7 @@ console.log("Attestation created:", attestationResult.hash);
|
|
|
610
610
|
|
|
611
611
|
> **deploy**(`deployerAddress`, `forwarderAddress?`, `gasLimit?`): `Promise`\<[`DeploymentResult`](#deploymentresult)\>
|
|
612
612
|
|
|
613
|
-
Defined in: [sdk/eas/src/eas.ts:106](https://github.com/settlemint/sdk/blob/v2.4.
|
|
613
|
+
Defined in: [sdk/eas/src/eas.ts:106](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/eas.ts#L106)
|
|
614
614
|
|
|
615
615
|
Deploy EAS contracts via Portal
|
|
616
616
|
|
|
@@ -652,7 +652,7 @@ console.log("EAS Contract:", deployment.easAddress);
|
|
|
652
652
|
|
|
653
653
|
> **getAttestation**(`uid`): `Promise`\<[`AttestationInfo`](#attestationinfo)\>
|
|
654
654
|
|
|
655
|
-
Defined in: [sdk/eas/src/eas.ts:528](https://github.com/settlemint/sdk/blob/v2.4.
|
|
655
|
+
Defined in: [sdk/eas/src/eas.ts:528](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/eas.ts#L528)
|
|
656
656
|
|
|
657
657
|
Get an attestation by UID
|
|
658
658
|
|
|
@@ -670,9 +670,9 @@ 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
|
-
Defined in: [sdk/eas/src/eas.ts:539](https://github.com/settlemint/sdk/blob/v2.4.
|
|
675
|
+
Defined in: [sdk/eas/src/eas.ts:539](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/eas.ts#L539)
|
|
676
676
|
|
|
677
677
|
Get attestations with pagination and filtering
|
|
678
678
|
|
|
@@ -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
|
|
|
@@ -692,7 +692,7 @@ TODO: Implement using The Graph subgraph for EAS data queries
|
|
|
692
692
|
|
|
693
693
|
> **getContractAddresses**(): `object`
|
|
694
694
|
|
|
695
|
-
Defined in: [sdk/eas/src/eas.ts:578](https://github.com/settlemint/sdk/blob/v2.4.
|
|
695
|
+
Defined in: [sdk/eas/src/eas.ts:578](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/eas.ts#L578)
|
|
696
696
|
|
|
697
697
|
Get current contract addresses
|
|
698
698
|
|
|
@@ -702,14 +702,14 @@ Get current contract addresses
|
|
|
702
702
|
|
|
703
703
|
| Name | Type | Defined in |
|
|
704
704
|
| ------ | ------ | ------ |
|
|
705
|
-
| `easAddress?` | `` `0x${string}` `` | [sdk/eas/src/eas.ts:578](https://github.com/settlemint/sdk/blob/v2.4.
|
|
706
|
-
| `schemaRegistryAddress?` | `` `0x${string}` `` | [sdk/eas/src/eas.ts:578](https://github.com/settlemint/sdk/blob/v2.4.
|
|
705
|
+
| `easAddress?` | `` `0x${string}` `` | [sdk/eas/src/eas.ts:578](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/eas.ts#L578) |
|
|
706
|
+
| `schemaRegistryAddress?` | `` `0x${string}` `` | [sdk/eas/src/eas.ts:578](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/eas.ts#L578) |
|
|
707
707
|
|
|
708
708
|
###### getOptions()
|
|
709
709
|
|
|
710
710
|
> **getOptions**(): `object`
|
|
711
711
|
|
|
712
|
-
Defined in: [sdk/eas/src/eas.ts:564](https://github.com/settlemint/sdk/blob/v2.4.
|
|
712
|
+
Defined in: [sdk/eas/src/eas.ts:564](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/eas.ts#L564)
|
|
713
713
|
|
|
714
714
|
Get client configuration
|
|
715
715
|
|
|
@@ -717,17 +717,17 @@ Get client configuration
|
|
|
717
717
|
|
|
718
718
|
| Name | Type | Default value | Description | Defined in |
|
|
719
719
|
| ------ | ------ | ------ | ------ | ------ |
|
|
720
|
-
| `accessToken?` | `string` | - | The application access token | [sdk/eas/src/utils/validation.ts:21](https://github.com/settlemint/sdk/blob/v2.4.
|
|
721
|
-
| `debug?` | `boolean` | - | Whether to enable debug mode | [sdk/eas/src/utils/validation.ts:33](https://github.com/settlemint/sdk/blob/v2.4.
|
|
722
|
-
| `easContractAddress?` | `` `0x${string}` `` | - | The EAS contract address | [sdk/eas/src/utils/validation.ts:25](https://github.com/settlemint/sdk/blob/v2.4.
|
|
723
|
-
| `instance` | `string` | `UrlSchema` | The EAS instance URL | [sdk/eas/src/utils/validation.ts:17](https://github.com/settlemint/sdk/blob/v2.4.
|
|
724
|
-
| `schemaRegistryContractAddress?` | `` `0x${string}` `` | - | The schema registry contract address | [sdk/eas/src/utils/validation.ts:29](https://github.com/settlemint/sdk/blob/v2.4.
|
|
720
|
+
| `accessToken?` | `string` | - | The application access token | [sdk/eas/src/utils/validation.ts:21](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/utils/validation.ts#L21) |
|
|
721
|
+
| `debug?` | `boolean` | - | Whether to enable debug mode | [sdk/eas/src/utils/validation.ts:33](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/utils/validation.ts#L33) |
|
|
722
|
+
| `easContractAddress?` | `` `0x${string}` `` | - | The EAS contract address | [sdk/eas/src/utils/validation.ts:25](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/utils/validation.ts#L25) |
|
|
723
|
+
| `instance` | `string` | `UrlSchema` | The EAS instance URL | [sdk/eas/src/utils/validation.ts:17](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/utils/validation.ts#L17) |
|
|
724
|
+
| `schemaRegistryContractAddress?` | `` `0x${string}` `` | - | The schema registry contract address | [sdk/eas/src/utils/validation.ts:29](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/utils/validation.ts#L29) |
|
|
725
725
|
|
|
726
726
|
###### getPortalClient()
|
|
727
727
|
|
|
728
728
|
> **getPortalClient**(): `GraphQLClient`
|
|
729
729
|
|
|
730
|
-
Defined in: [sdk/eas/src/eas.ts:571](https://github.com/settlemint/sdk/blob/v2.4.
|
|
730
|
+
Defined in: [sdk/eas/src/eas.ts:571](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/eas.ts#L571)
|
|
731
731
|
|
|
732
732
|
Get the Portal client instance for advanced operations
|
|
733
733
|
|
|
@@ -739,7 +739,7 @@ Get the Portal client instance for advanced operations
|
|
|
739
739
|
|
|
740
740
|
> **getSchema**(`uid`): `Promise`\<[`SchemaData`](#schemadata)\>
|
|
741
741
|
|
|
742
|
-
Defined in: [sdk/eas/src/eas.ts:508](https://github.com/settlemint/sdk/blob/v2.4.
|
|
742
|
+
Defined in: [sdk/eas/src/eas.ts:508](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/eas.ts#L508)
|
|
743
743
|
|
|
744
744
|
Get a schema by UID
|
|
745
745
|
|
|
@@ -757,9 +757,9 @@ 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
|
-
Defined in: [sdk/eas/src/eas.ts:519](https://github.com/settlemint/sdk/blob/v2.4.
|
|
762
|
+
Defined in: [sdk/eas/src/eas.ts:519](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/eas.ts#L519)
|
|
763
763
|
|
|
764
764
|
Get all schemas with pagination
|
|
765
765
|
|
|
@@ -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
|
|
|
@@ -779,7 +779,7 @@ TODO: Implement using The Graph subgraph for EAS data queries
|
|
|
779
779
|
|
|
780
780
|
> **getTimestamp**(): `Promise`\<`bigint`\>
|
|
781
781
|
|
|
782
|
-
Defined in: [sdk/eas/src/eas.ts:557](https://github.com/settlemint/sdk/blob/v2.4.
|
|
782
|
+
Defined in: [sdk/eas/src/eas.ts:557](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/eas.ts#L557)
|
|
783
783
|
|
|
784
784
|
Get the current timestamp from the contract
|
|
785
785
|
|
|
@@ -791,9 +791,9 @@ 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
|
-
Defined in: [sdk/eas/src/eas.ts:548](https://github.com/settlemint/sdk/blob/v2.4.
|
|
796
|
+
Defined in: [sdk/eas/src/eas.ts:548](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/eas.ts#L548)
|
|
797
797
|
|
|
798
798
|
Check if an attestation is valid
|
|
799
799
|
|
|
@@ -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
|
|
|
@@ -813,7 +813,7 @@ TODO: Implement using The Graph subgraph for EAS data queries
|
|
|
813
813
|
|
|
814
814
|
> **multiAttest**(`requests`, `fromAddress`, `gasLimit?`): `Promise`\<[`TransactionResult`](#transactionresult)\>
|
|
815
815
|
|
|
816
|
-
Defined in: [sdk/eas/src/eas.ts:386](https://github.com/settlemint/sdk/blob/v2.4.
|
|
816
|
+
Defined in: [sdk/eas/src/eas.ts:386](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/eas.ts#L386)
|
|
817
817
|
|
|
818
818
|
Create multiple attestations in a single transaction
|
|
819
819
|
|
|
@@ -876,7 +876,7 @@ console.log("Multiple attestations created:", multiAttestResult.hash);
|
|
|
876
876
|
|
|
877
877
|
> **registerSchema**(`request`, `fromAddress`, `gasLimit?`): `Promise`\<[`TransactionResult`](#transactionresult)\>
|
|
878
878
|
|
|
879
|
-
Defined in: [sdk/eas/src/eas.ts:216](https://github.com/settlemint/sdk/blob/v2.4.
|
|
879
|
+
Defined in: [sdk/eas/src/eas.ts:216](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/eas.ts#L216)
|
|
880
880
|
|
|
881
881
|
Register a new schema in the EAS Schema Registry
|
|
882
882
|
|
|
@@ -920,7 +920,7 @@ console.log("Schema registered:", schemaResult.hash);
|
|
|
920
920
|
|
|
921
921
|
> **revoke**(`schemaUID`, `attestationUID`, `fromAddress`, `value?`, `gasLimit?`): `Promise`\<[`TransactionResult`](#transactionresult)\>
|
|
922
922
|
|
|
923
|
-
Defined in: [sdk/eas/src/eas.ts:464](https://github.com/settlemint/sdk/blob/v2.4.
|
|
923
|
+
Defined in: [sdk/eas/src/eas.ts:464](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/eas.ts#L464)
|
|
924
924
|
|
|
925
925
|
Revoke an existing attestation
|
|
926
926
|
|
|
@@ -964,7 +964,7 @@ console.log("Attestation revoked:", revokeResult.hash);
|
|
|
964
964
|
|
|
965
965
|
#### AttestationData
|
|
966
966
|
|
|
967
|
-
Defined in: [sdk/eas/src/schema.ts:63](https://github.com/settlemint/sdk/blob/v2.4.
|
|
967
|
+
Defined in: [sdk/eas/src/schema.ts:63](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L63)
|
|
968
968
|
|
|
969
969
|
Attestation data structure
|
|
970
970
|
|
|
@@ -972,18 +972,18 @@ Attestation data structure
|
|
|
972
972
|
|
|
973
973
|
| Property | Type | Description | Defined in |
|
|
974
974
|
| ------ | ------ | ------ | ------ |
|
|
975
|
-
| <a id="data"></a> `data` | `` `0x${string}` `` | Encoded attestation data | [sdk/eas/src/schema.ts:73](https://github.com/settlemint/sdk/blob/v2.4.
|
|
976
|
-
| <a id="expirationtime"></a> `expirationTime` | `bigint` | Expiration time (0 for no expiration) | [sdk/eas/src/schema.ts:67](https://github.com/settlemint/sdk/blob/v2.4.
|
|
977
|
-
| <a id="recipient"></a> `recipient` | `` `0x${string}` `` | Recipient of the attestation | [sdk/eas/src/schema.ts:65](https://github.com/settlemint/sdk/blob/v2.4.
|
|
978
|
-
| <a id="refuid"></a> `refUID` | `` `0x${string}` `` | Reference UID (use ZERO_BYTES32 for no reference) | [sdk/eas/src/schema.ts:71](https://github.com/settlemint/sdk/blob/v2.4.
|
|
979
|
-
| <a id="revocable"></a> `revocable` | `boolean` | Whether this attestation can be revoked | [sdk/eas/src/schema.ts:69](https://github.com/settlemint/sdk/blob/v2.4.
|
|
980
|
-
| <a id="value"></a> `value` | `bigint` | Value sent with the attestation | [sdk/eas/src/schema.ts:75](https://github.com/settlemint/sdk/blob/v2.4.
|
|
975
|
+
| <a id="data"></a> `data` | `` `0x${string}` `` | Encoded attestation data | [sdk/eas/src/schema.ts:73](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L73) |
|
|
976
|
+
| <a id="expirationtime"></a> `expirationTime` | `bigint` | Expiration time (0 for no expiration) | [sdk/eas/src/schema.ts:67](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L67) |
|
|
977
|
+
| <a id="recipient"></a> `recipient` | `` `0x${string}` `` | Recipient of the attestation | [sdk/eas/src/schema.ts:65](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L65) |
|
|
978
|
+
| <a id="refuid"></a> `refUID` | `` `0x${string}` `` | Reference UID (use ZERO_BYTES32 for no reference) | [sdk/eas/src/schema.ts:71](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L71) |
|
|
979
|
+
| <a id="revocable"></a> `revocable` | `boolean` | Whether this attestation can be revoked | [sdk/eas/src/schema.ts:69](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L69) |
|
|
980
|
+
| <a id="value"></a> `value` | `bigint` | Value sent with the attestation | [sdk/eas/src/schema.ts:75](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L75) |
|
|
981
981
|
|
|
982
982
|
***
|
|
983
983
|
|
|
984
984
|
#### AttestationInfo
|
|
985
985
|
|
|
986
|
-
Defined in: [sdk/eas/src/schema.ts:115](https://github.com/settlemint/sdk/blob/v2.4.
|
|
986
|
+
Defined in: [sdk/eas/src/schema.ts:115](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L115)
|
|
987
987
|
|
|
988
988
|
Attestation information
|
|
989
989
|
|
|
@@ -991,22 +991,22 @@ Attestation information
|
|
|
991
991
|
|
|
992
992
|
| Property | Type | Description | Defined in |
|
|
993
993
|
| ------ | ------ | ------ | ------ |
|
|
994
|
-
| <a id="attester"></a> `attester` | `` `0x${string}` `` | Address that created the attestation | [sdk/eas/src/schema.ts:121](https://github.com/settlemint/sdk/blob/v2.4.
|
|
995
|
-
| <a id="data-1"></a> `data` | `` `0x${string}` `` | Encoded attestation data | [sdk/eas/src/schema.ts:133](https://github.com/settlemint/sdk/blob/v2.4.
|
|
996
|
-
| <a id="expirationtime-1"></a> `expirationTime` | `bigint` | Expiration timestamp | [sdk/eas/src/schema.ts:127](https://github.com/settlemint/sdk/blob/v2.4.
|
|
997
|
-
| <a id="recipient-1"></a> `recipient` | `` `0x${string}` `` | Recipient of the attestation | [sdk/eas/src/schema.ts:123](https://github.com/settlemint/sdk/blob/v2.4.
|
|
998
|
-
| <a id="refuid-1"></a> `refUID` | `` `0x${string}` `` | Reference UID | [sdk/eas/src/schema.ts:131](https://github.com/settlemint/sdk/blob/v2.4.
|
|
999
|
-
| <a id="revocable-1"></a> `revocable` | `boolean` | Whether this attestation can be revoked | [sdk/eas/src/schema.ts:129](https://github.com/settlemint/sdk/blob/v2.4.
|
|
1000
|
-
| <a id="schema"></a> `schema` | `` `0x${string}` `` | Schema UID | [sdk/eas/src/schema.ts:119](https://github.com/settlemint/sdk/blob/v2.4.
|
|
1001
|
-
| <a id="time"></a> `time` | `bigint` | Creation timestamp | [sdk/eas/src/schema.ts:125](https://github.com/settlemint/sdk/blob/v2.4.
|
|
1002
|
-
| <a id="uid"></a> `uid` | `` `0x${string}` `` | Attestation UID | [sdk/eas/src/schema.ts:117](https://github.com/settlemint/sdk/blob/v2.4.
|
|
1003
|
-
| <a id="value-1"></a> `value` | `bigint` | Value sent with the attestation | [sdk/eas/src/schema.ts:135](https://github.com/settlemint/sdk/blob/v2.4.
|
|
994
|
+
| <a id="attester"></a> `attester` | `` `0x${string}` `` | Address that created the attestation | [sdk/eas/src/schema.ts:121](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L121) |
|
|
995
|
+
| <a id="data-1"></a> `data` | `` `0x${string}` `` | Encoded attestation data | [sdk/eas/src/schema.ts:133](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L133) |
|
|
996
|
+
| <a id="expirationtime-1"></a> `expirationTime` | `bigint` | Expiration timestamp | [sdk/eas/src/schema.ts:127](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L127) |
|
|
997
|
+
| <a id="recipient-1"></a> `recipient` | `` `0x${string}` `` | Recipient of the attestation | [sdk/eas/src/schema.ts:123](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L123) |
|
|
998
|
+
| <a id="refuid-1"></a> `refUID` | `` `0x${string}` `` | Reference UID | [sdk/eas/src/schema.ts:131](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L131) |
|
|
999
|
+
| <a id="revocable-1"></a> `revocable` | `boolean` | Whether this attestation can be revoked | [sdk/eas/src/schema.ts:129](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L129) |
|
|
1000
|
+
| <a id="schema"></a> `schema` | `` `0x${string}` `` | Schema UID | [sdk/eas/src/schema.ts:119](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L119) |
|
|
1001
|
+
| <a id="time"></a> `time` | `bigint` | Creation timestamp | [sdk/eas/src/schema.ts:125](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L125) |
|
|
1002
|
+
| <a id="uid"></a> `uid` | `` `0x${string}` `` | Attestation UID | [sdk/eas/src/schema.ts:117](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L117) |
|
|
1003
|
+
| <a id="value-1"></a> `value` | `bigint` | Value sent with the attestation | [sdk/eas/src/schema.ts:135](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L135) |
|
|
1004
1004
|
|
|
1005
1005
|
***
|
|
1006
1006
|
|
|
1007
1007
|
#### AttestationRequest
|
|
1008
1008
|
|
|
1009
|
-
Defined in: [sdk/eas/src/schema.ts:81](https://github.com/settlemint/sdk/blob/v2.4.
|
|
1009
|
+
Defined in: [sdk/eas/src/schema.ts:81](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L81)
|
|
1010
1010
|
|
|
1011
1011
|
Attestation request
|
|
1012
1012
|
|
|
@@ -1014,14 +1014,14 @@ Attestation request
|
|
|
1014
1014
|
|
|
1015
1015
|
| Property | Type | Description | Defined in |
|
|
1016
1016
|
| ------ | ------ | ------ | ------ |
|
|
1017
|
-
| <a id="data-2"></a> `data` | [`AttestationData`](#attestationdata) | Attestation data | [sdk/eas/src/schema.ts:85](https://github.com/settlemint/sdk/blob/v2.4.
|
|
1018
|
-
| <a id="schema-1"></a> `schema` | `` `0x${string}` `` | Schema UID to attest against | [sdk/eas/src/schema.ts:83](https://github.com/settlemint/sdk/blob/v2.4.
|
|
1017
|
+
| <a id="data-2"></a> `data` | [`AttestationData`](#attestationdata) | Attestation data | [sdk/eas/src/schema.ts:85](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L85) |
|
|
1018
|
+
| <a id="schema-1"></a> `schema` | `` `0x${string}` `` | Schema UID to attest against | [sdk/eas/src/schema.ts:83](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L83) |
|
|
1019
1019
|
|
|
1020
1020
|
***
|
|
1021
1021
|
|
|
1022
1022
|
#### DeploymentResult
|
|
1023
1023
|
|
|
1024
|
-
Defined in: [sdk/eas/src/schema.ts:167](https://github.com/settlemint/sdk/blob/v2.4.
|
|
1024
|
+
Defined in: [sdk/eas/src/schema.ts:167](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L167)
|
|
1025
1025
|
|
|
1026
1026
|
Contract deployment result
|
|
1027
1027
|
|
|
@@ -1029,16 +1029,16 @@ Contract deployment result
|
|
|
1029
1029
|
|
|
1030
1030
|
| Property | Type | Description | Defined in |
|
|
1031
1031
|
| ------ | ------ | ------ | ------ |
|
|
1032
|
-
| <a id="easaddress"></a> `easAddress` | `` `0x${string}` `` | Deployed EAS contract address | [sdk/eas/src/schema.ts:169](https://github.com/settlemint/sdk/blob/v2.4.
|
|
1033
|
-
| <a id="eastransactionhash"></a> `easTransactionHash?` | `` `0x${string}` `` | EAS deployment transaction hash (when address not immediately available) | [sdk/eas/src/schema.ts:173](https://github.com/settlemint/sdk/blob/v2.4.
|
|
1034
|
-
| <a id="schemaregistryaddress"></a> `schemaRegistryAddress` | `` `0x${string}` `` | Deployed Schema Registry contract address | [sdk/eas/src/schema.ts:171](https://github.com/settlemint/sdk/blob/v2.4.
|
|
1035
|
-
| <a id="schemaregistrytransactionhash"></a> `schemaRegistryTransactionHash?` | `` `0x${string}` `` | Schema Registry deployment transaction hash (when address not immediately available) | [sdk/eas/src/schema.ts:175](https://github.com/settlemint/sdk/blob/v2.4.
|
|
1032
|
+
| <a id="easaddress"></a> `easAddress` | `` `0x${string}` `` | Deployed EAS contract address | [sdk/eas/src/schema.ts:169](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L169) |
|
|
1033
|
+
| <a id="eastransactionhash"></a> `easTransactionHash?` | `` `0x${string}` `` | EAS deployment transaction hash (when address not immediately available) | [sdk/eas/src/schema.ts:173](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L173) |
|
|
1034
|
+
| <a id="schemaregistryaddress"></a> `schemaRegistryAddress` | `` `0x${string}` `` | Deployed Schema Registry contract address | [sdk/eas/src/schema.ts:171](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L171) |
|
|
1035
|
+
| <a id="schemaregistrytransactionhash"></a> `schemaRegistryTransactionHash?` | `` `0x${string}` `` | Schema Registry deployment transaction hash (when address not immediately available) | [sdk/eas/src/schema.ts:175](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L175) |
|
|
1036
1036
|
|
|
1037
1037
|
***
|
|
1038
1038
|
|
|
1039
1039
|
#### GetAttestationsOptions
|
|
1040
1040
|
|
|
1041
|
-
Defined in: [sdk/eas/src/schema.ts:151](https://github.com/settlemint/sdk/blob/v2.4.
|
|
1041
|
+
Defined in: [sdk/eas/src/schema.ts:151](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L151)
|
|
1042
1042
|
|
|
1043
1043
|
Options for retrieving attestations
|
|
1044
1044
|
|
|
@@ -1046,17 +1046,17 @@ Options for retrieving attestations
|
|
|
1046
1046
|
|
|
1047
1047
|
| Property | Type | Description | Defined in |
|
|
1048
1048
|
| ------ | ------ | ------ | ------ |
|
|
1049
|
-
| <a id="attester-1"></a> `attester?` | `` `0x${string}` `` | Filter by attester address | [sdk/eas/src/schema.ts:159](https://github.com/settlemint/sdk/blob/v2.4.
|
|
1050
|
-
| <a id="limit"></a> `limit?` | `number` | Maximum number of attestations to return | [sdk/eas/src/schema.ts:153](https://github.com/settlemint/sdk/blob/v2.4.
|
|
1051
|
-
| <a id="offset"></a> `offset?` | `number` | Number of attestations to skip | [sdk/eas/src/schema.ts:155](https://github.com/settlemint/sdk/blob/v2.4.
|
|
1052
|
-
| <a id="recipient-2"></a> `recipient?` | `` `0x${string}` `` | Filter by recipient address | [sdk/eas/src/schema.ts:161](https://github.com/settlemint/sdk/blob/v2.4.
|
|
1053
|
-
| <a id="schema-2"></a> `schema?` | `` `0x${string}` `` | Filter by schema UID | [sdk/eas/src/schema.ts:157](https://github.com/settlemint/sdk/blob/v2.4.
|
|
1049
|
+
| <a id="attester-1"></a> `attester?` | `` `0x${string}` `` | Filter by attester address | [sdk/eas/src/schema.ts:159](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L159) |
|
|
1050
|
+
| <a id="limit"></a> `limit?` | `number` | Maximum number of attestations to return | [sdk/eas/src/schema.ts:153](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L153) |
|
|
1051
|
+
| <a id="offset"></a> `offset?` | `number` | Number of attestations to skip | [sdk/eas/src/schema.ts:155](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L155) |
|
|
1052
|
+
| <a id="recipient-2"></a> `recipient?` | `` `0x${string}` `` | Filter by recipient address | [sdk/eas/src/schema.ts:161](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L161) |
|
|
1053
|
+
| <a id="schema-2"></a> `schema?` | `` `0x${string}` `` | Filter by schema UID | [sdk/eas/src/schema.ts:157](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L157) |
|
|
1054
1054
|
|
|
1055
1055
|
***
|
|
1056
1056
|
|
|
1057
1057
|
#### GetSchemasOptions
|
|
1058
1058
|
|
|
1059
|
-
Defined in: [sdk/eas/src/schema.ts:141](https://github.com/settlemint/sdk/blob/v2.4.
|
|
1059
|
+
Defined in: [sdk/eas/src/schema.ts:141](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L141)
|
|
1060
1060
|
|
|
1061
1061
|
Options for retrieving schemas
|
|
1062
1062
|
|
|
@@ -1064,14 +1064,14 @@ Options for retrieving schemas
|
|
|
1064
1064
|
|
|
1065
1065
|
| Property | Type | Description | Defined in |
|
|
1066
1066
|
| ------ | ------ | ------ | ------ |
|
|
1067
|
-
| <a id="limit-1"></a> `limit?` | `number` | Maximum number of schemas to return | [sdk/eas/src/schema.ts:143](https://github.com/settlemint/sdk/blob/v2.4.
|
|
1068
|
-
| <a id="offset-1"></a> `offset?` | `number` | Number of schemas to skip | [sdk/eas/src/schema.ts:145](https://github.com/settlemint/sdk/blob/v2.4.
|
|
1067
|
+
| <a id="limit-1"></a> `limit?` | `number` | Maximum number of schemas to return | [sdk/eas/src/schema.ts:143](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L143) |
|
|
1068
|
+
| <a id="offset-1"></a> `offset?` | `number` | Number of schemas to skip | [sdk/eas/src/schema.ts:145](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L145) |
|
|
1069
1069
|
|
|
1070
1070
|
***
|
|
1071
1071
|
|
|
1072
1072
|
#### SchemaData
|
|
1073
1073
|
|
|
1074
|
-
Defined in: [sdk/eas/src/schema.ts:101](https://github.com/settlemint/sdk/blob/v2.4.
|
|
1074
|
+
Defined in: [sdk/eas/src/schema.ts:101](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L101)
|
|
1075
1075
|
|
|
1076
1076
|
Schema information
|
|
1077
1077
|
|
|
@@ -1079,16 +1079,16 @@ Schema information
|
|
|
1079
1079
|
|
|
1080
1080
|
| Property | Type | Description | Defined in |
|
|
1081
1081
|
| ------ | ------ | ------ | ------ |
|
|
1082
|
-
| <a id="resolver"></a> `resolver` | `` `0x${string}` `` | Resolver contract address | [sdk/eas/src/schema.ts:105](https://github.com/settlemint/sdk/blob/v2.4.
|
|
1083
|
-
| <a id="revocable-2"></a> `revocable` | `boolean` | Whether attestations can be revoked | [sdk/eas/src/schema.ts:107](https://github.com/settlemint/sdk/blob/v2.4.
|
|
1084
|
-
| <a id="schema-3"></a> `schema` | `string` | Schema string | [sdk/eas/src/schema.ts:109](https://github.com/settlemint/sdk/blob/v2.4.
|
|
1085
|
-
| <a id="uid-1"></a> `uid` | `` `0x${string}` `` | Schema UID | [sdk/eas/src/schema.ts:103](https://github.com/settlemint/sdk/blob/v2.4.
|
|
1082
|
+
| <a id="resolver"></a> `resolver` | `` `0x${string}` `` | Resolver contract address | [sdk/eas/src/schema.ts:105](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L105) |
|
|
1083
|
+
| <a id="revocable-2"></a> `revocable` | `boolean` | Whether attestations can be revoked | [sdk/eas/src/schema.ts:107](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L107) |
|
|
1084
|
+
| <a id="schema-3"></a> `schema` | `string` | Schema string | [sdk/eas/src/schema.ts:109](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L109) |
|
|
1085
|
+
| <a id="uid-1"></a> `uid` | `` `0x${string}` `` | Schema UID | [sdk/eas/src/schema.ts:103](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L103) |
|
|
1086
1086
|
|
|
1087
1087
|
***
|
|
1088
1088
|
|
|
1089
1089
|
#### SchemaField
|
|
1090
1090
|
|
|
1091
|
-
Defined in: [sdk/eas/src/schema.ts:32](https://github.com/settlemint/sdk/blob/v2.4.
|
|
1091
|
+
Defined in: [sdk/eas/src/schema.ts:32](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L32)
|
|
1092
1092
|
|
|
1093
1093
|
Represents a single field in an EAS schema.
|
|
1094
1094
|
|
|
@@ -1096,15 +1096,15 @@ Represents a single field in an EAS schema.
|
|
|
1096
1096
|
|
|
1097
1097
|
| Property | Type | Description | Defined in |
|
|
1098
1098
|
| ------ | ------ | ------ | ------ |
|
|
1099
|
-
| <a id="description"></a> `description?` | `string` | Optional description of the field's purpose | [sdk/eas/src/schema.ts:38](https://github.com/settlemint/sdk/blob/v2.4.
|
|
1100
|
-
| <a id="name"></a> `name` | `string` | The name of the field | [sdk/eas/src/schema.ts:34](https://github.com/settlemint/sdk/blob/v2.4.
|
|
1101
|
-
| <a id="type"></a> `type` | `"string"` \| `"address"` \| `"bool"` \| `"bytes"` \| `"bytes32"` \| `"uint256"` \| `"int256"` \| `"uint8"` \| `"int8"` | The Solidity type of the field | [sdk/eas/src/schema.ts:36](https://github.com/settlemint/sdk/blob/v2.4.
|
|
1099
|
+
| <a id="description"></a> `description?` | `string` | Optional description of the field's purpose | [sdk/eas/src/schema.ts:38](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L38) |
|
|
1100
|
+
| <a id="name"></a> `name` | `string` | The name of the field | [sdk/eas/src/schema.ts:34](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L34) |
|
|
1101
|
+
| <a id="type"></a> `type` | `"string"` \| `"address"` \| `"bool"` \| `"bytes"` \| `"bytes32"` \| `"uint256"` \| `"int256"` \| `"uint8"` \| `"int8"` | The Solidity type of the field | [sdk/eas/src/schema.ts:36](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L36) |
|
|
1102
1102
|
|
|
1103
1103
|
***
|
|
1104
1104
|
|
|
1105
1105
|
#### SchemaRequest
|
|
1106
1106
|
|
|
1107
|
-
Defined in: [sdk/eas/src/schema.ts:49](https://github.com/settlemint/sdk/blob/v2.4.
|
|
1107
|
+
Defined in: [sdk/eas/src/schema.ts:49](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L49)
|
|
1108
1108
|
|
|
1109
1109
|
Schema registration request
|
|
1110
1110
|
|
|
@@ -1112,16 +1112,16 @@ Schema registration request
|
|
|
1112
1112
|
|
|
1113
1113
|
| Property | Type | Description | Defined in |
|
|
1114
1114
|
| ------ | ------ | ------ | ------ |
|
|
1115
|
-
| <a id="fields"></a> `fields?` | [`SchemaField`](#schemafield)[] | Schema fields (alternative to schema string) | [sdk/eas/src/schema.ts:51](https://github.com/settlemint/sdk/blob/v2.4.
|
|
1116
|
-
| <a id="resolver-1"></a> `resolver` | `` `0x${string}` `` | Resolver contract address (use ZERO_ADDRESS for no resolver) | [sdk/eas/src/schema.ts:55](https://github.com/settlemint/sdk/blob/v2.4.
|
|
1117
|
-
| <a id="revocable-3"></a> `revocable` | `boolean` | Whether attestations using this schema can be revoked | [sdk/eas/src/schema.ts:57](https://github.com/settlemint/sdk/blob/v2.4.
|
|
1118
|
-
| <a id="schema-4"></a> `schema?` | `string` | Raw schema string (alternative to fields) | [sdk/eas/src/schema.ts:53](https://github.com/settlemint/sdk/blob/v2.4.
|
|
1115
|
+
| <a id="fields"></a> `fields?` | [`SchemaField`](#schemafield)[] | Schema fields (alternative to schema string) | [sdk/eas/src/schema.ts:51](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L51) |
|
|
1116
|
+
| <a id="resolver-1"></a> `resolver` | `` `0x${string}` `` | Resolver contract address (use ZERO_ADDRESS for no resolver) | [sdk/eas/src/schema.ts:55](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L55) |
|
|
1117
|
+
| <a id="revocable-3"></a> `revocable` | `boolean` | Whether attestations using this schema can be revoked | [sdk/eas/src/schema.ts:57](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L57) |
|
|
1118
|
+
| <a id="schema-4"></a> `schema?` | `string` | Raw schema string (alternative to fields) | [sdk/eas/src/schema.ts:53](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L53) |
|
|
1119
1119
|
|
|
1120
1120
|
***
|
|
1121
1121
|
|
|
1122
1122
|
#### TransactionResult
|
|
1123
1123
|
|
|
1124
|
-
Defined in: [sdk/eas/src/schema.ts:91](https://github.com/settlemint/sdk/blob/v2.4.
|
|
1124
|
+
Defined in: [sdk/eas/src/schema.ts:91](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L91)
|
|
1125
1125
|
|
|
1126
1126
|
Transaction result
|
|
1127
1127
|
|
|
@@ -1129,26 +1129,36 @@ Transaction result
|
|
|
1129
1129
|
|
|
1130
1130
|
| Property | Type | Description | Defined in |
|
|
1131
1131
|
| ------ | ------ | ------ | ------ |
|
|
1132
|
-
| <a id="hash"></a> `hash` | `` `0x${string}` `` | Transaction hash | [sdk/eas/src/schema.ts:93](https://github.com/settlemint/sdk/blob/v2.4.
|
|
1133
|
-
| <a id="success"></a> `success` | `boolean` | Whether the transaction was successful | [sdk/eas/src/schema.ts:95](https://github.com/settlemint/sdk/blob/v2.4.
|
|
1132
|
+
| <a id="hash"></a> `hash` | `` `0x${string}` `` | Transaction hash | [sdk/eas/src/schema.ts:93](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L93) |
|
|
1133
|
+
| <a id="success"></a> `success` | `boolean` | Whether the transaction was successful | [sdk/eas/src/schema.ts:95](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L95) |
|
|
1134
1134
|
|
|
1135
1135
|
### Type Aliases
|
|
1136
1136
|
|
|
1137
1137
|
#### EASClientOptions
|
|
1138
1138
|
|
|
1139
|
-
> **EASClientOptions** = `
|
|
1139
|
+
> **EASClientOptions** = `object`
|
|
1140
1140
|
|
|
1141
|
-
Defined in: [sdk/eas/src/schema.ts:44](https://github.com/settlemint/sdk/blob/v2.4.
|
|
1141
|
+
Defined in: [sdk/eas/src/schema.ts:44](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L44)
|
|
1142
1142
|
|
|
1143
1143
|
Configuration options for the EAS client
|
|
1144
1144
|
|
|
1145
|
+
##### Type declaration
|
|
1146
|
+
|
|
1147
|
+
| Name | Type | Default value | Description | Defined in |
|
|
1148
|
+
| ------ | ------ | ------ | ------ | ------ |
|
|
1149
|
+
| <a id="accesstoken"></a> `accessToken?` | `string` | - | The application access token | [sdk/eas/src/utils/validation.ts:21](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/utils/validation.ts#L21) |
|
|
1150
|
+
| <a id="debug"></a> `debug?` | `boolean` | - | Whether to enable debug mode | [sdk/eas/src/utils/validation.ts:33](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/utils/validation.ts#L33) |
|
|
1151
|
+
| <a id="eascontractaddress"></a> `easContractAddress?` | `` `0x${string}` `` | - | The EAS contract address | [sdk/eas/src/utils/validation.ts:25](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/utils/validation.ts#L25) |
|
|
1152
|
+
| <a id="instance"></a> `instance` | `string` | `UrlSchema` | The EAS instance URL | [sdk/eas/src/utils/validation.ts:17](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/utils/validation.ts#L17) |
|
|
1153
|
+
| <a id="schemaregistrycontractaddress"></a> `schemaRegistryContractAddress?` | `` `0x${string}` `` | - | The schema registry contract address | [sdk/eas/src/utils/validation.ts:29](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/utils/validation.ts#L29) |
|
|
1154
|
+
|
|
1145
1155
|
### Variables
|
|
1146
1156
|
|
|
1147
1157
|
#### EAS\_FIELD\_TYPES
|
|
1148
1158
|
|
|
1149
1159
|
> `const` **EAS\_FIELD\_TYPES**: `object`
|
|
1150
1160
|
|
|
1151
|
-
Defined in: [sdk/eas/src/schema.ts:15](https://github.com/settlemint/sdk/blob/v2.4.
|
|
1161
|
+
Defined in: [sdk/eas/src/schema.ts:15](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L15)
|
|
1152
1162
|
|
|
1153
1163
|
Supported field types for EAS schema fields.
|
|
1154
1164
|
Maps to the Solidity types that can be used in EAS schemas.
|
|
@@ -1157,23 +1167,23 @@ Maps to the Solidity types that can be used in EAS schemas.
|
|
|
1157
1167
|
|
|
1158
1168
|
| Name | Type | Default value | Defined in |
|
|
1159
1169
|
| ------ | ------ | ------ | ------ |
|
|
1160
|
-
| <a id="address"></a> `address` | `"address"` | `"address"` | [sdk/eas/src/schema.ts:17](https://github.com/settlemint/sdk/blob/v2.4.
|
|
1161
|
-
| <a id="bool"></a> `bool` | `"bool"` | `"bool"` | [sdk/eas/src/schema.ts:18](https://github.com/settlemint/sdk/blob/v2.4.
|
|
1162
|
-
| <a id="bytes"></a> `bytes` | `"bytes"` | `"bytes"` | [sdk/eas/src/schema.ts:19](https://github.com/settlemint/sdk/blob/v2.4.
|
|
1163
|
-
| <a id="bytes32"></a> `bytes32` | `"bytes32"` | `"bytes32"` | [sdk/eas/src/schema.ts:20](https://github.com/settlemint/sdk/blob/v2.4.
|
|
1164
|
-
| <a id="int256"></a> `int256` | `"int256"` | `"int256"` | [sdk/eas/src/schema.ts:22](https://github.com/settlemint/sdk/blob/v2.4.
|
|
1165
|
-
| <a id="int8"></a> `int8` | `"int8"` | `"int8"` | [sdk/eas/src/schema.ts:24](https://github.com/settlemint/sdk/blob/v2.4.
|
|
1166
|
-
| <a id="string"></a> `string` | `"string"` | `"string"` | [sdk/eas/src/schema.ts:16](https://github.com/settlemint/sdk/blob/v2.4.
|
|
1167
|
-
| <a id="uint256"></a> `uint256` | `"uint256"` | `"uint256"` | [sdk/eas/src/schema.ts:21](https://github.com/settlemint/sdk/blob/v2.4.
|
|
1168
|
-
| <a id="uint8"></a> `uint8` | `"uint8"` | `"uint8"` | [sdk/eas/src/schema.ts:23](https://github.com/settlemint/sdk/blob/v2.4.
|
|
1170
|
+
| <a id="address"></a> `address` | `"address"` | `"address"` | [sdk/eas/src/schema.ts:17](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L17) |
|
|
1171
|
+
| <a id="bool"></a> `bool` | `"bool"` | `"bool"` | [sdk/eas/src/schema.ts:18](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L18) |
|
|
1172
|
+
| <a id="bytes"></a> `bytes` | `"bytes"` | `"bytes"` | [sdk/eas/src/schema.ts:19](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L19) |
|
|
1173
|
+
| <a id="bytes32"></a> `bytes32` | `"bytes32"` | `"bytes32"` | [sdk/eas/src/schema.ts:20](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L20) |
|
|
1174
|
+
| <a id="int256"></a> `int256` | `"int256"` | `"int256"` | [sdk/eas/src/schema.ts:22](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L22) |
|
|
1175
|
+
| <a id="int8"></a> `int8` | `"int8"` | `"int8"` | [sdk/eas/src/schema.ts:24](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L24) |
|
|
1176
|
+
| <a id="string"></a> `string` | `"string"` | `"string"` | [sdk/eas/src/schema.ts:16](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L16) |
|
|
1177
|
+
| <a id="uint256"></a> `uint256` | `"uint256"` | `"uint256"` | [sdk/eas/src/schema.ts:21](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L21) |
|
|
1178
|
+
| <a id="uint8"></a> `uint8` | `"uint8"` | `"uint8"` | [sdk/eas/src/schema.ts:23](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L23) |
|
|
1169
1179
|
|
|
1170
1180
|
***
|
|
1171
1181
|
|
|
1172
1182
|
#### EASClientOptionsSchema
|
|
1173
1183
|
|
|
1174
|
-
> `const` **EASClientOptionsSchema**: `ZodObject
|
|
1184
|
+
> `const` **EASClientOptionsSchema**: `ZodObject`\<[`EASClientOptions`](#easclientoptions)\>
|
|
1175
1185
|
|
|
1176
|
-
Defined in: [sdk/eas/src/utils/validation.ts:13](https://github.com/settlemint/sdk/blob/v2.4.
|
|
1186
|
+
Defined in: [sdk/eas/src/utils/validation.ts:13](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/utils/validation.ts#L13)
|
|
1177
1187
|
|
|
1178
1188
|
Zod schema for EASClientOptions.
|
|
1179
1189
|
|
|
@@ -1183,7 +1193,7 @@ Zod schema for EASClientOptions.
|
|
|
1183
1193
|
|
|
1184
1194
|
> `const` **ZERO\_ADDRESS**: `"0x0000000000000000000000000000000000000000"` = `zeroAddress`
|
|
1185
1195
|
|
|
1186
|
-
Defined in: [sdk/eas/src/schema.ts:8](https://github.com/settlemint/sdk/blob/v2.4.
|
|
1196
|
+
Defined in: [sdk/eas/src/schema.ts:8](https://github.com/settlemint/sdk/blob/v2.4.1/sdk/eas/src/schema.ts#L8)
|
|
1187
1197
|
|
|
1188
1198
|
Common address constants
|
|
1189
1199
|
|
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
|
/**
|