@identity.com/cryptid-middleware-check-pass
Advanced tools
Comparing version 0.3.0-alpha.9 to 0.3.0-alpha.10
@@ -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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
10457
128
0
+ Added@identity.com/cryptid-core@0.3.0-alpha.10(transitive)
+ Added@identity.com/cryptid-idl@0.3.0-alpha.10(transitive)
- Removed@identity.com/cryptid-core@0.3.0-alpha.9(transitive)
- Removed@identity.com/cryptid-idl@0.3.0-alpha.9(transitive)