defender-admin-client
Advanced tools
Comparing version 1.28.1 to 1.29.0-rc.0
@@ -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 |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
116043
24
289
2