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: add accounts cmd and issued_cells for account-list #9

Merged
merged 5 commits into from
Feb 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 6 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ npm install -g offckb // not yet, todo
offckb node // start the devnet of CKB
offckb init // init a typescript boilerplate with lumos to get started with to build CKB DAPP,think 'hardhat init'
offckb list-hashes // list scripts hashes, equals `ckb list-hashes`
offckb list-accounts // todo, list accounts with prefund CKB tokens
offckb accounts // list 20 accounts info with prefund CKB tokens
```

### Built-in scripts
Expand All @@ -32,28 +32,11 @@ offckb list-accounts // todo, list accounts with prefund CKB tokens
- [ ] Spore https://github.com/sporeprotocol/spore-contract

### Accounts
```
6109170b275a09ad54877b82f7d9930f88cab5717d484fb4741ae9d1dd078cd6
9f315d5a9618a39fdc487c7a67a8581d40b045bd7a42d83648ca80ef3b2cb4a1
59ddda57ba06d6e9c5fa9040bdb98b4b098c2fce6520d39f51bc5e825364697a
f4a1fc19468b51ba9d1f0f5441fa3f4d91e625b2af105e1e37cc54bf9b19c0a1
0334ddff3b1e19af5c5fddda8dbcfb235416eaaba11cfca8acf63ad46e9f55b2
6f358d92f408511707803d292efa148236a2e114d73a472be2a07e0ba49200c7
bde2f19c98dc5ab4cc98f73c573757a9f1782dc44398022a23f77ca752ad8fbe
7c1280118923ea96529909638dac9bd258251a222783f91dedbf82de15526fd2
1fe1356d47224f34788eb099c4f67ab28a477a5a85d6ff4e54c240c11a0c693c
c3255dd2bbc3accc69c82bdb2c927ab4a681146331d5e01990890fb3cd732b47
8c3f8a6a6847a31af93000a31629f0c674e0cbb1b7cb71bdfbf4fb9dd828a518
11e34fc1bad213b1ce3071501a18c39e5dbf1ea2e66ac05059c36a5d1e7a56cf
0a0ecce6f15c444e6d0013d6eb79c87babff2c76447f3a2f6b28023490170c1f
006250e940dbce94ad9329ac16c109acf7de98c7e4738013bdd3105d4f004d8a
fc8142dc0a6c1dc9102696e7ca730b8c05e233549ea924fafa477f5086d94ac3
711aa98da3e9643170de94d6b16d3a30edf4bb231aa793aaac0fc7373c0f6322
76f51bf03e38b7f4a3c2cd8b088103e746f0e425fb0c5e0f8b22061f41c790cc
1ef1c9cbf031d7bc181c039cebb4f2914dbad689ab268e192fe22ea314d9b4a4
a5808e79c243d8e026a034273ad7a5ccdcb2f982392fd0230442b1734c98a4c2
ace08599f3174f4376ae51fdc30950d4f2d731440382bb0aa1b6b0bd3a9728cd
```

`offckb` comes with 20 accounts, each account is funded with 42_000_000_00000000 capacity in the genesis block.

all the private keys are recorded in the `account/keys` file.
detail informations about each account are recorded in the `account/account.json` file.

## Development

Expand Down
222 changes: 222 additions & 0 deletions account/account.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,222 @@
[
{
"privkey": "0x6109170b275a09ad54877b82f7d9930f88cab5717d484fb4741ae9d1dd078cd6",
"pubkey": "0x02025fa7b61b2365aa459807b84df065f1949d58c0ae590ff22dd2595157bffefa",
"lockScript": {
"codeHash": "0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8",
"hashType": "type",
"args": "0x8e42b1999f265a0078503c4acec4d5e134534297"
},
"address": "ckt1qzda0cr08m85hc8jlnfp3zer7xulejywt49kt2rr0vthywaa50xwsqvwg2cen8extgq8s5puft8vf40px3f599cytcyd8",
"args": "0x8e42b1999f265a0078503c4acec4d5e134534297"
},
{
"privkey": "0x9f315d5a9618a39fdc487c7a67a8581d40b045bd7a42d83648ca80ef3b2cb4a1",
"pubkey": "0x026efa0579f09cc7c1129b78544f70098c90b2ab155c10746316f945829c034a2d",
"lockScript": {
"codeHash": "0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8",
"hashType": "type",
"args": "0x758d311c8483e0602dfad7b69d9053e3f917457d"
},
"address": "ckt1qzda0cr08m85hc8jlnfp3zer7xulejywt49kt2rr0vthywaa50xwsqt435c3epyrupszm7khk6weq5lrlyt52lg48ucew",
"args": "0x758d311c8483e0602dfad7b69d9053e3f917457d"
},
{
"privkey": "0x59ddda57ba06d6e9c5fa9040bdb98b4b098c2fce6520d39f51bc5e825364697a",
"pubkey": "0x02f1ec8d18e8ff13ecf7b3ab8f683d0c3a6d63478a7f7d14ca0fdfe8fea331e863",
"lockScript": {
"codeHash": "0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8",
"hashType": "type",
"args": "0x9d1edebedf8f026c0d597c4c5cd3f45dec1f7557"
},
"address": "ckt1qzda0cr08m85hc8jlnfp3zer7xulejywt49kt2rr0vthywaa50xwsqvarm0tahu0qfkq6ktuf3wd8azaas0h24c9myfz6",
"args": "0x9d1edebedf8f026c0d597c4c5cd3f45dec1f7557"
},
{
"privkey": "0xf4a1fc19468b51ba9d1f0f5441fa3f4d91e625b2af105e1e37cc54bf9b19c0a1",
"pubkey": "0x02e72cbdff20422a3886ec667a138a59478d93da072173be4344c55582acdce67c",
"lockScript": {
"codeHash": "0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8",
"hashType": "type",
"args": "0xe65f823bc5a48a38515690604e503dba4eb15d61"
},
"address": "ckt1qzda0cr08m85hc8jlnfp3zer7xulejywt49kt2rr0vthywaa50xwsq0xt7prh3dy3gu9z45svp89q0d6f6c46cg9dp9mn",
"args": "0xe65f823bc5a48a38515690604e503dba4eb15d61"
},
{
"privkey": "0x0334ddff3b1e19af5c5fddda8dbcfb235416eaaba11cfca8acf63ad46e9f55b2",
"pubkey": "0x022c0ea6dae4ee9f6a6303ffe85e3223b273e7e1520343f35ad57a50566c306889",
"lockScript": {
"codeHash": "0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8",
"hashType": "type",
"args": "0x9665e6bc1966ec2bfcca4f11782d2b906f38438f"
},
"address": "ckt1qzda0cr08m85hc8jlnfp3zer7xulejywt49kt2rr0vthywaa50xwsqvkvhntcxtxas4lejj0z9uz62usduuy8rcwg4fr9",
"args": "0x9665e6bc1966ec2bfcca4f11782d2b906f38438f"
},
{
"privkey": "0x6f358d92f408511707803d292efa148236a2e114d73a472be2a07e0ba49200c7",
"pubkey": "0x02ebb6ce7a68eeb34c66d394dab74d20f766e4c711d52cbea7643ae828d3478813",
"lockScript": {
"codeHash": "0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8",
"hashType": "type",
"args": "0x0df9552f53d51a378aba267bc858dada447e8400"
},
"address": "ckt1qzda0cr08m85hc8jlnfp3zer7xulejywt49kt2rr0vthywaa50xwsqgdl92j7574rgmc4w3x00y93kk6g3lggqq23mmmd",
"args": "0x0df9552f53d51a378aba267bc858dada447e8400"
},
{
"privkey": "0xbde2f19c98dc5ab4cc98f73c573757a9f1782dc44398022a23f77ca752ad8fbe",
"pubkey": "0x02747a187de5f4b5a864d49fd20b8e2d62dfd3dfe3af3fa09155eebe76e3989cf3",
"lockScript": {
"codeHash": "0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8",
"hashType": "type",
"args": "0x683188bb29502ba6e702b7c650cc80707c3f8b4b"
},
"address": "ckt1qzda0cr08m85hc8jlnfp3zer7xulejywt49kt2rr0vthywaa50xwsqtgxxytk22s9wnwwq4hcegveqrs0slckjc2gkygd",
"args": "0x683188bb29502ba6e702b7c650cc80707c3f8b4b"
},
{
"privkey": "0x7c1280118923ea96529909638dac9bd258251a222783f91dedbf82de15526fd2",
"pubkey": "0x027d0aaa651657c452ebcf02537fde64a3bf822ec00bd59e658aa3e854e02d3e6e",
"lockScript": {
"codeHash": "0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8",
"hashType": "type",
"args": "0x532bfb946e4b108d14758ca38e6e3b4af6801996"
},
"address": "ckt1qzda0cr08m85hc8jlnfp3zer7xulejywt49kt2rr0vthywaa50xwsq2n90aegmjtzzx3gavv5w8xuw6276qpn9s4x74d7",
"args": "0x532bfb946e4b108d14758ca38e6e3b4af6801996"
},
{
"privkey": "0x1fe1356d47224f34788eb099c4f67ab28a477a5a85d6ff4e54c240c11a0c693c",
"pubkey": "0x036555a57d4866067f4886a63d34c3f7396aa770c8617b57ff7e0b664e4444ef6e",
"lockScript": {
"codeHash": "0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8",
"hashType": "type",
"args": "0x3982ac2f4893dfcac091ef795bb778cc2a25edd9"
},
"address": "ckt1qzda0cr08m85hc8jlnfp3zer7xulejywt49kt2rr0vthywaa50xwsqfes2kz7jynml9vpy0009dmw7xv9gj7mkgzxwxsx",
"args": "0x3982ac2f4893dfcac091ef795bb778cc2a25edd9"
},
{
"privkey": "0xc3255dd2bbc3accc69c82bdb2c927ab4a681146331d5e01990890fb3cd732b47",
"pubkey": "0x03c0a782747b630e101468cac29137a709e14806586d1110d901eeb8a81d2ada47",
"lockScript": {
"codeHash": "0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8",
"hashType": "type",
"args": "0x5aab386e8a9f4f869776674c7181ea76fef75b55"
},
"address": "ckt1qzda0cr08m85hc8jlnfp3zer7xulejywt49kt2rr0vthywaa50xwsq264vuxaz5lf7rfwan8f3ccr6nklmm4k4gwtzp2q",
"args": "0x5aab386e8a9f4f869776674c7181ea76fef75b55"
},
{
"privkey": "0x8c3f8a6a6847a31af93000a31629f0c674e0cbb1b7cb71bdfbf4fb9dd828a518",
"pubkey": "0x02de6586e04a9776123fdc2f79e01bd613ab86c0447337392e27376aad8850e854",
"lockScript": {
"codeHash": "0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8",
"hashType": "type",
"args": "0xf6ca1c08a40ab3d00e2299930cf0f8c298a1a90d"
},
"address": "ckt1qzda0cr08m85hc8jlnfp3zer7xulejywt49kt2rr0vthywaa50xwsq0kegwq3fq2k0gqug5ejvx0p7xznzs6jrg890q3w",
"args": "0xf6ca1c08a40ab3d00e2299930cf0f8c298a1a90d"
},
{
"privkey": "0x11e34fc1bad213b1ce3071501a18c39e5dbf1ea2e66ac05059c36a5d1e7a56cf",
"pubkey": "0x032f632ea8c48329f701d067e77e8e66aacd61522ca7d8409523df746a0b216248",
"lockScript": {
"codeHash": "0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8",
"hashType": "type",
"args": "0x5cb8098824329c3a2e731641ae4e90ba0a3ec396"
},
"address": "ckt1qzda0cr08m85hc8jlnfp3zer7xulejywt49kt2rr0vthywaa50xwsq2uhqycsfpjnsazuuckgxhyay96pglv89svgrrcn",
"args": "0x5cb8098824329c3a2e731641ae4e90ba0a3ec396"
},
{
"privkey": "0x0a0ecce6f15c444e6d0013d6eb79c87babff2c76447f3a2f6b28023490170c1f",
"pubkey": "0x02081831dc9ae364ef25f327d2c112b39b28ae76de9898a4a9001e6d2d10d64b4e",
"lockScript": {
"codeHash": "0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8",
"hashType": "type",
"args": "0x516932280d5ff3108119fe2361d0868f1998dcc4"
},
"address": "ckt1qzda0cr08m85hc8jlnfp3zer7xulejywt49kt2rr0vthywaa50xwsq23dyezsr2l7vggzx07ydsapp50rxvde3qslv5ac",
"args": "0x516932280d5ff3108119fe2361d0868f1998dcc4"
},
{
"privkey": "0x006250e940dbce94ad9329ac16c109acf7de98c7e4738013bdd3105d4f004d8a",
"pubkey": "0x023e57800b040fdd6ae02197033e4cb7b323db11f9b3eb5eb139277eec68767c76",
"lockScript": {
"codeHash": "0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8",
"hashType": "type",
"args": "0x7a83042ddabeb27294fe62588df7acc627d4181f"
},
"address": "ckt1qzda0cr08m85hc8jlnfp3zer7xulejywt49kt2rr0vthywaa50xwsqt6svzzmk47kfefflnztzxl0txxyl2ps8cyvd734",
"args": "0x7a83042ddabeb27294fe62588df7acc627d4181f"
},
{
"privkey": "0xfc8142dc0a6c1dc9102696e7ca730b8c05e233549ea924fafa477f5086d94ac3",
"pubkey": "0x02a7c2ea6f66885dde24ac353bc9f62e619e928078bdbc6b6ad50558b81db73b78",
"lockScript": {
"codeHash": "0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8",
"hashType": "type",
"args": "0x1416fe8e3e1d659a235f5f35b30f7cfbdf9fd77c"
},
"address": "ckt1qzda0cr08m85hc8jlnfp3zer7xulejywt49kt2rr0vthywaa50xwsqg5zmlgu0savkdzxh6lxkes7l8mm70awlq3lw7yk",
"args": "0x1416fe8e3e1d659a235f5f35b30f7cfbdf9fd77c"
},
{
"privkey": "0x711aa98da3e9643170de94d6b16d3a30edf4bb231aa793aaac0fc7373c0f6322",
"pubkey": "0x039077f3e3f89fb0303faa6ebefe890c5ea89bc5563ade41f9dc33165d27b78e12",
"lockScript": {
"codeHash": "0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8",
"hashType": "type",
"args": "0xf246d3f9d94aab2688babb4802879056d9bf5810"
},
"address": "ckt1qzda0cr08m85hc8jlnfp3zer7xulejywt49kt2rr0vthywaa50xwsq0jgmflnk224vng3w4mfqpg0yzkmxl4syqtwnm8g",
"args": "0xf246d3f9d94aab2688babb4802879056d9bf5810"
},
{
"privkey": "0x76f51bf03e38b7f4a3c2cd8b088103e746f0e425fb0c5e0f8b22061f41c790cc",
"pubkey": "0x037ebf8c904461cc9fe3c5510f52874d1baf557613cceb4300f82acfdddb7de927",
"lockScript": {
"codeHash": "0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8",
"hashType": "type",
"args": "0x4ec295923dde1b522835007f9260e8ba398dc7cb"
},
"address": "ckt1qzda0cr08m85hc8jlnfp3zer7xulejywt49kt2rr0vthywaa50xwsq2wc22ey0w7rdfzsdgq07fxp6968xxu0jcuc7xwl",
"args": "0x4ec295923dde1b522835007f9260e8ba398dc7cb"
},
{
"privkey": "0x1ef1c9cbf031d7bc181c039cebb4f2914dbad689ab268e192fe22ea314d9b4a4",
"pubkey": "0x0389a0a718b1eedaedb12fdf61834ada0ee78af6dc7fb2e90c8fc96fd14bf5da73",
"lockScript": {
"codeHash": "0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8",
"hashType": "type",
"args": "0xd7ab64e757d1177a955a5c997a6ba7feab49161b"
},
"address": "ckt1qzda0cr08m85hc8jlnfp3zer7xulejywt49kt2rr0vthywaa50xwsqwh4djww473zaaf2kjun9axhfl74dy3vxctp93d8",
"args": "0xd7ab64e757d1177a955a5c997a6ba7feab49161b"
},
{
"privkey": "0xa5808e79c243d8e026a034273ad7a5ccdcb2f982392fd0230442b1734c98a4c2",
"pubkey": "0x034417bf068a1166a1443cfbbf974e61a65bf402dcce7b157a67260c18c6dd76f7",
"lockScript": {
"codeHash": "0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8",
"hashType": "type",
"args": "0x9ba28269270223ba366a29dc96401910540894a4"
},
"address": "ckt1qzda0cr08m85hc8jlnfp3zer7xulejywt49kt2rr0vthywaa50xwsqvm52pxjfczywarv63fmjtyqxgs2syfffq2348ad",
"args": "0x9ba28269270223ba366a29dc96401910540894a4"
},
{
"privkey": "0xace08599f3174f4376ae51fdc30950d4f2d731440382bb0aa1b6b0bd3a9728cd",
"pubkey": "0x0216bc7b5b0a30fb910c372062a7f8cfa89f3a231f5d4a975e60a787ea828aa49e",
"lockScript": {
"codeHash": "0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8",
"hashType": "type",
"args": "0x4118c8c16749bf126b22468d030bf9de7da3717b"
},
"address": "ckt1qzda0cr08m85hc8jlnfp3zer7xulejywt49kt2rr0vthywaa50xwsq2prryvze6fhufxkgjx35psh7w70k3hz7c3mtl4d",
"args": "0x4118c8c16749bf126b22468d030bf9de7da3717b"
}
]
Loading