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

defender-admin-client

Package Overview
Dependencies
Maintainers
10
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

defender-admin-client - npm Package Compare versions

Comparing version 1.28.1 to 1.29.0-rc.0

lib/models/verification.d.ts

3

lib/api.d.ts

@@ -5,2 +5,3 @@ import { BaseApiClient } from 'defender-base-client';

import { ExternalApiProposalResponse as ProposalResponse } from './models/response';
import { Verification, VerificationRequest } from './models/verification';
declare type UpgradeParams = {

@@ -43,2 +44,4 @@ title?: string;

proposeRevokeRole(params: AccessControlParams, contract: CreateProposalRequest['contract'], role: Hex, account: Address): Promise<ProposalResponseWithUrl>;
verifyDeployment(params: VerificationRequest): Promise<Verification>;
getDeploymentVerification(params: Pick<VerificationRequest, 'contractAddress' | 'contractNetwork'>): Promise<Verification | undefined>;
private proposePauseabilityAction;

@@ -45,0 +48,0 @@ private proposeAccessControlAction;

@@ -68,2 +68,17 @@ "use strict";

}
async verifyDeployment(params) {
return this.apiCall(async (api) => {
return (await api.post('/verifications', params));
});
}
async getDeploymentVerification(params) {
return this.apiCall(async (api) => {
try {
return (await api.get(`/verifications/${params.contractNetwork}/${params.contractAddress}`));
}
catch {
return undefined;
}
});
}
async proposePauseabilityAction(params, contract, action) {

@@ -70,0 +85,0 @@ var _a, _b;

export { AdminClient, ProposalResponseWithUrl as ProposalResponse } from './api';
export { ExternalApiCreateProposalRequest as CreateProposalRequest } from './models/proposal';
export { Contract } from './models/contract';
export { VerificationRequest, Verification } from './models/verification';
export declare const VERSION: any;
//# sourceMappingURL=index.d.ts.map

4

package.json
{
"name": "defender-admin-client",
"version": "1.28.1",
"version": "1.29.0-rc.0",
"description": "",

@@ -29,3 +29,3 @@ "main": "./lib/index.js",

},
"gitHead": "7e6b07e0e69b9ca21ff55650002248a0f7b1aec4"
"gitHead": "afe841f01ea914855a7e8a33ee1033c21114f381"
}

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