@settlemint/sdk-eas 2.5.4 → 2.5.5-pr7c65a996
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 +123 -131
- package/dist/browser/eas.d.ts +61 -12
- package/dist/browser/eas.js +137 -26
- package/dist/browser/eas.js.map +1 -1
- package/dist/eas.cjs +137 -26
- package/dist/eas.cjs.map +1 -1
- package/dist/eas.d.cts +61 -12
- package/dist/eas.d.ts +61 -12
- package/dist/eas.js +137 -26
- package/dist/eas.js.map +1 -1
- package/package.json +3 -3
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 {
|
|
77
|
+
import { ZERO_ADDRESS, ZERO_BYTES32, createEASClient } from "@settlemint/sdk-eas";
|
|
78
78
|
|
|
79
79
|
const CONFIG = {
|
|
80
80
|
instance: process.env.SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT,
|
|
@@ -234,25 +234,19 @@ async function runEASWorkflow() {
|
|
|
234
234
|
console.log("⚠️ Schema registration failed:", error);
|
|
235
235
|
}
|
|
236
236
|
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
// console.log(` Revocable: ${schema.revocable}`);
|
|
251
|
-
// console.log(` Schema: ${schema.schema}\n`);
|
|
252
|
-
// } catch (error) {
|
|
253
|
-
// console.log("⚠️ Schema retrieval failed (Portal access required)");
|
|
254
|
-
// console.log(" Would retrieve schema: 0x1234567890123456789012345678901234567890123456789012345678901234\n");
|
|
255
|
-
// }
|
|
237
|
+
// Step 5: Retrieve Schema
|
|
238
|
+
console.log("📖 Step 5: Retrieve Schema");
|
|
239
|
+
try {
|
|
240
|
+
const schema = await client.getSchema(schemaResult.hash);
|
|
241
|
+
console.log("✅ Schema retrieved successfully");
|
|
242
|
+
console.log(` UID: ${schema.uid}`);
|
|
243
|
+
console.log(` Resolver: ${schema.resolver}`);
|
|
244
|
+
console.log(` Revocable: ${schema.revocable}`);
|
|
245
|
+
console.log(` Schema: ${schema.schema}\n`);
|
|
246
|
+
} catch (error) {
|
|
247
|
+
console.log("⚠️ Schema retrieval failed:");
|
|
248
|
+
console.log(` ${error}\n`);
|
|
249
|
+
}
|
|
256
250
|
|
|
257
251
|
// // Step 6: Retrieve All Schemas
|
|
258
252
|
// console.log("📚 Step 6: Retrieve All Schemas");
|
|
@@ -315,17 +309,17 @@ async function runEASWorkflow() {
|
|
|
315
309
|
console.log("✅ Schema retrieval ready");
|
|
316
310
|
console.log("✅ Attestation retrieval ready");
|
|
317
311
|
|
|
318
|
-
console.log("\n💡
|
|
312
|
+
console.log("\n💡 Ready for production!");
|
|
319
313
|
console.log("- All EAS operations implemented");
|
|
320
|
-
console.log("-
|
|
314
|
+
console.log("- Portal GraphQL integration");
|
|
321
315
|
console.log("- Comprehensive error handling");
|
|
322
316
|
console.log("- Type-safe TypeScript API");
|
|
323
|
-
console.log("-
|
|
317
|
+
console.log("- Fully configurable");
|
|
324
318
|
|
|
325
|
-
console.log("\n🔑 To use with
|
|
326
|
-
console.log("-
|
|
327
|
-
console.log("-
|
|
328
|
-
console.log("- Deploy or
|
|
319
|
+
console.log("\n🔑 To use with Portal:");
|
|
320
|
+
console.log("- Set valid Portal access token");
|
|
321
|
+
console.log("- Configure deployer and sender addresses");
|
|
322
|
+
console.log("- Deploy or set contract addresses");
|
|
329
323
|
console.log("- Start creating attestations!");
|
|
330
324
|
}
|
|
331
325
|
|
|
@@ -471,7 +465,7 @@ export { runEASWorkflow, type UserReputationSchema };
|
|
|
471
465
|
|
|
472
466
|
> **createEASClient**(`options`): [`EASClient`](#easclient)
|
|
473
467
|
|
|
474
|
-
Defined in: [sdk/eas/src/eas.ts:632](https://github.com/settlemint/sdk/blob/v2.5.
|
|
468
|
+
Defined in: [sdk/eas/src/eas.ts:632](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/eas.ts#L632)
|
|
475
469
|
|
|
476
470
|
Create an EAS client instance
|
|
477
471
|
|
|
@@ -510,7 +504,7 @@ const deployment = await easClient.deploy("0x1234...deployer-address");
|
|
|
510
504
|
|
|
511
505
|
#### EASClient
|
|
512
506
|
|
|
513
|
-
Defined in: [sdk/eas/src/eas.ts:44](https://github.com/settlemint/sdk/blob/v2.5.
|
|
507
|
+
Defined in: [sdk/eas/src/eas.ts:44](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/eas.ts#L44)
|
|
514
508
|
|
|
515
509
|
Main EAS client class for interacting with Ethereum Attestation Service via Portal
|
|
516
510
|
|
|
@@ -535,7 +529,7 @@ console.log("EAS deployed at:", deployment.easAddress);
|
|
|
535
529
|
|
|
536
530
|
> **new EASClient**(`options`): [`EASClient`](#easclient)
|
|
537
531
|
|
|
538
|
-
Defined in: [sdk/eas/src/eas.ts:55](https://github.com/settlemint/sdk/blob/v2.5.
|
|
532
|
+
Defined in: [sdk/eas/src/eas.ts:55](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/eas.ts#L55)
|
|
539
533
|
|
|
540
534
|
Create a new EAS client instance
|
|
541
535
|
|
|
@@ -560,7 +554,7 @@ Create a new EAS client instance
|
|
|
560
554
|
|
|
561
555
|
> **attest**(`request`, `fromAddress`, `gasLimit?`): `Promise`\<[`TransactionResult`](#transactionresult)\>
|
|
562
556
|
|
|
563
|
-
Defined in: [sdk/eas/src/eas.ts:295](https://github.com/settlemint/sdk/blob/v2.5.
|
|
557
|
+
Defined in: [sdk/eas/src/eas.ts:295](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/eas.ts#L295)
|
|
564
558
|
|
|
565
559
|
Create an attestation
|
|
566
560
|
|
|
@@ -610,7 +604,7 @@ console.log("Attestation created:", attestationResult.hash);
|
|
|
610
604
|
|
|
611
605
|
> **deploy**(`deployerAddress`, `forwarderAddress?`, `gasLimit?`): `Promise`\<[`DeploymentResult`](#deploymentresult)\>
|
|
612
606
|
|
|
613
|
-
Defined in: [sdk/eas/src/eas.ts:106](https://github.com/settlemint/sdk/blob/v2.5.
|
|
607
|
+
Defined in: [sdk/eas/src/eas.ts:106](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/eas.ts#L106)
|
|
614
608
|
|
|
615
609
|
Deploy EAS contracts via Portal
|
|
616
610
|
|
|
@@ -652,12 +646,10 @@ console.log("EAS Contract:", deployment.easAddress);
|
|
|
652
646
|
|
|
653
647
|
> **getAttestation**(`uid`): `Promise`\<[`AttestationInfo`](#attestationinfo)\>
|
|
654
648
|
|
|
655
|
-
Defined in: [sdk/eas/src/eas.ts:528](https://github.com/settlemint/sdk/blob/v2.5.
|
|
649
|
+
Defined in: [sdk/eas/src/eas.ts:528](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/eas.ts#L528)
|
|
656
650
|
|
|
657
651
|
Get an attestation by UID
|
|
658
652
|
|
|
659
|
-
TODO: Implement using The Graph subgraph for EAS data queries
|
|
660
|
-
|
|
661
653
|
###### Parameters
|
|
662
654
|
|
|
663
655
|
| Parameter | Type |
|
|
@@ -672,11 +664,13 @@ TODO: Implement using The Graph subgraph for EAS data queries
|
|
|
672
664
|
|
|
673
665
|
> **getAttestations**(`_options?`): `Promise`\<[`AttestationInfo`](#attestationinfo)[]\>
|
|
674
666
|
|
|
675
|
-
Defined in: [sdk/eas/src/eas.ts:539](https://github.com/settlemint/sdk/blob/v2.5.
|
|
667
|
+
Defined in: [sdk/eas/src/eas.ts:539](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/eas.ts#L539)
|
|
676
668
|
|
|
677
669
|
Get attestations with pagination and filtering
|
|
678
670
|
|
|
679
|
-
|
|
671
|
+
Note: This method requires The Graph subgraph or additional indexing infrastructure
|
|
672
|
+
as Portal's direct contract queries don't support listing all attestations.
|
|
673
|
+
Consider using getAttestation() for individual attestation lookups.
|
|
680
674
|
|
|
681
675
|
###### Parameters
|
|
682
676
|
|
|
@@ -692,7 +686,7 @@ TODO: Implement using The Graph subgraph for EAS data queries
|
|
|
692
686
|
|
|
693
687
|
> **getContractAddresses**(): `object`
|
|
694
688
|
|
|
695
|
-
Defined in: [sdk/eas/src/eas.ts:578](https://github.com/settlemint/sdk/blob/v2.5.
|
|
689
|
+
Defined in: [sdk/eas/src/eas.ts:578](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/eas.ts#L578)
|
|
696
690
|
|
|
697
691
|
Get current contract addresses
|
|
698
692
|
|
|
@@ -702,14 +696,14 @@ Get current contract addresses
|
|
|
702
696
|
|
|
703
697
|
| Name | Type | Defined in |
|
|
704
698
|
| ------ | ------ | ------ |
|
|
705
|
-
| `easAddress?` | `` `0x${string}` `` | [sdk/eas/src/eas.ts:578](https://github.com/settlemint/sdk/blob/v2.5.
|
|
706
|
-
| `schemaRegistryAddress?` | `` `0x${string}` `` | [sdk/eas/src/eas.ts:578](https://github.com/settlemint/sdk/blob/v2.5.
|
|
699
|
+
| `easAddress?` | `` `0x${string}` `` | [sdk/eas/src/eas.ts:578](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/eas.ts#L578) |
|
|
700
|
+
| `schemaRegistryAddress?` | `` `0x${string}` `` | [sdk/eas/src/eas.ts:578](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/eas.ts#L578) |
|
|
707
701
|
|
|
708
702
|
###### getOptions()
|
|
709
703
|
|
|
710
704
|
> **getOptions**(): `object`
|
|
711
705
|
|
|
712
|
-
Defined in: [sdk/eas/src/eas.ts:564](https://github.com/settlemint/sdk/blob/v2.5.
|
|
706
|
+
Defined in: [sdk/eas/src/eas.ts:564](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/eas.ts#L564)
|
|
713
707
|
|
|
714
708
|
Get client configuration
|
|
715
709
|
|
|
@@ -717,17 +711,17 @@ Get client configuration
|
|
|
717
711
|
|
|
718
712
|
| Name | Type | Default value | Description | Defined in |
|
|
719
713
|
| ------ | ------ | ------ | ------ | ------ |
|
|
720
|
-
| `accessToken?` | `string` | - | The application access token | [sdk/eas/src/utils/validation.ts:21](https://github.com/settlemint/sdk/blob/v2.5.
|
|
721
|
-
| `debug?` | `boolean` | - | Whether to enable debug mode | [sdk/eas/src/utils/validation.ts:33](https://github.com/settlemint/sdk/blob/v2.5.
|
|
722
|
-
| `easContractAddress?` | `` `0x${string}` `` | - | The EAS contract address | [sdk/eas/src/utils/validation.ts:25](https://github.com/settlemint/sdk/blob/v2.5.
|
|
723
|
-
| `instance` | `string` | `UrlSchema` | The EAS instance URL | [sdk/eas/src/utils/validation.ts:17](https://github.com/settlemint/sdk/blob/v2.5.
|
|
724
|
-
| `schemaRegistryContractAddress?` | `` `0x${string}` `` | - | The schema registry contract address | [sdk/eas/src/utils/validation.ts:29](https://github.com/settlemint/sdk/blob/v2.5.
|
|
714
|
+
| `accessToken?` | `string` | - | The application access token | [sdk/eas/src/utils/validation.ts:21](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/utils/validation.ts#L21) |
|
|
715
|
+
| `debug?` | `boolean` | - | Whether to enable debug mode | [sdk/eas/src/utils/validation.ts:33](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/utils/validation.ts#L33) |
|
|
716
|
+
| `easContractAddress?` | `` `0x${string}` `` | - | The EAS contract address | [sdk/eas/src/utils/validation.ts:25](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/utils/validation.ts#L25) |
|
|
717
|
+
| `instance` | `string` | `UrlSchema` | The EAS instance URL | [sdk/eas/src/utils/validation.ts:17](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/utils/validation.ts#L17) |
|
|
718
|
+
| `schemaRegistryContractAddress?` | `` `0x${string}` `` | - | The schema registry contract address | [sdk/eas/src/utils/validation.ts:29](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/utils/validation.ts#L29) |
|
|
725
719
|
|
|
726
720
|
###### getPortalClient()
|
|
727
721
|
|
|
728
722
|
> **getPortalClient**(): `GraphQLClient`
|
|
729
723
|
|
|
730
|
-
Defined in: [sdk/eas/src/eas.ts:571](https://github.com/settlemint/sdk/blob/v2.5.
|
|
724
|
+
Defined in: [sdk/eas/src/eas.ts:571](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/eas.ts#L571)
|
|
731
725
|
|
|
732
726
|
Get the Portal client instance for advanced operations
|
|
733
727
|
|
|
@@ -739,12 +733,10 @@ Get the Portal client instance for advanced operations
|
|
|
739
733
|
|
|
740
734
|
> **getSchema**(`uid`): `Promise`\<[`SchemaData`](#schemadata)\>
|
|
741
735
|
|
|
742
|
-
Defined in: [sdk/eas/src/eas.ts:508](https://github.com/settlemint/sdk/blob/v2.5.
|
|
736
|
+
Defined in: [sdk/eas/src/eas.ts:508](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/eas.ts#L508)
|
|
743
737
|
|
|
744
738
|
Get a schema by UID
|
|
745
739
|
|
|
746
|
-
TODO: Implement using The Graph subgraph for EAS data queries
|
|
747
|
-
|
|
748
740
|
###### Parameters
|
|
749
741
|
|
|
750
742
|
| Parameter | Type |
|
|
@@ -759,11 +751,13 @@ TODO: Implement using The Graph subgraph for EAS data queries
|
|
|
759
751
|
|
|
760
752
|
> **getSchemas**(`_options?`): `Promise`\<[`SchemaData`](#schemadata)[]\>
|
|
761
753
|
|
|
762
|
-
Defined in: [sdk/eas/src/eas.ts:519](https://github.com/settlemint/sdk/blob/v2.5.
|
|
754
|
+
Defined in: [sdk/eas/src/eas.ts:519](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/eas.ts#L519)
|
|
763
755
|
|
|
764
756
|
Get all schemas with pagination
|
|
765
757
|
|
|
766
|
-
|
|
758
|
+
Note: This method requires The Graph subgraph or additional indexing infrastructure
|
|
759
|
+
as Portal's direct contract queries don't support listing all schemas.
|
|
760
|
+
Consider using getSchema() for individual schema lookups.
|
|
767
761
|
|
|
768
762
|
###### Parameters
|
|
769
763
|
|
|
@@ -779,11 +773,11 @@ TODO: Implement using The Graph subgraph for EAS data queries
|
|
|
779
773
|
|
|
780
774
|
> **getTimestamp**(): `Promise`\<`bigint`\>
|
|
781
775
|
|
|
782
|
-
Defined in: [sdk/eas/src/eas.ts:557](https://github.com/settlemint/sdk/blob/v2.5.
|
|
776
|
+
Defined in: [sdk/eas/src/eas.ts:557](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/eas.ts#L557)
|
|
783
777
|
|
|
784
|
-
Get the
|
|
778
|
+
Get the timestamp for specific data
|
|
785
779
|
|
|
786
|
-
|
|
780
|
+
The data parameter must be a bytes32 value (64 hex characters with 0x prefix)
|
|
787
781
|
|
|
788
782
|
###### Returns
|
|
789
783
|
|
|
@@ -793,12 +787,10 @@ TODO: Fix Portal GraphQL query parameter encoding or use The Graph subgraph
|
|
|
793
787
|
|
|
794
788
|
> **isValidAttestation**(`_uid`): `Promise`\<`boolean`\>
|
|
795
789
|
|
|
796
|
-
Defined in: [sdk/eas/src/eas.ts:548](https://github.com/settlemint/sdk/blob/v2.5.
|
|
790
|
+
Defined in: [sdk/eas/src/eas.ts:548](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/eas.ts#L548)
|
|
797
791
|
|
|
798
792
|
Check if an attestation is valid
|
|
799
793
|
|
|
800
|
-
TODO: Implement using The Graph subgraph for EAS data queries
|
|
801
|
-
|
|
802
794
|
###### Parameters
|
|
803
795
|
|
|
804
796
|
| Parameter | Type |
|
|
@@ -813,7 +805,7 @@ TODO: Implement using The Graph subgraph for EAS data queries
|
|
|
813
805
|
|
|
814
806
|
> **multiAttest**(`requests`, `fromAddress`, `gasLimit?`): `Promise`\<[`TransactionResult`](#transactionresult)\>
|
|
815
807
|
|
|
816
|
-
Defined in: [sdk/eas/src/eas.ts:386](https://github.com/settlemint/sdk/blob/v2.5.
|
|
808
|
+
Defined in: [sdk/eas/src/eas.ts:386](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/eas.ts#L386)
|
|
817
809
|
|
|
818
810
|
Create multiple attestations in a single transaction
|
|
819
811
|
|
|
@@ -876,7 +868,7 @@ console.log("Multiple attestations created:", multiAttestResult.hash);
|
|
|
876
868
|
|
|
877
869
|
> **registerSchema**(`request`, `fromAddress`, `gasLimit?`): `Promise`\<[`TransactionResult`](#transactionresult)\>
|
|
878
870
|
|
|
879
|
-
Defined in: [sdk/eas/src/eas.ts:216](https://github.com/settlemint/sdk/blob/v2.5.
|
|
871
|
+
Defined in: [sdk/eas/src/eas.ts:216](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/eas.ts#L216)
|
|
880
872
|
|
|
881
873
|
Register a new schema in the EAS Schema Registry
|
|
882
874
|
|
|
@@ -920,7 +912,7 @@ console.log("Schema registered:", schemaResult.hash);
|
|
|
920
912
|
|
|
921
913
|
> **revoke**(`schemaUID`, `attestationUID`, `fromAddress`, `value?`, `gasLimit?`): `Promise`\<[`TransactionResult`](#transactionresult)\>
|
|
922
914
|
|
|
923
|
-
Defined in: [sdk/eas/src/eas.ts:464](https://github.com/settlemint/sdk/blob/v2.5.
|
|
915
|
+
Defined in: [sdk/eas/src/eas.ts:464](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/eas.ts#L464)
|
|
924
916
|
|
|
925
917
|
Revoke an existing attestation
|
|
926
918
|
|
|
@@ -964,7 +956,7 @@ console.log("Attestation revoked:", revokeResult.hash);
|
|
|
964
956
|
|
|
965
957
|
#### AttestationData
|
|
966
958
|
|
|
967
|
-
Defined in: [sdk/eas/src/schema.ts:63](https://github.com/settlemint/sdk/blob/v2.5.
|
|
959
|
+
Defined in: [sdk/eas/src/schema.ts:63](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/schema.ts#L63)
|
|
968
960
|
|
|
969
961
|
Attestation data structure
|
|
970
962
|
|
|
@@ -972,18 +964,18 @@ Attestation data structure
|
|
|
972
964
|
|
|
973
965
|
| Property | Type | Description | Defined in |
|
|
974
966
|
| ------ | ------ | ------ | ------ |
|
|
975
|
-
| <a id="data"></a> `data` | `` `0x${string}` `` | Encoded attestation data | [sdk/eas/src/schema.ts:73](https://github.com/settlemint/sdk/blob/v2.5.
|
|
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.5.
|
|
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.5.
|
|
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.5.
|
|
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.5.
|
|
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.5.
|
|
967
|
+
| <a id="data"></a> `data` | `` `0x${string}` `` | Encoded attestation data | [sdk/eas/src/schema.ts:73](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/schema.ts#L73) |
|
|
968
|
+
| <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.5.5/sdk/eas/src/schema.ts#L67) |
|
|
969
|
+
| <a id="recipient"></a> `recipient` | `` `0x${string}` `` | Recipient of the attestation | [sdk/eas/src/schema.ts:65](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/schema.ts#L65) |
|
|
970
|
+
| <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.5.5/sdk/eas/src/schema.ts#L71) |
|
|
971
|
+
| <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.5.5/sdk/eas/src/schema.ts#L69) |
|
|
972
|
+
| <a id="value"></a> `value` | `bigint` | Value sent with the attestation | [sdk/eas/src/schema.ts:75](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/schema.ts#L75) |
|
|
981
973
|
|
|
982
974
|
***
|
|
983
975
|
|
|
984
976
|
#### AttestationInfo
|
|
985
977
|
|
|
986
|
-
Defined in: [sdk/eas/src/schema.ts:115](https://github.com/settlemint/sdk/blob/v2.5.
|
|
978
|
+
Defined in: [sdk/eas/src/schema.ts:115](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/schema.ts#L115)
|
|
987
979
|
|
|
988
980
|
Attestation information
|
|
989
981
|
|
|
@@ -991,22 +983,22 @@ Attestation information
|
|
|
991
983
|
|
|
992
984
|
| Property | Type | Description | Defined in |
|
|
993
985
|
| ------ | ------ | ------ | ------ |
|
|
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.5.
|
|
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.5.
|
|
996
|
-
| <a id="expirationtime-1"></a> `expirationTime` | `bigint` | Expiration timestamp | [sdk/eas/src/schema.ts:127](https://github.com/settlemint/sdk/blob/v2.5.
|
|
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.5.
|
|
998
|
-
| <a id="refuid-1"></a> `refUID` | `` `0x${string}` `` | Reference UID | [sdk/eas/src/schema.ts:131](https://github.com/settlemint/sdk/blob/v2.5.
|
|
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.5.
|
|
1000
|
-
| <a id="schema"></a> `schema` | `` `0x${string}` `` | Schema UID | [sdk/eas/src/schema.ts:119](https://github.com/settlemint/sdk/blob/v2.5.
|
|
1001
|
-
| <a id="time"></a> `time` | `bigint` | Creation timestamp | [sdk/eas/src/schema.ts:125](https://github.com/settlemint/sdk/blob/v2.5.
|
|
1002
|
-
| <a id="uid"></a> `uid` | `` `0x${string}` `` | Attestation UID | [sdk/eas/src/schema.ts:117](https://github.com/settlemint/sdk/blob/v2.5.
|
|
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.5.
|
|
986
|
+
| <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.5.5/sdk/eas/src/schema.ts#L121) |
|
|
987
|
+
| <a id="data-1"></a> `data` | `` `0x${string}` `` | Encoded attestation data | [sdk/eas/src/schema.ts:133](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/schema.ts#L133) |
|
|
988
|
+
| <a id="expirationtime-1"></a> `expirationTime` | `bigint` | Expiration timestamp | [sdk/eas/src/schema.ts:127](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/schema.ts#L127) |
|
|
989
|
+
| <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.5.5/sdk/eas/src/schema.ts#L123) |
|
|
990
|
+
| <a id="refuid-1"></a> `refUID` | `` `0x${string}` `` | Reference UID | [sdk/eas/src/schema.ts:131](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/schema.ts#L131) |
|
|
991
|
+
| <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.5.5/sdk/eas/src/schema.ts#L129) |
|
|
992
|
+
| <a id="schema"></a> `schema` | `` `0x${string}` `` | Schema UID | [sdk/eas/src/schema.ts:119](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/schema.ts#L119) |
|
|
993
|
+
| <a id="time"></a> `time` | `bigint` | Creation timestamp | [sdk/eas/src/schema.ts:125](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/schema.ts#L125) |
|
|
994
|
+
| <a id="uid"></a> `uid` | `` `0x${string}` `` | Attestation UID | [sdk/eas/src/schema.ts:117](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/schema.ts#L117) |
|
|
995
|
+
| <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.5.5/sdk/eas/src/schema.ts#L135) |
|
|
1004
996
|
|
|
1005
997
|
***
|
|
1006
998
|
|
|
1007
999
|
#### AttestationRequest
|
|
1008
1000
|
|
|
1009
|
-
Defined in: [sdk/eas/src/schema.ts:81](https://github.com/settlemint/sdk/blob/v2.5.
|
|
1001
|
+
Defined in: [sdk/eas/src/schema.ts:81](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/schema.ts#L81)
|
|
1010
1002
|
|
|
1011
1003
|
Attestation request
|
|
1012
1004
|
|
|
@@ -1014,14 +1006,14 @@ Attestation request
|
|
|
1014
1006
|
|
|
1015
1007
|
| Property | Type | Description | Defined in |
|
|
1016
1008
|
| ------ | ------ | ------ | ------ |
|
|
1017
|
-
| <a id="data-2"></a> `data` | [`AttestationData`](#attestationdata) | Attestation data | [sdk/eas/src/schema.ts:85](https://github.com/settlemint/sdk/blob/v2.5.
|
|
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.5.
|
|
1009
|
+
| <a id="data-2"></a> `data` | [`AttestationData`](#attestationdata) | Attestation data | [sdk/eas/src/schema.ts:85](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/schema.ts#L85) |
|
|
1010
|
+
| <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.5.5/sdk/eas/src/schema.ts#L83) |
|
|
1019
1011
|
|
|
1020
1012
|
***
|
|
1021
1013
|
|
|
1022
1014
|
#### DeploymentResult
|
|
1023
1015
|
|
|
1024
|
-
Defined in: [sdk/eas/src/schema.ts:167](https://github.com/settlemint/sdk/blob/v2.5.
|
|
1016
|
+
Defined in: [sdk/eas/src/schema.ts:167](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/schema.ts#L167)
|
|
1025
1017
|
|
|
1026
1018
|
Contract deployment result
|
|
1027
1019
|
|
|
@@ -1029,16 +1021,16 @@ Contract deployment result
|
|
|
1029
1021
|
|
|
1030
1022
|
| Property | Type | Description | Defined in |
|
|
1031
1023
|
| ------ | ------ | ------ | ------ |
|
|
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.5.
|
|
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.5.
|
|
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.5.
|
|
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.5.
|
|
1024
|
+
| <a id="easaddress"></a> `easAddress` | `` `0x${string}` `` | Deployed EAS contract address | [sdk/eas/src/schema.ts:169](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/schema.ts#L169) |
|
|
1025
|
+
| <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.5.5/sdk/eas/src/schema.ts#L173) |
|
|
1026
|
+
| <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.5.5/sdk/eas/src/schema.ts#L171) |
|
|
1027
|
+
| <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.5.5/sdk/eas/src/schema.ts#L175) |
|
|
1036
1028
|
|
|
1037
1029
|
***
|
|
1038
1030
|
|
|
1039
1031
|
#### GetAttestationsOptions
|
|
1040
1032
|
|
|
1041
|
-
Defined in: [sdk/eas/src/schema.ts:151](https://github.com/settlemint/sdk/blob/v2.5.
|
|
1033
|
+
Defined in: [sdk/eas/src/schema.ts:151](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/schema.ts#L151)
|
|
1042
1034
|
|
|
1043
1035
|
Options for retrieving attestations
|
|
1044
1036
|
|
|
@@ -1046,17 +1038,17 @@ Options for retrieving attestations
|
|
|
1046
1038
|
|
|
1047
1039
|
| Property | Type | Description | Defined in |
|
|
1048
1040
|
| ------ | ------ | ------ | ------ |
|
|
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.5.
|
|
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.5.
|
|
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.5.
|
|
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.5.
|
|
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.5.
|
|
1041
|
+
| <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.5.5/sdk/eas/src/schema.ts#L159) |
|
|
1042
|
+
| <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.5.5/sdk/eas/src/schema.ts#L153) |
|
|
1043
|
+
| <a id="offset"></a> `offset?` | `number` | Number of attestations to skip | [sdk/eas/src/schema.ts:155](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/schema.ts#L155) |
|
|
1044
|
+
| <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.5.5/sdk/eas/src/schema.ts#L161) |
|
|
1045
|
+
| <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.5.5/sdk/eas/src/schema.ts#L157) |
|
|
1054
1046
|
|
|
1055
1047
|
***
|
|
1056
1048
|
|
|
1057
1049
|
#### GetSchemasOptions
|
|
1058
1050
|
|
|
1059
|
-
Defined in: [sdk/eas/src/schema.ts:141](https://github.com/settlemint/sdk/blob/v2.5.
|
|
1051
|
+
Defined in: [sdk/eas/src/schema.ts:141](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/schema.ts#L141)
|
|
1060
1052
|
|
|
1061
1053
|
Options for retrieving schemas
|
|
1062
1054
|
|
|
@@ -1064,14 +1056,14 @@ Options for retrieving schemas
|
|
|
1064
1056
|
|
|
1065
1057
|
| Property | Type | Description | Defined in |
|
|
1066
1058
|
| ------ | ------ | ------ | ------ |
|
|
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.5.
|
|
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.5.
|
|
1059
|
+
| <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.5.5/sdk/eas/src/schema.ts#L143) |
|
|
1060
|
+
| <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.5.5/sdk/eas/src/schema.ts#L145) |
|
|
1069
1061
|
|
|
1070
1062
|
***
|
|
1071
1063
|
|
|
1072
1064
|
#### SchemaData
|
|
1073
1065
|
|
|
1074
|
-
Defined in: [sdk/eas/src/schema.ts:101](https://github.com/settlemint/sdk/blob/v2.5.
|
|
1066
|
+
Defined in: [sdk/eas/src/schema.ts:101](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/schema.ts#L101)
|
|
1075
1067
|
|
|
1076
1068
|
Schema information
|
|
1077
1069
|
|
|
@@ -1079,16 +1071,16 @@ Schema information
|
|
|
1079
1071
|
|
|
1080
1072
|
| Property | Type | Description | Defined in |
|
|
1081
1073
|
| ------ | ------ | ------ | ------ |
|
|
1082
|
-
| <a id="resolver"></a> `resolver` | `` `0x${string}` `` | Resolver contract address | [sdk/eas/src/schema.ts:105](https://github.com/settlemint/sdk/blob/v2.5.
|
|
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.5.
|
|
1084
|
-
| <a id="schema-3"></a> `schema` | `string` | Schema string | [sdk/eas/src/schema.ts:109](https://github.com/settlemint/sdk/blob/v2.5.
|
|
1085
|
-
| <a id="uid-1"></a> `uid` | `` `0x${string}` `` | Schema UID | [sdk/eas/src/schema.ts:103](https://github.com/settlemint/sdk/blob/v2.5.
|
|
1074
|
+
| <a id="resolver"></a> `resolver` | `` `0x${string}` `` | Resolver contract address | [sdk/eas/src/schema.ts:105](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/schema.ts#L105) |
|
|
1075
|
+
| <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.5.5/sdk/eas/src/schema.ts#L107) |
|
|
1076
|
+
| <a id="schema-3"></a> `schema` | `string` | Schema string | [sdk/eas/src/schema.ts:109](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/schema.ts#L109) |
|
|
1077
|
+
| <a id="uid-1"></a> `uid` | `` `0x${string}` `` | Schema UID | [sdk/eas/src/schema.ts:103](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/schema.ts#L103) |
|
|
1086
1078
|
|
|
1087
1079
|
***
|
|
1088
1080
|
|
|
1089
1081
|
#### SchemaField
|
|
1090
1082
|
|
|
1091
|
-
Defined in: [sdk/eas/src/schema.ts:32](https://github.com/settlemint/sdk/blob/v2.5.
|
|
1083
|
+
Defined in: [sdk/eas/src/schema.ts:32](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/schema.ts#L32)
|
|
1092
1084
|
|
|
1093
1085
|
Represents a single field in an EAS schema.
|
|
1094
1086
|
|
|
@@ -1096,15 +1088,15 @@ Represents a single field in an EAS schema.
|
|
|
1096
1088
|
|
|
1097
1089
|
| Property | Type | Description | Defined in |
|
|
1098
1090
|
| ------ | ------ | ------ | ------ |
|
|
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.5.
|
|
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.5.
|
|
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.5.
|
|
1091
|
+
| <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.5.5/sdk/eas/src/schema.ts#L38) |
|
|
1092
|
+
| <a id="name"></a> `name` | `string` | The name of the field | [sdk/eas/src/schema.ts:34](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/schema.ts#L34) |
|
|
1093
|
+
| <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.5.5/sdk/eas/src/schema.ts#L36) |
|
|
1102
1094
|
|
|
1103
1095
|
***
|
|
1104
1096
|
|
|
1105
1097
|
#### SchemaRequest
|
|
1106
1098
|
|
|
1107
|
-
Defined in: [sdk/eas/src/schema.ts:49](https://github.com/settlemint/sdk/blob/v2.5.
|
|
1099
|
+
Defined in: [sdk/eas/src/schema.ts:49](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/schema.ts#L49)
|
|
1108
1100
|
|
|
1109
1101
|
Schema registration request
|
|
1110
1102
|
|
|
@@ -1112,16 +1104,16 @@ Schema registration request
|
|
|
1112
1104
|
|
|
1113
1105
|
| Property | Type | Description | Defined in |
|
|
1114
1106
|
| ------ | ------ | ------ | ------ |
|
|
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.5.
|
|
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.5.
|
|
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.5.
|
|
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.5.
|
|
1107
|
+
| <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.5.5/sdk/eas/src/schema.ts#L51) |
|
|
1108
|
+
| <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.5.5/sdk/eas/src/schema.ts#L55) |
|
|
1109
|
+
| <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.5.5/sdk/eas/src/schema.ts#L57) |
|
|
1110
|
+
| <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.5.5/sdk/eas/src/schema.ts#L53) |
|
|
1119
1111
|
|
|
1120
1112
|
***
|
|
1121
1113
|
|
|
1122
1114
|
#### TransactionResult
|
|
1123
1115
|
|
|
1124
|
-
Defined in: [sdk/eas/src/schema.ts:91](https://github.com/settlemint/sdk/blob/v2.5.
|
|
1116
|
+
Defined in: [sdk/eas/src/schema.ts:91](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/schema.ts#L91)
|
|
1125
1117
|
|
|
1126
1118
|
Transaction result
|
|
1127
1119
|
|
|
@@ -1129,8 +1121,8 @@ Transaction result
|
|
|
1129
1121
|
|
|
1130
1122
|
| Property | Type | Description | Defined in |
|
|
1131
1123
|
| ------ | ------ | ------ | ------ |
|
|
1132
|
-
| <a id="hash"></a> `hash` | `` `0x${string}` `` | Transaction hash | [sdk/eas/src/schema.ts:93](https://github.com/settlemint/sdk/blob/v2.5.
|
|
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.5.
|
|
1124
|
+
| <a id="hash"></a> `hash` | `` `0x${string}` `` | Transaction hash | [sdk/eas/src/schema.ts:93](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/schema.ts#L93) |
|
|
1125
|
+
| <a id="success"></a> `success` | `boolean` | Whether the transaction was successful | [sdk/eas/src/schema.ts:95](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/schema.ts#L95) |
|
|
1134
1126
|
|
|
1135
1127
|
### Type Aliases
|
|
1136
1128
|
|
|
@@ -1138,7 +1130,7 @@ Transaction result
|
|
|
1138
1130
|
|
|
1139
1131
|
> **EASClientOptions** = `object`
|
|
1140
1132
|
|
|
1141
|
-
Defined in: [sdk/eas/src/schema.ts:44](https://github.com/settlemint/sdk/blob/v2.5.
|
|
1133
|
+
Defined in: [sdk/eas/src/schema.ts:44](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/schema.ts#L44)
|
|
1142
1134
|
|
|
1143
1135
|
Configuration options for the EAS client
|
|
1144
1136
|
|
|
@@ -1146,11 +1138,11 @@ Configuration options for the EAS client
|
|
|
1146
1138
|
|
|
1147
1139
|
| Name | Type | Default value | Description | Defined in |
|
|
1148
1140
|
| ------ | ------ | ------ | ------ | ------ |
|
|
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.5.
|
|
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.5.
|
|
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.5.
|
|
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.5.
|
|
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.5.
|
|
1141
|
+
| <a id="accesstoken"></a> `accessToken?` | `string` | - | The application access token | [sdk/eas/src/utils/validation.ts:21](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/utils/validation.ts#L21) |
|
|
1142
|
+
| <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.5.5/sdk/eas/src/utils/validation.ts#L33) |
|
|
1143
|
+
| <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.5.5/sdk/eas/src/utils/validation.ts#L25) |
|
|
1144
|
+
| <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.5.5/sdk/eas/src/utils/validation.ts#L17) |
|
|
1145
|
+
| <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.5.5/sdk/eas/src/utils/validation.ts#L29) |
|
|
1154
1146
|
|
|
1155
1147
|
### Variables
|
|
1156
1148
|
|
|
@@ -1158,7 +1150,7 @@ Configuration options for the EAS client
|
|
|
1158
1150
|
|
|
1159
1151
|
> `const` **EAS\_FIELD\_TYPES**: `object`
|
|
1160
1152
|
|
|
1161
|
-
Defined in: [sdk/eas/src/schema.ts:15](https://github.com/settlemint/sdk/blob/v2.5.
|
|
1153
|
+
Defined in: [sdk/eas/src/schema.ts:15](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/schema.ts#L15)
|
|
1162
1154
|
|
|
1163
1155
|
Supported field types for EAS schema fields.
|
|
1164
1156
|
Maps to the Solidity types that can be used in EAS schemas.
|
|
@@ -1167,15 +1159,15 @@ Maps to the Solidity types that can be used in EAS schemas.
|
|
|
1167
1159
|
|
|
1168
1160
|
| Name | Type | Default value | Defined in |
|
|
1169
1161
|
| ------ | ------ | ------ | ------ |
|
|
1170
|
-
| <a id="address"></a> `address` | `"address"` | `"address"` | [sdk/eas/src/schema.ts:17](https://github.com/settlemint/sdk/blob/v2.5.
|
|
1171
|
-
| <a id="bool"></a> `bool` | `"bool"` | `"bool"` | [sdk/eas/src/schema.ts:18](https://github.com/settlemint/sdk/blob/v2.5.
|
|
1172
|
-
| <a id="bytes"></a> `bytes` | `"bytes"` | `"bytes"` | [sdk/eas/src/schema.ts:19](https://github.com/settlemint/sdk/blob/v2.5.
|
|
1173
|
-
| <a id="bytes32"></a> `bytes32` | `"bytes32"` | `"bytes32"` | [sdk/eas/src/schema.ts:20](https://github.com/settlemint/sdk/blob/v2.5.
|
|
1174
|
-
| <a id="int256"></a> `int256` | `"int256"` | `"int256"` | [sdk/eas/src/schema.ts:22](https://github.com/settlemint/sdk/blob/v2.5.
|
|
1175
|
-
| <a id="int8"></a> `int8` | `"int8"` | `"int8"` | [sdk/eas/src/schema.ts:24](https://github.com/settlemint/sdk/blob/v2.5.
|
|
1176
|
-
| <a id="string"></a> `string` | `"string"` | `"string"` | [sdk/eas/src/schema.ts:16](https://github.com/settlemint/sdk/blob/v2.5.
|
|
1177
|
-
| <a id="uint256"></a> `uint256` | `"uint256"` | `"uint256"` | [sdk/eas/src/schema.ts:21](https://github.com/settlemint/sdk/blob/v2.5.
|
|
1178
|
-
| <a id="uint8"></a> `uint8` | `"uint8"` | `"uint8"` | [sdk/eas/src/schema.ts:23](https://github.com/settlemint/sdk/blob/v2.5.
|
|
1162
|
+
| <a id="address"></a> `address` | `"address"` | `"address"` | [sdk/eas/src/schema.ts:17](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/schema.ts#L17) |
|
|
1163
|
+
| <a id="bool"></a> `bool` | `"bool"` | `"bool"` | [sdk/eas/src/schema.ts:18](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/schema.ts#L18) |
|
|
1164
|
+
| <a id="bytes"></a> `bytes` | `"bytes"` | `"bytes"` | [sdk/eas/src/schema.ts:19](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/schema.ts#L19) |
|
|
1165
|
+
| <a id="bytes32"></a> `bytes32` | `"bytes32"` | `"bytes32"` | [sdk/eas/src/schema.ts:20](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/schema.ts#L20) |
|
|
1166
|
+
| <a id="int256"></a> `int256` | `"int256"` | `"int256"` | [sdk/eas/src/schema.ts:22](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/schema.ts#L22) |
|
|
1167
|
+
| <a id="int8"></a> `int8` | `"int8"` | `"int8"` | [sdk/eas/src/schema.ts:24](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/schema.ts#L24) |
|
|
1168
|
+
| <a id="string"></a> `string` | `"string"` | `"string"` | [sdk/eas/src/schema.ts:16](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/schema.ts#L16) |
|
|
1169
|
+
| <a id="uint256"></a> `uint256` | `"uint256"` | `"uint256"` | [sdk/eas/src/schema.ts:21](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/schema.ts#L21) |
|
|
1170
|
+
| <a id="uint8"></a> `uint8` | `"uint8"` | `"uint8"` | [sdk/eas/src/schema.ts:23](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/schema.ts#L23) |
|
|
1179
1171
|
|
|
1180
1172
|
***
|
|
1181
1173
|
|
|
@@ -1183,7 +1175,7 @@ Maps to the Solidity types that can be used in EAS schemas.
|
|
|
1183
1175
|
|
|
1184
1176
|
> `const` **EASClientOptionsSchema**: `ZodObject`\<[`EASClientOptions`](#easclientoptions)\>
|
|
1185
1177
|
|
|
1186
|
-
Defined in: [sdk/eas/src/utils/validation.ts:13](https://github.com/settlemint/sdk/blob/v2.5.
|
|
1178
|
+
Defined in: [sdk/eas/src/utils/validation.ts:13](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/utils/validation.ts#L13)
|
|
1187
1179
|
|
|
1188
1180
|
Zod schema for EASClientOptions.
|
|
1189
1181
|
|
|
@@ -1193,7 +1185,7 @@ Zod schema for EASClientOptions.
|
|
|
1193
1185
|
|
|
1194
1186
|
> `const` **ZERO\_ADDRESS**: `"0x0000000000000000000000000000000000000000"` = `zeroAddress`
|
|
1195
1187
|
|
|
1196
|
-
Defined in: [sdk/eas/src/schema.ts:8](https://github.com/settlemint/sdk/blob/v2.5.
|
|
1188
|
+
Defined in: [sdk/eas/src/schema.ts:8](https://github.com/settlemint/sdk/blob/v2.5.5/sdk/eas/src/schema.ts#L8)
|
|
1197
1189
|
|
|
1198
1190
|
Common address constants
|
|
1199
1191
|
|