Skip to content
Merged
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
3 changes: 2 additions & 1 deletion codegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import type { CodegenConfig } from '@graphql-codegen/cli';

const config: CodegenConfig = {
schema:
process.env.CODEGEN_SCHEMA_URL || 'https://subsquid.quantus.com/graphql',
process.env.CODEGEN_SCHEMA_URL ||
'https://subsquid.quantus.com/green/graphql',
documents: ['src/**/*.{ts,tsx}'],
generates: {
'./src/__generated__/': {
Expand Down
146 changes: 1 addition & 145 deletions src/__generated__/gql.ts

Large diffs are not rendered by default.

8,314 changes: 2,059 additions & 6,255 deletions src/__generated__/graphql.ts

Large diffs are not rendered by default.

89 changes: 85 additions & 4 deletions src/api/accounts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,17 +88,19 @@ export const accounts = {

totalCount
}
reversibleTransactions: reversibleTransfersConnection(
scheduledReversibleTransactions: scheduledReversibleTransfersConnection(
orderBy: timestamp_DESC
first: $limit
where: { from: { id_eq: $id }, OR: { to: { id_eq: $id } } }
) {
edges {
node {
extrinsicHash
timestamp
status
amount
timestamp
scheduledAt
txId
fee
block {
height
}
Expand All @@ -110,7 +112,86 @@ export const accounts = {
}
}
}

totalCount
}
executedReversibleTransactions: executedReversibleTransfersConnection(
orderBy: timestamp_DESC
first: $limit
where: {
scheduledTransfer: {
from: { id_eq: $id }
OR: { to: { id_eq: $id } }
}
}
) {
edges {
node {
timestamp
txId
block {
height
}
scheduledTransfer {
extrinsicHash
amount
timestamp
scheduledAt
txId
fee
block {
height
}
from {
id
}
to {
id
}
}
}
}
totalCount
}
cancelledReversibleTransactions: cancelledReversibleTransfersConnection(
orderBy: timestamp_DESC
first: $limit
where: {
scheduledTransfer: {
from: { id_eq: $id }
OR: { to: { id_eq: $id } }
}
OR: { cancelledBy: { id_eq: $id } }
}
) {
edges {
node {
timestamp
txId
block {
height
}
cancelledBy {
id
}
scheduledTransfer {
extrinsicHash
amount
timestamp
scheduledAt
txId
fee
block {
height
}
from {
id
}
to {
id
}
}
}
}
totalCount
}
minerRewards: minerRewardsConnection(
Expand Down
84 changes: 80 additions & 4 deletions src/api/blocks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export const blocks = {

totalCount
}
reversibleTransactions: reversibleTransfersConnection(
scheduledReversibleTransactions: scheduledReversibleTransfersConnection(
orderBy: timestamp_DESC
first: $limit
where: {
Expand All @@ -150,9 +150,11 @@ export const blocks = {
edges {
node {
extrinsicHash
timestamp
status
amount
timestamp
scheduledAt
txId
fee
block {
height
}
Expand All @@ -164,7 +166,81 @@ export const blocks = {
}
}
}

totalCount
}
executedReversibleTransactions: executedReversibleTransfersConnection(
orderBy: timestamp_DESC
first: $limit
where: {
block: { height_eq: $height }
OR: { block: { hash_eq: $hash } }
}
) {
edges {
node {
timestamp
txId
block {
height
}
scheduledTransfer {
extrinsicHash
amount
timestamp
scheduledAt
txId
fee
block {
height
}
from {
id
}
to {
id
}
}
}
}
totalCount
}
cancelledReversibleTransactions: cancelledReversibleTransfersConnection(
orderBy: timestamp_DESC
first: $limit
where: {
block: { height_eq: $height }
OR: { block: { hash_eq: $hash } }
}
) {
edges {
node {
timestamp
txId
block {
height
}
cancelledBy {
id
}
scheduledTransfer {
extrinsicHash
amount
timestamp
scheduledAt
txId
fee
block {
height
}
from {
id
}
to {
id
}
}
}
}
totalCount
}
highSecuritySets: highSecuritySetsConnection(
Expand Down
Loading
Loading