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

The Rise of the Hubblenet #61

Draft
wants to merge 191 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
191 commits
Select commit Hold shift + click to select a range
dd5f4e0
Order book (#1)
0xshinobii Nov 23, 2022
83beb4a
sync upstream v0.4.4 - v0.4.5
atvanguard Sep 30, 2023
b87aa3e
Place orders at block build time (#2)
lumos42 Dec 9, 2022
80d7895
Orderbook as Genesis (#3)
atvanguard Dec 9, 2022
04bc1ae
Fixes after merge
lumos42 Dec 9, 2022
fbb788e
Fix executeOrder tx gas prices
lumos42 Dec 9, 2022
06fe04e
Sync local db when a new node is added (#4)
lumos42 Dec 14, 2022
1a3ffac
sync upstream v0.4.6
atvanguard Sep 30, 2023
ece2444
sync upstream v0.4.7
atvanguard Sep 30, 2023
739fcc7
Add Match limit orders with same price and base asset quantity (#5)
vipulsharma21 Dec 27, 2022
cfb42eb
unsubscribe from chainAcceptedEvent feed on shutdown
vipulsharma21 Dec 29, 2022
4903895
refactor limit_order to move out limit_order_txs logic and initialize…
vipulsharma21 Dec 30, 2022
48254f0
asquare|deven|fdgod add check if orderbook contract tx in listenAndSt…
vipulsharma21 Jan 4, 2023
a2d2303
sync upstream v0.4.8
atvanguard Sep 30, 2023
0c72765
Partial fills (#10)
vipulsharma21 Jan 14, 2023
a2157f0
change price check in matching engine to match if longOrder price >= …
vipulsharma21 Jan 19, 2023
a2f9e89
add genesis contracts + mocked orderBook (#14)
atvanguard Jan 20, 2023
ac1b9cc
Handle events + liquidations + funding (#11)
atvanguard Jan 25, 2023
a93a907
Add artifacts
lumos42 Jan 26, 2023
4a2e43a
Merge pull request #15 from hubble-exchange/orderbook_data_api
vipulsharma21 Jan 30, 2023
143127b
sync upstream @ 76e3fe2
atvanguard Sep 30, 2023
c295953
remove artifacts
atvanguard Jan 31, 2023
04694a5
Bump versions in run_local
lumos42 Feb 1, 2023
3270527
add tests and refactor code (#16)
vipulsharma21 Feb 8, 2023
e174d79
testing fixes
lumos42 Feb 9, 2023
85960d2
Fix errors after merge
lumos42 Feb 12, 2023
465a550
Add GetOrderBook API for UI data
lumos42 Feb 12, 2023
4a3c285
Fix lastPrice
lumos42 Feb 13, 2023
d87c742
Use env variable for artifacts path
lumos42 Feb 13, 2023
e676ef1
assing new int to FilledBaseQuantity
vipulsharma21 Feb 15, 2023
7cb30ee
Merge pull request #17 from hubble-exchange/add_unit_tests
vipulsharma21 Feb 17, 2023
fdfe6a1
small changes in build_block_pipeline
vipulsharma21 Feb 17, 2023
4ca51ea
Add GetOpenOrders API
lumos42 Feb 17, 2023
311b2ed
Add fields in GetOpenOrders API
lumos42 Feb 17, 2023
5546f3a
Change struct for OpenOrdersResponse
lumos42 Feb 17, 2023
e194af7
sync upstream v0.4.9 (22d56f10)
atvanguard Sep 30, 2023
a1811d8
Add a hacky way to notify consensus engine to buildBlock after order …
lumos42 Feb 20, 2023
e61e8e6
Add salt in getOpenOrders response
lumos42 Feb 23, 2023
498009d
sync upstream v0.4.10 (1d7b284e)
atvanguard Sep 30, 2023
0f4af5a
sync upstream v0.4.11 (ed0f30ab)
atvanguard Sep 30, 2023
7b86784
Fix funding payment error
lumos42 Mar 5, 2023
7d3f7f5
Use order id instead of signature in OrderMap
lumos42 Mar 5, 2023
eaf3947
Convert amounts to string in orderbook APIs
lumos42 Mar 6, 2023
619e60a
Add path prefix in events processor
lumos42 Mar 6, 2023
c2ffe69
Add logs in ListenAndProcessTransactions
lumos42 Mar 9, 2023
5a755b6
Fix block sync logic in ListenAndProcessTransactions
lumos42 Mar 9, 2023
003724e
sync upstream v0.4.12 (8a28b234)
atvanguard Sep 30, 2023
d10640d
fix tests and some refactoring (#20)
vipulsharma21 Mar 10, 2023
9444540
add genesis contract interfaces (#19)
atvanguard Mar 10, 2023
84daaf6
remove test
vipulsharma21 Mar 10, 2023
3bf328a
Run and upgrade scripts using avalanche cli (#18)
lumos42 Mar 13, 2023
9f02867
Merge pull request #21 from hubble-exchange/change_orderbooktx_add_tx…
vipulsharma21 Mar 15, 2023
70d6f7a
increase initial gas token balance for test accounts (#22)
0xshinobii Mar 17, 2023
7aef066
Merge pull request #23 from hubble-exchange/get_validator_key_from_env
vipulsharma21 Mar 17, 2023
897d451
update abis and fix tests (#24)
atvanguard Mar 17, 2023
0b3dfc0
remove unused workflows and add test, skip failing tests
vipulsharma21 Mar 20, 2023
e234fd6
fix ci by adding validator_private_key
vipulsharma21 Mar 20, 2023
fcf544d
sync upstream @ 21c1fb1
atvanguard Sep 30, 2023
e4f7031
Handle reorgs in memory db ++ (#26)
atvanguard Mar 28, 2023
c47af58
Add order hash in GetOrderBook API response
lumos42 Mar 28, 2023
0054371
Change Orderbook event handling - use indexed fields (#28)
lumos42 Mar 29, 2023
ea77f24
Merge pull request #29 from hubble-exchange/orderbookdata_websocketapi
vipulsharma21 Apr 1, 2023
961de76
Fixes and Logging Improvements (#31)
atvanguard Apr 5, 2023
5b0a789
Add EVM db tests (#30)
lumos42 Apr 10, 2023
766c112
Merge pull request #32 from hubble-exchange/aggregated_orderbook_data
vipulsharma21 Apr 11, 2023
88372ef
sync upstream v0.5.0 (157e9b95)
atvanguard Sep 30, 2023
fdd0f80
Fetch underlying price to filter orders (#34)
atvanguard Apr 17, 2023
234b24f
add logs to hubblefeed if head block is replaced with another during …
vipulsharma21 Apr 17, 2023
b942cc2
add timestamp in abi for orderbook events
vipulsharma21 Apr 18, 2023
5f8792b
fix tests
vipulsharma21 Apr 18, 2023
3982e6c
Add multi-vm tests for Orderbook (#36)
lumos42 Apr 20, 2023
d48f916
Ensure memory DB functions have RWMutex locking (#39)
lumos42 Apr 20, 2023
256922f
Merge pull request #38 from hubble-exchange/dynamic_validator_tx_gas_…
vipulsharma21 Apr 21, 2023
42e59bd
Cancel open orders where available margin < 0 (#40)
lumos42 Apr 28, 2023
bb69593
Optimal pnl (#41)
atvanguard Apr 29, 2023
903d29f
sync upstream v0.5.1 (14b51cb0)
atvanguard Sep 30, 2023
9cde813
Hubblenext (#45)
atvanguard May 9, 2023
fab48fd
Fix integration tests & reduceOnly bugfix (#48)
lumos42 May 16, 2023
01ed2c4
WIP: add hubbleconfigmanager precompile to set order configs from con…
vipulsharma21 May 18, 2023
d2afd1b
Bibliophile Precompile (#49)
atvanguard May 24, 2023
5c00416
Save snapshots of memory database to improve node restart time
lumos42 May 29, 2023
785cf9a
move hubbleconfigmanager precompile logic to hubblebibliophile (#53)
vipulsharma21 May 29, 2023
2887ab4
Order no sig (#52)
atvanguard May 29, 2023
dc422e7
Cleanup logs and change log format (#54)
lumos42 May 30, 2023
8ebd48f
bibliophile.getPositionSizes (#55)
atvanguard May 30, 2023
3a27f4e
update abis, merge hubblenext
atvanguard May 30, 2023
365ea59
load validator_private_key from file and specify path in chain.json (…
vipulsharma21 Jun 1, 2023
9d78fb1
GetUnderlyingPrices in precompile (#57)
atvanguard Jun 1, 2023
d7c19ce
Support partial fulfillment of reduce-only orders (#60)
lumos42 Jun 1, 2023
caa7d02
Hubblenext Fixes and Improvements (#67)
atvanguard Jun 12, 2023
801e811
New match price algorithm (#68)
atvanguard Jun 15, 2023
7e8a681
New precompile at 0x03...4 (#69)
atvanguard Jun 18, 2023
d2dfb40
Trading apis (#71)
atvanguard Jun 20, 2023
58a7aad
send blockNum as uint64
atvanguard Jun 20, 2023
0a88640
Retry Failed Orders (#72)
atvanguard Jun 21, 2023
f36ecad
Red stone (#73)
atvanguard Jun 22, 2023
6d08d9f
Fixes (#74)
atvanguard Jun 22, 2023
27a9278
Fix incorrect lastPremiumFraction issue (#76)
lumos42 Jun 26, 2023
3bd6dbd
Add new precompile method + fix bug in getting short orders (#78)
atvanguard Jun 29, 2023
3b5318f
Add custom monitoring and custom Log Handler (#75)
lumos42 Jul 5, 2023
1516a08
Order type agnostic execution (#79)
atvanguard Jul 7, 2023
1c21e10
Add IOC order and refactor (#82)
lumos42 Jul 10, 2023
4351b44
fix release step of ci to publish release and artifacts as per git ta…
vipulsharma21 Jul 12, 2023
5437a15
recover from panic while build_block_pipeline and processing events; …
vipulsharma21 Jul 12, 2023
467f385
IOC Orders precompile update (#85)
atvanguard Jul 14, 2023
f9fc002
Hubblenext (#86)
atvanguard Jul 16, 2023
4722a73
sync upstream v0.5.3 (402510e)
atvanguard Sep 30, 2023
2ba429b
SDK APIs and other misc. changes (#87)
lumos42 Aug 2, 2023
b0d09f2
sync upstream v0.5.2 (9a1c548)
atvanguard Sep 30, 2023
1791bdc
Run matching pipeline as soon as orders are received (#92)
lumos42 Aug 7, 2023
e377134
Test variables read from contracts via slots (#89)
vipulsharma21 Aug 8, 2023
2556913
fix testing_apis.go (#93)
vipulsharma21 Aug 11, 2023
6a3737b
add integration tests for bibliophile and juror (#83)
vipulsharma21 Aug 11, 2023
ebeec54
Add StreamMarketTrades API and custom config fields (#91)
lumos42 Aug 11, 2023
c9beda7
updated Dockerfile to correct subnet id
chpiatt Aug 11, 2023
236d9f0
:bug: GetOrderFilledAmount (#96)
atvanguard Aug 17, 2023
a6871a8
Fix snapshot logic and add GetSnapshot API (#99)
lumos42 Aug 20, 2023
c11b9db
log orders in validateOrdersAndDetermineFillPrice (#97)
lumos42 Aug 20, 2023
dad68c9
Fix snapshot bug (#101)
lumos42 Aug 22, 2023
0c28177
MemoryDB State Fixes (#103)
atvanguard Aug 29, 2023
64e3e74
Post Only Orders (#95)
atvanguard Sep 3, 2023
2c31171
Fixes to Post Only Deployment (#106)
atvanguard Sep 4, 2023
d463630
Remove backward compatible changes/upgrades (#109)
lumos42 Sep 13, 2023
7deed53
Make IOC orders great again (#110)
atvanguard Sep 13, 2023
e4ea59c
Precompile refactor (#112)
atvanguard Sep 17, 2023
b5ace40
Refactor order structures (#111)
lumos42 Sep 18, 2023
97248de
Precompile updates (#113)
atvanguard Sep 20, 2023
e8c6db2
Separate OrderBook and LimitOrderbook (#114)
lumos42 Sep 24, 2023
687817a
remove validator tx from being added to txpool during reorg (#115)
vipulsharma21 Sep 24, 2023
df412d7
Prevent duplicate match transactions (#116)
lumos42 Sep 25, 2023
850d417
add integration tests for place order and cancel order (#108)
vipulsharma21 Sep 28, 2023
bc928d5
Support multi-collateral in getNormalizedMargin functions + refactor …
atvanguard Sep 29, 2023
68774e3
Moar unit tests for Juror (#119)
lumos42 Sep 29, 2023
9d06705
Mid price (#121)
atvanguard Sep 30, 2023
4472792
Rewire fixes (#125)
atvanguard Oct 1, 2023
5bd3edf
sync upstream v0.5.4-v0.5.6 (a05fc0b)
atvanguard Oct 1, 2023
ca48ca3
:arrow_up: --avalanchego-version v1.10.11 for local scripts
atvanguard Oct 1, 2023
de86a58
Enable tests that were skipped earlier (#127)
lumos42 Oct 2, 2023
0a8f538
Check validator private key only for validators (#128)
lumos42 Oct 2, 2023
06d0c5a
Aylin configs (#129)
atvanguard Oct 3, 2023
3cf0921
send order hash during failed match validations (#130)
atvanguard Oct 4, 2023
76d59c9
Sorted order arrays snapshot fix (#131)
atvanguard Oct 12, 2023
d3c0e82
New algo for get optimal pnl (#134)
atvanguard Oct 12, 2023
e22730f
Fix snapshot error at startup (#135)
lumos42 Oct 12, 2023
1e27a82
mainnet configs (#136)
atvanguard Oct 27, 2023
319cf27
sync upstream v0.5.7-v0.5.8 (eccd2ee)
atvanguard Oct 27, 2023
36467ae
update mainnet configs (#137)
atvanguard Nov 1, 2023
4c9bda2
activate precompiles (#138)
atvanguard Nov 14, 2023
036cc2e
Add StreamDepthUpdateForMarketAndFreq (#140)
lumos42 Dec 15, 2023
1e2cfeb
Panic handlers in notifiers (#142)
atvanguard Dec 27, 2023
445022b
Check margin requirement for IOC orders in matching (#141)
lumos42 Dec 30, 2023
024fdf5
msrginMap fix (#144)
atvanguard Dec 31, 2023
b1cab61
no margin requirement for reduceOnly orders (#146)
atvanguard Jan 3, 2024
4cfb95d
isExecutable (#147)
atvanguard Jan 6, 2024
b9b9d5b
cp -r juror
atvanguard Nov 21, 2023
35b4b2a
Signed orders API and Matching (#139)
atvanguard Dec 29, 2023
84d0cf8
Gossip signed orders (#145)
lumos42 Jan 9, 2024
d3ae256
sync upstream v0.5.10 (ba46d7b)
atvanguard Jan 10, 2024
c34b53e
Oracle pnl (#148)
atvanguard Jan 11, 2024
fbc7c7e
Signed orders changes for SDK (#149)
lumos42 Jan 15, 2024
de07371
Commit sample premium index + Add validations (#150)
atvanguard Jan 16, 2024
920964b
Delete expired signed orders and virtual reserved margin (#151)
lumos42 Jan 17, 2024
24b0b63
remove order specific methods from jurorv2 + bug fixes (#152)
atvanguard Jan 18, 2024
a11d48a
Makerbook fixes (#154)
lumos42 Jan 22, 2024
1436ba3
cancel stale reduce only orders (#153)
atvanguard Jan 22, 2024
8fa5864
cache hubble state (#155)
atvanguard Feb 15, 2024
fd5456d
sync upstream v0.5.11 (d305e3f)
atvanguard Feb 16, 2024
5c45ca4
update subnet config required for makerbook + jurorv2 tests (#157)
lumos42 Feb 22, 2024
f339098
sync upstream v0.6.0 (bc8d95b)
atvanguard Feb 23, 2024
ced68df
:arrow_up: go 1.22.0 for tests
atvanguard Feb 23, 2024
182fd14
sync upstream v0.6.1 (0c3802c)
atvanguard Feb 24, 2024
4685599
send oracle prices to evaluate availableMargin (#159)
atvanguard Feb 26, 2024
2b57fd9
set signedOrderBook addy from precompile call (#161)
atvanguard Feb 27, 2024
2aa8374
Makerbook storage and save snapshot to file (#160)
lumos42 Feb 28, 2024
e8433a1
Fix panic in saving snapshot (#167)
lumos42 Mar 6, 2024
772ea72
allow grace period for market orders to be filled (#168)
atvanguard Mar 7, 2024
62c931a
Use latest accepted block in testing APIs (#173)
lumos42 Mar 8, 2024
b5a0f42
feature/oonodz-integration. Integrate ooNodz workflow and create and
Mar 11, 2024
f0ad252
feature/oonodz-integration. Also produce the aylin image for the mainnet
Mar 14, 2024
5e94284
[breaking] merge upstream subnet-evm v0.6.2 (origin/master)
debaghtk Mar 18, 2024
4a1e8e9
:bug: check available margin for correct trader (#179)
atvanguard Mar 18, 2024
143fdbb
Integrate ooNodz workflow and create and push docker images
atvanguard Mar 18, 2024
e263fcb
2 market orders cant be matched test
atvanguard Mar 12, 2024
d3fcdec
[deba] make order gossip work with new changes
debaghtk Mar 18, 2024
2a22601
Merge pull request #178 from hubble-exchange/sync-upstream-v0.6.2-next
debaghtk Apr 1, 2024
f4507c5
take avalanche go version from versions file (#184)
debaghtk Apr 1, 2024
3f2ca6c
revert changes to push docker image again
debaghtk Apr 1, 2024
654d038
Precompile changes to support custom oracle (#186)
0xshinobii Apr 5, 2024
77be032
Match orders in same block as they are placed (#185)
lumos42 Apr 8, 2024
d884795
Send OrderExpired event for Signed orders (#189)
lumos42 Apr 27, 2024
3b29c1a
handle settled markets (#190)
atvanguard May 19, 2024
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
6 changes: 6 additions & 0 deletions .avalanche-cli.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"node-config": {
"log-level": "info"
},
"SingleNodeEnabled": false
}
54 changes: 54 additions & 0 deletions .github/workflows/ci-push-image-aylin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Build + Push aylin image

on:
push:
branches:
- aylin

defaults:
run:
shell: bash

jobs:
build_fuji_image_aylin:
name: Build Docker Image
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Get Current Tag
id: get_tag
run: echo ::set-output name=tag::$(git describe --abbrev=0 --tags)

- name: Login to Docker hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASS }}

- name: Build Dockerfile and Push it
run: |
TAG_END=$GITHUB_SHA

if [ -n "$GITHUB_TAG" ]; then
TAG_END=$GITHUB_TAG
fi

source scripts/versions.sh

export BUILD_IMAGE_ID="${AVALANCHE_VERSION}-aylin-${TAG_END}"

# Copy binary to the correct Fuji VM ID respository
echo "COPY --from=builder /build/jvrKsTB9MfYGnAXtxbzFYpXKceXr9J8J8ej6uWGrYM5tXswhJ /root/.avalanchego/plugins/jvrKsTB9MfYGnAXtxbzFYpXKceXr9J8J8ej6uWGrYM5tXswhJ" >> Dockerfile

# Copy binary to the correct Mainnet VM ID respository
echo "COPY --from=builder /build/jvrKsTB9MfYGnAXtxbzFYpXKceXr9J8J8ej6uWGrYM5tXswhJ /root/.avalanchego/plugins/o1Fg94YujMqL75Ebrdkos95MTVjZpPpdeAp5ocEsp2X9c2FSz" >> Dockerfile

./scripts/build_image.sh
env:
CURRENT_BRANCH: ${{ github.head_ref || github.ref_name }}
PUSH_DOCKER_IMAGE: true
DOCKERHUB_REPO: hubbleexchange/hubblenet
GITHUB_TAG: ${{ steps.get_tag.outputs.tag }}
GITHUB_SHA: ${{ github.sha }}
85 changes: 85 additions & 0 deletions .github/workflows/push-image-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
name: Build + Push release image

on:
workflow_dispatch:
inputs:
release_tag:
description: 'Release tag'
required: true
type: string

defaults:
run:
shell: bash

jobs:
build_release_image:
name: Build Docker Image
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Login to Docker hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASS }}

- name: Create the Dockerfile
env:
HUBBLENET_RELEASE_TAG: ${{ inputs.release_tag }}
AVALANCHE_VERSION: ${{ vars.AVALANCHE_VERSION }}
run: |
if [ "${HUBBLENET_RELEASE_TAG:0:1}" = "v" ]; then
HUBBLENET_VERSION="${HUBBLENET_RELEASE_TAG:1}";
HUBBLENET_RELEASE_TAG="${HUBBLENET_RELEASE_TAG}";
else
HUBBLENET_VERSION="${HUBBLENET_RELEASE_TAG}";
fi

multiline_text=$(cat <<EOF
FROM avaplatform/avalanchego:${AVALANCHE_VERSION} as builder

RUN apt update \
&& DEBIAN_FRONTEND="noninteractive" apt install -y wget \
&& cd /tmp \
&& wget https://github.com/hubble-exchange/hubblenet/releases/download/${HUBBLENET_RELEASE_TAG}/hubblenet_${HUBBLENET_VERSION}_linux_amd64.tar.gz \
&& tar -xf hubblenet_${HUBBLENET_VERSION}_linux_amd64.tar.gz

FROM avaplatform/avalanchego:${AVALANCHE_VERSION}
LABEL Description="Hubblenet image"
ARG VM_ID

RUN mkdir -p /root/.avalanchego/plugins \
&& DEBIAN_FRONTEND="noninteractive" apt update \
&& DEBIAN_FRONTEND="noninteractive" apt install -y wget

COPY --from=builder /tmp/hubblenet-${HUBBLENET_VERSION} /root/.avalanchego/plugins/\${VM_ID}

EOF
)

echo "$multiline_text" > Dockerfile-release
cat Dockerfile-release

- name: Build and push release image for the mainnet
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile-release
push: true
tags: "hubbleexchange/hubblenet:${{ vars.AVALANCHE_VERSION }}-${{ inputs.release_tag }}"
build-args: |
VM_ID=o1Fg94YujMqL75Ebrdkos95MTVjZpPpdeAp5ocEsp2X9c2FSz


- name: Build and push release image for the fuji
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile-release
push: true
tags: "hubbleexchange/hubblenet:${{ vars.AVALANCHE_VERSION }}-fuji-${{ inputs.release_tag }}"
build-args: |
VM_ID=jvrKsTB9MfYGnAXtxbzFYpXKceXr9J8J8ej6uWGrYM5tXswhJ
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
tags:
- "*"

permissions:
contents: write
packages: write

jobs:
release:
# needs: [lint_test, unit_test, e2e_test, simulator_test]
Expand All @@ -19,7 +23,7 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
path: subnet-evm
path: hubblenet
- name: Set up Go
uses: actions/setup-go@v5
with:
Expand Down Expand Up @@ -48,7 +52,7 @@ jobs:
distribution: goreleaser
version: latest
args: release --clean
workdir: ./subnet-evm/
workdir: ./hubblenet/
env:
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30 changes: 30 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build + test + release

on:
push:
branches:
- '*'

tags:
- "*"
# pull_request:

jobs:
unit_test:
name: Golang Unit Tests v${{ matrix.go }} (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
go: ["1.22.0"]
os: [ubuntu-22.04]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
- run: go mod download
shell: bash
- run: go test github.com/ava-labs/subnet-evm/plugin/evm/...
shell: bash
- run: go test github.com/ava-labs/subnet-evm/precompile/...
shell: bash
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,10 @@ cmd/simulator/simulator

# goreleaser
dist/

# orderbook tests dependencies
tests/orderbook/node_modules

*.bin
local_status.sh
networks/*/*.env
8 changes: 4 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# ref. https://goreleaser.com/customization/build/
builds:
- id: subnet-evm
- id: hubblenet
main: ./plugin
binary: subnet-evm
binary: hubblenet-{{.Version}}
flags:
- -v
ldflags: -X github.com/ava-labs/subnet-evm/plugin/evm.Version=v{{.Version}}
Expand Down Expand Up @@ -33,5 +33,5 @@ release:
# Repo in which the release will be created.
# Default is extracted from the origin remote URL or empty if its private hosted.
github:
owner: ava-labs
name: subnet-evm
owner: hubble-exchange
name: hubblenet
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ COPY . .
ARG SUBNET_EVM_COMMIT
ARG CURRENT_BRANCH

RUN export SUBNET_EVM_COMMIT=$SUBNET_EVM_COMMIT && export CURRENT_BRANCH=$CURRENT_BRANCH && ./scripts/build.sh /build/srEXiWaHuhNyGwPUi444Tu47ZEDwxTWrbQiuD7FmgSAQ6X7Dy
RUN export SUBNET_EVM_COMMIT=$SUBNET_EVM_COMMIT && export CURRENT_BRANCH=$CURRENT_BRANCH && ./scripts/build.sh /build/jvrKsTB9MfYGnAXtxbzFYpXKceXr9J8J8ej6uWGrYM5tXswhJ

# ============= Cleanup Stage ================
FROM avaplatform/avalanchego:$AVALANCHE_VERSION AS builtImage

# Copy the evm binary into the correct location in the container
COPY --from=builder /build/srEXiWaHuhNyGwPUi444Tu47ZEDwxTWrbQiuD7FmgSAQ6X7Dy /avalanchego/build/plugins/srEXiWaHuhNyGwPUi444Tu47ZEDwxTWrbQiuD7FmgSAQ6X7Dy
COPY --from=builder /build/jvrKsTB9MfYGnAXtxbzFYpXKceXr9J8J8ej6uWGrYM5tXswhJ /avalanchego/build/plugins/jvrKsTB9MfYGnAXtxbzFYpXKceXr9J8J8ej6uWGrYM5tXswhJ
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Hubble v2

To run a fresh local network - run `./scripts/run_local.sh`
To run on the same network with updated evm code(it preserves all evm state) - run `./scripts/upgrade_local.sh`
To kill network - run `avalanche network stop && avalanche network clean`

To see logs - run `./scripts/show_logs.sh`

# Accounts
var userAddress1 = "0x8db97C7cEcE249c2b98bDC0226Cc4C2A57BF52FC"
var privateKey1 = "56289e99c94b6912bfc12adc093c9b51124f0dc54ac7a766b2bc5ccf558d8027"
var userAddress2 = "0x4Cf2eD3665F6bFA95cE6A11CFDb7A2EF5FC1C7E4"
var privateKey2 = "31b571bf6894a248831ff937bb49f7754509fe93bbd2517c9c73c4144c0e97dc"

# Subnet EVM

[![Build + Test + Release](https://github.com/ava-labs/subnet-evm/actions/workflows/lint-tests-release.yml/badge.svg)](https://github.com/ava-labs/subnet-evm/actions/workflows/lint-tests-release.yml)
Expand Down
Loading
Loading