Skip to content

Commit

Permalink
latest deps
Browse files Browse the repository at this point in the history
  • Loading branch information
wighawag committed Jan 17, 2024
1 parent 3aa39b4 commit f04e323
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 35 deletions.
2 changes: 1 addition & 1 deletion common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"devDependencies": {
"ldenv": "^0.3.9",
"prettier": "^3.2.2",
"prettier": "^3.2.3",
"tsup": "^8.0.1",
"typescript": "^5.3.3"
},
Expand Down
2 changes: 1 addition & 1 deletion contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"hardhat-rocketh": "^1.0.4",
"jolly-roger-common": "workspace:*",
"ldenv": "^0.3.9",
"prettier": "^3.2.2",
"prettier": "^3.2.3",
"prettier-plugin-solidity": "^1.3.1",
"rocketh": "^0.7.4",
"rocketh-deploy": "^1.0.5",
Expand Down
2 changes: 1 addition & 1 deletion indexer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"ethereum-indexer-cli": "^0.6.24",
"ethereum-indexer-server": "^0.6.27",
"ldenv": "^0.3.9",
"prettier": "^3.2.2",
"prettier": "^3.2.3",
"tsup": "^8.0.1",
"typescript": "^5.3.3",
"wait-on": "^7.2.0"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"devDependencies": {
"ask-env": "^0.0.1",
"ldenv": "^0.3.9",
"prettier": "^3.2.2",
"prettier": "^3.2.3",
"syncpack": "^12.3.0",
"vitepress": "1.0.0-rc.39"
},
Expand Down
44 changes: 24 additions & 20 deletions pnpm-lock.yaml

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

4 changes: 2 additions & 2 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"ipfs-gateway-emulator": "4.2.1-ipfs.2",
"postcss": "^8.4.33",
"postcss-load-config": "^5.0.2",
"prettier": "^3.2.2",
"prettier": "^3.2.3",
"prettier-plugin-svelte": "^3.1.2",
"pwag": "0.2.0",
"svelte": "^4.2.8",
Expand All @@ -41,7 +41,7 @@
"lodash-es": "^4.17.21",
"lz-string": "^1.5.0",
"named-logs": "^0.2.2",
"radiate": "^0.0.1",
"radiate": "^0.0.2",
"theme-change": "^2.5.0",
"viem": "^2.1.1",
"web3-connection": "^0.1.12",
Expand Down
1 change: 0 additions & 1 deletion web/src/lib/account/account-db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,6 @@ export class AccountDB<T extends Record<string, unknown>> implements Readable<Sy
throw new Error(`no sync URI`);
}
return fetch(this.syncURI, {
// TODO env variable
method: 'POST',
body: JSON.stringify({
method,
Expand Down
9 changes: 1 addition & 8 deletions web/src/lib/account/base.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type {PendingTransaction, EIP1193TransactionWithMetadata, PendingTransactionState} from 'ethereum-tx-observer';
import type {AccountHandler, AccountInfo, OnPendingTransaction, SyncInfo} from './types';
import {initEmitter} from 'radiate';
import {initEmitter, type Emitter} from 'radiate';
import {AccountDB} from './account-db';
import {writable, type Readable, type Writable} from 'svelte/store';

Expand All @@ -9,13 +9,6 @@ export type OnChainAction<T> = {
} & PendingTransactionState;
export type OnChainActions<T> = {[hash: `0x${string}`]: OnChainAction<T>};

// TODO export this type in radiate
type Emitter<T> = {
on: (func: (v: T) => void) => () => void;
off: (func: (v: T) => void) => void;
emit(v: T): void;
};

export abstract class BaseAccountHandler<
T extends {onchainActions: OnChainActions<Metadata>},
Metadata extends Record<string, unknown>,
Expand Down

0 comments on commit f04e323

Please sign in to comment.