From 9060a273efcb0698d0934d33312cdc90ef2f1084 Mon Sep 17 00:00:00 2001 From: Christophe Le Bars Date: Fri, 28 Jan 2022 13:03:54 +0100 Subject: [PATCH] add CONTRIBUTING.md + update chains + add package.json exports --- CONTRIBUTING.md | 27 +++++++++++++++++++++++++++ LICENSE | 2 +- package.json | 12 ++++++++++-- src/chains.js | 24 ++++++++++++++++++++++++ 4 files changed, 62 insertions(+), 3 deletions(-) create mode 100644 CONTRIBUTING.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..0405153 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,27 @@ +# Contributing to svelte-ethers-store + +Thanks for your interest in improving svelte-ethers-store! We welcome +contributions of all kinds: from discussion to documentation to +bugfixes to feature improvements. + +Please review this document to help to streamline the process and save +everyone's precious time. + +## Issues + +No software is bug-free. So, if you got an issue, follow these steps: + +- Search the [issue list](https://gitlab.com/clb1/svelte-ethers-store/-/issues) for current and old issues. + - If you find an existing issue, please UPVOTE the issue by adding a "thumbs-up reaction". We use this to help prioritize issues! +- If none of that is helping, create an issue with the following information: + - Clear title (shorter is better). + - Describe the issue in clear language. + - Share error logs, screenshots and etc. + - To speed up the issue fixing process, send us a sample repo with the issue you faced. + +## Pull Requests (PRs) + +We welcome all contributions. + +You are encouraged to join the community on +[Discord](https://discord.gg/7yXuwDwaHF) to discuss your PR: diff --git a/LICENSE b/LICENSE index 3817246..87f9a21 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2020-2022 Christophe Le Bars +Copyright (c) 2020-2022 Christophe Le Bars Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/package.json b/package.json index dbac311..57bc611 100644 --- a/package.json +++ b/package.json @@ -2,11 +2,19 @@ "name": "svelte-ethers-store", "version": "0.6.3", "description": "Ethers.js library as a collection of stores for Svelte, Sapper or SvelteKit.", + "license": "MIT", + "repository": "gitlab:clb1/svelte-ethers-store", "main": "dist/index.js", "module": "dist/index.mjs", "svelte": "src/stores.js", - "license": "MIT", - "repository": "gitlab:clb1/svelte-ethers-store", + "exports": { + "./package.json": "./package.json", + ".": { + "main": "./dist/index.js", + "module": "./dist/index.mjs", + "svelte": "./src/stores.js" + } + }, "author": { "name": "Christophe Le Bars", "email": "" diff --git a/src/chains.js b/src/chains.js index 8a4fdc2..6fbe590 100644 --- a/src/chains.js +++ b/src/chains.js @@ -3775,6 +3775,30 @@ const chains = [ } ] }, + { + name: 'UB Smart Chain(testnet)', + chain: 'USC', + network: 'testnet', + rpc: [ 'https://testnet.rpc.uschain.network' ], + faucets: [], + nativeCurrency: { name: 'UBC', symbol: 'UBC', decimals: 18 }, + infoURL: 'https://www.ubchain.site', + shortName: 'usctest', + chainId: 99998, + networkId: 99998 + }, + { + name: 'UB Smart Chain', + chain: 'USC', + network: 'mainnet', + rpc: [ 'https://rpc.uschain.network' ], + faucets: [], + nativeCurrency: { name: 'UBC', symbol: 'UBC', decimals: 18 }, + infoURL: 'https://www.ubchain.site/', + shortName: 'usc', + chainId: 99999, + networkId: 99999 + }, { name: 'QuarkChain Mainnet Root', chain: 'QuarkChain',