Skip to content

Commit

Permalink
chore: change repo owner references to arr4n (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
ARR4N authored Aug 18, 2024
1 parent 0af3c86 commit d714cda
Show file tree
Hide file tree
Showing 33 changed files with 91 additions and 91 deletions.
2 changes: 1 addition & 1 deletion BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ go_library(
"stack.go",
"tags.go",
],
importpath = "github.com/solidifylabs/specops",
importpath = "github.com/arr4n/specops",
visibility = ["//visibility:public"],
deps = [
"//evmdebug",
Expand Down
4 changes: 2 additions & 2 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"solidifylabs/specops"
"arr4n/specops"

module(
name = "solidifylabs_specops",
name = "arr4n_specops",
version = "1.0.0-alpha",
)

Expand Down
68 changes: 34 additions & 34 deletions MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SpecOps [![Go](https://github.com/solidifylabs/specops/actions/workflows/go.yml/badge.svg)](https://github.com/solidifylabs/specops/actions/workflows/go.yml) [![Go Reference](https://pkg.go.dev/badge/github.com/solidifylabs/specops.svg)](https://pkg.go.dev/github.com/solidifylabs/specops)
# SpecOps [![Go](https://github.com/arr4n/specops/actions/workflows/go.yml/badge.svg)](https://github.com/arr4n/specops/actions/workflows/go.yml) [![Go Reference](https://pkg.go.dev/badge/github.com/arr4n/specops.svg)](https://pkg.go.dev/github.com/arr4n/specops)

**`specops` is a low-level, domain-specific language and compiler for crafting [Ethereum VM](https://ethereum.org/en/developers/docs/evm) bytecode. The project also includes a CLI with code execution and terminal-based debugger.**

Expand All @@ -15,7 +15,7 @@ Some of them are interpreted by the compiler, converting them into [regular](htt

## Getting started

See the [`getting-started/`](https://github.com/solidifylabs/specops/tree/main/getting-started) directory for creating your first SpecOps code. Also check out the [examples](#other-examples) and the [documentation](#documentation).
See the [`getting-started/`](https://github.com/arr4n/specops/tree/main/getting-started) directory for creating your first SpecOps code. Also check out the [examples](#other-examples) and the [documentation](#documentation).

### Do I have to learn Go?

Expand Down Expand Up @@ -62,7 +62,7 @@ New features will be prioritised based on demand. If there's something you'd lik
### Documentation

The [`specops` Go
documentation](https://pkg.go.dev/github.com/solidifylabs/specops) covers all
documentation](https://pkg.go.dev/github.com/arr4n/specops) covers all
functionality.

## Examples
Expand All @@ -72,7 +72,7 @@ functionality.
To run this example `Code` block with the SpecOps CLI, see the `getting-started/` directory.

```go
import . github.com/solidifylabs/specops
import . github.com/arr4n/specops


Expand Down Expand Up @@ -115,18 +115,18 @@ result, err := results()
### Other examples

- Verbatim reimplementation of well-known contracts
* [EIP-1167 Minimal Proxy](https://github.com/solidifylabs/specops/blob/b03a75d713bffaec8cbf4b60f235f783e11bbc82/examples_test.go#L36) ([original](https://eips.ethereum.org/EIPS/eip-1167#specification))
* [EIP-1167 Minimal Proxy](https://github.com/arr4n/specops/blob/b03a75d713bffaec8cbf4b60f235f783e11bbc82/examples_test.go#L36) ([original](https://eips.ethereum.org/EIPS/eip-1167#specification))
* 0age/metamorphic ([original](https://github.com/0age/metamorphic/blob/55adac1d2487046002fc33a5dff7d669b5419a3a/contracts/MetamorphicContractFactory.sol#L55))
- [Verbose version](https://github.com/solidifylabs/specops/blob/b03a75d713bffaec8cbf4b60f235f783e11bbc82/examples_test.go#L108) with explanation of SpecOps functionality + an alternative with automated stack transformation (saves a whole 3 gas!)
- [Succinct version](https://github.com/solidifylabs/specops/blob/b03a75d713bffaec8cbf4b60f235f783e11bbc82/examples_test.go#L217) as if writing production code
- [Monte Carlo approximation of pi](https://github.com/solidifylabs/specops/blob/41efe932c9a85e45ce705b231577447e6c944487/examples_test.go#L158)
- [`sqrt()`](https://github.com/solidifylabs/specops/blob/41efe932c9a85e45ce705b231577447e6c944487/examples_test.go#L246) as seen ~~on TV~~ in `prb-math` ([original](https://github.com/PaulRBerg/prb-math/blob/5b6279a0cf7c1b1b6a5cc96082811f7ef620cf60/src/Common.sol#L595))
- [Verbose version](https://github.com/arr4n/specops/blob/b03a75d713bffaec8cbf4b60f235f783e11bbc82/examples_test.go#L108) with explanation of SpecOps functionality + an alternative with automated stack transformation (saves a whole 3 gas!)
- [Succinct version](https://github.com/arr4n/specops/blob/b03a75d713bffaec8cbf4b60f235f783e11bbc82/examples_test.go#L217) as if writing production code
- [Monte Carlo approximation of pi](https://github.com/arr4n/specops/blob/41efe932c9a85e45ce705b231577447e6c944487/examples_test.go#L158)
- [`sqrt()`](https://github.com/arr4n/specops/blob/41efe932c9a85e45ce705b231577447e6c944487/examples_test.go#L246) as seen ~~on TV~~ in `prb-math` ([original](https://github.com/PaulRBerg/prb-math/blob/5b6279a0cf7c1b1b6a5cc96082811f7ef620cf60/src/Common.sol#L595))

### Debugger

Key bindings are described in the `getting-started/` README.

![image](https://github.com/solidifylabs/specops/assets/519948/5057ad0f-bb6f-438b-a295-8b1f410d2330)
![image](https://github.com/arr4n/specops/assets/519948/5057ad0f-bb6f-438b-a295-8b1f410d2330)

## Acknowledgements

Expand Down
4 changes: 2 additions & 2 deletions compile.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

"github.com/ethereum/go-ethereum/core/vm"

"github.com/solidifylabs/specops/stack"
"github.com/solidifylabs/specops/types"
"github.com/arr4n/specops/stack"
"github.com/arr4n/specops/types"
)

type lazyLocator interface {
Expand Down
2 changes: 1 addition & 1 deletion evmdebug/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ go_library(
"evmdebug.go",
"ui.go",
],
importpath = "github.com/solidifylabs/specops/evmdebug",
importpath = "github.com/arr4n/specops/evmdebug",
visibility = ["//visibility:public"],
deps = [
"//internal/sync",
Expand Down
4 changes: 2 additions & 2 deletions evmdebug/evmdebug.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/ethereum/go-ethereum/core/tracing"
"github.com/ethereum/go-ethereum/core/vm"
"github.com/holiman/uint256"
"github.com/solidifylabs/specops/internal/sync"
"github.com/arr4n/specops/internal/sync"
)

// NewDebugger constructs a new Debugger.
Expand Down Expand Up @@ -128,7 +128,7 @@ func (d *Debugger) Step() {
case <-d.done:
d.close(true)
default:
// Fix for https://github.com/solidifylabs/specops/issues/25
// Fix for https://github.com/arr4n/specops/issues/25
// When this unblocks we are guaranteed that the *next* opcode is being
// blocked, which implies that the *current* one is finished, so we have
// synchronised and can return.
Expand Down
2 changes: 1 addition & 1 deletion evmdebug/sync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"runtime"
"testing"

. "github.com/solidifylabs/specops"
. "github.com/arr4n/specops"
)

func TestStepSynchronisation(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/holiman/uint256"

"github.com/solidifylabs/specops/stack"
"github.com/arr4n/specops/stack"
)

func Example_helloWorld() {
Expand Down
2 changes: 1 addition & 1 deletion getting-started/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ load("@rules_go//go:def.bzl", "go_binary", "go_library")
go_library(
name = "getting-started_lib",
srcs = ["getting-started.spec.go"],
importpath = "github.com/solidifylabs/specops/getting-started",
importpath = "github.com/arr4n/specops/getting-started",
visibility = ["//visibility:private"],
deps = [
"//:specops",
Expand Down
4 changes: 2 additions & 2 deletions getting-started/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
2. Clone the SpecOps repo:

```shell
git clone https://github.com/solidifylabs/specops.git
git clone https://github.com/arr4n/specops.git
```

3. From the `getting-started` directory:
Expand Down Expand Up @@ -55,4 +55,4 @@ go run . debug --calldata decafc0ffeebad
* `<Esc>` or `q` Once execution has ended, quit
* `Ctrl+C` At any time, quit

![image](https://github.com/solidifylabs/specops/assets/519948/5057ad0f-bb6f-438b-a295-8b1f410d2330)
![image](https://github.com/arr4n/specops/assets/519948/5057ad0f-bb6f-438b-a295-8b1f410d2330)
6 changes: 3 additions & 3 deletions getting-started/getting-started.spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package main
import (
"github.com/ethereum/go-ethereum/common"

. "github.com/solidifylabs/specops" //lint:ignore ST1001 SpecOps DSL is designed to be dot-imported
"github.com/solidifylabs/specops/specopscli"
"github.com/solidifylabs/specops/stack"
. "github.com/arr4n/specops" //lint:ignore ST1001 SpecOps DSL is designed to be dot-imported
"github.com/arr4n/specops/specopscli"
"github.com/arr4n/specops/stack"
)

func code() Code {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/solidifylabs/specops
module github.com/arr4n/specops

go 1.21

Expand Down
2 changes: 1 addition & 1 deletion internal/opcopy/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ load("@rules_go//go:def.bzl", "go_binary", "go_library")
go_library(
name = "opcopy_lib",
srcs = ["main.go"],
importpath = "github.com/solidifylabs/specops/internal/opcopy",
importpath = "github.com/arr4n/specops/internal/opcopy",
visibility = ["//visibility:private"],
deps = [
"@com_github_ethereum_go_ethereum//core/vm",
Expand Down
2 changes: 1 addition & 1 deletion internal/opcopy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func run() error {
import (
"github.com/ethereum/go-ethereum/core/vm"
"github.com/solidifylabs/specops/types"
"github.com/arr4n/specops/types"
)
// Aliases of all regular vm.OpCode constants that don't have "special" replacements.
Expand Down
2 changes: 1 addition & 1 deletion internal/sync/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ go_library(
"doc.go",
"toggle.go",
],
importpath = "github.com/solidifylabs/specops/internal/sync",
importpath = "github.com/arr4n/specops/internal/sync",
visibility = ["//:__subpackages__"],
)

Expand Down
Loading

0 comments on commit d714cda

Please sign in to comment.