Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit 64445c5

Browse files
no quark left
1 parent 467b065 commit 64445c5

File tree

12 files changed

+50
-50
lines changed

12 files changed

+50
-50
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ bin/
4949
build/
5050
vendor
5151

52-
.quark-cli-pk
52+
.spaces-cli-pk
5353
genesis.json
5454
*.test
5555

.goreleaser.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# ref. https://goreleaser.com/customization/build/
22
builds:
3-
- id: quark-cli
4-
main: ./cmd/quarkcli
5-
binary: quark-cli
3+
- id: spaces-cli
4+
main: ./cmd/spacescli
5+
binary: spaces-cli
66
flags:
77
- -v
88
# TODO: remove this once we support 32-bit in avalanchego
@@ -15,9 +15,9 @@ builds:
1515
goarch: 386
1616
- goos: freebsd
1717
goarch: 386
18-
- id: quarkvm
19-
main: ./cmd/quarkvm
20-
binary: quarkvm
18+
- id: spacesvm
19+
main: ./cmd/spacesvm
20+
binary: spacesvm
2121
flags:
2222
- -v
2323
# TODO: remove this once we support 32-bit in avalanchego
@@ -34,4 +34,4 @@ builds:
3434
release:
3535
github:
3636
owner: ava-labs
37-
name: quarkvm
37+
name: spacesvm

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -96,18 +96,18 @@ kill 12811
9696
# CLI Usage
9797
## Create Genesis
9898
```bash
99-
./build/quark-cli genesis
99+
./build/spaces-cli genesis
100100
```
101101

102102
## Create Private Key
103103
```bash
104-
./build/quark-cli create
104+
./build/spaces-cli create
105105
```
106106

107107
## Claim a Prefix
108108
```bash
109-
./build/quark-cli \
110-
--private-key-file .quark-cli-pk \
109+
./build/spaces-cli \
110+
--private-key-file .spaces-cli-pk \
111111
--endpoint http://localhost:61858/ext/bc/BJfusM2TpHCEfmt5i7qeE1MwVCbw5jU1TcZNz8MYUwG1PGYRL \
112112
claim patrick.avax
113113

@@ -133,8 +133,8 @@ raw prefix M9Jh5DMRXwMwaTHciFLVAMpc9dZKFpuGE: units=1 expiry=2022-02-09 02:17:33
133133

134134
## Set Key in Prefix
135135
```bash
136-
./build/quark-cli \
137-
--private-key-file .quark-cli-pk \
136+
./build/spaces-cli \
137+
--private-key-file .spaces-cli-pk \
138138
--endpoint http://localhost:61858/ext/bc/BJfusM2TpHCEfmt5i7qeE1MwVCbw5jU1TcZNz8MYUwG1PGYRL \
139139
set patrick.avax/twitter @_patrickogrady
140140

@@ -148,8 +148,8 @@ raw prefix M9Jh5DMRXwMwaTHciFLVAMpc9dZKFpuGE: units=2 expiry=2022-01-25 02:18:47
148148

149149
## Get Key in Preifx
150150
```bash
151-
./build/quark-cli \
152-
--private-key-file .quark-cli-pk \
151+
./build/spaces-cli \
152+
--private-key-file .spaces-cli-pk \
153153
--endpoint http://localhost:61858/ext/bc/BJfusM2TpHCEfmt5i7qeE1MwVCbw5jU1TcZNz8MYUwG1PGYRL \
154154
get patrick.avax/twitter
155155

@@ -159,8 +159,8 @@ key: "twitter", value: "@_patrickogrady"
159159

160160
## Delete Key in Preifx
161161
```bash
162-
./build/quark-cli \
163-
--private-key-file .quark-cli-pk \
162+
./build/spaces-cli \
163+
--private-key-file .spaces-cli-pk \
164164
--endpoint http://localhost:61858/ext/bc/BJfusM2TpHCEfmt5i7qeE1MwVCbw5jU1TcZNz8MYUwG1PGYRL \
165165
delete patrick.avax/twitter
166166

@@ -174,8 +174,8 @@ raw prefix M9Jh5DMRXwMwaTHciFLVAMpc9dZKFpuGE: units=1 expiry=2022-02-09 02:20:55
174174

175175
## Extend Prefix Life
176176
```bash
177-
./build/quark-cli \
178-
--private-key-file .quark-cli-pk \
177+
./build/spaces-cli \
178+
--private-key-file .spaces-cli-pk \
179179
--endpoint http://localhost:61858/ext/bc/BJfusM2TpHCEfmt5i7qeE1MwVCbw5jU1TcZNz8MYUwG1PGYRL \
180180
lifeline patrick.avax
181181

cmd/spacescli/cmd/claim.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ with the prefix information.
2626
2727
# Issues "ClaimTx" for the ownership of "hello.avax".
2828
# "hello.avax" is the prefix (or namespace)
29-
$ quark-cli claim hello.avax
29+
$ spaces-cli claim hello.avax
3030
<<COMMENT
3131
success
3232
COMMENT
3333
3434
# The existing prefix can be overwritten by a different owner.
3535
# Once claimed, all existing key-value pairs are deleted.
36-
$ quark-cli claim hello.avax --private-key-file=.different-key
36+
$ spaces-cli claim hello.avax --private-key-file=.different-key
3737
<<COMMENT
3838
success
3939
COMMENT
@@ -42,7 +42,7 @@ COMMENT
4242
# the previous prefix (owner) info has not been expired.
4343
# Even if the prefix is claimed by the same owner,
4444
# all underlying key-values are deleted.
45-
$ quark-cli claim hello.avax
45+
$ spaces-cli claim hello.avax
4646
<<COMMENT
4747
success
4848
COMMENT

cmd/spacescli/cmd/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ var createCmd = &cobra.Command{
1919
Creates a new key in the default location.
2020
It will error if the key file already exists.
2121
22-
$ quark-cli create
22+
$ spaces-cli create
2323
2424
`,
2525
RunE: createFunc,

cmd/spacescli/cmd/delete.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ with "foo" as prefix and "hello" as key. The prefix/key cannot
2828
have more than one delimiter (e.g., "foo/hello/world" is invalid)
2929
in order to maintain the flat key space.
3030
31-
It assumes the prefix is already claimed via "quark-cli claim",
32-
and the key already exists via "quark-cli set". Otherwise, the
31+
It assumes the prefix is already claimed via "spaces-cli claim",
32+
and the key already exists via "spaces-cli set". Otherwise, the
3333
transaction will fail.
3434
3535
# claims the prefix "hello.avax"
3636
# "hello.avax" is the prefix (or namespace)
37-
$ quark-cli claim hello.avax
37+
$ spaces-cli claim hello.avax
3838
<<COMMENT
3939
success
4040
COMMENT
@@ -44,26 +44,26 @@ COMMENT
4444
# "hello.avax" is the prefix (or namespace)
4545
# "foo" is the key
4646
# "hello world" is the value
47-
$ quark-cli set hello.avax/foo "hello world"
47+
$ spaces-cli set hello.avax/foo "hello world"
4848
<<COMMENT
4949
success
5050
COMMENT
5151
5252
# The prefix and key can be deleted by "delete" command.
53-
$ quark-cli delete hello.avax/foo
53+
$ spaces-cli delete hello.avax/foo
5454
<<COMMENT
5555
success
5656
COMMENT
5757
5858
# The prefix itself cannot be deleted by "delete" command.
59-
$ quark-cli delete hello.avax
59+
$ spaces-cli delete hello.avax
6060
<<COMMENT
6161
error
6262
COMMENT
6363
6464
# The existing key-value cannot be overwritten by a different owner.
6565
# The prefix must be claimed before it allows key-value writes.
66-
$ quark-cli set hello.avax/foo "hello world" --private-key-file=.different-key
66+
$ spaces-cli set hello.avax/foo "hello world" --private-key-file=.different-key
6767
<<COMMENT
6868
error
6969
COMMENT

cmd/spacescli/cmd/get.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ in order to maintain the flat key space.
5353
# then only issue "ClaimTx" for its ownership.
5454
#
5555
# "hello.avax" is the prefix (or namespace)
56-
$ quark-cli claim hello.avax
56+
$ spaces-cli claim hello.avax
5757
<<COMMENT
5858
success
5959
COMMENT
@@ -64,29 +64,29 @@ COMMENT
6464
# "hello.avax" is the prefix (or namespace)
6565
# "foo" is the key
6666
# "hello world" is the value
67-
$ quark-cli claim hello.avax/foo1 "hello world 1"
68-
$ quark-cli claim hello.avax/foo2 "hello world 2"
69-
$ quark-cli claim hello.avax/foo3 "hello world 3"
67+
$ spaces-cli claim hello.avax/foo1 "hello world 1"
68+
$ spaces-cli claim hello.avax/foo2 "hello world 2"
69+
$ spaces-cli claim hello.avax/foo3 "hello world 3"
7070
<<COMMENT
7171
success
7272
COMMENT
7373
7474
# To read the existing key-value pair.
75-
$ quark-cli get hello.avax/foo1
75+
$ spaces-cli get hello.avax/foo1
7676
<<COMMENT
7777
"hello.avax/foo1" "hello world 1"
7878
COMMENT
7979
8080
# To read key-values with the prefix.
81-
$ quark-cli get hello.avax/foo --with-prefix
81+
$ spaces-cli get hello.avax/foo --with-prefix
8282
<<COMMENT
8383
"hello.avax/foo1" "hello world 1"
8484
"hello.avax/foo2" "hello world 2"
8585
"hello.avax/foo3" "hello world 3"
8686
COMMENT
8787
8888
# To read key-values with the range end [start,end).
89-
$ quark-cli get hello.avax/foo1 hello.avax/foo3
89+
$ spaces-cli get hello.avax/foo1 hello.avax/foo3
9090
<<COMMENT
9191
"hello.avax/foo1" "hello world 1"
9292
"hello.avax/foo2" "hello world 2"

cmd/spacescli/cmd/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (C) 2019-2021, Ava Labs, Inc. All rights reserved.
22
// See the file LICENSE for licensing terms.
33

4-
// "quark-cli" implements spacesvm client operation interface.
4+
// "spaces-cli" implements spacesvm client operation interface.
55
package cmd
66

77
import (

cmd/spacescli/cmd/set.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ with "foo" as prefix and "hello" as key. The prefix/key cannot
2828
have more than one delimiter (e.g., "foo/hello/world" is invalid)
2929
in order to maintain the flat key space.
3030
31-
It assumes the prefix is already claimed via "quark-cli claim".
31+
It assumes the prefix is already claimed via "spaces-cli claim".
3232
Otherwise, the set transaction will fail.
3333
3434
# claims the prefix "hello.avax"
3535
# "hello.avax" is the prefix (or namespace)
36-
$ quark-cli claim hello.avax
36+
$ spaces-cli claim hello.avax
3737
<<COMMENT
3838
success
3939
COMMENT
@@ -43,14 +43,14 @@ COMMENT
4343
# "hello.avax" is the prefix (or namespace)
4444
# "foo" is the key
4545
# "hello world" is the value
46-
$ quark-cli set hello.avax/foo "hello world"
46+
$ spaces-cli set hello.avax/foo "hello world"
4747
<<COMMENT
4848
success
4949
COMMENT
5050
5151
# The existing key-value cannot be overwritten by a different owner.
5252
# The prefix must be claimed before it allows key-value writes.
53-
$ quark-cli set hello.avax/foo "hello world" --private-key-file=.different-key
53+
$ spaces-cli set hello.avax/foo "hello world" --private-key-file=.different-key
5454
<<COMMENT
5555
error
5656
COMMENT
@@ -59,7 +59,7 @@ COMMENT
5959
# the previous prefix (owner) info has not been expired.
6060
# Even if the prefix is claimed by the same owner,
6161
# all underlying key-values are deleted.
62-
$ quark-cli claim hello.avax
62+
$ spaces-cli claim hello.avax
6363
<<COMMENT
6464
success
6565
COMMENT

cmd/spacescli/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (C) 2019-2021, Ava Labs, Inc. All rights reserved.
22
// See the file LICENSE for licensing terms.
33

4-
// "quark-cli" implements spacesvm client operation interface.
4+
// "spaces-cli" implements spacesvm client operation interface.
55
package main
66

77
import (

0 commit comments

Comments
 (0)