Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing new flags #3642

Merged
merged 44 commits into from
Oct 18, 2023
Merged

Testing new flags #3642

merged 44 commits into from
Oct 18, 2023

Conversation

jagodarybacka
Copy link
Contributor

@jagodarybacka jagodarybacka commented Oct 18, 2023

Latest build: extension-builds-3642 (as of Wed, 18 Oct 2023 10:09:14 GMT).

Shadowfiend and others added 30 commits October 3, 2023 22:37
Also set it by default to the Tenderly fork.
We use a dismissable item for the banner itself, which will be dismissed
on clicking the Explore The Island link.

No styling is included at the moment, and there is a stub for not
displaying the banner unless the token has been detected as
deployed---this part is not yet implemented.
It will be used to handle the Island game on testnet.
This was already available on the db, but unexposed.
The two env variables we add for now are for the Taho deployer and TAHO
itself on testnet. We can derive the TAHO address from the deployer, but
for now it will live in a constant and thus must be specified ahead of
time.
These are, currently, the TAHO token as well as the realm XP tokens for
each of the starting realms.

Starting realms are named due to the way the deployer works, and those
names are hardcoded for the testnet. Eventually we'll want to iterate
these from the game contract.
References in main and the claim slice weren't fully updated, and fixing
those references required rearranging where certain constants were to
avoid circular dependencies.

The island network has also been abstracted to a constant based on
whether the Arbitrum fork is defined or not.
We achieve this by only marking the token as being tracked when it is
detected as having code on-chain. The claim slice then exposes a
selector that checks if the TESTNET_TAHO token is in the list of tracked
island assets.
We'll want to do this with XP as well most likely, but not yet.
For some reason custom assets started being considered a source of truth
for asset tracking, instead of custom assets being used strictly for
asset metadata and tracked assets being used for tracking info.

Anyway, now we include both and deduplicate in `mergeAssets` as usual.
Notably, rather than using a link, we use a `SharedButton`. This is
because the styling is basically the same as `SharedButton`, and
`SharedLink` can't currently reproduce that (bummer). It also means link
opening has to be implemented via browser.tabs.create :/
This will allow these to show proper token approval screens during
transaction signing.
Banned Portals: Add a skeleton for the portal Banner
A tender booyan: Tenderly test build
We've rotated the wallets used for testing of the extension and moved some of
the assets. The GH secrets got already updated accordingly, we now need to
update the addresses of wallets and change some other values used in tests, to
fit the assets that we have on the new testing wallets.
Changes include:
* switching of `e2e.testertesting.eth` wallet from
  `0x6f1b1f1feb01235e15a7962f16c389c7f8218ed6` to
  `0x9d373acbe8540895fa1752ab463ab31bbab2b38f`
* switching of `testertesting.eth` wallet from
  `0x0581470a8b62bd35dbf121a6329d43e7edd20fc7` to
  `0x6e80164ea60673d64d5d6228beb684a1274bb017`
* changing the POAP used in the NFTs tests
* changing the number of a forking block (the new testing wallet didn't have any
  assets yet on an old forking block) and switching to a different asset used in
  tests of ERC-20 transfers.
Update e2e tests after change of testing accounts
Resolves tahowallet/dapp#348
Resolves tahowallet/dapp#317

Fixing a bunch of problems with the banner and fetching balances of TAHO

### Testing

- [x] TAHO balance should be visible quickly (expect normal speed of
discovery for an ERC20 token)
- [x] banner should be visible only for accounts that have TAHO but on
all networks, regardless if Arb Sepolia was ever visited
- [x] banner should be visible for all account types - read only,
ledger, keys and mnemonics
- [x] banner should be visible for an account with TAHO then it is added
as a first account to the wallet, as another account and after user
removes and adds account again
- [x] banner should be never visible again after it is closed

## Testing Environment
```
SUPPORT_THE_ISLAND=true
SUPPORT_THE_ISLAND_ON_TENDERLY=true
```

Latest build:
[extension-builds-263](https://github.com/tahowallet/tally-extension-token/suites/17282826993/artifacts/987399863)
(as of Mon, 16 Oct 2023 16:40:05 GMT).
Without setting the network correctly, the banner may not appear
correctly as testnet Taho is not necessarily considered deployed
depending on contract address drift.
Shadowfiend and others added 14 commits October 16, 2023 22:21
… display on Tenderly fork (#264)

Feeling pretty confident about setting `ISLAND_NETWORK` based on env
variable but please correct me if I'm imagining things.

<img width="423" alt="Screenshot 2023-10-16 at 22 22 35"
src="https://github.com/tahowallet/tally-extension-token/assets/8245/3624a3dc-c8cb-4fb0-91c0-35e7c42d5737">

Also set the final dApp URL after checking in with @mr-michael .

Latest build:
[extension-builds-264](https://github.com/tahowallet/tally-extension-token/suites/17300266372/artifacts/988387326)
(as of Tue, 17 Oct 2023 02:44:20 GMT).
If user has no TAHO then let's display this banner:

![image](https://github.com/tahowallet/tally-extension-token/assets/20949277/aad801ef-c3be-49dd-851f-d1de102c42d4)

## Testing Environment
```
SUPPORT_THE_ISLAND=true
SUPPORT_THE_ISLAND_ON_TENDERLY=true
```

Latest build:
[extension-builds-265](https://github.com/tahowallet/tally-extension-token/suites/17312286568/artifacts/989127738)
(as of Tue, 17 Oct 2023 10:15:45 GMT).
Reverting the change as it chain ids were not matched elsewhere and it
wasn't working.
Having Arbitrum One as a base for fork on Tenderly is not causing
problems even if wallet thinks it is working on Arb Sepolia.
Resolves tahowallet/dapp#170

Change flags to support new features

⚠️ This is already working on live version on Arb Sepolia

Latest build:
[extension-builds-270](https://github.com/tahowallet/tally-extension-token/suites/17350510366/artifacts/991469355)
(as of Wed, 18 Oct 2023 07:39:33 GMT).
@kkosiorowska kkosiorowska merged commit e54a2d3 into main Oct 18, 2023
7 checks passed
@kkosiorowska kkosiorowska deleted the testing-new-flags branch October 18, 2023 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants