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

@identity.com/cryptid-middleware-check-pass

Package Overview
Dependencies
Maintainers
15
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@identity.com/cryptid-middleware-check-pass - npm Package Compare versions

Comparing version 0.3.0-alpha.9 to 0.3.0-alpha.10

8

dist/index.d.ts

@@ -1,3 +0,3 @@

import { ExecuteMiddlewareParams, GenericMiddlewareParams, MiddlewareClient } from "@identity.com/cryptid-core";
import { PublicKey, Transaction, TransactionInstruction } from "@solana/web3.js";
import { ExecuteMiddlewareParams, GenericMiddlewareParams, MiddlewareClient, MiddlewareResult } from "@identity.com/cryptid-core";
import { PublicKey, Transaction } from "@solana/web3.js";
export declare const CHECK_PASS_MIDDLEWARE_PROGRAM_ID: PublicKey;

@@ -14,4 +14,4 @@ export declare const deriveMiddlewareAccountAddress: (authority: PublicKey, gatekeeperNetwork: PublicKey, failsafe?: PublicKey, previousMiddlewareAccount?: PublicKey) => [PublicKey, number];

createMiddleware(params: CheckPassParameters): Promise<Transaction>;
onPropose(): Promise<TransactionInstruction[]>;
onExecute(params: ExecuteMiddlewareParams): Promise<TransactionInstruction[]>;
onPropose(): Promise<MiddlewareResult>;
onExecute(params: ExecuteMiddlewareParams): Promise<MiddlewareResult>;
}

@@ -73,5 +73,5 @@ "use strict";

const program = CheckPassMiddleware.getProgram(params);
const [middlewareAccount, middlewareBump] = (0, exports.deriveMiddlewareAccountAddress)(params.authority.publicKey, params.gatekeeperNetwork, params.failsafe, params.previousMiddleware);
const [middlewareAccount] = (0, exports.deriveMiddlewareAccountAddress)(params.authority.publicKey, params.gatekeeperNetwork, params.failsafe, params.previousMiddleware);
return program.methods
.create(params.gatekeeperNetwork, middlewareBump, params.expirePassOnUse, params.failsafe || null, params.previousMiddleware || null)
.create(params.gatekeeperNetwork, params.expirePassOnUse, params.failsafe || null, params.previousMiddleware || null)
.accounts({

@@ -86,3 +86,3 @@ middlewareAccount,

return __awaiter(this, void 0, void 0, function* () {
return [];
return { instructions: [], signers: [] };
});

@@ -96,3 +96,3 @@ }

const gatewayToken = yield (0, solana_gateway_ts_1.getGatewayTokenAddressForOwnerAndGatekeeperNetwork)(params.authority.publicKey, middlewareAccount.gatekeeperNetwork);
return program.methods
const instructions = yield program.methods
.executeMiddleware()

@@ -102,3 +102,3 @@ .accounts({

transactionAccount: params.transactionAccount,
owner: params.cryptidAccountDetails.didAccount,
did: params.cryptidAccountDetails.didAccount,
authority: params.authority.publicKey,

@@ -112,2 +112,3 @@ expireFeatureAccount,

.then(Array.of);
return { instructions, signers: [] };
});

@@ -114,0 +115,0 @@ }

{
"name": "@identity.com/cryptid-middleware-check-pass",
"version": "0.3.0-alpha.9",
"version": "0.3.0-alpha.10",
"main": "dist/index.js",

@@ -16,3 +16,3 @@ "types": "dist/index.d.ts",

"dependencies": {
"@identity.com/cryptid-core": "0.3.0-alpha.9",
"@identity.com/cryptid-core": "0.3.0-alpha.10",
"@identity.com/solana-gateway-ts": "^0.8.2",

@@ -19,0 +19,0 @@ "@solana/web3.js": "^1.62.0",

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