Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nexeraprotocol/nexera-id-schemas

Package Overview
Dependencies
Maintainers
1
Versions
385
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nexeraprotocol/nexera-id-schemas - npm Package Compare versions

Comparing version 1.0.29 to 1.0.30

345

dist/declarations/src/meta-tx.d.ts

@@ -86,8 +86,37 @@ import { z } from "zod";

}>;
export declare const MetatxMessageSchema: z.ZodObject<{
export declare const MetatxMessageBaseSchema: z.ZodObject<{
chainId: z.ZodEffects<z.ZodEnum<[import("./index.js").NEXERA_CHAINS.FUJI, import("./index.js").NEXERA_CHAINS.MUMBAI]>, import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI, unknown>;
data: z.ZodString;
}, "strip", z.ZodTypeAny, {
data: string;
chainId: import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI;
}, {
data: string;
chainId?: unknown;
}>;
export declare const SponsoredMetatxMessageSchema: z.ZodObject<{
data: z.ZodString;
chainId: z.ZodEffects<z.ZodEnum<[import("./index.js").NEXERA_CHAINS.FUJI, import("./index.js").NEXERA_CHAINS.MUMBAI]>, import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI, unknown>;
userNonce: z.ZodOptional<z.ZodString>;
userDeadline: z.ZodOptional<z.ZodString>;
chainId: z.ZodEffects<z.ZodEnum<[import("./index.js").NEXERA_CHAINS.FUJI, import("./index.js").NEXERA_CHAINS.MUMBAI]>, import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI, unknown>;
target: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
user: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
}, "strip", z.ZodTypeAny, {
data: string;
chainId: import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI;
userNonce?: string | undefined;
userDeadline?: string | undefined;
target?: string | undefined;
user?: string | undefined;
}, {
data: string;
chainId?: unknown;
userNonce?: string | undefined;
userDeadline?: string | undefined;
target?: string | undefined;
user?: string | undefined;
}>;
export declare const ForwardMetatxMessageSchema: z.ZodObject<{
data: z.ZodString;
chainId: z.ZodEffects<z.ZodEnum<[import("./index.js").NEXERA_CHAINS.FUJI, import("./index.js").NEXERA_CHAINS.MUMBAI]>, import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI, unknown>;
from: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;

@@ -98,3 +127,26 @@ to: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;

nonce: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
data: string;
chainId: import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI;
from?: string | undefined;
to?: string | undefined;
value?: number | undefined;
gas?: number | undefined;
nonce?: number | undefined;
}, {
data: string;
chainId?: unknown;
from?: string | undefined;
to?: string | undefined;
value?: number | undefined;
gas?: number | undefined;
nonce?: number | undefined;
}>;
export declare const MetatxMessageSchema: z.ZodUnion<[z.ZodObject<{
data: z.ZodString;
chainId: z.ZodEffects<z.ZodEnum<[import("./index.js").NEXERA_CHAINS.FUJI, import("./index.js").NEXERA_CHAINS.MUMBAI]>, import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI, unknown>;
userNonce: z.ZodOptional<z.ZodString>;
userDeadline: z.ZodOptional<z.ZodString>;
target: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
user: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
}, "strip", z.ZodTypeAny, {

@@ -107,2 +159,20 @@ data: string;

user?: string | undefined;
}, {
data: string;
chainId?: unknown;
userNonce?: string | undefined;
userDeadline?: string | undefined;
target?: string | undefined;
user?: string | undefined;
}>, z.ZodObject<{
data: z.ZodString;
chainId: z.ZodEffects<z.ZodEnum<[import("./index.js").NEXERA_CHAINS.FUJI, import("./index.js").NEXERA_CHAINS.MUMBAI]>, import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI, unknown>;
from: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
to: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
value: z.ZodOptional<z.ZodNumber>;
gas: z.ZodOptional<z.ZodNumber>;
nonce: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
data: string;
chainId: import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI;
from?: string | undefined;

@@ -115,7 +185,3 @@ to?: string | undefined;

data: string;
userNonce?: string | undefined;
userDeadline?: string | undefined;
chainId?: unknown;
target?: string | undefined;
user?: string | undefined;
from?: string | undefined;

@@ -126,3 +192,3 @@ to?: string | undefined;

nonce?: number | undefined;
}>;
}>]>;
export declare const MetatxBodySchema: z.ZodObject<{

@@ -204,8 +270,26 @@ domain: z.ZodObject<{

primaryType: z.ZodOptional<z.ZodEnum<["EIP712Domain", "SponsoredCallERC2771", "ForwardRequest"]>>;
message: z.ZodObject<{
message: z.ZodUnion<[z.ZodObject<{
data: z.ZodString;
chainId: z.ZodEffects<z.ZodEnum<[import("./index.js").NEXERA_CHAINS.FUJI, import("./index.js").NEXERA_CHAINS.MUMBAI]>, import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI, unknown>;
userNonce: z.ZodOptional<z.ZodString>;
userDeadline: z.ZodOptional<z.ZodString>;
chainId: z.ZodEffects<z.ZodEnum<[import("./index.js").NEXERA_CHAINS.FUJI, import("./index.js").NEXERA_CHAINS.MUMBAI]>, import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI, unknown>;
target: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
user: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
}, "strip", z.ZodTypeAny, {
data: string;
chainId: import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI;
userNonce?: string | undefined;
userDeadline?: string | undefined;
target?: string | undefined;
user?: string | undefined;
}, {
data: string;
chainId?: unknown;
userNonce?: string | undefined;
userDeadline?: string | undefined;
target?: string | undefined;
user?: string | undefined;
}>, z.ZodObject<{
data: z.ZodString;
chainId: z.ZodEffects<z.ZodEnum<[import("./index.js").NEXERA_CHAINS.FUJI, import("./index.js").NEXERA_CHAINS.MUMBAI]>, import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI, unknown>;
from: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;

@@ -216,10 +300,5 @@ to: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;

nonce: z.ZodOptional<z.ZodNumber>;
data: z.ZodString;
}, "strip", z.ZodTypeAny, {
data: string;
chainId: import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI;
userNonce?: string | undefined;
userDeadline?: string | undefined;
target?: string | undefined;
user?: string | undefined;
from?: string | undefined;

@@ -232,7 +311,20 @@ to?: string | undefined;

data: string;
chainId?: unknown;
from?: string | undefined;
to?: string | undefined;
value?: number | undefined;
gas?: number | undefined;
nonce?: number | undefined;
}>]>;
}, "strip", z.ZodTypeAny, {
message: ({
data: string;
chainId: import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI;
userNonce?: string | undefined;
userDeadline?: string | undefined;
chainId?: unknown;
target?: string | undefined;
user?: string | undefined;
} | {
data: string;
chainId: import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI;
from?: string | undefined;

@@ -243,5 +335,3 @@ to?: string | undefined;

nonce?: number | undefined;
}>;
}, "strip", z.ZodTypeAny, {
message: {
}) & ({
data: string;

@@ -253,2 +343,5 @@ chainId: import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI;

user?: string | undefined;
} | {
data: string;
chainId: import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI;
from?: string | undefined;

@@ -259,3 +352,3 @@ to?: string | undefined;

nonce?: number | undefined;
};
} | undefined);
domain: {

@@ -283,9 +376,27 @@ name: string;

}, {
message: {
message: ({
data: string;
chainId?: unknown;
userNonce?: string | undefined;
userDeadline?: string | undefined;
target?: string | undefined;
user?: string | undefined;
} | {
data: string;
chainId?: unknown;
from?: string | undefined;
to?: string | undefined;
value?: number | undefined;
gas?: number | undefined;
nonce?: number | undefined;
}) & ({
data: string;
chainId?: unknown;
userNonce?: string | undefined;
userDeadline?: string | undefined;
target?: string | undefined;
user?: string | undefined;
} | {
data: string;
chainId?: unknown;
from?: string | undefined;

@@ -296,3 +407,3 @@ to?: string | undefined;

nonce?: number | undefined;
};
} | undefined);
domain: {

@@ -433,8 +544,26 @@ name: string;

primaryType: z.ZodOptional<z.ZodEnum<["EIP712Domain", "SponsoredCallERC2771", "ForwardRequest"]>>;
message: z.ZodObject<{
message: z.ZodUnion<[z.ZodObject<{
data: z.ZodString;
chainId: z.ZodEffects<z.ZodEnum<[import("./index.js").NEXERA_CHAINS.FUJI, import("./index.js").NEXERA_CHAINS.MUMBAI]>, import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI, unknown>;
userNonce: z.ZodOptional<z.ZodString>;
userDeadline: z.ZodOptional<z.ZodString>;
chainId: z.ZodEffects<z.ZodEnum<[import("./index.js").NEXERA_CHAINS.FUJI, import("./index.js").NEXERA_CHAINS.MUMBAI]>, import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI, unknown>;
target: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
user: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
}, "strip", z.ZodTypeAny, {
data: string;
chainId: import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI;
userNonce?: string | undefined;
userDeadline?: string | undefined;
target?: string | undefined;
user?: string | undefined;
}, {
data: string;
chainId?: unknown;
userNonce?: string | undefined;
userDeadline?: string | undefined;
target?: string | undefined;
user?: string | undefined;
}>, z.ZodObject<{
data: z.ZodString;
chainId: z.ZodEffects<z.ZodEnum<[import("./index.js").NEXERA_CHAINS.FUJI, import("./index.js").NEXERA_CHAINS.MUMBAI]>, import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI, unknown>;
from: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;

@@ -445,10 +574,5 @@ to: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;

nonce: z.ZodOptional<z.ZodNumber>;
data: z.ZodString;
}, "strip", z.ZodTypeAny, {
data: string;
chainId: import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI;
userNonce?: string | undefined;
userDeadline?: string | undefined;
target?: string | undefined;
user?: string | undefined;
from?: string | undefined;

@@ -461,7 +585,20 @@ to?: string | undefined;

data: string;
chainId?: unknown;
from?: string | undefined;
to?: string | undefined;
value?: number | undefined;
gas?: number | undefined;
nonce?: number | undefined;
}>]>;
}, "strip", z.ZodTypeAny, {
message: ({
data: string;
chainId: import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI;
userNonce?: string | undefined;
userDeadline?: string | undefined;
chainId?: unknown;
target?: string | undefined;
user?: string | undefined;
} | {
data: string;
chainId: import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI;
from?: string | undefined;

@@ -472,5 +609,3 @@ to?: string | undefined;

nonce?: number | undefined;
}>;
}, "strip", z.ZodTypeAny, {
message: {
}) & ({
data: string;

@@ -482,2 +617,5 @@ chainId: import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI;

user?: string | undefined;
} | {
data: string;
chainId: import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI;
from?: string | undefined;

@@ -488,3 +626,3 @@ to?: string | undefined;

nonce?: number | undefined;
};
} | undefined);
domain: {

@@ -512,9 +650,27 @@ name: string;

}, {
message: {
message: ({
data: string;
chainId?: unknown;
userNonce?: string | undefined;
userDeadline?: string | undefined;
target?: string | undefined;
user?: string | undefined;
} | {
data: string;
chainId?: unknown;
from?: string | undefined;
to?: string | undefined;
value?: number | undefined;
gas?: number | undefined;
nonce?: number | undefined;
}) & ({
data: string;
chainId?: unknown;
userNonce?: string | undefined;
userDeadline?: string | undefined;
target?: string | undefined;
user?: string | undefined;
} | {
data: string;
chainId?: unknown;
from?: string | undefined;

@@ -525,3 +681,3 @@ to?: string | undefined;

nonce?: number | undefined;
};
} | undefined);
domain: {

@@ -588,3 +744,3 @@ name: string;

metatx: {
message: {
message: ({
data: string;

@@ -596,2 +752,5 @@ chainId: import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI;

user?: string | undefined;
} | {
data: string;
chainId: import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI;
from?: string | undefined;

@@ -602,3 +761,18 @@ to?: string | undefined;

nonce?: number | undefined;
};
}) & ({
data: string;
chainId: import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI;
userNonce?: string | undefined;
userDeadline?: string | undefined;
target?: string | undefined;
user?: string | undefined;
} | {
data: string;
chainId: import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI;
from?: string | undefined;
to?: string | undefined;
value?: number | undefined;
gas?: number | undefined;
nonce?: number | undefined;
} | undefined);
domain: {

@@ -639,9 +813,27 @@ name: string;

metatx: {
message: {
message: ({
data: string;
chainId?: unknown;
userNonce?: string | undefined;
userDeadline?: string | undefined;
target?: string | undefined;
user?: string | undefined;
} | {
data: string;
chainId?: unknown;
from?: string | undefined;
to?: string | undefined;
value?: number | undefined;
gas?: number | undefined;
nonce?: number | undefined;
}) & ({
data: string;
chainId?: unknown;
userNonce?: string | undefined;
userDeadline?: string | undefined;
target?: string | undefined;
user?: string | undefined;
} | {
data: string;
chainId?: unknown;
from?: string | undefined;

@@ -652,3 +844,3 @@ to?: string | undefined;

nonce?: number | undefined;
};
} | undefined);
domain: {

@@ -689,8 +881,26 @@ name: string;

export declare const MetatxSignedSchema: z.ZodObject<{
message: z.ZodObject<{
message: z.ZodUnion<[z.ZodObject<{
data: z.ZodString;
chainId: z.ZodEffects<z.ZodEnum<[import("./index.js").NEXERA_CHAINS.FUJI, import("./index.js").NEXERA_CHAINS.MUMBAI]>, import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI, unknown>;
userNonce: z.ZodOptional<z.ZodString>;
userDeadline: z.ZodOptional<z.ZodString>;
chainId: z.ZodEffects<z.ZodEnum<[import("./index.js").NEXERA_CHAINS.FUJI, import("./index.js").NEXERA_CHAINS.MUMBAI]>, import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI, unknown>;
target: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
user: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
}, "strip", z.ZodTypeAny, {
data: string;
chainId: import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI;
userNonce?: string | undefined;
userDeadline?: string | undefined;
target?: string | undefined;
user?: string | undefined;
}, {
data: string;
chainId?: unknown;
userNonce?: string | undefined;
userDeadline?: string | undefined;
target?: string | undefined;
user?: string | undefined;
}>, z.ZodObject<{
data: z.ZodString;
chainId: z.ZodEffects<z.ZodEnum<[import("./index.js").NEXERA_CHAINS.FUJI, import("./index.js").NEXERA_CHAINS.MUMBAI]>, import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI, unknown>;
from: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;

@@ -701,10 +911,5 @@ to: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;

nonce: z.ZodOptional<z.ZodNumber>;
data: z.ZodString;
}, "strip", z.ZodTypeAny, {
data: string;
chainId: import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI;
userNonce?: string | undefined;
userDeadline?: string | undefined;
target?: string | undefined;
user?: string | undefined;
from?: string | undefined;

@@ -717,7 +922,21 @@ to?: string | undefined;

data: string;
chainId?: unknown;
from?: string | undefined;
to?: string | undefined;
value?: number | undefined;
gas?: number | undefined;
nonce?: number | undefined;
}>]>;
signature: z.ZodString;
}, "strip", z.ZodTypeAny, {
message: ({
data: string;
chainId: import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI;
userNonce?: string | undefined;
userDeadline?: string | undefined;
chainId?: unknown;
target?: string | undefined;
user?: string | undefined;
} | {
data: string;
chainId: import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI;
from?: string | undefined;

@@ -728,6 +947,3 @@ to?: string | undefined;

nonce?: number | undefined;
}>;
signature: z.ZodString;
}, "strip", z.ZodTypeAny, {
message: {
}) & ({
data: string;

@@ -739,2 +955,5 @@ chainId: import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI;

user?: string | undefined;
} | {
data: string;
chainId: import("./index.js").NEXERA_CHAINS.MUMBAI | import("./index.js").NEXERA_CHAINS.FUJI;
from?: string | undefined;

@@ -745,12 +964,30 @@ to?: string | undefined;

nonce?: number | undefined;
};
} | undefined);
signature: string;
}, {
message: {
message: ({
data: string;
chainId?: unknown;
userNonce?: string | undefined;
userDeadline?: string | undefined;
target?: string | undefined;
user?: string | undefined;
} | {
data: string;
chainId?: unknown;
from?: string | undefined;
to?: string | undefined;
value?: number | undefined;
gas?: number | undefined;
nonce?: number | undefined;
}) & ({
data: string;
chainId?: unknown;
userNonce?: string | undefined;
userDeadline?: string | undefined;
target?: string | undefined;
user?: string | undefined;
} | {
data: string;
chainId?: unknown;
from?: string | undefined;

@@ -761,3 +998,3 @@ to?: string | undefined;

nonce?: number | undefined;
};
} | undefined);
signature: string;

@@ -764,0 +1001,0 @@ }>;

2

dist/package.json
{
"name": "@nexeraprotocol/nexera-id-schemas",
"version": "1.0.29",
"version": "1.0.30",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/nexeraprotocol-nexera-id-schemas.cjs.js",

@@ -27,10 +27,13 @@ 'use strict';

});
var MetatxMessageSchema = zod.z.object({
// SponsoredCallERC2771
var MetatxMessageBaseSchema = zod.z.object({
chainId: dist_nexeraprotocolNexeraIdSchemas.ChainIdSchema,
data: zod.z.string()
});
var SponsoredMetatxMessageSchema = MetatxMessageBaseSchema.extend({
userNonce: zod.z.string().optional(),
userDeadline: zod.z.string().optional(),
chainId: dist_nexeraprotocolNexeraIdSchemas.ChainIdSchema,
target: dist_nexeraprotocolNexeraIdSchemas.AddressSchema.optional(),
user: dist_nexeraprotocolNexeraIdSchemas.AddressSchema.optional(),
// ForwardRequest
user: dist_nexeraprotocolNexeraIdSchemas.AddressSchema.optional()
});
var ForwardMetatxMessageSchema = MetatxMessageBaseSchema.extend({
from: dist_nexeraprotocolNexeraIdSchemas.AddressSchema.optional(),

@@ -40,5 +43,5 @@ to: dist_nexeraprotocolNexeraIdSchemas.AddressSchema.optional(),

gas: zod.z.number().optional(),
nonce: zod.z.number().optional(),
data: zod.z.string()
nonce: zod.z.number().optional()
});
var MetatxMessageSchema = zod.z.union([SponsoredMetatxMessageSchema, ForwardMetatxMessageSchema]);
var MetatxBodySchema = zod.z.object({

@@ -96,5 +99,7 @@ domain: MetatxDomainSchema,

exports.DeadlineSchema = DeadlineSchema;
exports.ForwardMetatxMessageSchema = ForwardMetatxMessageSchema;
exports.MetatxBodySchema = MetatxBodySchema;
exports.MetatxDomainSchema = MetatxDomainSchema;
exports.MetatxExecStatusSchema = MetatxExecStatusSchema;
exports.MetatxMessageBaseSchema = MetatxMessageBaseSchema;
exports.MetatxMessageSchema = MetatxMessageSchema;

@@ -106,2 +111,3 @@ exports.MetatxSignedSchema = MetatxSignedSchema;

exports.NonceSchema = NonceSchema;
exports.SponsoredMetatxMessageSchema = SponsoredMetatxMessageSchema;
exports.TxRelayStateSchema = TxRelayStateSchema;

@@ -27,10 +27,13 @@ 'use strict';

});
var MetatxMessageSchema = zod.z.object({
// SponsoredCallERC2771
var MetatxMessageBaseSchema = zod.z.object({
chainId: dist_nexeraprotocolNexeraIdSchemas.ChainIdSchema,
data: zod.z.string()
});
var SponsoredMetatxMessageSchema = MetatxMessageBaseSchema.extend({
userNonce: zod.z.string().optional(),
userDeadline: zod.z.string().optional(),
chainId: dist_nexeraprotocolNexeraIdSchemas.ChainIdSchema,
target: dist_nexeraprotocolNexeraIdSchemas.AddressSchema.optional(),
user: dist_nexeraprotocolNexeraIdSchemas.AddressSchema.optional(),
// ForwardRequest
user: dist_nexeraprotocolNexeraIdSchemas.AddressSchema.optional()
});
var ForwardMetatxMessageSchema = MetatxMessageBaseSchema.extend({
from: dist_nexeraprotocolNexeraIdSchemas.AddressSchema.optional(),

@@ -40,5 +43,5 @@ to: dist_nexeraprotocolNexeraIdSchemas.AddressSchema.optional(),

gas: zod.z.number().optional(),
nonce: zod.z.number().optional(),
data: zod.z.string()
nonce: zod.z.number().optional()
});
var MetatxMessageSchema = zod.z.union([SponsoredMetatxMessageSchema, ForwardMetatxMessageSchema]);
var MetatxBodySchema = zod.z.object({

@@ -96,5 +99,7 @@ domain: MetatxDomainSchema,

exports.DeadlineSchema = DeadlineSchema;
exports.ForwardMetatxMessageSchema = ForwardMetatxMessageSchema;
exports.MetatxBodySchema = MetatxBodySchema;
exports.MetatxDomainSchema = MetatxDomainSchema;
exports.MetatxExecStatusSchema = MetatxExecStatusSchema;
exports.MetatxMessageBaseSchema = MetatxMessageBaseSchema;
exports.MetatxMessageSchema = MetatxMessageSchema;

@@ -106,2 +111,3 @@ exports.MetatxSignedSchema = MetatxSignedSchema;

exports.NonceSchema = NonceSchema;
exports.SponsoredMetatxMessageSchema = SponsoredMetatxMessageSchema;
exports.TxRelayStateSchema = TxRelayStateSchema;

@@ -23,10 +23,13 @@ import { z } from 'zod';

});
var MetatxMessageSchema = z.object({
// SponsoredCallERC2771
var MetatxMessageBaseSchema = z.object({
chainId: ChainIdSchema,
data: z.string()
});
var SponsoredMetatxMessageSchema = MetatxMessageBaseSchema.extend({
userNonce: z.string().optional(),
userDeadline: z.string().optional(),
chainId: ChainIdSchema,
target: AddressSchema.optional(),
user: AddressSchema.optional(),
// ForwardRequest
user: AddressSchema.optional()
});
var ForwardMetatxMessageSchema = MetatxMessageBaseSchema.extend({
from: AddressSchema.optional(),

@@ -36,5 +39,5 @@ to: AddressSchema.optional(),

gas: z.number().optional(),
nonce: z.number().optional(),
data: z.string()
nonce: z.number().optional()
});
var MetatxMessageSchema = z.union([SponsoredMetatxMessageSchema, ForwardMetatxMessageSchema]);
var MetatxBodySchema = z.object({

@@ -90,2 +93,2 @@ domain: MetatxDomainSchema,

export { BridgeQuoteSchema, DeadlineSchema, MetatxBodySchema, MetatxDomainSchema, MetatxExecStatusSchema, MetatxMessageSchema, MetatxSignedSchema, MetatxTypesSchema, MetatxUnSignedSchema, NameTypeSchema, NonceSchema, TxRelayStateSchema };
export { BridgeQuoteSchema, DeadlineSchema, ForwardMetatxMessageSchema, MetatxBodySchema, MetatxDomainSchema, MetatxExecStatusSchema, MetatxMessageBaseSchema, MetatxMessageSchema, MetatxSignedSchema, MetatxTypesSchema, MetatxUnSignedSchema, NameTypeSchema, NonceSchema, SponsoredMetatxMessageSchema, TxRelayStateSchema };
{
"name": "@nexeraprotocol/nexera-id-schemas",
"version": "1.0.29",
"version": "1.0.30",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/nexeraprotocol-nexera-id-schemas.cjs.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc