Skip to content

Commit

Permalink
watch accounts width
Browse files Browse the repository at this point in the history
  • Loading branch information
Tbaut committed Dec 5, 2024
1 parent d964e58 commit e7bc386
Show file tree
Hide file tree
Showing 63 changed files with 778 additions and 485,979 deletions.
5 changes: 4 additions & 1 deletion packages/ui/src/components/select/AccountSelection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,10 @@ const AccountSelection = ({
)

return (
<Grid container>
<Grid
container
width={'100%'}
>
{!!errorMessage && (
<Grid
size={12}
Expand Down
2 changes: 1 addition & 1 deletion squid/assets/envs/.env.westend
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
BLOCK_START=18000000
BLOCK_START=23544570
PREFIX=42
RPC_WS="wss://westend-rpc.polkadot.io"
CHAIN_ID='westend'
1,478 changes: 742 additions & 736 deletions squid/package-lock.json

Large diffs are not rendered by default.

32 changes: 16 additions & 16 deletions squid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,28 +21,28 @@
"format": " npx prettier --write ."
},
"dependencies": {
"@polkadot/util-crypto": "^12.6.2",
"@subsquid/archive-registry": "^3.3.0",
"@subsquid/graphql-server": "^4.5.1",
"@polkadot/util-crypto": "^13.2.3",
"@subsquid/archive-registry": "^3.3.2",
"@subsquid/graphql-server": "^4.9.0",
"@subsquid/ss58": "^2.0.2",
"@subsquid/substrate-processor": "^8.2.2",
"@subsquid/substrate-processor": "^8.5.2",
"@subsquid/typeorm-migration": "^1.3.0",
"@subsquid/typeorm-store": "^1.3.0",
"dotenv": "^16.4.5",
"pg": "8.11.3",
"@subsquid/typeorm-store": "^1.5.1",
"dotenv": "^16.4.7",
"pg": "8.13.1",
"typeorm": "0.3.20",
"typescript": "5.4.3"
"typescript": "5.7.2"
},
"devDependencies": {
"@subsquid/substrate-metadata-explorer": "^3.1.2",
"@subsquid/substrate-typegen": "^8.0.2",
"@subsquid/typeorm-codegen": "^1.3.3",
"@types/node": "20.11.30",
"@typescript-eslint/eslint-plugin": "^7.4.0",
"@typescript-eslint/parser": "^7.4.0",
"@subsquid/substrate-metadata-explorer": "^3.2.0",
"@subsquid/substrate-typegen": "^8.1.0",
"@subsquid/typeorm-codegen": "^2.0.2",
"@types/node": "22.10.1",
"@typescript-eslint/eslint-plugin": "^8.17.0",
"@typescript-eslint/parser": "^8.17.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"prettier": "3.2.5"
"eslint-plugin-prettier": "^5.2.1",
"prettier": "3.4.2"
}
}
10 changes: 5 additions & 5 deletions squid/src/model/generated/account.model.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Entity as Entity_, Column as Column_, PrimaryColumn as PrimaryColumn_, OneToMany as OneToMany_} from "typeorm"
import {Entity as Entity_, Column as Column_, PrimaryColumn as PrimaryColumn_, StringColumn as StringColumn_, OneToMany as OneToMany_, BooleanColumn as BooleanColumn_, IntColumn as IntColumn_} from "@subsquid/typeorm-store"
import {AccountMultisig} from "./accountMultisig.model"
import {ProxyAccount} from "./proxyAccount.model"
import {MultisigCall} from "./multisigCall.model"
Expand All @@ -12,13 +12,13 @@ export class Account {
@PrimaryColumn_()
id!: string

@Column_("text", {nullable: false})
@StringColumn_({nullable: false})
address!: string

@OneToMany_(() => AccountMultisig, e => e.signatory)
multisigs!: AccountMultisig[]

@Column_("bool", {nullable: true})
@BooleanColumn_({nullable: true})
isPureProxy!: boolean | undefined | null

@OneToMany_(() => ProxyAccount, e => e.delegator)
Expand All @@ -27,13 +27,13 @@ export class Account {
@OneToMany_(() => ProxyAccount, e => e.delegatee)
delegateeFor!: ProxyAccount[]

@Column_("bool", {nullable: true})
@BooleanColumn_({nullable: true})
isMultisig!: boolean | undefined | null

@OneToMany_(() => AccountMultisig, e => e.multisig)
signatories!: AccountMultisig[]

@Column_("int4", {nullable: true})
@IntColumn_({nullable: true})
threshold!: number | undefined | null

@OneToMany_(() => MultisigCall, e => e.multisig)
Expand Down
2 changes: 1 addition & 1 deletion squid/src/model/generated/accountMultisig.model.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Entity as Entity_, Column as Column_, PrimaryColumn as PrimaryColumn_, ManyToOne as ManyToOne_, Index as Index_} from "typeorm"
import {Entity as Entity_, Column as Column_, PrimaryColumn as PrimaryColumn_, ManyToOne as ManyToOne_, Index as Index_} from "@subsquid/typeorm-store"
import {Account} from "./account.model"

@Entity_()
Expand Down
30 changes: 0 additions & 30 deletions squid/src/model/generated/marshal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,36 +127,6 @@ export function nonNull<T>(val: T | undefined | null): T {
}


export const bigintTransformer = {
to(x?: bigint) {
return x?.toString()
},
from(s?: string): bigint | undefined {
return s == null ? undefined : BigInt(s)
}
}


export const floatTransformer = {
to(x?: number) {
return x?.toString()
},
from(s?: string): number | undefined {
return s == null ? undefined : Number(s)
}
}


export const bigdecimalTransformer = {
to(x?: any) {
return x?.toString()
},
from(s?: any): any | undefined {
return s == null ? undefined : decimal.BigDecimal(s)
}
}


export function enumFromJson<E extends object>(json: unknown, enumObject: E): E[keyof E] {
assert(typeof json == 'string', 'invalid enum value')
let val = (enumObject as any)[json]
Expand Down
8 changes: 4 additions & 4 deletions squid/src/model/generated/multisigCall.model.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Entity as Entity_, Column as Column_, PrimaryColumn as PrimaryColumn_, ManyToOne as ManyToOne_, Index as Index_} from "typeorm"
import {Entity as Entity_, Column as Column_, PrimaryColumn as PrimaryColumn_, StringColumn as StringColumn_, DateTimeColumn as DateTimeColumn_, ManyToOne as ManyToOne_, Index as Index_, IntColumn as IntColumn_} from "@subsquid/typeorm-store"
import {Account} from "./account.model"

@Entity_()
Expand All @@ -10,16 +10,16 @@ export class MultisigCall {
@PrimaryColumn_()
id!: string

@Column_("text", {nullable: false})
@StringColumn_({nullable: false})
blockHash!: string

@Column_("timestamp with time zone", {nullable: false})
@DateTimeColumn_({nullable: false})
timestamp!: Date

@Index_()
@ManyToOne_(() => Account, {nullable: true})
multisig!: Account | undefined | null

@Column_("int4", {nullable: false})
@IntColumn_({nullable: false})
callIndex!: number
}
10 changes: 5 additions & 5 deletions squid/src/model/generated/proxyAccount.model.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Entity as Entity_, Column as Column_, PrimaryColumn as PrimaryColumn_, ManyToOne as ManyToOne_, Index as Index_} from "typeorm"
import {Entity as Entity_, Column as Column_, PrimaryColumn as PrimaryColumn_, ManyToOne as ManyToOne_, Index as Index_, IntColumn as IntColumn_, DateTimeColumn as DateTimeColumn_} from "@subsquid/typeorm-store"
import {Account} from "./account.model"
import {ProxyType} from "./_proxyType"

Expand All @@ -22,15 +22,15 @@ export class ProxyAccount {
@Column_("varchar", {length: 17, nullable: false})
type!: ProxyType

@Column_("int4", {nullable: false})
@IntColumn_({nullable: false})
delay!: number

@Column_("timestamp with time zone", {nullable: false})
@DateTimeColumn_({nullable: false})
createdAt!: Date

@Column_("int4", {nullable: true})
@IntColumn_({nullable: true})
extrinsicIndex!: number | undefined | null

@Column_("int4", {nullable: true})
@IntColumn_({nullable: true})
creationBlockNumber!: number | undefined | null
}
2 changes: 0 additions & 2 deletions squid/src/types/calls.ts

This file was deleted.

1 change: 0 additions & 1 deletion squid/src/types/events.ts

This file was deleted.

49 changes: 0 additions & 49 deletions squid/src/types/index.ts

This file was deleted.

Loading

0 comments on commit e7bc386

Please sign in to comment.