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

Commit 13f7095

Browse files
Merge pull request #57 from ava-labs/mass-rename
Mass Rename
2 parents 0c2acd2 + 64445c5 commit 13f7095

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+155
-155
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

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
BSD 3-Clause License
22

3-
Copyright (c) 2020, Ava Labs, Inc.
3+
Copyright (c) 2022, Ava Labs, Inc.
44
All rights reserved.
55

66
Redistribution and use in source and binary forms, with or without

LICENSE.header

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Copyright (C) 2019-2021, Ava Labs, Inc. All rights reserved.
2-
See the file LICENSE for licensing terms.
1+
Copyright (C) 2022, Ava Labs, Inc. All rights reserved.
2+
See the file LICENSE for licensing terms.

README.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Key-value virtual machine (KVVM)
1+
# SpacesVM
22

33
Avalanche is a network composed of multiple blockchains. Each blockchain is an instance of a [Virtual Machine (VM)](https://docs.avax.network/learn/platform-overview#virtual-machines), much like an object in an object-oriented language is an instance of a class. That is, the VM defines the behavior of the blockchain.
44

@@ -30,19 +30,19 @@ TODO: Extend on
3030

3131
At its core, the Avalanche protocol still maintains the immutable ordered sequence of states in a fully permissionless settings. And KVVM defines the rules and data structures to store key-value pairs.
3232

33-
## Run `quarkvm` with local network
33+
## Run `spacesvm` with local network
3434

35-
[`scripts/run.sh`](scripts/run.sh) automatically installs [avalanchego](https://github.com/ava-labs/avalanchego) to set up a local networkand creates a `quarkvm` genesis file. To build and run E2E tests, you need to set the variable `E2E` before it: `E2E=true ./scripts/run.sh 1.7.3`
35+
[`scripts/run.sh`](scripts/run.sh) automatically installs [avalanchego](https://github.com/ava-labs/avalanchego) to set up a local networkand creates a `spacesvm` genesis file. To build and run E2E tests, you need to set the variable `E2E` before it: `E2E=true ./scripts/run.sh 1.7.3`
3636

3737
See [`tests/e2e`](tests/e2e) and [`tests/runner`](tests/runner) to see how it's set up and how its client requests are made:
3838

3939
```bash
4040
# to startup a cluster
41-
cd ${HOME}/go/src/github.com/ava-labs/quarkvm
41+
cd ${HOME}/go/src/github.com/ava-labs/spacesvm
4242
./scripts/run.sh 1.7.3
4343

4444
# to run full e2e tests and shut down cluster afterwards
45-
cd ${HOME}/go/src/github.com/ava-labs/quarkvm
45+
cd ${HOME}/go/src/github.com/ava-labs/spacesvm
4646
E2E=true ./scripts/run.sh 1.7.3
4747
```
4848

@@ -66,7 +66,7 @@ curl --location --request POST 'http://localhost:61858/ext/bc/BJfusM2TpHCEfmt5i7
6666
--header 'Content-Type: application/json' \
6767
--data-raw '{
6868
"jsonrpc": "2.0",
69-
"method": "quarkvm.ping",
69+
"method": "spacesvm.ping",
7070
"params":{},
7171
"id": 1
7272
}'
@@ -79,7 +79,7 @@ curl --location --request POST 'http://localhost:61858/ext/bc/BJfusM2TpHCEfmt5i7
7979
--header 'Content-Type: application/json' \
8080
--data-raw '{
8181
"jsonrpc": "2.0",
82-
"method": "quarkvm.resolve",
82+
"method": "spacesvm.resolve",
8383
"params":{
8484
"path": "patrick.avax/twitter"
8585
},
@@ -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

@@ -195,7 +195,7 @@ curl --location --request POST 'http://localhost:61858/ext/bc/BJfusM2TpHCEfmt5i7
195195
--header 'Content-Type: application/json' \
196196
--data-raw '{
197197
"jsonrpc": "2.0",
198-
"method": "quarkvm.prefixInfo",
198+
"method": "spacesvm.prefixInfo",
199199
"params":{
200200
"prefix":"cGF0cmljay5hdmF4"
201201
},
@@ -262,7 +262,7 @@ Here are some example results:
262262
```bash
263263
goos: darwin
264264
goarch: amd64
265-
pkg: github.com/ava-labs/quarkvm/pow
265+
pkg: github.com/ava-labs/spacesvm/pow
266266
cpu: Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
267267
BenchmarkDifficulty1-16 1300 921956 ns/op
268268
BenchmarkDifficulty10-16 100 11083185 ns/op

chain/base_tx_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010

1111
"github.com/ava-labs/avalanchego/ids"
1212

13-
"github.com/ava-labs/quarkvm/parser"
13+
"github.com/ava-labs/spacesvm/parser"
1414
)
1515

1616
func TestBaseTx(t *testing.T) {

chain/claim_tx.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88

99
"github.com/ethereum/go-ethereum/common"
1010

11-
"github.com/ava-labs/quarkvm/parser"
11+
"github.com/ava-labs/spacesvm/parser"
1212
)
1313

1414
var _ UnsignedTransaction = &ClaimTx{}

chain/lifeline_tx.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ package chain
66
import (
77
"github.com/ava-labs/avalanchego/database"
88

9-
"github.com/ava-labs/quarkvm/parser"
9+
"github.com/ava-labs/spacesvm/parser"
1010
)
1111

1212
var _ UnsignedTransaction = &LifelineTx{}

chain/reward.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ package chain
66
import (
77
"github.com/ava-labs/avalanchego/database"
88

9-
"github.com/ava-labs/quarkvm/parser"
9+
"github.com/ava-labs/spacesvm/parser"
1010
)
1111

1212
func Reward(g *Genesis, db database.KeyValueReaderWriter, prefix []byte) error {

chain/set_tx.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"github.com/ava-labs/avalanchego/database"
1111
"github.com/ava-labs/avalanchego/ids"
1212
"github.com/ava-labs/avalanchego/utils/hashing"
13-
"github.com/ava-labs/quarkvm/parser"
13+
"github.com/ava-labs/spacesvm/parser"
1414
"github.com/ethereum/go-ethereum/common"
1515
)
1616

0 commit comments

Comments
 (0)