-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into merge-master-into-feat-sovereign-9-oct-2024
- Loading branch information
Showing
8 changed files
with
440 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Publish Docker image | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
push_to_registry: | ||
name: Push Docker image to Docker Hub | ||
runs-on: ubuntu-latest | ||
permissions: | ||
packages: write | ||
contents: read | ||
attestations: write | ||
steps: | ||
- name: Check out the repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Go 1.x | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.20.7 | ||
id: go | ||
|
||
- name: Get dependencies | ||
run: | | ||
go mod download | ||
if [ -f Gopkg.toml ]; then | ||
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh | ||
dep ensure | ||
fi | ||
- name: Log in to Docker Hub | ||
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 | ||
with: | ||
images: multiversx/elastic-indexer | ||
|
||
- name: Build and push Docker image | ||
id: push | ||
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 | ||
with: | ||
context: . | ||
file: ./Dockerfile | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM golang:1.20.5 as builder | ||
FROM golang:1.20.7 as builder | ||
|
||
RUN apt-get update && apt-get install -y | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
integrationtests/testdata/esdtTransfer/esdt-transfer-cross-shard-on-destination.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"miniBlockHash": "579fe2f60e8fa9c396254b2173282c6ecb6e736b42e015c3b744c86001be3981", | ||
"nonce": 1, | ||
"round": 55, | ||
"value": "0", | ||
"valueNum": 0, | ||
"receiver": "erd13u7zyekzvdvzek8768r5gau9p6677ufppsjuklu9e6t7yx7rhg4s68e2ze", | ||
"sender": "erd1ef6470tjdtlgpa9f6g3ae4nsedmjg0gv6w73v32xtvhkfff993hq750xl9", | ||
"receiverShard": 1, | ||
"senderShard": 2, | ||
"gasPrice": 1000000000, | ||
"gasLimit": 500000, | ||
"gasUsed": 334000, | ||
"fee": "136000000000000", | ||
"feeNum": 0.000136, | ||
"initialPaidFee": "137660000000000", | ||
"data": "RVNEVFRyYW5zZmVyQDU0NDc0ZTJkMzgzODYyMzgzMzY2QDBh", | ||
"signature": "", | ||
"timestamp": 10102, | ||
"status": "success", | ||
"searchOrder": 0, | ||
"hasScResults": true, | ||
"tokens": [ | ||
"TGN-88b83f" | ||
], | ||
"esdtValues": [ | ||
"10" | ||
], | ||
"esdtValuesNum": [ | ||
1e-17 | ||
], | ||
"type": "normal", | ||
"operation": "ESDTTransfer" | ||
} |
34 changes: 34 additions & 0 deletions
34
integrationtests/testdata/esdtTransfer/esdt-transfer-cross-shard-on-source.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"miniBlockHash": "579fe2f60e8fa9c396254b2173282c6ecb6e736b42e015c3b744c86001be3981", | ||
"nonce": 1, | ||
"round": 50, | ||
"value": "0", | ||
"valueNum": 0, | ||
"receiver": "erd13u7zyekzvdvzek8768r5gau9p6677ufppsjuklu9e6t7yx7rhg4s68e2ze", | ||
"sender": "erd1ef6470tjdtlgpa9f6g3ae4nsedmjg0gv6w73v32xtvhkfff993hq750xl9", | ||
"receiverShard": 1, | ||
"senderShard": 2, | ||
"gasPrice": 1000000000, | ||
"gasLimit": 500000, | ||
"gasUsed": 334000, | ||
"fee": "136000000000000", | ||
"feeNum": 0.000136, | ||
"initialPaidFee": "137660000000000", | ||
"data": "RVNEVFRyYW5zZmVyQDU0NDc0ZTJkMzgzODYyMzgzMzY2QDBh", | ||
"signature": "", | ||
"timestamp": 10101, | ||
"status": "pending", | ||
"searchOrder": 0, | ||
"hasScResults": true, | ||
"tokens": [ | ||
"TGN-88b83f" | ||
], | ||
"esdtValues": [ | ||
"10" | ||
], | ||
"esdtValuesNum": [ | ||
1e-17 | ||
], | ||
"type": "normal", | ||
"operation": "ESDTTransfer" | ||
} |
34 changes: 34 additions & 0 deletions
34
integrationtests/testdata/esdtTransfer/esdt-transfer-first-on-destination.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"data": "RVNEVFRyYW5zZmVyQDU0NDc0ZTJkMzgzODYyMzgzMzY2QDBh", | ||
"signature": "", | ||
"fee": "137660000000000", | ||
"esdtValues": [ | ||
"10" | ||
], | ||
"initialPaidFee": "137660000000000", | ||
"type": "normal", | ||
"gasLimit": 500000, | ||
"esdtValuesNum": [ | ||
1e-17 | ||
], | ||
"gasUsed": 500000, | ||
"miniBlockHash": "d0f273198e773465908be139872605d93e86115b6320f9b34edb6a5e38668989", | ||
"senderShard": 2, | ||
"tokens": [ | ||
"TGN-88b83f" | ||
], | ||
"value": "0", | ||
"gasPrice": 1000000000, | ||
"timestamp": 10102, | ||
"receiver": "erd13u7zyekzvdvzek8768r5gau9p6677ufppsjuklu9e6t7yx7rhg4s68e2ze", | ||
"valueNum": 0, | ||
"feeNum": 0.00013766, | ||
"nonce": 1, | ||
"round": 55, | ||
"hasScResults": true, | ||
"sender": "erd1ef6470tjdtlgpa9f6g3ae4nsedmjg0gv6w73v32xtvhkfff993hq750xl9", | ||
"receiverShard": 1, | ||
"operation": "ESDTTransfer", | ||
"status": "success", | ||
"searchOrder": 0 | ||
} |
Oops, something went wrong.