Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
150 commits
Select commit Hold shift + click to select a range
4bc627d
Fight the warning in Release action (#467)
marcin-trust Jan 7, 2022
85ea7ad
⚠️ Remove docs build warnings (#468)
jodator Jan 7, 2022
1c257ce
Use isLocalChain Chain property instead of function (#470)
gasolin Jan 7, 2022
6f69887
☑️ Fix grammar in docs (#477)
Jan 11, 2022
ece010c
🧿 update node matrix in CI (#465)
marcin-trust Jan 11, 2022
33ade3b
Add PendingSignature transaction state (#471)
DoubleOTheven Jan 11, 2022
2988454
Version Packages (#458)
github-actions[bot] Jan 11, 2022
3015cbd
🧐 Replace polygon explorer to polyscan (#474)
gasolin Jan 12, 2022
26a4314
Add resetState function for transactions (#472)
DoubleOTheven Jan 13, 2022
c1f360e
Version Packages (#478)
github-actions[bot] Jan 13, 2022
34ba891
Add missing docs (#483)
DoubleOTheven Jan 14, 2022
d04c8bb
Adding Moonbeam network support. (#480)
m00nbeans Jan 14, 2022
b6fe5e1
Adding support for the Oasis Emerald Paratime (#487)
m00nbeans Jan 17, 2022
83ba24a
Adding Cronos network support. (#488)
CasperGhostCrypto Jan 18, 2022
2ce862d
⬇️ down sizing package by not pack tests (#493)
gasolin Jan 21, 2022
bbd2aff
Version Packages (#485)
github-actions[bot] Jan 21, 2022
be413b4
Fix peer dependency conflict (#490)
devanoneth Jan 21, 2022
fd8e924
🚮 Remove web3-react dependency from core (#491)
vanruch Jan 25, 2022
c70a76e
📱 Support and add examples of Web3Modal and Web3React provider usages…
vanruch Jan 26, 2022
7a41806
Version Packages (#494)
github-actions[bot] Jan 26, 2022
a3c5575
⬇️ Downsize core npm package
gasolin Jan 28, 2022
6727b77
🩺 Chore(README): remove web3-react reference (#507)
JayWelsh Jan 31, 2022
a07b14f
📧 Add useChainMeta hook to get chain metadata from ChainID (#504)
vanruch Feb 1, 2022
81b12c5
✨ add gnosis chain as xdai alias (#475)
gasolin Feb 2, 2022
6b90cba
fix(Web3ModalButton): catch web3modal connect errors (#511)
JayWelsh Feb 2, 2022
9f8ce66
🌴Add Palm Testnet support (#514)
chiefGui Feb 2, 2022
89088ef
Version Packages (#513)
github-actions[bot] Feb 3, 2022
c29ce02
🤙 Introduce useCall hook (#499)
HubertNastaly Feb 3, 2022
f16f42b
Add eslint-plugin-react-hooks (#524)
Szymx95 Feb 7, 2022
3d1ec30
Add sourcemaps to build (#526)
vanruch Feb 8, 2022
69497ae
Update activateBrowserWallet documentation (#525)
vanruch Feb 8, 2022
0029496
🤿 Stop showing Metamask dialog on load, improve disconnect logic (#512)
vanruch Feb 8, 2022
3281460
🐸 Handle call result decoding errors (#518)
HubertNastaly Feb 8, 2022
b26a483
Version Packages (#527)
github-actions[bot] Feb 8, 2022
b8e5c81
Add missing import to readme (#534)
exbucks Feb 14, 2022
42e1adc
🔧 Add typed contract calls (#544)
Szymx95 Mar 2, 2022
26b0b01
🐼 Update project id (#557)
yivlad Mar 7, 2022
a011185
add support for custom chainID (#543)
RyanRHall Mar 7, 2022
813fe61
:zap: Support ThunderCore network (#553)
o-p Mar 8, 2022
1dd8b25
🧐 Improve testing infrastructure (#558)
dmaretskyi Mar 9, 2022
d8229b9
🦖 Introduce Docusaurus documentation site (#559)
rzadp Mar 9, 2022
ad021b0
🦔 Alternative Switch to PNPM (#561)
rzadp Mar 10, 2022
e9907a5
👛 Add wallet-connect example (#562)
dmaretskyi Mar 10, 2022
bc7b39d
🧹 Cleanup CI for docs (#563)
rzadp Mar 10, 2022
5c7b682
🛳 Introduce deploy script (#564)
rzadp Mar 10, 2022
378177c
⛓ Support reading state from multiple chains (#503)
vanruch Mar 10, 2022
cfe3162
🧇 Bump waffle version (#565)
yivlad Mar 10, 2022
8ffe1cc
Update release.yml (#566)
yivlad Mar 10, 2022
10cb9d6
Update release.yml (#570)
rzadp Mar 11, 2022
fc99772
Update README after pnpm switch (#569)
devanoneth Mar 11, 2022
21b94a0
fix ESLint relative directories (#568)
devanoneth Mar 11, 2022
feb5821
⚙️ Use swc instead of ts-node (#571)
dmaretskyi Mar 11, 2022
6af2e12
🗂️ Move tests to src (#572)
dmaretskyi Mar 11, 2022
0aa6ddc
🔨 Correct edit URL for docs (#574)
rzadp Mar 11, 2022
c3a7860
⛓ Custom chain tutorial (#573)
yivlad Mar 11, 2022
ca55dd0
🔗 Explicitly export public symbols (#577)
dmaretskyi Mar 11, 2022
dde860f
🐘 Update custom-chains.mdx (#575)
mj426382 Mar 11, 2022
089e295
🍒 Multichain tutorial (#578)
yivlad Mar 14, 2022
7652efa
🏅 Increase test coverage (#583)
mj426382 Mar 14, 2022
d70b866
📢 Review public API and add annotations to public symbols (#584)
dmaretskyi Mar 14, 2022
afefe4a
📘 Add code documentation style guide (#585)
dmaretskyi Mar 14, 2022
29b1a7c
Remove home page from docusaurus (#586)
dmaretskyi Mar 14, 2022
4ab5a5a
🌄 Add website package (#588)
yivlad Mar 14, 2022
74ee1bd
🗄️ Restructure docs (#589)
dmaretskyi Mar 15, 2022
40c1d86
♻️ Add migration guide for `useContractCall` and `useChainCall` & rem…
dmaretskyi Mar 15, 2022
5a4a944
🍡 Add multichain test (#592)
mj426382 Mar 16, 2022
3d111c4
🦮 Add typechain guide (#593)
yivlad Mar 16, 2022
182373e
New way of titling files (#594)
rzadp Mar 16, 2022
2d84853
Add link paragraph and text (#601)
mj426382 Mar 16, 2022
948f94b
Remove old docs and update readme (#602)
mj426382 Mar 16, 2022
b469492
🖼 Embeddable examples (#597)
rzadp Mar 16, 2022
bea2750
Version Packages (#555)
github-actions[bot] Mar 16, 2022
592bb22
🔗 Improve WalletConnect example (#591)
alexworker23 Mar 16, 2022
b9ce656
💘 Fix release (#605)
rzadp Mar 16, 2022
9aefc1d
🐾 Fixed pnpm lockfile
rzadp Mar 16, 2022
93ee521
🤷 Update script for release changeset
rzadp Mar 17, 2022
d4703ab
🤷 Update script for release changeset
rzadp Mar 17, 2022
01a59c5
🤷 Update script for release changeset
rzadp Mar 17, 2022
b045687
🎉 Release new version (#606)
github-actions[bot] Mar 17, 2022
d04319e
🤷 Use node 16 for release
dmaretskyi Mar 17, 2022
f800cb4
👮 If a user tries to connect to an unsupported chain an error value w…
KevinsBobo Mar 17, 2022
f5255f7
🍓 Repair rendering examples (#607)
rzadp Mar 17, 2022
f7ada3b
🇼🇫 Add wallet connect tutorial (#604)
mj426382 Mar 18, 2022
8883ba5
🥳 Move all examples to embeddables (#609)
mj426382 Mar 18, 2022
e51b722
💰 Add prices examples (#612)
mj426382 Mar 21, 2022
3398cbe
🦇 Add discord to website (#613)
mj426382 Mar 21, 2022
c8a9f49
🤖 Use bot account token for release PR (#615)
dmaretskyi Mar 21, 2022
f939265
Set up eslint and prettier (#617)
mj426382 Mar 21, 2022
2996ccf
🔥 Updated useTransaction status values (#603)
0xfftb Mar 22, 2022
65b7c5d
📜 Add documentation for create eth-app (#618)
mj426382 Mar 22, 2022
2fc3586
⚧ Add transaction example to docs (#614)
mj426382 Mar 22, 2022
df28a1a
📐 Support Aurora network (#546)
gbiatturi Mar 22, 2022
cb4d3b1
👻 Added fantom testnet (#447)
maharshi365 Mar 22, 2022
895c551
🦎 Support metis mainnet (#484)
titandac Mar 22, 2022
ba835e5
🥶 Adding avalanche testnet (#497)
jacobmakarsky Mar 22, 2022
8b98f68
👻 Add Fantom Testnet (#414)
michaelfreitag Mar 23, 2022
7c47254
🌁 Add meta image (#619)
mj426382 Mar 23, 2022
22f97ec
🙈 Hide connect button on examples (#620)
mj426382 Mar 23, 2022
6c6b115
🌡 Add contract function example (#621)
mj426382 Mar 24, 2022
f0565b2
💘 Update release scripts
rzadp Mar 24, 2022
7f453b7
💎 Adding support for the Oasis Testnet (#567)
queval-j Mar 25, 2022
b87142e
Repair previous PR linting (#624)
mj426382 Mar 25, 2022
31d8239
🎆 Add hosting welcome image from our static files (#626)
mj426382 Mar 28, 2022
0a9a367
add .eslintrc.js to .npmignore (#627)
devanoneth Mar 28, 2022
751327e
💌 Add notification example to our docs (#625)
mj426382 Mar 28, 2022
3c7d9c2
🕯 Add VELAS and VELAS TESTNET Chain (#628)
RetroDefi Mar 29, 2022
5ed3214
📍 Add connecting to local chain example (#630)
mj426382 Mar 30, 2022
95d1efd
🧛‍♂️ Revamp docs structure (#631)
rzadp Mar 30, 2022
f45aacd
🍰 Split into read and readwrite providers (#629)
mj426382 Mar 30, 2022
23be37e
💇‍♂️ Trim duplicated content (#633)
rzadp Mar 31, 2022
8da26ec
👩‍🦯 Fix broken live example (#634)
rzadp Mar 31, 2022
c9df9e0
🧐 Change each example source to default provider (#636)
mj426382 Mar 31, 2022
df1adcc
Add missing changeset (#635)
dmaretskyi Mar 31, 2022
49cd606
Update release.yml
rzadp Mar 31, 2022
1852373
🎉 Release new version (#637)
truefi-bot Mar 31, 2022
8f476a3
🇪🇸 Add history example (#639)
mj426382 Apr 1, 2022
067b79a
Add config to use in calls (#642)
mj426382 Apr 1, 2022
30bffcc
🤭 Add missing changeset for #642 (#645)
dmaretskyi Apr 4, 2022
fc528c7
🎉 Release new version (#646)
truefi-bot Apr 4, 2022
487c5f2
🔌 Handle manually disconnected metamask (#647)
yivlad Apr 4, 2022
7b11839
🐩 Lint unused vars (#649)
rzadp Apr 4, 2022
fcd1642
📙 Read-only example, without browser wallet (#648)
rzadp Apr 4, 2022
6058fdb
🍜 Refactor: Extract `chainId` resolution to a hook (#651)
rzadp Apr 5, 2022
25c4bed
🧮 Introduce `renderDAppHook` (#652)
rzadp Apr 5, 2022
93967af
🥨 Internal submodule (#653)
yivlad Apr 5, 2022
def0d9c
✂︎ Properly strip supplied config of undefined (#655)
rzadp Apr 5, 2022
fe1e418
🎶 Refactor `useEthers` (#654)
dmaretskyi Apr 5, 2022
49645eb
🎉 Release new version (#650)
truefi-bot Apr 5, 2022
42b1652
📦 Make exports from testing and internal point to compiled code (#657)
dmaretskyi Apr 6, 2022
9cc696c
Add module files (#659)
mj426382 Apr 6, 2022
3ff848c
Add loading logic (#660)
mj426382 Apr 6, 2022
40d4faf
🎉 Release new version (#658)
truefi-bot Apr 6, 2022
77bb213
🥩 Memoize correctly without an array in dependencies (#661)
rzadp Apr 7, 2022
bdd72c9
🎉 Release new version (#662)
truefi-bot Apr 7, 2022
51377cf
⏲️ Remove getAddress calls due to performance issues (#664)
dmaretskyi Apr 7, 2022
f16d668
🎉 Release new version (#665)
truefi-bot Apr 7, 2022
145106d
Lint
rzadp Apr 7, 2022
73a9bec
💲 Add a hook to query multiple token prices at once (#663)
dmaretskyi Apr 7, 2022
0e9f085
👿 Use coingecko from monorepo workspace (#666)
rzadp Apr 7, 2022
f5f04d1
🏷 Add labels (#669)
rzadp Apr 7, 2022
0fd73d1
⚡ Export ReadonlyNetworksProvider (#668)
dmaretskyi Apr 7, 2022
1fdb465
🍇 Move setShouldConnectMetamask to network provider (#670)
dmaretskyi Apr 7, 2022
c42d8a8
💡 Fix @usedapp/core dep in coingecko (#671)
dmaretskyi Apr 7, 2022
feaecfd
🪜 Use core from monorepo workspace (#673)
rzadp Apr 7, 2022
e2d9950
🏓 Handle different cases of contract addresses (#672)
rzadp Apr 8, 2022
7d4d28b
⛳️ Optimize getUniqueCalls usage (#674)
vanruch Apr 8, 2022
2d7b1ec
🧠 Memoize calldata (#675)
dmaretskyi Apr 8, 2022
80d7e70
🎉 Release new version (#667)
truefi-bot Apr 8, 2022
3d4cf2c
🙊 Fix metamask auto-connection behaviour (#676)
dmaretskyi Apr 8, 2022
0f4b556
Export formatting
marcin-trust Apr 11, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 5 additions & 0 deletions .changeset/quiet-laws-run.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@usedapp/core': patch
---

Fix metamask auto-connect behaviour
5 changes: 0 additions & 5 deletions .changeset/three-rivers-hunt.md

This file was deleted.

2 changes: 2 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@
"project": "./tsconfig.json",
"sourceType": "module"
},
"ignorePatterns": [".eslintrc.js"],
"rules": {
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "off",
"no-redeclare": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error"],
"prefer-const": ["error", {"destructuring": "all"}],
"semi": ["error", "never"],
"no-extra-semi": "off",
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
test:
strategy:
matrix:
node: ['10.x', '12.x']
node: ['14.x', '16.x']
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -17,8 +17,8 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- run: yarn install --frozen-lockfile
- run: npm i -g pnpm@6.20.3
- run: pnpm install --frozen-lockfile
- run: yarn lint
- run: yarn build
- run: yarn test

22 changes: 22 additions & 0 deletions .github/workflows/PR.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: PR Naming
on:
pull_request:
types: [opened, edited, synchronize, reopened]
jobs:
emoji:
name: Pull Request should start from emoji
runs-on: ubuntu-latest
steps:
- uses: deepakputhraya/action-pr-title@v1.0.2
with:
# Check if first character is an emoji, regex borrowed from https://medium.com/reactnative/emojis-in-javascript-f693d0eb79fb#.enomgcu63
regex: '^(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff]|[\u0023-\u0039]\ufe0f?\u20e3|\u3299|\u3297|\u303d|\u3030|\u24c2|\ud83c[\udd70-\udd71]|\ud83c[\udd7e-\udd7f]|\ud83c\udd8e|\ud83c[\udd91-\udd9a]|\ud83c[\udde6-\uddff]|[\ud83c[\ude01-\ude02]|\ud83c\ude1a|\ud83c\ude2f|[\ud83c[\ude32-\ude3a]|[\ud83c[\ude50-\ude51]|\u203c|\u2049|[\u25aa-\u25ab]|\u25b6|\u25c0|[\u25fb-\u25fe]|\u00a9|\u00ae|\u2122|\u2139|\ud83c\udc04|[\u2600-\u26FF]|\u2b05|\u2b06|\u2b07|\u2b1b|\u2b1c|\u2b50|\u2b55|\u231a|\u231b|\u2328|\u23cf|[\u23e9-\u23f3]|[\u23f8-\u23fa]|\ud83c\udccf|\u2934|\u2935|[\u2190-\u21ff])'
github_token: ${{ github.token }}
capitalised:
name: Pull Request name should start from Capital letter with space
runs-on: ubuntu-latest
steps:
- uses: deepakputhraya/action-pr-title@v1.0.2
with:
regex: '^[^a-z]* [A-Z]'
github_token: ${{ github.token }}
54 changes: 54 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Deploy
on:
pull_request:
push:
branches:
- master
jobs:
deploy-apps:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '16.14'
- run: npm i -g pnpm@6.20.3
- run: pnpm install --frozen-lockfile
- run: pnpm build
- name: Deploy usedapp-docs.netlify.app
uses: nwtgck/actions-netlify@v1.2
with:
enable-commit-comment: true
enable-pull-request-comment: true
github-token: ${{ secrets.GITHUB_TOKEN }}
overwrites-pull-request-comment: true
production-deploy: ${{ github.event_name != 'pull_request' }}
publish-dir: packages/docs/build
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_DOCS_SITE_ID }}
- name: Deploy example.usedapp.io
uses: nwtgck/actions-netlify@v1.2
with:
enable-commit-comment: true
enable-pull-request-comment: true
github-token: ${{ secrets.GITHUB_TOKEN }}
overwrites-pull-request-comment: true
production-deploy: ${{ github.event_name != 'pull_request' }}
publish-dir: packages/example/build
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_EXAMPLE_SITE_ID }}
- name: Deploy usedapp.io
uses: nwtgck/actions-netlify@v1.2
with:
enable-commit-comment: true
enable-pull-request-comment: true
github-token: ${{ secrets.GITHUB_TOKEN }}
overwrites-pull-request-comment: true
production-deploy: ${{ github.event_name != 'pull_request' }}
publish-dir: packages/website/dist
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_LANDING_SITE_ID }}
27 changes: 21 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,36 @@ jobs:
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0
# This allows the changesets/action step to override the default actions user,
# and allow CI jobs on commits coming from that step.
persist-credentials: false

- name: Setup Node.js 12.x
- name: Setup Node.js 16.x
uses: actions/setup-node@master
with:
node-version: 12.x
node-version: 16.x

- name: Install package manager
run: npm i -g pnpm@6.20.3

- name: Install Dependencies
run: yarn install --frozen-lockfile
run: pnpm install --frozen-lockfile

- name: Set git user
run: |
git config user.name truefi-bot
git config user.email truefi-bot@trusttoken.com

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@master
uses: changesets/action@v1
with:
# This expects you to have a script called release which does a build for your packages and calls changeset publish
publish: yarn release
publish: pnpm run release
version: pnpm run version
commit: "🎉 Release new version"
title: "🎉 Release new version"
setupGitUser: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
node_modules
dist
.DS_Store
.idea
.swc
packages/example/gen/types
dist
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16.14.0
26 changes: 0 additions & 26 deletions docs/Makefile

This file was deleted.

Loading