Skip to content

Commit

Permalink
chore: changes for 1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei0x309 committed Jul 25, 2024
1 parent 7eab211 commit a4ad84e
Show file tree
Hide file tree
Showing 21 changed files with 938 additions and 919 deletions.
1 change: 0 additions & 1 deletion .github/bun-workflow.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Not supported due to compatibility issues with Bun Http2 stdlib
name: Bun Main Workflow

on:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Not supported due to compatibility issues with Bun Http2 stdlib
name: Bun Main Workflow

on:
Expand Down
104 changes: 58 additions & 46 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,83 +1,95 @@
# Changelog

## Manifest Version 1.4.0

- added bun workflow to announce changes & new versions
- nicer display of type sign messages
- added reinjecting extension in case of context invalidation
- added button to community ERC20 Bridge
- changed the assets page to use another provider for fetching assets
- changed the display of assets to be more focused on tokens
- added Github link icon to the header of the first wallet page
- improved compatibility with non-EIP1159 networks
- minimal changes to switch network displays

## Manifest Version 1.3.9

- add an additional throttle on 'eth_chainId' to prevent websites from spamming the wallet with requests
- change inject throttle to only affect UI requests
- updated some core dependencies
- optimized performance for json rpc calls
- disabled assets fetch until new provider is found before yup.io was used
- optimized performance for JSON RPC calls
- disabled assets fetch until a new provider is found before yup.io was used
- simplified wallet switching
- added sonarCloud badge to README.md

## Manifest Version 1.3.8

- improved sign message display to better accomodate SIWE & other messages
- improved sign message display to better accommodate SIWE & other messages

## Manifest Version 1.3.7

- improved add Network pages
- upgraded and optimized some dependencies including vite
- optimized vite config
- upgraded and optimized some dependencies including Vite
- optimized site config
- added condition to not reinject wallet if already injected for websites that reload injected scripts
- optimized throttle fuffilment of requests in case of too many requests
- removed uneeded mobile native code
- optimized throttle fulfillment of requests in case of too many requests
- removed unneeded mobile native code

## Manifest Version 1.3.6

- better display of blockchain explorer button
- updated ethers dependency to latest 6.11.1
- better handling of type sigining
- better display of the blockchain explorer button
- updated ethers dependency to the latest 6.11.1
- better handling of type signing
- changed the password input for unlock to not lose focus
- activated focus on password input for unlock on view enter
- disabled integration of fire wallet(in cause user has it installed) with type signing due to incompatibility
- disabled integration of fire wallet(in case user has it installed) with type signing due to incompatibility
- other misc improvements
- added a check when sending native token to check if internet / RPC or Blockchain and show a message to the user
- customize testNets icons to show a small dev icon on the top right corner
- updated testNets templates to include newer networks
- show icons for testNets too in most places
- added a check when sending native tokens to check if internet / RPC or Blockchain and show a message to the user
- customize test-Nets icons to show a small dev icon on the top right corner
- updated test-Nets templates to include newer networks
- show icons for test-Nets too in most places

## Manifest Version 1.3.5

- added copy button to chainId for easier development
- added settings to be able to transfrom address to lower case when copying
- added a check in get recepit to return null if hash is missing
- added version display to wallet first page
- added copy button to ChainId for easier development
- added settings to be able to transform address to lowercase when copying
- added a check in get receipt to return null if the hash is missing
- added version display to the wallet on the first page

## Manifest Version 1.3.4

- bump fake Metamask version signature to 11.0.0
- improved compatibility with older deprecated websites
- improved mimicking of Metamask API
- made the wallet compatible with fire extension on sending transaction( by mimicking new Metamask API)
- made the wallet compatible with fire extension on sending transactions ( by mimicking the new Metamask API)

## Manifest Version 1.3.3

- improved eth_call and eth_blockNumber to be more compatible with older websites
- better error internal handling
- modify the receipt returned to resamble more the one from Metamask
- modify the receipt returned to resemble the one from Metamask
- change some notes in about
- refactored account name edit to be more user friendly
- refactored account name edit to be more user-friendly

## Manifest Version 1.3.2

- added button to open non kyc exchange, no referral is used to maximize privacy
- added button to navigate to non-KYC exchange, no referral is used to maximize privacy

## Manifest Version 1.3.1

- refactored the wallet to use etheres V6
- refactored the wallet to use ethers V6
- implemented EIP6963Provider
- updated all dependencies
- added ability to send native tokens
- added ability to manage ABIs
- added ability to perfrom arbitrary read calls to contracts
- added ability to perfrom arbitrary write calls to contracts
- added ability to perform arbitrary read calls to contracts
- added ability to perform arbitrary write calls to contracts
- added ability to save read or write calls for later use
- added sandbox to be able to evaluate JS code in order to pass complex parameters to read or write calls
- added base Network to templates class
- added Icon for base network
- added icon for base network
- added ability to add contacts and load them in Read contract and Write and Send token pages
- added ability to paste current selected address to both webpages and insde wallet itself
- added the ability to paste the current selected address to both web pages and inside the wallet itself

## Manifest Version 1.2.8

Expand All @@ -91,15 +103,15 @@
## Manifest Version 1.2.6

- upgrade ionic to v7 and update dependencies

## Manifest Version 1.2.5

- improve post build script
- improve post-build script

## Manifest Version 1.2.4

- updated showing assets page to use new api
- removed yup score from assets page
- updated showing assets page to use the new API
- removed YUP score from the assets page
- change the info modal in settings

## Manifest Version 1.2.3
Expand All @@ -114,15 +126,15 @@

## Manifest Version 1.2.1

- added support fro eth_getTransactionCount method
- added support from eth_getTransactionCount method

## Manifest Version 1.1.9

- added proxy in intial stub for send, request, sendAsync for better compatibility
- added proxy in initial stub for send, request, sendAsync for better compatibility

## Manifest Version 1.1.8

- added support to extract private key from seed when adding account
- added support to extract the private key from the seed when adding an account

## Manifest Version 1.1.7

Expand All @@ -137,18 +149,18 @@

## Manifest Version 1.1.5

- Added multiple new multiple implementations of MetamaskAPI including request to add a network by a website
- Injecting in sync mode stub wallet to increese compatibility with websites that expect a walled defined at the lowest point of page load
- Modifing CSP requests to allow sync injecting of stub
- Added multiple new implementations of MetamaskAPI including a request to add a network by a website
- Injecting in sync mode stub wallet to increase compatibility with websites that expect a walled defined at the lowest point of page load
- Modifying CSP requests to allow sync injecting of stub
- Added Web3 Shim for compatibility with older websites
- Tested new websites and TX's
- Refactoring the 10 maximum conqurent messages limit
- Added support for most of listners and improve emiting them
- Added a post buil script
- Switch the content script to load initialy without a wrapper module
- Tested new websites and TXs
- Refactoring the 10 maximum concurrent messages limit
- Added support for most of the listeners and improved emitting them
- Added a post-build script
- Switch the content script to load initially without a wrapper module

## Manifest Version: 1.1.4
## Manifest Version 1.1.4

- Added max 10 allowed concurrent messages to the wallet to prevent abusive websites from sending too many messages.
- Added explorer-button to main wallet page for easier viewing of the selected address on the blockchain explorer.
- Show the price converted in dollars also besides the native token price on transaction view for networks: 1(Ethereum), 137(Polygon), 100(Gnosis), 10(Optimism), 56(BSC), 42161(Arbitrum One)
- Show the price converted in dollars besides the native token price on transaction view for networks: 1(Ethereum), 137(Polygon), 100(Gnosis), 10(Optimism), 56(BSC), 42161(Arbitrum One)
23 changes: 17 additions & 6 deletions CI/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,30 @@ const main = async () => {

if(action === 'update') {
const VERSION = GithubEvent.inputs.version;
const message = `Github ClearWallet new version ${VERSION} has been released!\n
ChromeStore: https://bit.ly/clw-evm \n
Github: https://github.com/andrei0x309/clear-wallet
`;

const message = `Clear Wallet - New version ${VERSION} released! \n
ChangeLog: https://bit.ly/clw-cl \n
ChromeStore: https://bit.ly/clw-evm \n
`
if(ENABLED) {
await yupAPI.sendPost({
content: message,
platforms: ['twitter', 'threads', 'bsky', 'lens']
})
await fchubUtils.createFarcasterPost({
const fcPost = await fchubUtils.createFarcasterPost({
content: message,
})
const fcPostHash = Buffer.from(fcPost).toString('hex');
if(fcPostHash) {
await new Promise((resolve) => setTimeout(resolve, 3000));
const launchCasterMessage = `@launch`

await fchubUtils.createFarcasterPost({ content: launchCasterMessage, replyTo: {
hash: fcPostHash,
fid: String(USER_FID)
} })

}

} else {
console.log('No action required')
}
Expand Down
22 changes: 22 additions & 0 deletions src/components/icons/ArrowDown.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<template>
<svg
width="16"
height="16"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
aria-label="down"
class="Delta__StyledDownArrow-sc-bcba1827-1 fstbcV"
>
<path
d="M10.6979 16.2453L6.31787 9.75247C5.58184 8.66118 6.2058 7 7.35185 7L16.6482 7C17.7942 7 18.4182 8.66243 17.6821 9.75247L13.3021 16.2453C12.623 17.2516 11.377 17.2516 10.6979 16.2453Z"
fill="currentColor"
></path>
</svg>
</template>

<style scoped>
.fstbcV {
color: rgb(255, 95, 82);
}
</style>
22 changes: 22 additions & 0 deletions src/components/icons/ArrowUp.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<template>
<svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
viewBox="0 0 24 24"
fill="none"
aria-label="up"
class="Delta__StyledUpArrow-sc-bcba1827-0 hrYaKr"
>
<path
d="M13.3021 7.7547L17.6821 14.2475C18.4182 15.3388 17.7942 17 16.6482 17L7.3518 17C6.2058 17 5.5818 15.3376 6.3179 14.2475L10.6979 7.7547C11.377 6.7484 12.623 6.7484 13.3021 7.7547Z"
fill="currentColor"
></path>
</svg>
</template>

<style scoped>
.hrYaKr {
color: rgb(64, 182, 107);
}
</style>
22 changes: 22 additions & 0 deletions src/components/icons/Bridge.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<template>
<svg enable-background="new 0 0 32 32" viewBox="0 0 32 32">
<g>
<polygon
fill="none"
points="12,3 12,8 31,8 31,14 1,14 "
stroke="currentColor"
stroke-linejoin="round"
stroke-miterlimit="10"
stroke-width="2"
></polygon>
<polygon
fill="none"
points="20,29 20,24 1,24 1,18 31,18 "
stroke="currentColor"
stroke-linejoin="round"
stroke-miterlimit="10"
stroke-width="2"
></polygon>
</g>
</svg>
</template>
16 changes: 16 additions & 0 deletions src/components/icons/GitHub.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<template>
<svg
fill="none"
height="25"
viewBox="0 0 25 25"
width="25"
xmlns="http://www.w3.org/2000/svg"
>
<path
clip-rule="evenodd"
d="M15.7481 24.9471C24.0901 24.7061 24.9111 22.9501 24.9111 12.9811C24.9111 1.98108 23.9111 0.981079 12.9111 0.981079C1.91113 0.981079 0.911133 1.98108 0.911133 12.9811C0.911133 22.9761 1.73713 24.7151 10.1391 24.9491C10.2121 24.8581 10.2391 24.7441 10.2391 24.6281C10.2391 24.3781 10.2291 21.8121 10.2241 20.9291C7.18713 21.5681 6.54613 19.5101 6.54613 19.5101C6.04913 18.2881 5.33313 17.9621 5.33313 17.9621C4.34213 17.3061 5.40813 17.3191 5.40813 17.3191C6.50413 17.3941 7.08113 18.4101 7.08113 18.4101C8.05513 20.0271 9.63713 19.5601 10.2591 19.2891C10.3581 18.6061 10.6401 18.1391 10.9521 17.8751C8.52713 17.6081 5.97813 16.7001 5.97813 12.6451C5.97813 11.4901 6.40413 10.5461 7.10213 9.80608C6.98913 9.53808 6.61513 8.46208 7.20913 7.00608C7.20913 7.00608 8.12613 6.72108 10.2121 8.09008C11.0831 7.85508 12.0171 7.73808 12.9461 7.73408C13.8731 7.73808 14.8071 7.85508 15.6801 8.09008C17.7651 6.72108 18.6801 7.00608 18.6801 7.00608C19.2761 8.46208 18.9011 9.53808 18.7881 9.80608C19.4881 10.5461 19.9111 11.4901 19.9111 12.6451C19.9111 16.7101 17.3581 17.6051 14.9251 17.8661C15.3171 18.1931 15.6661 18.8391 15.6661 19.8261C15.6661 20.7721 15.6601 22.4451 15.6561 23.5541C15.6541 24.1031 15.6531 24.5131 15.6531 24.6281C15.6531 24.7371 15.6821 24.8521 15.7481 24.9471V24.9471Z"
fill="currentColor"
fill-rule="evenodd"
/>
</svg>
</template>
Loading

0 comments on commit a4ad84e

Please sign in to comment.