defender-admin-client
Advanced tools
Comparing version 1.31.0-rc.3 to 1.31.0
{ | ||
"name": "defender-admin-client", | ||
"version": "1.31.0-rc.3", | ||
"version": "1.31.0", | ||
"description": "", | ||
@@ -29,3 +29,3 @@ "main": "./lib/index.js", | ||
}, | ||
"gitHead": "05e49c07cfdec351d68150ad02196a5cdc7158ea" | ||
"gitHead": "d1db4d4ec706ced25e54009938b049be0f38bc8e" | ||
} |
@@ -60,8 +60,9 @@ # Defender Admin Client | ||
To create an `upgrade` action proposal, just provide the proxy contract network and address, along with the new implementation address, and Defender will automatically resolve the rest: | ||
To create an `upgrade` action proposal, provide the proxy contract network and address, along with the new implementation address, and Defender will automatically resolve the rest (note that if no newImplementationAbi is provided the previous implementation ABI will be assumed for the proposal): | ||
```js | ||
const newImplementation = '0x3E5e9111Ae8eB78Fe1CC3bb8915d5D461F3Ef9A9'; | ||
const newImplementationAbi = '[...]' | ||
const contract = { network: 'rinkeby', address: '0x28a8746e75304c0780E011BEd21C72cD78cd535E' }; | ||
await client.proposeUpgrade({ newImplementation }, contract); | ||
await client.proposeUpgrade({ newImplementation, newImplementationAbi }, contract); | ||
``` | ||
@@ -76,4 +77,5 @@ | ||
const proxyAdmin = '0x2fC100f1BeA4ACCD5dA5e5ed725D763c90e8ca96'; | ||
const newImplementationAbi = '[...]' | ||
const contract = { network: 'rinkeby', address: '0x28a8746e75304c0780E011BEd21C72cD78cd535E' }; | ||
await client.proposeUpgrade({ newImplementation, proxyAdmin }, contract); | ||
await client.proposeUpgrade({ newImplementation, newImplementationAbi, proxyAdmin }, contract); | ||
``` | ||
@@ -88,3 +90,4 @@ | ||
const contract = { network: 'rinkeby', address: '0x28a8746e75304c0780E011BEd21C72cD78cd535E' }; | ||
await client.proposeUpgrade({ newImplementation, via, viaType }, contract); | ||
const newImplementationAbi = '[...]' | ||
await client.proposeUpgrade({ newImplementation, newImplementationAbi, via, viaType }, contract); | ||
``` | ||
@@ -91,0 +94,0 @@ |
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
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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
118644
1
160
0