Add a script to simplify creating and funding a new account. #131

Merged
telackey merged 3 commits from telackey/account-script into main 2024-01-10 23:04:53 +00:00
Member

Add a script for creating funded test accounts simply.

❯ scripts/create-and-fund-account.sh
{
  "name": "68334d7175fd4f86befa4902657e5270",
  "type": "local",
  "address": "ethm15r5x94km0swq55aszwd7hnr9wksq7wmr38xes7",
  "pubkey": "AuKqlSldJJXj4gYMFt2HeX9DJ3aUosYA7n6zBz9Tg7/i",
  "mnemonic": "umbrella bean special unaware accident giant distance mix ghost feel possible cost road grant endless man maple derive rebuild learn mask water attract resist",
  "bond": "3d3a73f09115d289d330781455e6eac217305dc4a20e19bde808011fe3775a93",
  "balance": 5000000000,
  "privkey": "480880fde7aff1461da584b436cb3a84692413c84623fda78e127bb4e704ce76"
}
Add a script for creating funded test accounts simply. ``` ❯ scripts/create-and-fund-account.sh { "name": "68334d7175fd4f86befa4902657e5270", "type": "local", "address": "ethm15r5x94km0swq55aszwd7hnr9wksq7wmr38xes7", "pubkey": "AuKqlSldJJXj4gYMFt2HeX9DJ3aUosYA7n6zBz9Tg7/i", "mnemonic": "umbrella bean special unaware accident giant distance mix ghost feel possible cost road grant endless man maple derive rebuild learn mask water attract resist", "bond": "3d3a73f09115d289d330781455e6eac217305dc4a20e19bde808011fe3775a93", "balance": 5000000000, "privkey": "480880fde7aff1461da584b436cb3a84692413c84623fda78e127bb4e704ce76" } ```
telackey added 1 commit 2024-01-10 05:12:21 +00:00
Add a script to simplify creating and funding a new account.
Some checks failed
Build / cleanup-runs (pull_request) Successful in 8s
Deploy Contract / cleanup-runs (pull_request) Successful in 11s
CodeQL / Analyze (go) (pull_request) Failing after 39s
Build / build (pull_request) Failing after 1m14s
Pull Request Labeler / triage (pull_request) Failing after 36s
Dependency Review / dependency-review (pull_request) Failing after 1m15s
Deploy Contract / deploy (pull_request) Failing after 1m1s
Semgrep / Scan (pull_request) Failing after 21s
Lint / Run flake8 on python integration tests (pull_request) Failing after 26s
Tests / cleanup-runs (pull_request) Failing after 4s
Run Gosec / Gosec (pull_request) Failing after 39s
Lint / Run golangci-lint (pull_request) Failing after 1m48s
Tests / test-importer (pull_request) Failing after 1m28s
Tests / test-unit-cover (pull_request) Failing after 1m29s
Tests / test-rpc (pull_request) Failing after 1m39s
Tests / sdk_tests (pull_request) Failing after 4m53s
19a7b4d3eb
telackey added 1 commit 2024-01-10 05:13:02 +00:00
Refactor
Some checks failed
Build / cleanup-runs (pull_request) Failing after 2s
Build / build (pull_request) Successful in 36s
Deploy Contract / cleanup-runs (pull_request) Failing after 6s
CodeQL / Analyze (go) (pull_request) Successful in 1m13s
Deploy Contract / deploy (pull_request) Failing after 36s
Pull Request Labeler / triage (pull_request) Failing after 3s
Dependency Review / dependency-review (pull_request) Successful in 1m31s
Lint / Run flake8 on python integration tests (pull_request) Failing after 48s
Lint / Run golangci-lint (pull_request) Successful in 52s
Tests / cleanup-runs (pull_request) Failing after 8s
Semgrep / Scan (pull_request) Failing after 11s
Run Gosec / Gosec (pull_request) Successful in 1m8s
Tests / test-importer (pull_request) Successful in 1m27s
Tests / test-unit-cover (pull_request) Successful in 1m29s
Tests / test-rpc (pull_request) Successful in 1m48s
Tests / sdk_tests (pull_request) Failing after 3m11s
b8f56076ff
telackey added 1 commit 2024-01-10 05:17:56 +00:00
Make amount a command-line param
Some checks failed
Build / cleanup-runs (pull_request) Failing after 5s
Build / build (pull_request) Successful in 1m2s
Deploy Contract / cleanup-runs (pull_request) Failing after 6s
Deploy Contract / deploy (pull_request) Failing after 43s
Pull Request Labeler / triage (pull_request) Failing after 22s
CodeQL / Analyze (go) (pull_request) Successful in 1m40s
Dependency Review / dependency-review (pull_request) Successful in 1m29s
Lint / Run flake8 on python integration tests (pull_request) Failing after 32s
Run Gosec / Gosec (pull_request) Successful in 26s
Tests / cleanup-runs (pull_request) Successful in 5s
Semgrep / Scan (pull_request) Failing after 12s
Lint / Run golangci-lint (pull_request) Successful in 49s
Tests / test-rpc (pull_request) Successful in 1m10s
Tests / test-unit-cover (pull_request) Successful in 1m58s
Tests / test-importer (pull_request) Successful in 1m53s
Tests / sdk_tests (pull_request) Failing after 2m27s
cb2afcdfeb
telackey requested review from dboreham 2024-01-10 05:21:02 +00:00
dboreham reviewed 2024-01-10 05:22:39 +00:00
@ -0,0 +1,22 @@
#!/bin/bash
Owner

Add some comments saying what the script is for and how to run it please.

Add some comments saying what the script is for and how to run it please.
telackey merged commit ec70c9f36b into main 2024-01-10 23:04:53 +00:00
telackey deleted branch telackey/account-script 2024-01-10 23:04:54 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cerc-io/laconicd-deprecated#131
No description provided.