From 5c5327eedda3d19fd3c3b0fb798b42792450b075 Mon Sep 17 00:00:00 2001 From: Filipe Soccol Date: Wed, 9 Nov 2022 16:35:37 -0300 Subject: [PATCH] Add deployment addresses and instructions to fetch addresses from different chains --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 087dfd2..849861f 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,17 @@ To import artifacts on the project use the following: import P2PIXArtifact from 'p2pix-smart-contracts/artifacts/contracts/p2pix.sol/P2PIX.json' ``` +To grab deployment addresses you can just grab from deploys folder: +``` +import localhostDeploys from 'p2pix-smart-contracts/deploys/localhost.json' +``` + +The default deploy addresses for localhost is the following: +| Contract | Address | +|-|-| +|p2pix|`0x5FbDB2315678afecb367f032d93F642f64180aa3`| +|token|`0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512`| + Then use a Contract instance to interact directly with it: ```