Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 50 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
"@types/mocha": "^10.0.1",
"@types/node": "^18.16.1",
"@types/node-fetch": "^2.6.11",
"@types/react": "^18.1.0",
"@types/ungap__structured-clone": "^1.2.0",
"@types/validator": "^13.7.0",
"@typescript-eslint/eslint-plugin": "5.5.0",
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/transaction/transactionManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class TransactionManagerController extends EventEmitter {
private registerControllerUpdates(): void {
this.#controllers.forEach((controller) => {
controller.onUpdate(async () => {
if (controller.toJSON().name === 'TransactionFormState') {
if ((controller.toJSON() as unknown as Record<string, unknown>).name === 'TransactionFormState') {
try {
await this.handleFormUpdate()
} catch (error: any) {
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/messenger.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export type CallbackOptions = {
/** The sender of the message. */
sender: chrome.runtime.MessageSender
sender: unknown /* chrome.runtime.MessageSender */
/** The topic provided. */
topic: string
/** An optional scoped identifier. */
Expand Down
4 changes: 4 additions & 0 deletions src/services/bundlers/etherspot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ import { Bundler } from './bundler'
import { GasSpeeds, UserOpStatus } from './types'

export class Etherspot extends Bundler {
public shouldReestimateBeforeBroadcast(network: Network): boolean {
throw new Error('Method not implemented.')
}

protected getUrl(network: Network): string {
return `https://rpc.etherspot.io/v2/${network.chainId.toString()}?api-key=${
process.env.REACT_APP_ETHERSPOT_API_KEY
Expand Down
3 changes: 3 additions & 0 deletions v1/services/dappCatalog/dappCatalogUtils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import { fetchCaught } from '../fetch'
import { AmbireDappManifest, SupportedWeb3Connectivity } from './types'

type NetworkId = number

export const chainIdToWalletNetworkId = (chainId: number): NetworkId | null => {
throw new Error('Not implemented')
// TODO: v2
// return networks.find((n) => n.chainId === chainId)?.id || null
}
Expand Down
Loading