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.31.0-rc.3 to 1.31.0

4

package.json
{
"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 @@

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