From b0ab2259877242d1eaa2de74af469986eadd455b Mon Sep 17 00:00:00 2001 From: Ramesh Nair Date: Tue, 24 Nov 2020 17:25:08 +0000 Subject: [PATCH] feat: Add network system contract addresses --- data/networks.json | 10 ++++++++-- index.js | 5 ----- src/types.ts | 12 ++++++++++++ 3 files changed, 20 insertions(+), 7 deletions(-) delete mode 100644 index.js diff --git a/data/networks.json b/data/networks.json index 29946d3..05ee550 100644 --- a/data/networks.json +++ b/data/networks.json @@ -1,8 +1,14 @@ { "1": { - "primaryToken": "egld" + "primaryToken": "egld", + "auctionContract": "erd1qqqqqqqqqqqqqqqpqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqplllst77y4l", + "stakingContract": "erd1qqqqqqqqqqqqqqqpqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqllls0lczs7", + "delegationContract": "erd1qqqqqqqqqqqqqpgqxwakt2g7u9atsnr03gqcgmhcv38pt7mkd94q6shuwt" }, "T": { - "primaryToken": "xegld" + "primaryToken": "xegld", + "auctionContract": "erd1qqqqqqqqqqqqqqqpqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqplllst77y4l", + "stakingContract": "erd1qqqqqqqqqqqqqqqpqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqllls0lczs7", + "delegationContract": "erd1qqqqqqqqqqqqqpgqp699jngundfqw07d8jzkepucvpzush6k3wvqyc44rx" } } \ No newline at end of file diff --git a/index.js b/index.js deleted file mode 100644 index d31f322..0000000 --- a/index.js +++ /dev/null @@ -1,5 +0,0 @@ -const Data = require('./dist/cjs').default - -console.log(Data) - -console.log(JSON.stringify(Data.getToken('xegld'), null, 2)) \ No newline at end of file diff --git a/src/types.ts b/src/types.ts index 1310520..8772673 100644 --- a/src/types.ts +++ b/src/types.ts @@ -10,6 +10,18 @@ export interface NetworkMetadata { * Id of the token used to pay for transactions. */ primaryToken?: string, + /** + * Address of system auction contract. + */ + auctionContract?: string, + /** + * Address of system staking contract. + */ + stakingContract?: string, + /** + * Address of system delegation contract. + */ + delegationContract?: string, } /**