-
Notifications
You must be signed in to change notification settings - Fork 43
Add Bridgeless #402
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
Add Bridgeless #402
Conversation
AGENTS.md
Outdated
|
|
||
| - **TypeScript**: Strict mode enabled, target ES2015, module ES2020 | ||
| - **Imports**: Use simple-import-sort, group by external/internal/relative | ||
| - **Formatting**: Prettier via eslint-config-standard-kit, 2-space indent, semicolons |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Prettier and Standard.js" might prompt better, and we don't use semicolons.
AGENTS.md
Outdated
| ## Code Style Guidelines | ||
|
|
||
| - **TypeScript**: Strict mode enabled, target ES2015, module ES2020 | ||
| - **Imports**: Use simple-import-sort, group by external/internal/relative |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"group by external, then internal" is more correct.
AGENTS.md
Outdated
|
|
||
| ## Build/Test/Lint Commands | ||
|
|
||
| - **Test**: `npm test` (single test: `mocha test/path/to/file.test.ts`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(single test: npm test test/path/to/file.test.ts)
src/util/swapHelpers.ts
Outdated
| for (const id of Object.keys(customFeeCacheMap)) { | ||
| if (Date.now() > customFeeCacheMap[id].timestamp + 30000) { | ||
| delete customFeeCacheMap[id] // eslint-disable-line | ||
| delete customFeeCacheMap[id]; // eslint-disable-line |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How did this pass lint?
src/util/swapHelpers.ts
Outdated
| makeTxParams.unsignedTx, | ||
| makeTxParams.metadata |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems wrong. The makeTx function takes MakeTxParams, which has a type field inside it. These two arguments shouldn't be broken out like this, but makeTxParams should be passed as-is.
| if (contractAddress === '0x0000000000000000000000000000000000000000') { | ||
| return null | ||
| } else { | ||
| const fakeToken: EdgeToken = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Pack the contractAddress into a dummy EdgeToken:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bridgeless seems fine on its own, and all of the changes are in Sam's initial commits. If you just cherry-pick the last commit, that would be acceptable. Otherwise it's "changes needed"
d3fe0b4 to
2668d08
Compare
2668d08 to
90ae4ad
Compare
CHANGELOG
Does this branch warrant an entry to the CHANGELOG?
Dependencies
EdgeApp/edge-currency-accountbased#975
EdgeApp/edge-currency-plugins#439
Description
none