npm.io
2.0.0 • Published 1 month ago

@metamask/delegation-deployments

Licence
(MIT-0 OR Apache-2.0)
Version
2.0.0
Deps
0
Size
75 kB
Vulns
0
Weekly
0
Stars
63

Delegation Framework Deployments

A history of Delegation Framework deployments. Versioning inside the JSON for deploymented mapped to the github tags.

Installation

This package is normally installed as part of the Smart Accounts Kit (@metamask/smart-accounts-kit) which is part of this monorepo.

In order to install this package standalone:

With yarn:

yarn add @metamask/delegation-deployments

With npm:

npm install @metamask/delegation-deployments

Contributing

Deployment addresses are manually added to src/contractAddresses.ts and assigned to versions and chains in src/index.ts.

In order to validate that the latest version of contracts is deployed to all supported chains, run:

yarn validate-latest-contracts

This will identify the latest version of the contracts, iterate the supported chains, and check that code is deployed at the specified address.

You can also validate specific chains by providing the chainId as a comma separated list (chains may be decimal, or 0x prefixed hexadecimal):

yarn validate-latest-contracts 0x01,0xe708

Keywords