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

EN-8010/ESDT-ticker-and-name #2455

Merged
merged 8 commits into from Nov 16, 2020

Conversation

sasurobert
Copy link
Contributor

Implemented ESDT ticker and creation of new identifier

vm/errors.go Outdated
@@ -170,6 +167,12 @@ var ErrInvalidMaxNumberOfNodes = errors.New("invalid number of max number of nod
// ErrTokenNameNotHumanReadable signals that token name is not human readable
var ErrTokenNameNotHumanReadable = errors.New("token name is not human readable")

// ErrTickerNameNotValid signals that ticker name is not valid
var ErrTickerNameNotValid = errors.New("token name is not valid")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ticker name is not valid

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

vm/errors.go Outdated
var ErrTickerNameNotValid = errors.New("token name is not valid")

// ErrCouldNotCreateNewIdentifier signals that token identifier could not be created
var ErrCouldNotCreateNewIdentifier = errors.New("token identifier could not be created")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ErrCouldNotCreateNewTokenIdentifier or ErrCouldNotCreateTokenIdentifier

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@raduchis raduchis self-requested a review November 11, 2020 07:59
vm/systemSmartContracts/esdt.go Show resolved Hide resolved
vm/systemSmartContracts/esdt.go Show resolved Hide resolved
vm/systemSmartContracts/esdt_test.go Outdated Show resolved Hide resolved
@@ -174,7 +174,7 @@ func TestEsdt_ExecuteIssue(t *testing.T) {
assert.Equal(t, vmcommon.Ok, output)

assert.Equal(t, 1, len(eei.output))
assert.Equal(t, []byte("01234567891"), eei.output[0])
assert.Equal(t, tokenID, eei.output[0])
Copy link
Contributor

@raduchis raduchis Nov 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the check for initial supply would also help here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there are other unit tests for this.

raduchis
raduchis previously approved these changes Nov 12, 2020
vm/errors.go Outdated
@@ -176,7 +176,7 @@ var ErrCouldNotCreateNewTokenIdentifier = errors.New("token identifier could not
// ErrBLSPublicKeyAlreadyJailed signals that bls public key was already jailed
var ErrBLSPublicKeyAlreadyJailed = errors.New("bls public key already jailed")

// ErrInvalidEndOfEpochAccessAddress signals that end of epoch access address is invalid
// ErrInvalidEndOfEpochAccessAddress signals that end of epoch access address is invalidgetExistingToken
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Delete getExistingToken from the end of the comment

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

vm/errors.go Outdated
@@ -185,8 +185,8 @@ var ErrNilChanceComputer = errors.New("nil chance computer")
// ErrNilEpochNotifier signals that the provided EpochNotifier is nil
var ErrNilEpochNotifier = errors.New("nil EpochNotifier")

// ErrNoTokenWithGivenName signals that token does not exists with given name
var ErrNoTokenWithGivenName = errors.New("no token with given name")
// ErrNoTickerWithGivenName signals that token does not exists with given name
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"ticker does not exist" instead "token does not exists"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

vm/errors.go Outdated
// ErrNoTokenWithGivenName signals that token does not exists with given name
var ErrNoTokenWithGivenName = errors.New("no token with given name")
// ErrNoTickerWithGivenName signals that token does not exists with given name
var ErrNoTickerWithGivenName = errors.New("no token with given name")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"no ticker" instead "no token"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

raduchis
raduchis previously approved these changes Nov 13, 2020
@sasurobert sasurobert merged commit 9813966 into feat/esdt-relayed-arwen Nov 16, 2020
@sasurobert sasurobert deleted the EN-8010/ESDT-ticker-and-name branch November 16, 2020 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants