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

@api3/airnode-validator

Package Overview
Dependencies
Maintainers
4
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@api3/airnode-validator - npm Package Compare versions

Comparing version 0.10.1 to 0.11.0

22

dist/package.json
{
"name": "@api3/airnode-validator",
"license": "MIT",
"version": "0.10.1",
"version": "0.11.0",
"private": false,

@@ -15,3 +15,3 @@ "main": "./dist/src/index.js",

"build": "yarn run clean && yarn run compile",
"clean": "rimraf -rf *.tsbuildinfo ./dist ./build *.tgz",
"clean": "rimraf -g *.tsbuildinfo ./dist ./build *.tgz",
"cli": "ts-node bin/validator.ts",

@@ -25,4 +25,4 @@ "compile": "yarn tsc --build tsconfig.json",

"dependencies": {
"@api3/ois": "1.4.0",
"@api3/promise-utils": "^0.3.0",
"@api3/ois": "2.0.0",
"@api3/promise-utils": "^0.4.0",
"dotenv": "^16.0.3",

@@ -32,13 +32,13 @@ "ethers": "^5.7.2",

"ora": "^5.4.1",
"yargs": "^17.6.2",
"zod": "^3.20.0"
"yargs": "^17.7.1",
"zod": "^3.20.6"
},
"devDependencies": {
"@types/yargs": "^17.0.13",
"jest": "^29.2.2",
"rimraf": "^3.0.2",
"ts-jest": "^29.0.3",
"@types/yargs": "^17.0.23",
"jest": "^29.5.0",
"rimraf": "^5.0.0",
"ts-jest": "^29.0.5",
"ts-node": "^10.9.1",
"typescript": "^4.8.4"
"typescript": "^4.9.5"
}
}

@@ -74,6 +74,8 @@ "use strict";

const stringifiedSecrets = (0, reduce_1.default)(secrets, (acc, value, key) => {
return Object.assign(Object.assign({}, acc), {
return {
...acc,
// Convert to value to JSON to encode new lines as "\n". The resulting value will be a JSON string with quotes
// which are sliced off.
[key]: JSON.stringify(value).slice(1, -1) });
[key]: JSON.stringify(value).slice(1, -1),
};
}, {});

@@ -80,0 +82,0 @@ const interpolationRes = (0, promise_utils_1.goSync)(() => JSON.parse((0, template_1.default)(JSON.stringify(config), {

@@ -6,3 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.availableCloudProviders = exports.configSchema = exports.apiCredentialsSchema = exports.baseApiCredentialsSchema = exports.nodeSettingsSchema = exports.localOrCloudProviderSchema = exports.cloudProviderSchema = exports.gcpCloudProviderSchema = exports.awsCloudProviderSchema = exports.localProviderSchema = exports.heartbeatSchema = exports.disabledHeartbeatSchema = exports.enabledHeartbeatSchema = exports.gatewaySchema = exports.disabledGatewaySchema = exports.enabledGatewaySchema = exports.corsOriginsSchema = exports.apiKeySchema = exports.chainConfigSchema = exports.maxConcurrencySchema = exports.chainAuthorizersSchema = exports.crossChainRequesterAuthorizerSchema = exports.requesterEndpointAuthorizersSchema = exports.chainAuthorizationsSchema = exports.chainOptionsSchema = exports.gasPriceOracleSchema = exports.gasPriceOracleStrategySchema = exports.constantGasPriceStrategySchema = exports.providerRecommendedEip1559GasPriceStrategySchema = exports.providerRecommendedGasPriceStrategySchema = exports.latestBlockPercentileGasPriceStrategySchema = exports.amountSchema = exports.providersSchema = exports.providerSchema = exports.chainContractsSchema = exports.chainTypeSchema = exports.logFormatSchema = exports.logLevelSchema = exports.templateSchema = exports.triggersSchema = exports.rrpTriggerSchema = exports.triggerSchema = exports.endpointIdSchema = exports.evmIdSchema = exports.evmAddressSchema = void 0;
exports.availableCloudProviders = exports.configSchema = exports.apiCredentialsSchema = exports.baseApiCredentialsSchema = exports.nodeSettingsSchema = exports.localOrCloudProviderSchema = exports.cloudProviderSchema = exports.gcpCloudProviderSchema = exports.awsCloudProviderSchema = exports.localProviderSchema = exports.heartbeatSchema = exports.disabledHeartbeatSchema = exports.enabledHeartbeatSchema = exports.gatewaySchema = exports.disabledGatewaySchema = exports.enabledGatewaySchema = exports.corsOriginsSchema = exports.apiKeySchema = exports.chainConfigSchema = exports.maxConcurrencySchema = exports.chainAuthorizersSchema = exports.crossChainRequesterAuthorizersWithErc721Schema = exports.requesterAuthorizerWithErc721ContractSchema = exports.requesterAuthorizersWithErc721Schema = exports.requesterAuthorizerWithErc721Schema = exports.erc721sSchema = exports.crossChainRequesterAuthorizerSchema = exports.requesterEndpointAuthorizersSchema = exports.chainAuthorizationsSchema = exports.chainOptionsSchema = exports.gasPriceOracleSchema = exports.gasPriceOracleStrategySchema = exports.constantGasPriceStrategySchema = exports.providerRecommendedEip1559GasPriceStrategySchema = exports.providerRecommendedGasPriceStrategySchema = exports.latestBlockPercentileGasPriceStrategySchema = exports.amountSchema = exports.providersSchema = exports.providerSchema = exports.airnodeRrpContractSchema = exports.chainTypeSchema = exports.logFormatSchema = exports.logLevelSchema = exports.templateSchema = exports.triggersSchema = exports.rrpTriggerSchema = exports.triggerSchema = exports.endpointIdSchema = exports.evmIdSchema = exports.evmAddressSchema = void 0;
const ethers_1 = require("ethers");

@@ -51,3 +51,3 @@ const zod_1 = require("zod");

exports.chainTypeSchema = zod_1.z.literal('evm');
exports.chainContractsSchema = zod_1.z
exports.airnodeRrpContractSchema = zod_1.z
.object({

@@ -115,3 +115,2 @@ AirnodeRrp: exports.evmAddressSchema,

.superRefine((strategies, ctx) => {
var _a;
const constantGasPriceStrategy = strategies.find((strategy) => strategy.gasPriceStrategy === 'constantGasPrice');

@@ -125,3 +124,3 @@ if (!constantGasPriceStrategy) {

}
if (((_a = strategies[strategies.length - 1]) === null || _a === void 0 ? void 0 : _a.gasPriceStrategy) !== 'constantGasPrice') {
if (strategies[strategies.length - 1]?.gasPriceStrategy !== 'constantGasPrice') {
ctx.addIssue({

@@ -146,11 +145,31 @@ code: zod_1.z.ZodIssueCode.custom,

exports.crossChainRequesterAuthorizerSchema = zod_1.z.object({
requesterEndpointAuthorizers: exports.requesterEndpointAuthorizersSchema,
requesterEndpointAuthorizers: exports.requesterEndpointAuthorizersSchema.nonempty(),
chainType: exports.chainTypeSchema,
chainId: zod_1.z.string(),
contracts: exports.chainContractsSchema,
contracts: exports.airnodeRrpContractSchema,
chainProvider: exports.providerSchema,
});
exports.erc721sSchema = zod_1.z.array(exports.evmAddressSchema);
exports.requesterAuthorizerWithErc721Schema = zod_1.z.object({
erc721s: exports.erc721sSchema.nonempty(),
RequesterAuthorizerWithErc721: exports.evmAddressSchema,
});
exports.requesterAuthorizersWithErc721Schema = zod_1.z.array(exports.requesterAuthorizerWithErc721Schema);
exports.requesterAuthorizerWithErc721ContractSchema = zod_1.z
.object({
RequesterAuthorizerWithErc721: exports.evmAddressSchema,
})
.strict();
exports.crossChainRequesterAuthorizersWithErc721Schema = zod_1.z.object({
erc721s: exports.erc721sSchema.nonempty(),
chainType: exports.chainTypeSchema,
chainId: zod_1.z.string(),
contracts: exports.requesterAuthorizerWithErc721ContractSchema,
chainProvider: exports.providerSchema,
});
exports.chainAuthorizersSchema = zod_1.z.object({
requesterEndpointAuthorizers: exports.requesterEndpointAuthorizersSchema,
crossChainRequesterAuthorizers: zod_1.z.array(exports.crossChainRequesterAuthorizerSchema),
requesterAuthorizersWithErc721: exports.requesterAuthorizersWithErc721Schema,
crossChainRequesterAuthorizersWithErc721: zod_1.z.array(exports.crossChainRequesterAuthorizersWithErc721Schema),
});

@@ -172,3 +191,3 @@ exports.maxConcurrencySchema = zod_1.z.number().int().positive();

blockHistoryLimit: zod_1.z.number().int().optional(),
contracts: exports.chainContractsSchema,
contracts: exports.airnodeRrpContractSchema,
id: zod_1.z.string(),

@@ -262,2 +281,3 @@ // Defaults to BLOCK_MIN_CONFIRMATIONS defined in airnode-node but may be overridden

httpSignedDataGateway: exports.gatewaySchema,
oevGateway: exports.gatewaySchema,
stage: zod_1.z.string().regex(/^[a-z0-9-]{1,16}$/),

@@ -264,0 +284,0 @@ cloudProvider: exports.localOrCloudProviderSchema,

@@ -210,5 +210,5 @@ import { z } from 'zod';

}>;
export declare type AirnodeWallet = SchemaType<typeof airnodeWalletSchema>;
export declare type Deployment = SchemaType<typeof deploymentSchema>;
export declare type Receipt = SchemaType<typeof receiptSchema>;
export type AirnodeWallet = SchemaType<typeof airnodeWalletSchema>;
export type Deployment = SchemaType<typeof deploymentSchema>;
export type Receipt = SchemaType<typeof receiptSchema>;
//# sourceMappingURL=receipt.d.ts.map
import { z, ZodFirstPartySchemaTypes } from 'zod';
export declare type SchemaType<Schema extends ZodFirstPartySchemaTypes> = z.infer<Schema>;
export declare type Secrets = Record<string, string | undefined>;
export type SchemaType<Schema extends ZodFirstPartySchemaTypes> = z.infer<Schema>;
export type Secrets = Record<string, string | undefined>;
//# sourceMappingURL=types.d.ts.map
import { z } from 'zod';
export declare type ValidationResult<T> = ValidationResultSuccess<T> | ValidationResultError;
export type ValidationResult<T> = ValidationResultSuccess<T> | ValidationResultError;
export interface ValidationResultSuccess<T> {

@@ -4,0 +4,0 @@ success: true;

{
"name": "@api3/airnode-validator",
"license": "MIT",
"version": "0.10.1",
"version": "0.11.0",
"private": false,

@@ -15,3 +15,3 @@ "main": "./dist/src/index.js",

"build": "yarn run clean && yarn run compile",
"clean": "rimraf -rf *.tsbuildinfo ./dist ./build *.tgz",
"clean": "rimraf -g *.tsbuildinfo ./dist ./build *.tgz",
"cli": "ts-node bin/validator.ts",

@@ -25,4 +25,4 @@ "compile": "yarn tsc --build tsconfig.json",

"dependencies": {
"@api3/ois": "1.4.0",
"@api3/promise-utils": "^0.3.0",
"@api3/ois": "2.0.0",
"@api3/promise-utils": "^0.4.0",
"dotenv": "^16.0.3",

@@ -32,13 +32,13 @@ "ethers": "^5.7.2",

"ora": "^5.4.1",
"yargs": "^17.6.2",
"zod": "^3.20.0"
"yargs": "^17.7.1",
"zod": "^3.20.6"
},
"devDependencies": {
"@types/yargs": "^17.0.13",
"jest": "^29.2.2",
"rimraf": "^3.0.2",
"ts-jest": "^29.0.3",
"@types/yargs": "^17.0.23",
"jest": "^29.5.0",
"rimraf": "^5.0.0",
"ts-jest": "^29.0.5",
"ts-node": "^10.9.1",
"typescript": "^4.8.4"
"typescript": "^4.9.5"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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