Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nara/crt update #244

Merged
merged 151 commits into from
Nov 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
151 commits
Select commit Hold shift + click to select a range
c5ce6ce
feat: build orion
Mar 14, 2023
3ed5f52
feat: start generating schema
Mar 14, 2023
7dc2db6
fix: extra entities
Mar 14, 2023
c8cf703
fixup!
Mar 14, 2023
9899966
fix: continue implementing design specs
Mar 15, 2023
71e6e70
fix: review and fix foreign key relationships
Mar 15, 2023
81c9f11
fix: formatting
Mar 15, 2023
7fa24f4
fix: generation errors
Mar 15, 2023
fe083f3
fix: add comment
Mar 15, 2023
94b78fb
fix: relations
Mar 16, 2023
a102628
fix: final review
Mar 17, 2023
b451c5b
fixup!
Mar 17, 2023
a74dd25
fix: add ending blocks
Mar 19, 2023
69109dd
fix: generate type & set typegen to ipv4
Mar 20, 2023
41affff
fix: add support for event backward compatibility
Mar 21, 2023
3bbc985
feat: start adding mappings
Mar 22, 2023
3f9b18e
fix: continue with mappnigs
Mar 23, 2023
291be6b
feat: init sale
Mar 23, 2023
e959a83
feat: patronage decreased to & fixed build
Mar 23, 2023
ac9b2cd
feat: claim patronage event
Mar 24, 2023
8b1f60d
feat: tokens bought on amm
Mar 24, 2023
0d18f93
feat: tokens sold on amm
Mar 24, 2023
3767456
fix: add relation between sales and vesting schedules
Mar 24, 2023
478355c
feat: add Tokens sold on sale vente
Mar 26, 2023
134bd0c
feat: update upcoming sale
Mar 26, 2023
7c5c9ee
feat: revenue share issued
Mar 26, 2023
e51fd6b
feat: member joined whitelist
Mar 26, 2023
44a31bc
feat: amm deactivated
Mar 26, 2023
b0c4cf8
feat: burned token
Mar 26, 2023
41da611
feat: transfer policy changed to permissionless
Mar 26, 2023
9129b19
feat: sale finalized
Mar 27, 2023
80a536f
feat: finish mappings
Mar 27, 2023
9bab395
fix: review
Mar 28, 2023
b0efd67
fix: remove cascade deletions
Mar 28, 2023
ef438b3
fix: renaming & formatting
Mar 29, 2023
457a90a
fixup!
Mar 29, 2023
95f7b93
fixup!
Mar 29, 2023
abb35f9
fix: patched protobuf packages with token proto
Mar 29, 2023
408f107
feat: update metadata and add event handler scheleton
Mar 29, 2023
5d659e7
feat: token metadata
Mar 29, 2023
a373aab
feat: sale metadata
Mar 29, 2023
e77e67b
fix: review comments
Mar 30, 2023
bb7e227
fix: formatting
Mar 30, 2023
d30bbb2
fix: revenue
Mar 29, 2023
98ce112
Revert "fix: revenue"
Mar 29, 2023
3065cec
fix: token status after sale
Mar 29, 2023
d4b1c00
fix: fixmes
Mar 29, 2023
a52b794
fix: formatting
Mar 30, 2023
21675a8
fix: funds accounting during sale
Mar 30, 2023
45bc9bc
fix: amount accounting
Mar 31, 2023
7ab802b
fix: linter
Mar 31, 2023
8ce5c57
fix: review
Mar 31, 2023
d3935b2
fix: review 2
Mar 31, 2023
acff4b2
fix: review
Apr 3, 2023
b38932a
fix: linter
Apr 3, 2023
e12c91b
feat: migration for new db scheam
Apr 6, 2023
eacdd38
fix: update event versions
May 7, 2023
1d98be1
fix: patch types with crt_release types
May 8, 2023
4f5d049
fix: patch types
May 8, 2023
a6c6d72
fix: generate all events versions since mainnet
May 9, 2023
e4ec44e
fix: temp fix after event version generation
May 9, 2023
d510495
fix: event versioning
May 9, 2023
2a4b677
fix: add migration
May 9, 2023
5456332
fix: mignations
May 9, 2023
0713b03
fix: solve channel not being added
May 9, 2023
75ddac3
fix: add id to TokenChannel
May 10, 2023
48390fe
fix: non-nullable deleted field set
May 10, 2023
76dfa89
fix: format
May 16, 2023
6b61d03
feat: creator token init sale re enabling
May 16, 2023
36d94fa
feat: re enable sale init code
May 17, 2023
c506774
fix: update types
May 23, 2023
7fb7dc5
fix: amm id
May 24, 2023
8e170ae
fix: id computation for revenue share
May 25, 2023
138d814
fix: amm id computation for token
May 27, 2023
94a4e3e
fix: issuer transfer accounting
May 29, 2023
4375dd3
fix: amm tx id
May 27, 2023
623d6ee
fix: destination accounting
May 29, 2023
cccd6a0
feat: minor fix on holder transfer processing
May 30, 2023
c633728
fix: re-enable metadata
May 31, 2023
262cc04
fix: metadata parsing
May 31, 2023
2ff79bc
fix: post reword cleanup
May 31, 2023
21bf684
fix: format
May 31, 2023
296f822
fix: silence ci checks
May 31, 2023
9ce2ae0
fix: event version
May 31, 2023
a8b8a5c
fix: address PR changes
Jun 9, 2023
88bb645
fix: add hidden entities conditions
Jun 12, 2023
877da89
fix: add extra fields to token in order to keep track of ongoing status
Jun 12, 2023
fed409f
fix: build errors
Jun 12, 2023
1832940
fix: adapt mapping to new token fields
Jun 12, 2023
ed24ddd
fix: format
Jun 12, 2023
658bc4e
feat: add trailer video entity
Jun 12, 2023
1447209
fix: linter
Jun 12, 2023
2761c0b
chore: prettier
Jun 12, 2023
7daaaed
fix: from PR review
Jun 12, 2023
f0a5c04
fix: vesting schedule schema & mappings
Jun 12, 2023
dd83824
fix: burning from vesting
Jun 12, 2023
92c0374
patch: metadata-protobuf package
Jun 12, 2023
8a97fd4
patch: metadata-protobuf package
Jun 12, 2023
7a28e93
fix: generate migrations
Jun 12, 2023
863aefa
fix: purchase token on sale
Jun 12, 2023
927220e
Update schema/token.graphql
ignazio-bovo Jun 13, 2023
63aad69
Update schema/token.graphql
ignazio-bovo Jun 13, 2023
a3c1e1a
fix: address PR
Jun 13, 2023
c537c0d
fix: hidden entities
Jun 13, 2023
405f6bd
fix: migration ok
Jun 13, 2023
9dd741b
feat: add extra check for migrations
Jun 13, 2023
ef45196
fix: docker network
Jun 13, 2023
fff9242
fix: format
Jun 13, 2023
73ba94b
fix: remove unrequired constraint
Jun 13, 2023
175cb88
fix: :bug: post rebase fixes
Sep 5, 2023
bcaec69
feat: :art: add metadata processing for issue token
Sep 11, 2023
a7442d0
feat(crt-v1): :sparkles: chain metadata for v 2003
Sep 14, 2023
fad7c33
fix(crt-v1): :ambulance: comment out view element for orion playgroud
Sep 18, 2023
8d3bab0
fix(crt-v1): :art: add playground config variable to .env
Sep 18, 2023
dc981b9
Merge branch 'master' into orion-crt-v1
Sep 18, 2023
c2e38b7
feat: :white_check_mark: add tests
Sep 18, 2023
b1bbef3
fix(crt-v1): :package: packages and patches
Sep 19, 2023
c1ead08
fix(crt-v1): :white_check_mark: update entity id used and other minor…
Sep 19, 2023
ca6fe8b
fix(crt-v1): :white_check_mark: update entity id used and other minor…
Sep 19, 2023
fbdba3c
test(crt-v1): :bug: misc fixes to have tests working
Sep 21, 2023
5711c31
test(crt-v1): :bug: misc fixes to have tests working
Sep 21, 2023
7537216
fix(crt-v1): :bug: metadata and trailer video
Sep 22, 2023
1aa8f63
feat(crt-v1): :art: update types
Oct 19, 2023
f4c43be
fix(crt-v1): :sparkles: Add correct Ratio denomination (Permill)
Oct 19, 2023
2b8a271
update with master
Oct 19, 2023
24364f5
fix: :bug: metadata not being set
Oct 20, 2023
fc26cdf
fix: :bug: parameters order
Oct 23, 2023
401afbd
test: :test_tube: fixing integration tests
Oct 31, 2023
59e1ef8
test(crt-v1): :test_tube: fix integration tests
Nov 3, 2023
3375cbe
feat(crt-v1): :sparkles: last price for token and recovered field for…
Nov 3, 2023
b045029
feat: :sparkles: add resolver for dividend amount
Nov 5, 2023
89af3a4
feat(crt-v1): :sparkles: start adding channel fields for trackingtota…
Nov 5, 2023
a5ad858
feat(crt-v1): :sparkles: add utils for royalty computation
Nov 5, 2023
b86d3eb
feat(crt-v1): :sparkles: cumulative revenue on channel
Nov 5, 2023
178ebdb
feat(crt-v1): :sparkles: add resolver for transferrable amount
Nov 5, 2023
d861953
fix(crt-v1): :sparkles: add `acquiredAt` to pinpoint latest vesting s…
Nov 5, 2023
b9a7e29
Token metadata processing update
WRadoslaw Nov 6, 2023
2ff061a
Prettier
WRadoslaw Nov 6, 2023
087f8e0
Merge pull request #4 from WRadoslaw/fix/token-metadata-processing
ignazio-bovo Nov 6, 2023
6c99b3f
chore(crt-v1): :zap: dbgen
Nov 6, 2023
00e5625
fix(crt-v1): :test_tube: fix integration tests
Nov 6, 2023
6b4a806
fix(crt-v1): :bug: missing fields in token sale vesting source
Nov 6, 2023
84ceb06
test(crt-v1): :test_tube: test for transferrable balance amount
Nov 7, 2023
fe894f5
fix(crt-v1): :bug: transferrable amount
Nov 7, 2023
4b82d8a
test: :test_tube: update tests after resolver fix
Nov 7, 2023
dc55ca1
fix: :bug: error on vesting schedules array
Nov 20, 2023
8196b0b
fix: :art: CI fixes
Nov 22, 2023
4506b6c
Merge branch 'crt/improvements' into nara
Nov 22, 2023
115ff9d
docs: update gitignore
Nov 22, 2023
c4f68e4
fix: :rotating_light: prettier
Nov 22, 2023
ed3910e
build: :pushpin: chai depnedencies
Nov 22, 2023
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
7 changes: 5 additions & 2 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ DB_PASS=squid
DB_ADMIN_USER=admin
DB_ADMIN_PASS=admin
DB_PORT=23798

# Processor service host
PROCESSOR_HOST=localhost
# Processor service prometheus port
PROCESSOR_PROMETHEUS_PORT=3337
# Graphql server port
Expand Down Expand Up @@ -59,4 +60,6 @@ SENDGRID_FROM_EMAIL=gateway@example.com

# Debug settings
SQD_DEBUG=api:*
OPENAPI_PLAYGROUND=true

# playground
OPENAPI_PLAYGROUND=true
23 changes: 23 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,26 @@ jobs:
node-version: ${{matrix.node-version}}
- name: Build docker image
run: make build-docker

migrations:
name: Run migrations
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 16.x
uses: actions/setup-node@v1
with:
node-version: 16.x
- name: Prepare workspace
run: make prepare
- name: create joystream_default network
run: docker network create joystream_default
- name: Start db
run: docker-compose up -d orion_db
- name: Wait for db
run: |
while ! docker-compose exec -T orion_db pg_isready -U postgres -p 23798; do
sleep 1
done
- name: Run migrations
run: make migrate
10 changes: 9 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,15 @@
# IDE files
/.idea
src/model/generated
src/model/generated/index.ts
src/model/generated/.DS_STORE
/schema.graphql
/db/persisted
/scripts/orion-v1-migration/data
/db/export
/db/export.json*
.DS_STORE

# network tests
network-tests/graphql/generated
network-tests/node_modules
network-tests/lib
Binary file added .yarn/install-state.gz
Binary file not shown.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ process: migrate

install:
@rm -rf node_modules # clean up node_modules to avoid issues with patch-package
@rm -rf network-tests/node_modules # clean up node_modules to avoid issues with patch-package
@npm install

build:
Expand All @@ -27,6 +28,8 @@ codegen:
@npm run generate:schema || true
@npx squid-typeorm-codegen

network-tests:
@npm run generate:network-tests || true

typegen:
@npx squid-substrate-typegen typegen.json
Expand Down
4 changes: 2 additions & 2 deletions archive/.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
DB_PORT=12345
GATEWAY_PORT=8888
WS_SOURCE=wss://rpc.joystream.org:9944
EXPLORER_PORT=4444
WS_SOURCE=ws://joystream-node:9944
EXPLORER_PORT=4444
Loading
Loading