@settlemint/sdk-eas 2.3.2-pr3dad35bd → 2.3.2-pr472d8b55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/eas.d.cts CHANGED
@@ -1,16 +1,21 @@
1
- import { z } from 'zod/v4';
1
+ import { z } from "zod/v4";
2
2
 
3
+ //#region src/client-options.schema.d.ts
4
+ /**
5
+ * Schema for validating EAS client configuration options.
6
+ * Extends the base Viem client options with EAS-specific requirements.
7
+ */
3
8
  /**
4
9
  * Schema for validating EAS client configuration options.
5
10
  * Extends the base Viem client options with EAS-specific requirements.
6
11
  */
7
12
  declare const ClientOptionsSchema: z.ZodObject<{
8
- schemaRegistryAddress: z.ZodString;
9
- attestationAddress: z.ZodString;
10
- accessToken: z.ZodString;
11
- chainId: z.ZodString;
12
- chainName: z.ZodString;
13
- rpcUrl: z.ZodString;
13
+ schemaRegistryAddress: z.ZodString;
14
+ attestationAddress: z.ZodString;
15
+ accessToken: z.ZodString;
16
+ chainId: z.ZodString;
17
+ chainName: z.ZodString;
18
+ rpcUrl: z.ZodString;
14
19
  }, z.core.$strip>;
15
20
  /**
16
21
  * Configuration options for creating an EAS client.
@@ -18,45 +23,49 @@ declare const ClientOptionsSchema: z.ZodObject<{
18
23
  */
19
24
  type ClientOptions = z.infer<typeof ClientOptionsSchema>;
20
25
 
26
+ //#endregion
27
+ //#region src/types.d.ts
21
28
  /**
22
29
  * Supported field types for EAS schema fields.
23
30
  * Maps to the Solidity types that can be used in EAS schemas.
24
31
  */
25
32
  declare const EAS_FIELD_TYPES: {
26
- readonly string: "string";
27
- readonly address: "address";
28
- readonly bool: "bool";
29
- readonly bytes: "bytes";
30
- readonly bytes32: "bytes32";
31
- readonly uint256: "uint256";
32
- readonly int256: "int256";
33
- readonly uint8: "uint8";
34
- readonly int8: "int8";
33
+ readonly string: "string";
34
+ readonly address: "address";
35
+ readonly bool: "bool";
36
+ readonly bytes: "bytes";
37
+ readonly bytes32: "bytes32";
38
+ readonly uint256: "uint256";
39
+ readonly int256: "int256";
40
+ readonly uint8: "uint8";
41
+ readonly int8: "int8";
35
42
  };
36
43
  type EASFieldType = keyof typeof EAS_FIELD_TYPES;
37
44
  /**
38
45
  * Represents a single field in an EAS schema.
39
46
  */
40
47
  interface SchemaField {
41
- /** The name of the field */
42
- name: string;
43
- /** The Solidity type of the field */
44
- type: EASFieldType;
45
- /** Optional description of the field's purpose */
46
- description?: string;
48
+ /** The name of the field */
49
+ name: string;
50
+ /** The Solidity type of the field */
51
+ type: EASFieldType;
52
+ /** Optional description of the field's purpose */
53
+ description?: string;
47
54
  }
48
55
  /**
49
56
  * Options for registering a new schema in the EAS Schema Registry.
50
57
  */
51
58
  interface RegisterSchemaOptions {
52
- /** Array of fields that make up the schema */
53
- fields: SchemaField[];
54
- /** Address of the resolver contract that will handle attestations */
55
- resolverAddress: string;
56
- /** Whether attestations using this schema can be revoked */
57
- revocable: boolean;
59
+ /** Array of fields that make up the schema */
60
+ fields: SchemaField[];
61
+ /** Address of the resolver contract that will handle attestations */
62
+ resolverAddress: string;
63
+ /** Whether attestations using this schema can be revoked */
64
+ revocable: boolean;
58
65
  }
59
66
 
67
+ //#endregion
68
+ //#region src/eas.d.ts
60
69
  /**
61
70
  * Creates an EAS client for interacting with the Ethereum Attestation Service.
62
71
  *
@@ -79,8 +88,10 @@ interface RegisterSchemaOptions {
79
88
  * ```
80
89
  */
81
90
  declare function createEASClient(options: ClientOptions): {
82
- registerSchema: (options: RegisterSchemaOptions) => Promise<string>;
83
- getSchema: (uid: string) => Promise<string>;
91
+ registerSchema: (options: RegisterSchemaOptions) => Promise<string>;
92
+ getSchema: (uid: string) => Promise<string>;
84
93
  };
85
94
 
86
- export { type ClientOptions, ClientOptionsSchema, type EASFieldType, EAS_FIELD_TYPES, type RegisterSchemaOptions, type SchemaField, createEASClient };
95
+ //#endregion
96
+ export { ClientOptions, ClientOptionsSchema, EASFieldType, EAS_FIELD_TYPES, RegisterSchemaOptions, SchemaField, createEASClient };
97
+ //# sourceMappingURL=eas.d.cts.map
package/dist/eas.d.ts CHANGED
@@ -1,16 +1,21 @@
1
- import { z } from 'zod/v4';
1
+ import { z } from "zod/v4";
2
2
 
3
+ //#region src/client-options.schema.d.ts
4
+ /**
5
+ * Schema for validating EAS client configuration options.
6
+ * Extends the base Viem client options with EAS-specific requirements.
7
+ */
3
8
  /**
4
9
  * Schema for validating EAS client configuration options.
5
10
  * Extends the base Viem client options with EAS-specific requirements.
6
11
  */
7
12
  declare const ClientOptionsSchema: z.ZodObject<{
8
- schemaRegistryAddress: z.ZodString;
9
- attestationAddress: z.ZodString;
10
- accessToken: z.ZodString;
11
- chainId: z.ZodString;
12
- chainName: z.ZodString;
13
- rpcUrl: z.ZodString;
13
+ schemaRegistryAddress: z.ZodString;
14
+ attestationAddress: z.ZodString;
15
+ accessToken: z.ZodString;
16
+ chainId: z.ZodString;
17
+ chainName: z.ZodString;
18
+ rpcUrl: z.ZodString;
14
19
  }, z.core.$strip>;
15
20
  /**
16
21
  * Configuration options for creating an EAS client.
@@ -18,45 +23,49 @@ declare const ClientOptionsSchema: z.ZodObject<{
18
23
  */
19
24
  type ClientOptions = z.infer<typeof ClientOptionsSchema>;
20
25
 
26
+ //#endregion
27
+ //#region src/types.d.ts
21
28
  /**
22
29
  * Supported field types for EAS schema fields.
23
30
  * Maps to the Solidity types that can be used in EAS schemas.
24
31
  */
25
32
  declare const EAS_FIELD_TYPES: {
26
- readonly string: "string";
27
- readonly address: "address";
28
- readonly bool: "bool";
29
- readonly bytes: "bytes";
30
- readonly bytes32: "bytes32";
31
- readonly uint256: "uint256";
32
- readonly int256: "int256";
33
- readonly uint8: "uint8";
34
- readonly int8: "int8";
33
+ readonly string: "string";
34
+ readonly address: "address";
35
+ readonly bool: "bool";
36
+ readonly bytes: "bytes";
37
+ readonly bytes32: "bytes32";
38
+ readonly uint256: "uint256";
39
+ readonly int256: "int256";
40
+ readonly uint8: "uint8";
41
+ readonly int8: "int8";
35
42
  };
36
43
  type EASFieldType = keyof typeof EAS_FIELD_TYPES;
37
44
  /**
38
45
  * Represents a single field in an EAS schema.
39
46
  */
40
47
  interface SchemaField {
41
- /** The name of the field */
42
- name: string;
43
- /** The Solidity type of the field */
44
- type: EASFieldType;
45
- /** Optional description of the field's purpose */
46
- description?: string;
48
+ /** The name of the field */
49
+ name: string;
50
+ /** The Solidity type of the field */
51
+ type: EASFieldType;
52
+ /** Optional description of the field's purpose */
53
+ description?: string;
47
54
  }
48
55
  /**
49
56
  * Options for registering a new schema in the EAS Schema Registry.
50
57
  */
51
58
  interface RegisterSchemaOptions {
52
- /** Array of fields that make up the schema */
53
- fields: SchemaField[];
54
- /** Address of the resolver contract that will handle attestations */
55
- resolverAddress: string;
56
- /** Whether attestations using this schema can be revoked */
57
- revocable: boolean;
59
+ /** Array of fields that make up the schema */
60
+ fields: SchemaField[];
61
+ /** Address of the resolver contract that will handle attestations */
62
+ resolverAddress: string;
63
+ /** Whether attestations using this schema can be revoked */
64
+ revocable: boolean;
58
65
  }
59
66
 
67
+ //#endregion
68
+ //#region src/eas.d.ts
60
69
  /**
61
70
  * Creates an EAS client for interacting with the Ethereum Attestation Service.
62
71
  *
@@ -79,8 +88,10 @@ interface RegisterSchemaOptions {
79
88
  * ```
80
89
  */
81
90
  declare function createEASClient(options: ClientOptions): {
82
- registerSchema: (options: RegisterSchemaOptions) => Promise<string>;
83
- getSchema: (uid: string) => Promise<string>;
91
+ registerSchema: (options: RegisterSchemaOptions) => Promise<string>;
92
+ getSchema: (uid: string) => Promise<string>;
84
93
  };
85
94
 
86
- export { type ClientOptions, ClientOptionsSchema, type EASFieldType, EAS_FIELD_TYPES, type RegisterSchemaOptions, type SchemaField, createEASClient };
95
+ //#endregion
96
+ export { ClientOptions, ClientOptionsSchema, EASFieldType, EAS_FIELD_TYPES, RegisterSchemaOptions, SchemaField, createEASClient };
97
+ //# sourceMappingURL=eas.d.ts.map