@settlemint/sdk-eas 2.2.2-pr75b59b5f → 2.2.2-pr7c5c0f63
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/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -81
- package/dist/index.d.ts +1 -81
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function t(){return {submitAttestation(){console.log("[EAS] Submitting attestation");},parseAttestation(){console.log("[EAS] Parsing attestation");},createSchema(){console.log("[EAS] Creating schema");},getSchema(){console.log("[EAS] Getting schema");},getAttestations(){console.log("[EAS] Getting attestations");}}}exports.createEASClient=t;//# sourceMappingURL=index.cjs.map
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":["createEASClient"],"mappings":"aAAO,SAASA,GAAkB,CAChC,OAAO,CACL,iBAAA,EAAoB,CAClB,OAAQ,CAAA,GAAA,CAAI,8BAA8B,EAC5C,EAEA,gBAAmB,EAAA,CACjB,QAAQ,GAAI,CAAA,2BAA2B,EACzC,CAEA,CAAA,YAAA,EAAe,CACb,OAAA,CAAQ,IAAI,uBAAuB,EACrC,EAEA,SAAY,EAAA,CACV,QAAQ,GAAI,CAAA,sBAAsB,EACpC,CAAA,CAEA,iBAAkB,CAChB,OAAA,CAAQ,IAAI,4BAA4B,EAC1C,CACF,CACF","file":"index.cjs","sourcesContent":["export function createEASClient() {\n return {\n submitAttestation() {\n console.log(\"[EAS] Submitting attestation\");\n },\n\n parseAttestation() {\n console.log(\"[EAS] Parsing attestation\");\n },\n\n createSchema() {\n console.log(\"[EAS] Creating schema\");\n },\n\n getSchema() {\n console.log(\"[EAS] Getting schema\");\n },\n\n getAttestations() {\n console.log(\"[EAS] Getting attestations\");\n },\n };\n}\n"]}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,83 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Supported EAS schema field types.
|
|
3
|
-
* Maps user-friendly type names to EAS-compatible type strings.
|
|
4
|
-
*/
|
|
5
|
-
declare const EAS_FIELD_TYPES: {
|
|
6
|
-
readonly string: "string";
|
|
7
|
-
readonly address: "address";
|
|
8
|
-
readonly bool: "bool";
|
|
9
|
-
readonly bytes: "bytes";
|
|
10
|
-
readonly bytes32: "bytes32";
|
|
11
|
-
readonly uint256: "uint256";
|
|
12
|
-
readonly int256: "int256";
|
|
13
|
-
readonly uint8: "uint8";
|
|
14
|
-
readonly int8: "int8";
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* Type representing all valid EAS field types.
|
|
18
|
-
*/
|
|
19
|
-
type EASFieldType = keyof typeof EAS_FIELD_TYPES;
|
|
20
|
-
/**
|
|
21
|
-
* Interface for defining a schema field.
|
|
22
|
-
*/
|
|
23
|
-
interface SchemaField {
|
|
24
|
-
/** The name of the field */
|
|
25
|
-
name: string;
|
|
26
|
-
/** The type of the field */
|
|
27
|
-
type: EASFieldType;
|
|
28
|
-
/** Optional description of the field */
|
|
29
|
-
description?: string;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Validates a schema field name.
|
|
33
|
-
* @param name - The field name to validate
|
|
34
|
-
* @throws Error if the name is invalid
|
|
35
|
-
*/
|
|
36
|
-
declare function validateFieldName(name: string): void;
|
|
37
|
-
/**
|
|
38
|
-
* Validates a schema field type.
|
|
39
|
-
* @param type - The field type to validate
|
|
40
|
-
* @throws Error if the type is invalid
|
|
41
|
-
*/
|
|
42
|
-
declare function validateFieldType(type: string): asserts type is EASFieldType;
|
|
43
|
-
/**
|
|
44
|
-
* Validates an array of schema fields.
|
|
45
|
-
* @param fields - The fields to validate
|
|
46
|
-
* @throws Error if any field is invalid
|
|
47
|
-
*/
|
|
48
|
-
declare function validateSchemaFields(fields: SchemaField[]): void;
|
|
49
|
-
/**
|
|
50
|
-
* Builds an EAS schema string from an array of fields.
|
|
51
|
-
* @param fields - The fields to include in the schema
|
|
52
|
-
* @returns The EAS-compatible schema string
|
|
53
|
-
* @throws Error if any field is invalid
|
|
54
|
-
*/
|
|
55
|
-
declare function buildSchemaString(fields: SchemaField[]): string;
|
|
56
|
-
/**
|
|
57
|
-
* Options for registering a schema.
|
|
58
|
-
*/
|
|
59
|
-
interface RegisterSchemaOptions {
|
|
60
|
-
/** The fields that make up the schema */
|
|
61
|
-
fields: SchemaField[];
|
|
62
|
-
/** The Ethereum address of the resolver */
|
|
63
|
-
resolverAddress: string;
|
|
64
|
-
/** Whether attestations using this schema can be revoked */
|
|
65
|
-
revocable: boolean;
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Validates an Ethereum address.
|
|
69
|
-
* @param address - The address to validate
|
|
70
|
-
* @throws Error if the address is invalid
|
|
71
|
-
*/
|
|
72
|
-
declare function validateEthereumAddress(address: string): void;
|
|
73
|
-
/**
|
|
74
|
-
* Registers a new schema with EAS.
|
|
75
|
-
* @param options - The schema registration options
|
|
76
|
-
* @returns A promise that resolves to the schema UID
|
|
77
|
-
* @throws Error if the schema registration fails
|
|
78
|
-
*/
|
|
79
|
-
declare function registerSchema(options: RegisterSchemaOptions): Promise<string>;
|
|
80
|
-
|
|
81
1
|
declare function createEASClient(): {
|
|
82
2
|
submitAttestation(): void;
|
|
83
3
|
parseAttestation(): void;
|
|
@@ -86,4 +6,4 @@ declare function createEASClient(): {
|
|
|
86
6
|
getAttestations(): void;
|
|
87
7
|
};
|
|
88
8
|
|
|
89
|
-
export {
|
|
9
|
+
export { createEASClient };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,83 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Supported EAS schema field types.
|
|
3
|
-
* Maps user-friendly type names to EAS-compatible type strings.
|
|
4
|
-
*/
|
|
5
|
-
declare const EAS_FIELD_TYPES: {
|
|
6
|
-
readonly string: "string";
|
|
7
|
-
readonly address: "address";
|
|
8
|
-
readonly bool: "bool";
|
|
9
|
-
readonly bytes: "bytes";
|
|
10
|
-
readonly bytes32: "bytes32";
|
|
11
|
-
readonly uint256: "uint256";
|
|
12
|
-
readonly int256: "int256";
|
|
13
|
-
readonly uint8: "uint8";
|
|
14
|
-
readonly int8: "int8";
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* Type representing all valid EAS field types.
|
|
18
|
-
*/
|
|
19
|
-
type EASFieldType = keyof typeof EAS_FIELD_TYPES;
|
|
20
|
-
/**
|
|
21
|
-
* Interface for defining a schema field.
|
|
22
|
-
*/
|
|
23
|
-
interface SchemaField {
|
|
24
|
-
/** The name of the field */
|
|
25
|
-
name: string;
|
|
26
|
-
/** The type of the field */
|
|
27
|
-
type: EASFieldType;
|
|
28
|
-
/** Optional description of the field */
|
|
29
|
-
description?: string;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Validates a schema field name.
|
|
33
|
-
* @param name - The field name to validate
|
|
34
|
-
* @throws Error if the name is invalid
|
|
35
|
-
*/
|
|
36
|
-
declare function validateFieldName(name: string): void;
|
|
37
|
-
/**
|
|
38
|
-
* Validates a schema field type.
|
|
39
|
-
* @param type - The field type to validate
|
|
40
|
-
* @throws Error if the type is invalid
|
|
41
|
-
*/
|
|
42
|
-
declare function validateFieldType(type: string): asserts type is EASFieldType;
|
|
43
|
-
/**
|
|
44
|
-
* Validates an array of schema fields.
|
|
45
|
-
* @param fields - The fields to validate
|
|
46
|
-
* @throws Error if any field is invalid
|
|
47
|
-
*/
|
|
48
|
-
declare function validateSchemaFields(fields: SchemaField[]): void;
|
|
49
|
-
/**
|
|
50
|
-
* Builds an EAS schema string from an array of fields.
|
|
51
|
-
* @param fields - The fields to include in the schema
|
|
52
|
-
* @returns The EAS-compatible schema string
|
|
53
|
-
* @throws Error if any field is invalid
|
|
54
|
-
*/
|
|
55
|
-
declare function buildSchemaString(fields: SchemaField[]): string;
|
|
56
|
-
/**
|
|
57
|
-
* Options for registering a schema.
|
|
58
|
-
*/
|
|
59
|
-
interface RegisterSchemaOptions {
|
|
60
|
-
/** The fields that make up the schema */
|
|
61
|
-
fields: SchemaField[];
|
|
62
|
-
/** The Ethereum address of the resolver */
|
|
63
|
-
resolverAddress: string;
|
|
64
|
-
/** Whether attestations using this schema can be revoked */
|
|
65
|
-
revocable: boolean;
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Validates an Ethereum address.
|
|
69
|
-
* @param address - The address to validate
|
|
70
|
-
* @throws Error if the address is invalid
|
|
71
|
-
*/
|
|
72
|
-
declare function validateEthereumAddress(address: string): void;
|
|
73
|
-
/**
|
|
74
|
-
* Registers a new schema with EAS.
|
|
75
|
-
* @param options - The schema registration options
|
|
76
|
-
* @returns A promise that resolves to the schema UID
|
|
77
|
-
* @throws Error if the schema registration fails
|
|
78
|
-
*/
|
|
79
|
-
declare function registerSchema(options: RegisterSchemaOptions): Promise<string>;
|
|
80
|
-
|
|
81
1
|
declare function createEASClient(): {
|
|
82
2
|
submitAttestation(): void;
|
|
83
3
|
parseAttestation(): void;
|
|
@@ -86,4 +6,4 @@ declare function createEASClient(): {
|
|
|
86
6
|
getAttestations(): void;
|
|
87
7
|
};
|
|
88
8
|
|
|
89
|
-
export {
|
|
9
|
+
export { createEASClient };
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
function t(){return {submitAttestation(){console.log("[EAS] Submitting attestation");},parseAttestation(){console.log("[EAS] Parsing attestation");},createSchema(){console.log("[EAS] Creating schema");},getSchema(){console.log("[EAS] Getting schema");},getAttestations(){console.log("[EAS] Getting attestations");}}}export{t as createEASClient};//# sourceMappingURL=index.mjs.map
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":["createEASClient"],"mappings":"AAAO,SAASA,GAAkB,CAChC,OAAO,CACL,iBAAA,EAAoB,CAClB,OAAQ,CAAA,GAAA,CAAI,8BAA8B,EAC5C,EAEA,gBAAmB,EAAA,CACjB,QAAQ,GAAI,CAAA,2BAA2B,EACzC,CAEA,CAAA,YAAA,EAAe,CACb,OAAA,CAAQ,IAAI,uBAAuB,EACrC,EAEA,SAAY,EAAA,CACV,QAAQ,GAAI,CAAA,sBAAsB,EACpC,CAAA,CAEA,iBAAkB,CAChB,OAAA,CAAQ,IAAI,4BAA4B,EAC1C,CACF,CACF","file":"index.mjs","sourcesContent":["export function createEASClient() {\n return {\n submitAttestation() {\n console.log(\"[EAS] Submitting attestation\");\n },\n\n parseAttestation() {\n console.log(\"[EAS] Parsing attestation\");\n },\n\n createSchema() {\n console.log(\"[EAS] Creating schema\");\n },\n\n getSchema() {\n console.log(\"[EAS] Getting schema\");\n },\n\n getAttestations() {\n console.log(\"[EAS] Getting attestations\");\n },\n };\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@settlemint/sdk-eas",
|
|
3
3
|
"description": "Ethereum Attestation Service (EAS) integration for SettleMint SDK",
|
|
4
|
-
"version": "2.2.2-
|
|
4
|
+
"version": "2.2.2-pr7c5c0f63",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
7
7
|
"license": "FSL-1.1-MIT",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@settlemint/sdk-utils": "2.2.2-
|
|
54
|
+
"@settlemint/sdk-utils": "2.2.2-pr7c5c0f63",
|
|
55
55
|
"viem": "^2.7.9"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {},
|