Closed zavodil closed 4 years ago
Moved to devx. It's related to near-shell, to be able to create_account_transfer_deploy_initialize
in one transaction without add access key to the given account.
Solution: Staking pool factory and batch transactions. This is solved with Evgeny's example. More work is needed in deploying a contract without clicking.
Closed when this is resolved: https://github.com/near/near-shell/issues/260
Regarding https://github.com/near/initial-contracts/tree/master/staking-pool#usage we have to 1) create an account by owner
near create_account my_validator --masterAccount=owner
2) deploy a staking-pool contract there.Unfortunately after the first step we have access key here, example:
and it's breaking the logic when initial contract should be locked
Solution 1) Update the guide and add instruction to remove that key
near delete-key --accountId=testcontract1 "ed25119:..."
2) Add a parameter to skip adding access keynear create_account testcontract1 --masterAccount=zavodil.betanet --no-access-key