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

feat: deploy scripts #90

Closed
wants to merge 1 commit into from
Closed

feat: deploy scripts #90

wants to merge 1 commit into from

Conversation

VladasZ
Copy link
Collaborator

@VladasZ VladasZ commented Jun 7, 2024

No description provided.

set -eox pipefail

near deploy jars.sweat ./res/sweat_jar.wasm --initFunction migrate_state_to_near_sdk_5 --initArgs '{}' --networkId mainnet
#near deploy jars.sweat ./res/sweat_jar.wasm --networkId mainnet
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's make optional arguments for init function and it's arguments as script arguments?

set -eox pipefail

#near deploy v8.jar.sweatty.testnet ./res/sweat_jar.wasm --initFunction migrate_state_to_near_sdk_5 --initArgs '{}'
near deploy v8.jar.sweatty.testnet ./res/sweat_jar.wasm
Copy link
Collaborator

Choose a reason for hiding this comment

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

And the same hear, plus probably account id as an argument

Copy link
Collaborator

@vasyafromrussia vasyafromrussia left a comment

Choose a reason for hiding this comment

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

Args

@VladasZ
Copy link
Collaborator Author

VladasZ commented Jun 11, 2024

@vasyafromrussia the goal of these scripts is not to be universal. If you want to have arguments for contract and different init functions you can just use near deploy. My idea here was just to have prepared scripts which I can copypaste and send to someone to deploy the contract. If you don't think that this is a good idea I maybe I can remove them from the repo and save somewhere in my notes.

@VladasZ VladasZ closed this Jun 27, 2024
@VladasZ VladasZ deleted the deploy-scripts branch June 27, 2024 13:00
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.

2 participants