Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
klkgraph
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
klkgraph
Commits
91386f8b
Commit
91386f8b
authored
Feb 20, 2025
by
vicotor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
20089216
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
5 deletions
+7
-5
create.sh
create.sh
+2
-1
docker-compose.yml
docker-compose.yml
+2
-2
schema.ts
generated/schema.ts
+3
-0
start.sh
start.sh
+0
-2
No files found.
create.sh
View file @
91386f8b
#!/bin/bash
#!/bin/bash
graph create klk-mint-bsc
--node
http://127.0.0.1:30020
graph create klk-mint-bsc
--node
http://127.0.0.1:20020
graph deploy klk-mint-bsc
--node
http://127.0.0.1:20020
--ipfs
http://127.0.0.1:25001
docker-compose.yml
View file @
91386f8b
version
:
'
3'
version
:
'
3'
services
:
services
:
graph-node
:
graph-node
:
#
image: graphprotocol/graph-node
image
:
graphprotocol/graph-node
image
:
graph-node:latest
#
image: graph-node:latest
ports
:
ports
:
-
'
20000:8000'
-
'
20000:8000'
-
'
20001:8001'
-
'
20001:8001'
...
...
generated/schema.ts
View file @
91386f8b
...
@@ -9,6 +9,7 @@ import {
...
@@ -9,6 +9,7 @@ import {
Bytes
,
Bytes
,
BigInt
,
BigInt
,
BigDecimal
,
BigDecimal
,
log
,
}
from
"
@graphprotocol/graph-ts
"
;
}
from
"
@graphprotocol/graph-ts
"
;
export
class
Transfer
extends
Entity
{
export
class
Transfer
extends
Entity
{
...
@@ -21,6 +22,7 @@ export class Transfer extends Entity {
...
@@ -21,6 +22,7 @@ export class Transfer extends Entity {
let
id
=
this
.
get
(
"
id
"
);
let
id
=
this
.
get
(
"
id
"
);
assert
(
id
!=
null
,
"
Cannot save Transfer entity without an ID
"
);
assert
(
id
!=
null
,
"
Cannot save Transfer entity without an ID
"
);
if
(
id
)
{
if
(
id
)
{
log
.
info
(
"
Save Transfer id: {}
"
,
[
id
.
toBytes
().
toHexString
()])
assert
(
assert
(
id
.
kind
==
ValueKind
.
BYTES
,
id
.
kind
==
ValueKind
.
BYTES
,
`Entities of type Transfer must have an ID of type Bytes but the id '
${
id
.
displayData
()}
' is of type
${
id
.
displayKind
()}
`
,
`Entities of type Transfer must have an ID of type Bytes but the id '
${
id
.
displayData
()}
' is of type
${
id
.
displayKind
()}
`
,
...
@@ -384,6 +386,7 @@ export class Minted extends Entity {
...
@@ -384,6 +386,7 @@ export class Minted extends Entity {
let
id
=
this
.
get
(
"
id
"
);
let
id
=
this
.
get
(
"
id
"
);
assert
(
id
!=
null
,
"
Cannot save Minted entity without an ID
"
);
assert
(
id
!=
null
,
"
Cannot save Minted entity without an ID
"
);
if
(
id
)
{
if
(
id
)
{
log
.
info
(
"
Save Minted id: {}
"
,
[
id
.
toBytes
().
toHexString
()])
assert
(
assert
(
id
.
kind
==
ValueKind
.
BYTES
,
id
.
kind
==
ValueKind
.
BYTES
,
`Entities of type Minted must have an ID of type Bytes but the id '
${
id
.
displayData
()}
' is of type
${
id
.
displayKind
()}
`
,
`Entities of type Minted must have an ID of type Bytes but the id '
${
id
.
displayData
()}
' is of type
${
id
.
displayKind
()}
`
,
...
...
start.sh
deleted
100755 → 0
View file @
20089216
#!/bin/bash
graph deploy klk-mint-bsc
--node
http://172.17.0.1:30020
--ipfs
http://172.17.0.1:35001
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment