Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
a0f13ee
Update go to 1.22
sstanculeanu Jul 10, 2024
6a833b0
updated deps
sstanculeanu Jul 10, 2024
46ad631
Merge branch 'rc/v1.7.next1' of https://github.com/multiversx/mx-chai…
sstanculeanu Jul 19, 2024
e4a54d4
updated deps
sstanculeanu Jul 19, 2024
c99ccb7
updated deps
sstanculeanu Jul 19, 2024
b72c576
updated deps
sstanculeanu Jul 19, 2024
5bbc478
fix mappings
miiu96 Dec 3, 2024
d5965b7
Merge pull request #308 from multiversx/fix-indexer-mappings
miiu96 Dec 3, 2024
6128436
Merge branch 'master' into merge-master-in-barnard
miiu96 Dec 3, 2024
6d04b89
Merge pull request #309 from multiversx/merge-master-in-barnard
miiu96 Dec 3, 2024
bf5c192
Merge branch 'master' into rc/barnard
miiu96 Jan 31, 2025
d8b8161
Merge pull request #328 from multiversx/update-barnard
miiu96 Jan 31, 2025
0301055
Merge branch 'master' of https://github.com/multiversx/mx-chain-es-in…
sstanculeanu Feb 18, 2025
737036d
Merge pull request #333 from multiversx/merge_master_into_rc_barnard_…
sstanculeanu Feb 18, 2025
be442e2
Merge branch 'rc/barnard' of https://github.com/multiversx/mx-chain-e…
sstanculeanu Feb 18, 2025
7923d17
update go to 1.23.6
sstanculeanu Feb 18, 2025
fb99b9b
Merge pull request #286 from multiversx/update_go_1.22
sstanculeanu Feb 28, 2025
69a6fc8
Merge remote-tracking branch 'origin/rc/andromeda' into andromeda-to-…
sasurobert May 20, 2025
09915e4
go mod
sasurobert May 20, 2025
3273178
Merge pull request #341 from multiversx/andromeda-to-barnard
sasurobert May 20, 2025
bf2b6a6
remove kibana stuff
miiu96 Jun 5, 2025
be76665
Merge branch 'master' into rc/barnard
miiu96 Jun 5, 2025
16d559d
fix
miiu96 Jun 5, 2025
651533e
Merge pull request #344 from multiversx/merge-master-in-barnard-a
miiu96 Jun 5, 2025
ca37800
Merge branch 'rc/barnard' into remove-kibana-stuff
miiu96 Jun 5, 2025
1e96aa7
timestamp ms all structures
miiu96 Jun 6, 2025
b367efd
fix build
miiu96 Jun 6, 2025
eda0fe2
fix unit tests
miiu96 Jun 6, 2025
d91ef78
Update process/elasticproc/templatesAndPolicies/reader.go
miiu96 Jun 6, 2025
0637870
fix integration tests 1
miiu96 Jun 6, 2025
efa1900
Merge pull request #343 from multiversx/remove-kibana-stuff
miiu96 Jun 6, 2025
69c7173
fixes
miiu96 Jun 11, 2025
3d1707e
Merge branch 'rc/barnard' into timestamp-ms-all-structuress
miiu96 Jun 11, 2025
ebeda3c
fix integration and unit test
miiu96 Jun 11, 2025
8f7c1bf
fixes timestamp ms
miiu96 Jun 11, 2025
37f5294
fixes and refactoring
miiu96 Jun 11, 2025
1889119
fixes after review
miiu96 Jun 12, 2025
f4cb56b
fix
miiu96 Jun 12, 2025
5eae6f6
new vm common
miiu96 Jun 18, 2025
50fb80e
Merge pull request #345 from multiversx/timestamp-ms-all-structuress
sstanculeanu Jun 18, 2025
e234f9a
Merge branch 'rc/barnard' into new-vm-common-barnard
sstanculeanu Jun 18, 2025
2a3ec2d
latest vm common
miiu96 Jun 18, 2025
9ff735e
Merge remote-tracking branch 'origin/new-vm-common-barnard' into new-…
miiu96 Jun 18, 2025
8c08c8d
Merge pull request #346 from multiversx/new-vm-common-barnard
miiu96 Jun 19, 2025
fb971cf
updated deps
sstanculeanu Jun 25, 2025
4ee7b9e
Merge pull request #347 from multiversx/update-deps
sstanculeanu Jun 26, 2025
38c640a
latest vm common
miiu96 Jun 26, 2025
dae3c19
fix
miiu96 Jun 26, 2025
957a9a6
only warn instead of error
miiu96 Jun 26, 2025
bee002a
Merge pull request #348 from multiversx/small-fix-owners-scdeploys
miiu96 Jun 27, 2025
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
8 changes: 4 additions & 4 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ jobs:
name: golangci linter
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
- uses: actions/setup-go@v5
with:
go-version: 1.20.5
go-version: 1.23.6
cache: false
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.54.2
version: v1.64.5

# Optional: working directory, useful for monorepos
# working-directory: somedir
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pr-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: ^1.17.6
go-version: 1.23.6
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Get dependencies
run: |
Expand Down
30 changes: 15 additions & 15 deletions .github/workflows/pr-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: ^1.17.6
go-version: 1.23.6
id: go

- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Get dependencies
run: |
Expand All @@ -30,13 +30,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: ^1.17.6
go-version: 1.23.6
id: go

- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Get dependencies
run: |
Expand All @@ -48,13 +48,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: ^1.15.6
go-version: 1.23.6
id: go

- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Get dependencies
run: |
Expand All @@ -66,13 +66,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: ^1.15.6
go-version: 1.23.6
id: go

- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Get dependencies
run: |
Expand All @@ -85,13 +85,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: ^1.15.6
go-version: 1.23.6
id: go

- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Get dependencies
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pr-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: ^1.17.6
go-version: 1.23.6
id: go

- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Get dependencies
run: |
Expand Down
1 change: 0 additions & 1 deletion cmd/elasticindexer/config/prefs.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
acknowledge-timeout-in-seconds = 50

[config.elastic-cluster]
use-kibana = false
url = "http://localhost:9200"
username = ""
password = ""
Expand Down
24 changes: 12 additions & 12 deletions data/account.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package data

import (
"time"

"github.com/multiversx/mx-chain-core-go/data/alteredAccount"
)

Expand All @@ -22,7 +20,8 @@ type AccountInfo struct {
DeveloperRewards string `json:"developerRewards,omitempty"`
DeveloperRewardsNum float64 `json:"developerRewardsNum,omitempty"`
Data *TokenMetaData `json:"data,omitempty"`
Timestamp time.Duration `json:"timestamp,omitempty"`
Timestamp uint64 `json:"timestamp,omitempty"`
TimestampMs uint64 `json:"timestampMs,omitempty"`
Type string `json:"type,omitempty"`
CurrentOwner string `json:"currentOwner,omitempty"`
ShardID uint32 `json:"shardID"`
Expand Down Expand Up @@ -50,15 +49,16 @@ type TokenMetaData struct {

// AccountBalanceHistory represents an entry in the user accounts balances history
type AccountBalanceHistory struct {
Address string `json:"address"`
Timestamp time.Duration `json:"timestamp"`
Balance string `json:"balance"`
Token string `json:"token,omitempty"`
Identifier string `json:"identifier,omitempty"`
TokenNonce uint64 `json:"tokenNonce,omitempty"`
IsSender bool `json:"isSender,omitempty"`
IsSmartContract bool `json:"isSmartContract,omitempty"`
ShardID uint32 `json:"shardID"`
Address string `json:"address"`
Timestamp uint64 `json:"timestamp"`
TimestampMs uint64 `json:"timestampMs,omitempty"`
Balance string `json:"balance"`
Token string `json:"token,omitempty"`
Identifier string `json:"identifier,omitempty"`
TokenNonce uint64 `json:"tokenNonce,omitempty"`
IsSender bool `json:"isSender,omitempty"`
IsSmartContract bool `json:"isSmartContract,omitempty"`
ShardID uint32 `json:"shardID"`
}

// Account is a structure that is needed for regular accounts
Expand Down
26 changes: 13 additions & 13 deletions data/block.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package data

import (
"time"

"github.com/multiversx/mx-chain-core-go/data/api"
)

Expand All @@ -24,7 +22,8 @@ type Block struct {
PubKeyBitmap string `json:"pubKeyBitmap"`
Size int64 `json:"size"`
SizeTxs int64 `json:"sizeTxs"`
Timestamp time.Duration `json:"timestamp"`
Timestamp uint64 `json:"timestamp"`
TimestampMs uint64 `json:"timestampMs,omitempty"`
StateRootHash string `json:"stateRootHash"`
PrevHash string `json:"prevHash"`
ShardID uint32 `json:"shardId"`
Expand Down Expand Up @@ -104,14 +103,15 @@ type EpochStartShardData struct {

// Miniblock is a structure containing miniblock information
type Miniblock struct {
Hash string `json:"hash,omitempty"`
SenderShardID uint32 `json:"senderShard"`
ReceiverShardID uint32 `json:"receiverShard"`
SenderBlockHash string `json:"senderBlockHash,omitempty"`
ReceiverBlockHash string `json:"receiverBlockHash,omitempty"`
Type string `json:"type"`
ProcessingTypeOnSource string `json:"procTypeS,omitempty"`
ProcessingTypeOnDestination string `json:"procTypeD,omitempty"`
Timestamp time.Duration `json:"timestamp"`
Reserved []byte `json:"reserved,omitempty"`
Hash string `json:"hash,omitempty"`
SenderShardID uint32 `json:"senderShard"`
ReceiverShardID uint32 `json:"receiverShard"`
SenderBlockHash string `json:"senderBlockHash,omitempty"`
ReceiverBlockHash string `json:"receiverBlockHash,omitempty"`
Type string `json:"type"`
ProcessingTypeOnSource string `json:"procTypeS,omitempty"`
ProcessingTypeOnDestination string `json:"procTypeD,omitempty"`
Timestamp uint64 `json:"timestamp"`
TimestampMs uint64 `json:"timestampMs,omitempty"`
Reserved []byte `json:"reserved,omitempty"`
}
14 changes: 7 additions & 7 deletions data/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package data

import (
"encoding/json"
"time"
)

// ValidatorsPublicKeys is a structure containing fields for validators public keys
Expand All @@ -24,12 +23,13 @@ type ValidatorRatingInfo struct {

// RoundInfo is a structure containing block signers and shard id
type RoundInfo struct {
Round uint64 `json:"round"`
SignersIndexes []uint64 `json:"signersIndexes"`
BlockWasProposed bool `json:"blockWasProposed"`
ShardId uint32 `json:"shardId"`
Epoch uint32 `json:"epoch"`
Timestamp time.Duration `json:"timestamp"`
Round uint64 `json:"round"`
SignersIndexes []uint64 `json:"signersIndexes"`
BlockWasProposed bool `json:"blockWasProposed"`
ShardId uint32 `json:"shardId"`
Epoch uint32 `json:"epoch"`
Timestamp uint64 `json:"timestamp"`
TimestampMs uint64 `json:"timestampMs,omitempty"`
}

// EpochInfo holds the information about epoch
Expand Down
28 changes: 14 additions & 14 deletions data/delegators.go
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
package data

import "time"

// Delegator is a structure that is needed to store information about a delegator
type Delegator struct {
Address string `json:"address"`
Contract string `json:"contract"`
Timestamp time.Duration `json:"timestamp"`
ActiveStake string `json:"activeStake"`
ActiveStakeNum float64 `json:"activeStakeNum"`
ShouldDelete bool `json:"-"`
UnDelegateInfo *UnDelegate `json:"-"`
WithdrawFundIDs []string `json:"-"`
Address string `json:"address"`
Contract string `json:"contract"`
Timestamp uint64 `json:"timestamp"`
TimestampMs uint64 `json:"timestampMs,omitempty"`
ActiveStake string `json:"activeStake"`
ActiveStakeNum float64 `json:"activeStakeNum"`
ShouldDelete bool `json:"-"`
UnDelegateInfo *UnDelegate `json:"-"`
WithdrawFundIDs []string `json:"-"`
}

// UnDelegate is a structure that is needed to store information about user unDelegate position
type UnDelegate struct {
Timestamp time.Duration `json:"timestamp"`
ID string `json:"id"`
Value string `json:"value"`
ValueNum float64 `json:"valueNum"`
Timestamp uint64 `json:"timestamp"`
TimestampMs uint64 `json:"timestampMs,omitempty"`
ID string `json:"id"`
Value string `json:"value"`
ValueNum float64 `json:"valueNum"`
}
31 changes: 15 additions & 16 deletions data/event.go
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
package data

import "time"

// LogEvent is the dto for the log event structure
type LogEvent struct {
UUID string `json:"uuid"`
ID string `json:"-"`
TxHash string `json:"txHash"`
OriginalTxHash string `json:"originalTxHash,omitempty"`
LogAddress string `json:"logAddress"`
Address string `json:"address"`
Identifier string `json:"identifier"`
Data string `json:"data,omitempty"`
AdditionalData []string `json:"additionalData,omitempty"`
Topics []string `json:"topics"`
Order int `json:"order"`
TxOrder int `json:"txOrder"`
ShardID uint32 `json:"shardID"`
Timestamp time.Duration `json:"timestamp,omitempty"`
UUID string `json:"uuid"`
ID string `json:"-"`
TxHash string `json:"txHash"`
OriginalTxHash string `json:"originalTxHash,omitempty"`
LogAddress string `json:"logAddress"`
Address string `json:"address"`
Identifier string `json:"identifier"`
Data string `json:"data,omitempty"`
AdditionalData []string `json:"additionalData,omitempty"`
Topics []string `json:"topics"`
Order int `json:"order"`
TxOrder int `json:"txOrder"`
ShardID uint32 `json:"shardID"`
Timestamp uint64 `json:"timestamp,omitempty"`
TimestampMs uint64 `json:"timestampMs,omitempty"`
}
15 changes: 7 additions & 8 deletions data/logs.go
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
package data

import (
"time"

"github.com/multiversx/mx-chain-core-go/data/outport"
"github.com/multiversx/mx-chain-es-indexer-go/process/elasticproc/tokeninfo"
)

// Logs holds all the fields needed for a logs structure
type Logs struct {
UUID string `json:"uuid"`
ID string `json:"-"`
OriginalTxHash string `json:"originalTxHash,omitempty"`
Address string `json:"address"`
Events []*Event `json:"events"`
Timestamp time.Duration `json:"timestamp,omitempty"`
UUID string `json:"uuid"`
ID string `json:"-"`
OriginalTxHash string `json:"originalTxHash,omitempty"`
Address string `json:"address"`
Events []*Event `json:"events"`
Timestamp uint64 `json:"timestamp,omitempty"`
TimestampMs uint64 `json:"timestampMs,omitempty"`
}

// Event holds all the fields needed for an event structure
Expand Down
10 changes: 6 additions & 4 deletions data/scDeploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,16 @@ type ScDeployInfo struct {
CurrentOwner string `json:"currentOwner"`
CodeHash []byte `json:"initialCodeHash"`
Timestamp uint64 `json:"timestamp"`
TimestampMs uint64 `json:"timestampMs,omitempty"`
Upgrades []*Upgrade `json:"upgrades"`
OwnersHistory []*OwnerData `json:"owners"`
}

// Upgrade is the DTO that holds information about a smart contract upgrade
type Upgrade struct {
TxHash string `json:"upgradeTxHash"`
Upgrader string `json:"upgrader"`
Timestamp uint64 `json:"timestamp"`
CodeHash []byte `json:"codeHash"`
TxHash string `json:"upgradeTxHash"`
Upgrader string `json:"upgrader"`
Timestamp uint64 `json:"timestamp"`
TimestampMs uint64 `json:"timestampMs"`
CodeHash []byte `json:"codeHash"`
}
Loading
Loading