Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
duniter-squid
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nodes
duniter-squid
Commits
5eaf77b1
Commit
5eaf77b1
authored
1 year ago
by
Hugo Trentesaux
Browse files
Options
Downloads
Patches
Plain Diff
fix wrong tx direction (oups)
parent
fff5f698
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
schema.graphql
+2
-2
2 additions, 2 deletions
schema.graphql
src/main.ts
+3
-3
3 additions, 3 deletions
src/main.ts
src/model/generated/account.model.ts
+2
-2
2 additions, 2 deletions
src/model/generated/account.model.ts
with
7 additions
and
7 deletions
schema.graphql
+
2
−
2
View file @
5eaf77b1
...
@@ -117,8 +117,8 @@ type ItemsCounter @entity {
...
@@ -117,8 +117,8 @@ type ItemsCounter @entity {
type
Account
@
entity
{
type
Account
@
entity
{
"
Account
address
is
SS58
format
"
"
Account
address
is
SS58
format
"
id
:
ID
!
id
:
ID
!
transfersIssued
:
[
Transfer
!]
@
derivedFrom
(
field
:
"
to
"
)
transfersIssued
:
[
Transfer
!]
@
derivedFrom
(
field
:
"
from
"
)
transfersReceived
:
[
Transfer
!]
@
derivedFrom
(
field
:
"
from
"
)
transfersReceived
:
[
Transfer
!]
@
derivedFrom
(
field
:
"
to
"
)
identity
:
Identity
@
derivedFrom
(
field
:
"
account
"
)
identity
:
Identity
@
derivedFrom
(
field
:
"
account
"
)
}
}
...
...
This diff is collapsed.
Click to expand it.
src/main.ts
+
3
−
3
View file @
5eaf77b1
...
@@ -24,15 +24,15 @@ processor.run(new TypeormDatabaseWithCache(), async (ctx) => {
...
@@ -24,15 +24,15 @@ processor.run(new TypeormDatabaseWithCache(), async (ctx) => {
if
(
header
.
height
==
0
)
{
if
(
header
.
height
==
0
)
{
await
saveGenesis
(
ctx
);
await
saveGenesis
(
ctx
);
}
}
// save all extrinsics of the block
(except Timestamp.Set when no UD)
// save all extrinsics of the block
for
(
const
extrinsic
of
extrinsics
)
{
for
(
const
extrinsic
of
extrinsics
)
{
await
saveExtrinsic
(
ctx
,
extrinsic
);
await
saveExtrinsic
(
ctx
,
extrinsic
);
}
}
// save all calls of the block
(except Timestamp.Set when no UD)
// save all calls of the block
for
(
const
call
of
calls
.
reverse
())
{
for
(
const
call
of
calls
.
reverse
())
{
await
saveCall
(
ctx
,
call
);
await
saveCall
(
ctx
,
call
);
}
}
// save all events of the block
(except System.ExtrinsicSuccess of Timestamp.Set)
// save all events of the block
for
(
const
event
of
events
)
{
for
(
const
event
of
events
)
{
await
saveEvent
(
ctx
,
event
);
await
saveEvent
(
ctx
,
event
);
}
}
...
...
This diff is collapsed.
Click to expand it.
src/model/generated/account.model.ts
+
2
−
2
View file @
5eaf77b1
...
@@ -14,10 +14,10 @@ export class Account {
...
@@ -14,10 +14,10 @@ export class Account {
@
PrimaryColumn_
()
@
PrimaryColumn_
()
id
!
:
string
id
!
:
string
@
OneToMany_
(()
=>
Transfer
,
e
=>
e
.
to
)
@
OneToMany_
(()
=>
Transfer
,
e
=>
e
.
from
)
transfersIssued
!
:
Transfer
[]
transfersIssued
!
:
Transfer
[]
@
OneToMany_
(()
=>
Transfer
,
e
=>
e
.
from
)
@
OneToMany_
(()
=>
Transfer
,
e
=>
e
.
to
)
transfersReceived
!
:
Transfer
[]
transfersReceived
!
:
Transfer
[]
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment