@ensnode/ensnode-sdk 0.0.0-next-20260109181033 → 0.0.0-next-20260110111328
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 +6 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -3108,10 +3108,11 @@ var makeNamedRegistrarActionSchema = (valueLabel = "Named Registrar Action") =>
|
|
|
3108
3108
|
action: makeRegistrarActionSchema(valueLabel),
|
|
3109
3109
|
name: makeReinterpretedNameSchema(valueLabel)
|
|
3110
3110
|
}).check(invariant_registrationLifecycleNodeMatchesName);
|
|
3111
|
-
var makeRegistrarActionsResponseOkSchema = (valueLabel = "Registrar Actions Response OK") => import_v419.default.
|
|
3111
|
+
var makeRegistrarActionsResponseOkSchema = (valueLabel = "Registrar Actions Response OK") => import_v419.default.object({
|
|
3112
3112
|
responseCode: import_v419.default.literal(RegistrarActionsResponseCodes.Ok),
|
|
3113
3113
|
registrarActions: import_v419.default.array(makeNamedRegistrarActionSchema(valueLabel)),
|
|
3114
|
-
pageContext: makeResponsePageContextSchema(`${valueLabel}.pageContext`)
|
|
3114
|
+
pageContext: makeResponsePageContextSchema(`${valueLabel}.pageContext`),
|
|
3115
|
+
accurateAsOf: makeUnixTimestampSchema(`${valueLabel}.accurateAsOf`).optional()
|
|
3115
3116
|
});
|
|
3116
3117
|
var makeRegistrarActionsResponseErrorSchema = (_valueLabel = "Registrar Actions Response Error") => import_v419.default.strictObject({
|
|
3117
3118
|
responseCode: import_v419.default.literal(RegistrarActionsResponseCodes.Error),
|
|
@@ -3364,7 +3365,8 @@ function serializeRegistrarActionsResponse(response) {
|
|
|
3364
3365
|
return {
|
|
3365
3366
|
responseCode: response.responseCode,
|
|
3366
3367
|
registrarActions: response.registrarActions.map(serializeNamedRegistrarAction),
|
|
3367
|
-
pageContext: response.pageContext
|
|
3368
|
+
pageContext: response.pageContext,
|
|
3369
|
+
accurateAsOf: response.accurateAsOf
|
|
3368
3370
|
};
|
|
3369
3371
|
case RegistrarActionsResponseCodes.Error:
|
|
3370
3372
|
return response;
|
|
@@ -4260,6 +4262,7 @@ var ENSNodeClient = class _ENSNodeClient {
|
|
|
4260
4262
|
* const { registrarActions, pageContext } = response;
|
|
4261
4263
|
* console.log(registrarActions);
|
|
4262
4264
|
* console.log(`Page ${pageContext.page} of ${pageContext.totalPages}`);
|
|
4265
|
+
* console.log(`Accurate as of: ${response.accurateAsOf}`);
|
|
4263
4266
|
* }
|
|
4264
4267
|
*
|
|
4265
4268
|
* // Get second page with 25 records per page
|