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

Contract binary package #401

Merged
merged 7 commits into from
Jun 17, 2024
Merged

Contract binary package #401

merged 7 commits into from
Jun 17, 2024

Conversation

roman-khimov
Copy link
Member

No description provided.

Otherwise pkg.go.dev refuses to show anything, see https://pkg.go.dev/license-policy

Signed-off-by: Roman Khimov <roman@nspcc.ru>
Strip the contract name from NEF (it's redundant), make it more clear that
we have a manifest already in JSON ("config" can also refer to "config.yml"
for the compiler).

Signed-off-by: Roman Khimov <roman@nspcc.ru>
And check for updates in workflow.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
@roman-khimov roman-khimov force-pushed the contract-binary-package branch 4 times, most recently from aafb87f to 21ced72 Compare June 14, 2024 15:48
@roman-khimov roman-khimov marked this pull request as ready for review June 14, 2024 15:59
Copy link
Contributor

@cthulhu-rider cthulhu-rider left a comment

Choose a reason for hiding this comment

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

nice overall

scripts/compare-fscontent/go.mod Outdated Show resolved Hide resolved
deploy/nns.go Show resolved Hide resolved
func TestGetFS(t *testing.T) {
c, err := GetFS()
require.NoError(t, err)
require.Equal(t, len(fsContracts), len(c))
Copy link
Contributor

Choose a reason for hiding this comment

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

suggest to also test They're returned in the order they're supposed to be deployed starting from NNS statement from docs. We can also check exact (i guess) result contents since embedded files are now presented in the repo

ok to be done later

contracts/contracts.go Show resolved Hide resolved
Don't pollute contracts go.mod with go-spew and CLI dependencies.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
Signed-off-by: Roman Khimov <roman@nspcc.ru>
Make them available via a simple package update.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
Real errors are returned like this:
   "error": "call 'resolve' method of the NNS contract: invocation failed: at instruction 4100 (THROW): unhandled exception: \"token not found\""
So it can't be a simple equality check.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
@roman-khimov roman-khimov merged commit e882639 into master Jun 17, 2024
10 checks passed
@roman-khimov roman-khimov deleted the contract-binary-package branch June 17, 2024 16:11
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

2 participants