Skip to content

Commit 2cfa003

Browse files
[PLA-2272] Use indexer as source of blockchain data (#346)
1 parent a1493e9 commit 2cfa003

File tree

757 files changed

+8899
-35198
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

757 files changed

+8899
-35198
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# This file is used to define a set of default reviewers.
2-
* @v16Studios @leonardocustodio @enjinabner
2+
* @enjin/platform

.github/graphql-inspector.yaml

Lines changed: 0 additions & 9 deletions
This file was deleted.

.github/workflows/linter.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
strategy:
2020
fail-fast: true
2121
matrix:
22-
php: [8.3]
22+
php: [8.4]
2323

2424
steps:
2525
- name: Checkout code
@@ -28,7 +28,7 @@ jobs:
2828
- name: Setup PHP
2929
uses: shivammathur/setup-php@v2
3030
with:
31-
php-version: 8.3
31+
php-version: 8.4
3232
tools: composer:v2
3333
coverage: none
3434

@@ -42,4 +42,4 @@ jobs:
4242
4343
- name: Run Laravel Pint
4444
run: |
45-
./vendor/bin/pint --test
45+
./vendor/bin/pint --test

.github/workflows/run_tests.yml

Lines changed: 38 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,20 @@ name: Unit & Functional Tests
22
on:
33
push:
44
paths-ignore:
5-
- '**.md'
5+
- "**.md"
66

77
jobs:
88
test:
99
runs-on: ubuntu-latest
1010
services:
11+
pgsql:
12+
image: postgres:17
13+
env:
14+
POSTGRES_DB: postgres
15+
POSTGRES_PASSWORD: postgres
16+
ports:
17+
- 5432:5432
18+
1119
mysql:
1220
image: mysql:8
1321
env:
@@ -16,19 +24,46 @@ jobs:
1624
ports:
1725
- 33306:3306
1826
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
27+
1928
redis:
2029
image: redis:7
2130
ports:
2231
- 6379:6379
2332
options: --entrypoint redis-server
33+
2434
strategy:
2535
fail-fast: true
2636
matrix:
27-
php: [8.3]
37+
php: [8.4]
2838

2939
name: PHP ${{ matrix.php }}
3040

3141
steps:
42+
- name: Checkout Indexer
43+
uses: actions/checkout@v4
44+
with:
45+
repository: enjin/indexer
46+
47+
- name: Install pnpm
48+
uses: pnpm/action-setup@v4
49+
with:
50+
version: latest
51+
run_install: false
52+
53+
- name: Install Node 22.x
54+
uses: actions/setup-node@v4
55+
with:
56+
node-version: "22.x"
57+
cache: "pnpm"
58+
59+
- name: Install packages
60+
run: pnpm install
61+
62+
- name: Run indexer migration
63+
run: |
64+
pnpm run build
65+
pnpm run db:migrate
66+
3267
- name: Checkout code
3368
uses: actions/checkout@v4
3469

@@ -41,11 +76,6 @@ jobs:
4176
env:
4277
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4378

44-
- name: Setup GO
45-
uses: actions/setup-go@v5
46-
with:
47-
go-version: "^1.21"
48-
4979
- name: Setup problem matchers
5080
run: |
5181
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
@@ -54,8 +84,7 @@ jobs:
5484
- name: Install dependencies
5585
run: |
5686
composer install --no-interaction --no-progress
57-
composer build-sr25519
58-
composer dump-autoload
87+
composer dump-autoload
5988
6089
- name: Execute tests
6190
run: |
@@ -64,11 +93,3 @@ jobs:
6493
DB_HOST: 127.0.0.1
6594
DB_PORT: ${{ job.services.mysql.ports[3306] }}
6695
DB_DATABASE: platform
67-
68-
- name: Upload coverage to Codecov
69-
uses: codecov/codecov-action@v5
70-
with:
71-
dry_run: github.event.pull_request.draft == true
72-
token: ${{ secrets.CODECOV_TOKEN }}
73-
files: coverage.xml
74-
verbose: true

.github/workflows/security_checker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Setup PHP
1919
uses: shivammathur/setup-php@v2
2020
with:
21-
php-version: 8.3
21+
php-version: 8.4
2222
tools: composer:v2
2323
coverage: none
2424

.husky/pre-commit

Lines changed: 0 additions & 4 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,14 @@
33
The core package for the Enjin Platform.
44

55
[![License: LGPL 3.0](https://img.shields.io/badge/license-LGPL_3.0-purple)](https://opensource.org/license/lgpl-3-0/)
6-
[![codecov](https://codecov.io/gh/enjin/platform-core/branch/master/graph/badge.svg)](https://codecov.io/gh/enjin/platform-core)
76
[![Tests](https://github.com/enjin/platform-core/workflows/Run%20Tests/badge.svg)](https://github.com/enjin/platform-core/actions?query=workflow%3ARun%20Tests)
87

98

109
Enjin Platform is the most powerful and advanced open-source framework for building NFT Platforms.
1110

1211
## Requirements
1312

14-
Please make sure you have Go installed on your machine. You can check it by typing:
15-
```bash
16-
go version
17-
# go version go1.18.1 linux/amd64
18-
```
19-
20-
If you don't have it, you can find instructions on how to install it [here](https://go.dev/learn/).
21-
22-
Also when using [Platform-UI](https://github.com/enjin/platform-ui) make sure you have Node and NPM installed:
13+
When using [Platform-UI](https://github.com/enjin/platform-ui) make sure you have Node and NPM installed:
2314
```bash
2415
node -v
2516
# v16.17.0
@@ -35,12 +26,6 @@ You can install it with Composer in your Laravel application:
3526
composer require enjin/platform-core
3627
```
3728

38-
After that, you will need to build one dependency by typing:
39-
40-
```bash
41-
cd vendor/gmajor/sr25519-bindings/go && go build -buildmode=c-shared -o sr25519.so . && mv sr25519.so ../src/Crypto/sr25519.so
42-
```
43-
4429
This package will load its migrations automatically, you need to execute them by running:
4530

4631
```bash
@@ -53,7 +38,6 @@ You can publish the config file with:
5338
php artisan vendor:publish --tag="platform-core-config"
5439
```
5540

56-
5741
## Usage
5842

5943
First, you should sync your platform with a snapshot of Enjin state:

codecov.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)