Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
Rename Upshot references (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
xmariachi authored Feb 13, 2024
1 parent 5c3fecc commit 7ffd533
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ jobs:
goarch: ${{ matrix.goarch }}
goversion: "https://dl.google.com/go/go1.21.5.linux-amd64.tar.gz"
project_path: "."
binary_name: "upshot-blockless-extension"
binary_name: "allora-inference-extension"
extra_files: main.py README.md
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ node_modules/
build/
.extsdb
release.log
upshot-blockless-extension
allora-inference-extension
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Makefile for building the upshot-blockless-extension
# Makefile for building the allora-inference-extension

# Go parameters
GOCMD=go
GOBUILD=$(GOCMD) build
GOCLEAN=$(GOCMD) clean
BINARY_NAME=allora-offchain-extension
BINARY_NAME=allora-inference-extension
SOURCE_FILE=main.go

# Detect the operating system and architecture
Expand Down Expand Up @@ -35,7 +35,6 @@ endif

# Define the URL based on the detected OS and architecture
RUNTIME_URL := https://github.com/blocklessnetwork/runtime/releases/download/v0.3.1/blockless-runtime.$(OS)-latest.$(ARCH).tar.gz

all: build

$(BINARY_NAME): $(SOURCE_FILE)
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,9 @@ The `test` target depends on both the `build` and `example` targets, ensuring th
Support
-------

For support, ensure that you have all the prerequisites installed and that your environment is set up correctly. If you encounter any issues, check the console output for error messages that may provide more information.
For support, ensure that you have all the prerequisites installed and that your environment is set up correctly. If you encounter any issues, check the console output for error messages that may provide more information.

In particular, you may need to install the blockless package:
```
npm i -g @blockless/cli@<release-version>
```
2 changes: 1 addition & 1 deletion allora-inference-function/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Allora Network Offchain CGI Extensions Function Example

This function interacts with the Upshot CGI Extension.
This function interacts with the Allora CGI Extension.
2 changes: 1 addition & 1 deletion allora-inference-function/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Console } from "as-wasi/assembly";
import { CgiCommand, cgiExtendsList } from "@blockless/sdk/assembly/cgi";
import { memory } from "@blockless/sdk/assembly";
import { buffer2string } from "@blockless/sdk/assembly/strings";
// env UPSHOT_ARG_PARAMS=FOO BLS_LIST_VARS=UPSHOT_ARG_PARAMS
// env ALLORA_ARG_PARAMS=FOO BLS_LIST_VARS=ALLORA_ARG_PARAMS
let envVars = new memory.EnvVars().read().toJSON();
if (envVars) {
let environmentValue = envVars.get("ALLORA_ARG_PARAMS");
Expand Down
4 changes: 2 additions & 2 deletions allora-inference-function/package-lock.json

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

4 changes: 2 additions & 2 deletions allora-inference-function/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "upshot-function-example",
"name": "allora-inference-function",
"version": "1.0.0",
"main": "index.js",
"license": "APACHE-2.0",
Expand All @@ -14,6 +14,6 @@
"assemblyscript": "^0.25.0"
},
"bls": {
"functionId": "blockless-function_upshot-function-example-1.0.0"
"functionId": "blockless-function_allora-inference-function-1.0.0"
}
}
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/upshot-tech/upshot-blockless-extension
module github.com/allora-network/allora-inference-extension

go 1.21.5

0 comments on commit 7ffd533

Please sign in to comment.