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

Merge rc andromeda into feat header proof 2025.01.28 #349

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
158ecb0
inner transactions on transaction
sstanculeanu Sep 8, 2023
6ac41d9
fix test
sstanculeanu Sep 8, 2023
b0fb328
added extra check
sstanculeanu Sep 8, 2023
132204a
added RelayedV3TransactionHandler
sstanculeanu Sep 8, 2023
8f1a379
only one inner tx
sstanculeanu Sep 20, 2023
6724a64
added missing pointer
sstanculeanu Sep 20, 2023
978c5de
prepare proper inner tx
sstanculeanu Sep 20, 2023
d7df575
fix unmarshal of inner
sstanculeanu Sep 20, 2023
2791fda
proper implementation
sstanculeanu Sep 20, 2023
4b6ee19
fixed inner tx preparation
sstanculeanu Sep 20, 2023
7aa5258
use inner tx signature when returning data for signing
sstanculeanu Sep 20, 2023
afd6941
added optional relayer address on tx
sstanculeanu Sep 21, 2023
48fd7cc
removed previously added method from interface
sstanculeanu Sep 21, 2023
1e73b4f
fix typo after self review
sstanculeanu Sep 25, 2023
ab2114e
fixes after first review
sstanculeanu Sep 26, 2023
61487cb
switched the innerTransaction field to a slice of transactions
sstanculeanu Oct 5, 2023
ce615bc
Merge pull request #260 from multiversx/inner_txs_on_tx
sstanculeanu Oct 11, 2023
e81c072
Merge branch 'rc/v1.7.0' of https://github.com/multiversx/mx-chain-co…
sstanculeanu Nov 27, 2023
1dc309d
Merge pull request #277 from multiversx/merge_rc170_into_feat_relayed…
sstanculeanu Nov 27, 2023
ad95182
Merge branch 'rc/v1.7.0' of https://github.com/multiversx/mx-chain-co…
sstanculeanu Jan 30, 2024
ccdebf0
Merge pull request #286 from multiversx/merge_rc170_into_feat_relayed…
sstanculeanu Jan 30, 2024
95b7c29
Merge branch 'rc/v1.7.next1' of https://github.com/multiversx/mx-chai…
sstanculeanu Mar 22, 2024
ef6f4a3
Merge pull request #295 from multiversx/merge_rc170_into_feat_relayed…
sstanculeanu Mar 27, 2024
237b5ab
Merge branch 'feat/relayedv3' of https://github.com/multiversx/mx-cha…
sstanculeanu Apr 4, 2024
48e2da5
update ApiTransactionResult as well
sstanculeanu Apr 4, 2024
3415a1d
Merge branch 'rc/v1.7.next1' of https://github.com/multiversx/mx-chai…
sstanculeanu May 15, 2024
21cfaa8
Merge pull request #304 from multiversx/merge_rc17next1into_featrelay…
sstanculeanu May 15, 2024
bb09ab4
Merge branch 'feat/relayedv3' of https://github.com/multiversx/mx-cha…
sstanculeanu May 15, 2024
8b6faa7
update ApiTransactionResult to use FrontEndTransaction for better vis…
sstanculeanu May 28, 2024
1559f92
added RelayedTransactionV3 constant
sstanculeanu May 29, 2024
139a833
reverted last commit
sstanculeanu May 29, 2024
88bd243
fixes after review
sstanculeanu Jun 4, 2024
86ff8cd
added GetUserTransactions on TransactionWithFeeHandler
sstanculeanu Jun 11, 2024
844ddbc
Merge pull request #266 from multiversx/multiple_inner_txs_on_v3
AdoAdoAdo Jun 13, 2024
e5daea9
Merge branch 'rc/v1.7.next1' of https://github.com/multiversx/mx-chai…
sstanculeanu Jul 3, 2024
182030e
Merge pull request #309 from multiversx/merge_rc17next1_into_feat_rel…
sstanculeanu Jul 3, 2024
550eebf
Merge branch 'rc/v1.7.next1' of https://github.com/multiversx/mx-chai…
sstanculeanu Jul 3, 2024
626328c
Merge pull request #310 from multiversx/merge_rc17next1_into_feat_rel…
sstanculeanu Jul 3, 2024
953ec5c
Merge pull request #276 from multiversx/feat/relayedv3
AdoAdoAdo Jul 19, 2024
6e9bfee
Merge branch 'main' of https://github.com/multiversx/mx-chain-core-go…
sstanculeanu Jul 25, 2024
f9259f6
Merge pull request #313 from multiversx/merge_main_into_rc17next1_202…
sstanculeanu Jul 25, 2024
8c8c402
generate MetaDataVersion struct
BeniaminDrasovean Aug 23, 2024
22b7004
add empty line
BeniaminDrasovean Aug 23, 2024
1ec562b
Merge pull request #318 from multiversx/save-DynamicNFT-metaData-on-user
BeniaminDrasovean Aug 28, 2024
75bab2a
revert relayed v3
sstanculeanu Oct 18, 2024
7105ba3
new relayed v3
sstanculeanu Oct 24, 2024
65c6724
added interface for new methods
sstanculeanu Oct 24, 2024
bbc08e6
extended interface
sstanculeanu Oct 24, 2024
8aa3248
Merge pull request #331 from multiversx/revert_relayedv3
sstanculeanu Oct 25, 2024
8ed69b5
Merge branch 'rc/v1.7.next1' into relayedv3
sstanculeanu Oct 29, 2024
a1d08e6
Merge pull request #294 from multiversx/rc/v1.7.next1
sstanculeanu Nov 13, 2024
e2451e1
token random seq correct validity check
axenteoctavian Nov 19, 2024
a0e4044
Merge pull request #335 from multiversx/MX-15294-random-seq-validity
axenteoctavian Nov 19, 2024
2beb131
Merge branch 'rc/spica-patch-relayedv3' into relayedv3
sstanculeanu Dec 4, 2024
686902f
block query new parameter
miiu96 Dec 23, 2024
eaaeb30
Merge pull request #341 from multiversx/MX-16368-for-hyperblock-paramter
sstanculeanu Jan 9, 2025
81a62c0
Merge branch 'rc/spica-patch-relayedv3' into relayedv3
sstanculeanu Jan 9, 2025
0580ffe
extend fee info structure
miiu96 Jan 15, 2025
6fe74e0
extra field
miiu96 Jan 16, 2025
adb8c08
new function
miiu96 Jan 16, 2025
32dcc2d
Merge pull request #345 from multiversx/relayed-v3-extend-fee-info
miiu96 Jan 16, 2025
62f54ef
Merge pull request #332 from multiversx/relayedv3
sstanculeanu Jan 16, 2025
f9cb5a4
Merge pull request #343 from multiversx/rc/spica-patch-relayedv3
sstanculeanu Jan 27, 2025
7dc847e
Merge branch 'rc/andromeda' of https://github.com/multiversx/mx-chain…
sstanculeanu Jan 28, 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
1 change: 1 addition & 0 deletions data/api/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ type AccountQueryOptions struct {
type BlockQueryOptions struct {
WithTransactions bool
WithLogs bool
ForHyperblock bool
}
20 changes: 19 additions & 1 deletion data/esdt/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func IsValidPrefixedToken(token string) (string, bool) {
}

tokenRandSeq := tokenSplit[2]
if !(len(tokenRandSeq) >= esdtTickerNumRandChars) {
if !IsRandomSeqValid(tokenRandSeq) {
return "", false
}

Expand Down Expand Up @@ -83,3 +83,21 @@ func IsTickerValid(ticker string) bool {
func IsTokenTickerLenCorrect(tokenTickerLen int) bool {
return !(tokenTickerLen < minLengthForTickerName || tokenTickerLen > maxLengthForTickerName)
}

// IsRandomSeqValid checks if the token random sequence is valid
func IsRandomSeqValid(randomSeq string) bool {
if len(randomSeq) != esdtTickerNumRandChars {
return false
}

for _, ch := range randomSeq {
isSmallCharacter := ch >= 'a' && ch <= 'f'
isNumber := ch >= '0' && ch <= '9'
isReadable := isSmallCharacter || isNumber
if !isReadable {
return false
}
}

return true
}
10 changes: 5 additions & 5 deletions data/esdt/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,27 @@ import (
)

func TestIsValidPrefixedToken(t *testing.T) {
prefix, valid := IsValidPrefixedToken("sov1-TKN-coffee")
prefix, valid := IsValidPrefixedToken("sov1-TKN-c0ffee")
require.True(t, valid)
require.Equal(t, "sov1", prefix)

prefix, valid = IsValidPrefixedToken("sOv1-TKN-coffee")
prefix, valid = IsValidPrefixedToken("sOv1-TKN-c0ffee")
require.False(t, valid)
require.Equal(t, "", prefix)

prefix, valid = IsValidPrefixedToken("sov1-TkN-coffee")
prefix, valid = IsValidPrefixedToken("sov1-TkN-c0ffee")
require.False(t, valid)
require.Equal(t, "", prefix)

prefix, valid = IsValidPrefixedToken("sov1-TKN-coffe")
prefix, valid = IsValidPrefixedToken("sov1-TKN-c0ffe")
require.False(t, valid)
require.Equal(t, "", prefix)

prefix, valid = IsValidPrefixedToken("sov1-TKN")
require.False(t, valid)
require.Equal(t, "", prefix)

prefix, valid = IsValidPrefixedToken("TKN-coffee")
prefix, valid = IsValidPrefixedToken("TKN-c0ffee")
require.False(t, valid)
require.Equal(t, "", prefix)
}
Expand Down
Loading
Loading