forked from TrueCloudLab/frostfs-aio
Compare commits
No commits in common. "nightly-v1.7" and "master" have entirely different histories.
nightly-v1
...
master
30 changed files with 65 additions and 398 deletions
9
.env
9
.env
|
@ -1,10 +1,3 @@
|
|||
FROSTFS_HUB_IMAGE=truecloudlab/frostfs
|
||||
FROSTFS_FORGEJO_IMAGE=git.frostfs.info/truecloudlab/frostfs
|
||||
AIO_IMAGE=truecloudlab/frostfs-aio
|
||||
AIO_VERSION=1.7.0-nightly.3
|
||||
|
||||
FROSTFS_CORE_TAG=0.44.0-rc.7
|
||||
FROSTFS_HTTP_GATE_TAG=0.31.0
|
||||
FROSTFS_S3_GATE_TAG=0.31.0
|
||||
FROSTFS_S3_LIFECYCLER_TAG=0.1.3
|
||||
NEOGO_TAG=0.106.0
|
||||
AIO_VERSION=1.5.0
|
||||
|
|
32
Dockerfile
32
Dockerfile
|
@ -1,21 +1,18 @@
|
|||
ARG FROSTFS_HUB_IMAGE=truecloudlab/frostfs
|
||||
ARG FROSTFS_FORGEJO_IMAGE=git.frostfs.info/truecloudlab/frostfs
|
||||
ARG NEOGO_HUB_IMAGE=nspccdev/neo-go
|
||||
|
||||
ARG FROSTFS_CORE_TAG=dev
|
||||
ARG FROSTFS_HTTP_GATE_TAG=dev
|
||||
ARG FROSTFS_S3_GATE_TAG=dev
|
||||
ARG FROSTFS_S3_LIFECYCLER_TAG=dev
|
||||
ARG NEOGO_TAG=dev
|
||||
ARG FROSTFS_CORE_TAG=0.38.6
|
||||
ARG FROSTFS_HTTP_GATE_TAG=0.29.0
|
||||
ARG FROSTFS_S3_GATE_TAG=0.29.0
|
||||
ARG NEOGO_TAG=0.104.0
|
||||
|
||||
FROM ${NEOGO_HUB_IMAGE}:${NEOGO_TAG} AS neo-go
|
||||
FROM ${FROSTFS_FORGEJO_IMAGE}-adm:${FROSTFS_CORE_TAG} AS frostfs-adm
|
||||
FROM ${FROSTFS_FORGEJO_IMAGE}-cli:${FROSTFS_CORE_TAG} AS frostfs-cli
|
||||
FROM ${FROSTFS_FORGEJO_IMAGE}-ir:${FROSTFS_CORE_TAG} AS frostfs-ir
|
||||
FROM ${FROSTFS_FORGEJO_IMAGE}-storage:${FROSTFS_CORE_TAG} AS frostfs-storage
|
||||
FROM ${FROSTFS_HUB_IMAGE}-s3-gw:${FROSTFS_S3_GATE_TAG} AS frostfs-s3-gw
|
||||
FROM ${FROSTFS_HUB_IMAGE}-http-gw:${FROSTFS_HTTP_GATE_TAG} AS frostfs-http-gw
|
||||
FROM ${FROSTFS_HUB_IMAGE}-s3-lifecycler:${FROSTFS_S3_LIFECYCLER_TAG} AS frostfs-s3-lifecycler
|
||||
FROM ${NEOGO_HUB_IMAGE}:${NEOGO_TAG} as neo-go
|
||||
FROM ${FROSTFS_HUB_IMAGE}-adm:${FROSTFS_CORE_TAG} as frostfs-adm
|
||||
FROM ${FROSTFS_HUB_IMAGE}-cli:${FROSTFS_CORE_TAG} as frostfs-cli
|
||||
FROM ${FROSTFS_HUB_IMAGE}-ir:${FROSTFS_CORE_TAG} as frostfs-ir
|
||||
FROM ${FROSTFS_HUB_IMAGE}-storage:${FROSTFS_CORE_TAG} as frostfs-storage
|
||||
FROM ${FROSTFS_HUB_IMAGE}-s3-gw:${FROSTFS_S3_GATE_TAG} as frostfs-s3-gw
|
||||
FROM ${FROSTFS_HUB_IMAGE}-http-gw:${FROSTFS_HTTP_GATE_TAG} as frostfs-http-gw
|
||||
|
||||
# Executable image
|
||||
FROM alpine AS frostfs-aio
|
||||
|
@ -37,7 +34,6 @@ COPY --from=frostfs-storage /bin/frostfs-node /usr/bin/frostfs-node
|
|||
COPY --from=frostfs-s3-gw /bin/frostfs-s3-gw /usr/bin/frostfs-s3-gw
|
||||
COPY --from=frostfs-s3-gw /bin/frostfs-s3-authmate /usr/bin/frostfs-s3-authmate
|
||||
COPY --from=frostfs-http-gw /bin/frostfs-http-gw /usr/bin/frostfs-http-gw
|
||||
COPY --from=frostfs-s3-lifecycler /bin/frostfs-s3-lifecycler /usr/bin/frostfs-s3-lifecycler
|
||||
|
||||
COPY ./adm/frostfs-adm.yml /config/frostfs-adm.yml
|
||||
COPY ./ir/cli-cfg.yaml /config/cli-cfg-ir.yaml
|
||||
|
@ -50,13 +46,9 @@ COPY ./morph/node-config.yaml /config/node-config.yaml
|
|||
COPY ./http-gw/http-gw-config.yaml /config/http-gw-config.yaml
|
||||
COPY ./http-gw/http-gw-wallet.json /config/http-gw-wallet.json
|
||||
COPY ./s3-gw/rules.json /config/bearer-rules.json
|
||||
COPY ./s3-gw/regions.json /config/regions.json
|
||||
COPY ./s3-gw/s3-gw-config.yaml /config/s3-gw-config.yaml
|
||||
COPY ./s3-gw/s3-gw-wallet.json /config/s3-gw-wallet.json
|
||||
COPY ./s3-gw/s3-gw-tls.crt /config/s3-gw-tls.crt
|
||||
COPY ./s3-gw/s3-gw-tls.key /config/s3-gw-tls.key
|
||||
COPY ./s3-gw/user-wallet.json /config/user-wallet.json
|
||||
COPY ./s3-lifecycler/s3-lc-config.yaml /config/s3-lc-config.yaml
|
||||
COPY ./sn/cli-cfg.yaml /config/cli-cfg-sn.yaml
|
||||
COPY ./sn/wallet.json /config/wallet-sn.json
|
||||
COPY ./sn/config.yaml /config/config-sn.yaml
|
||||
|
@ -64,9 +56,7 @@ COPY ./vendor/locode_db /config/locode.db
|
|||
COPY ./vendor/contracts/ /config/contracts
|
||||
|
||||
COPY ./bin/init-aio.sh /usr/bin/init-aio.sh
|
||||
COPY ./bin/issue-creds.sh /usr/bin/issue-creds.sh
|
||||
|
||||
ENV AUTHMATE_WALLET_PASSPHRASE=""
|
||||
ENV AUTHMATE_WALLET_CONTRACT_PASSPHRASE=""
|
||||
|
||||
ENTRYPOINT ["/usr/bin/init-aio.sh"]
|
||||
|
|
|
@ -1,21 +1,18 @@
|
|||
ARG FROSTFS_HUB_IMAGE=truecloudlab/frostfs
|
||||
ARG FROSTFS_FORGEJO_IMAGE=git.frostfs.info/truecloudlab/frostfs
|
||||
ARG NEOGO_HUB_IMAGE=nspccdev/neo-go
|
||||
|
||||
ARG FROSTFS_CORE_TAG=dev
|
||||
ARG FROSTFS_HTTP_GATE_TAG=dev
|
||||
ARG FROSTFS_S3_GATE_TAG=dev
|
||||
ARG FROSTFS_S3_LIFECYCLER_TAG=dev
|
||||
ARG NEOGO_TAG=dev
|
||||
ARG FROSTFS_CORE_TAG=0.38.6
|
||||
ARG FROSTFS_HTTP_GATE_TAG=0.29.0
|
||||
ARG FROSTFS_S3_GATE_TAG=0.29.0
|
||||
ARG NEOGO_TAG=0.104.0
|
||||
|
||||
FROM ${NEOGO_HUB_IMAGE}:${NEOGO_TAG} AS neo-go
|
||||
FROM ${FROSTFS_FORGEJO_IMAGE}-adm:${FROSTFS_CORE_TAG} AS frostfs-adm
|
||||
FROM ${FROSTFS_FORGEJO_IMAGE}-cli:${FROSTFS_CORE_TAG} AS frostfs-cli
|
||||
FROM ${FROSTFS_FORGEJO_IMAGE}-ir:${FROSTFS_CORE_TAG} AS frostfs-ir
|
||||
FROM ${FROSTFS_FORGEJO_IMAGE}-storage:${FROSTFS_CORE_TAG} AS frostfs-storage
|
||||
FROM ${FROSTFS_HUB_IMAGE}-s3-gw:${FROSTFS_S3_GATE_TAG} AS frostfs-s3-gw
|
||||
FROM ${FROSTFS_HUB_IMAGE}-s3-lifecycler:${FROSTFS_S3_LIFECYCLER_TAG} AS frostfs-s3-lifecycler
|
||||
FROM ${FROSTFS_HUB_IMAGE}-http-gw:${FROSTFS_HTTP_GATE_TAG} AS frostfs-http-gw
|
||||
FROM ${NEOGO_HUB_IMAGE}:${NEOGO_TAG} as neo-go
|
||||
FROM ${FROSTFS_HUB_IMAGE}-adm:${FROSTFS_CORE_TAG} as frostfs-adm
|
||||
FROM ${FROSTFS_HUB_IMAGE}-cli:${FROSTFS_CORE_TAG} as frostfs-cli
|
||||
FROM ${FROSTFS_HUB_IMAGE}-ir:${FROSTFS_CORE_TAG} as frostfs-ir
|
||||
FROM ${FROSTFS_HUB_IMAGE}-storage:${FROSTFS_CORE_TAG} as frostfs-storage
|
||||
FROM ${FROSTFS_HUB_IMAGE}-s3-gw:${FROSTFS_S3_GATE_TAG} as frostfs-s3-gw
|
||||
FROM ${FROSTFS_HUB_IMAGE}-http-gw:${FROSTFS_HTTP_GATE_TAG} as frostfs-http-gw
|
||||
|
||||
# Executable image
|
||||
FROM alpine AS frostfs-aio
|
||||
|
@ -37,7 +34,6 @@ COPY --from=frostfs-storage /bin/frostfs-node /usr/bin/frostfs-node
|
|||
COPY --from=frostfs-s3-gw /bin/frostfs-s3-gw /usr/bin/frostfs-s3-gw
|
||||
COPY --from=frostfs-s3-gw /bin/frostfs-s3-authmate /usr/bin/frostfs-s3-authmate
|
||||
COPY --from=frostfs-http-gw /bin/frostfs-http-gw /usr/bin/frostfs-http-gw
|
||||
COPY --from=frostfs-s3-lifecycler /bin/frostfs-s3-lifecycler /usr/bin/frostfs-s3-lifecycler
|
||||
|
||||
COPY ./adm/frostfs-adm.yml /config/frostfs-adm.yml
|
||||
COPY ./ir/cli-cfg.yaml /config/cli-cfg-ir.yaml
|
||||
|
@ -50,13 +46,9 @@ COPY ./morph/node-config.yaml /config/node-config.yaml
|
|||
COPY ./http-gw/http-gw-config.yaml /config/http-gw-config.yaml
|
||||
COPY ./http-gw/http-gw-wallet.json /config/http-gw-wallet.json
|
||||
COPY ./s3-gw/rules.json /config/bearer-rules.json
|
||||
COPY ./s3-gw/regions.json /config/regions.json
|
||||
COPY ./s3-gw/s3-gw-config.yaml /config/s3-gw-config.yaml
|
||||
COPY ./s3-gw/s3-gw-wallet.json /config/s3-gw-wallet.json
|
||||
COPY ./s3-gw/s3-gw-tls.crt /config/s3-gw-tls.crt
|
||||
COPY ./s3-gw/s3-gw-tls.key /config/s3-gw-tls.key
|
||||
COPY ./s3-gw/user-wallet.json /config/user-wallet.json
|
||||
COPY ./s3-lifecycler/s3-lc-config.yaml /config/s3-lc-config.yaml
|
||||
COPY ./sn/cli-cfg.yaml /config/cli-cfg-sn.yaml
|
||||
COPY ./sn/wallet.json /config/wallet-sn.json
|
||||
COPY ./sn/config.yaml /config/config-sn.yaml
|
||||
|
@ -66,6 +58,5 @@ COPY ./vendor/contracts/ /config/contracts
|
|||
COPY ./bin/* /usr/bin/
|
||||
|
||||
ENV AUTHMATE_WALLET_PASSPHRASE=""
|
||||
ENV AUTHMATE_WALLET_CONTRACT_PASSPHRASE=""
|
||||
|
||||
ENTRYPOINT ["/usr/bin/init-aio.sh"]
|
||||
|
|
|
@ -18,8 +18,6 @@ COPY ./bin/frostfs-node /usr/bin/frostfs-node
|
|||
COPY ./bin/frostfs-s3-gw /usr/bin/frostfs-s3-gw
|
||||
COPY ./bin/frostfs-s3-authmate /usr/bin/frostfs-s3-authmate
|
||||
COPY ./bin/frostfs-http-gw /usr/bin/frostfs-http-gw
|
||||
COPY ./bin/issue-creds.sh /usr/bin/issue-creds.sh
|
||||
COPY ./bin/frostfs-s3-lifecycler /usr/bin/frostfs-s3-lifecycler
|
||||
|
||||
COPY ./adm/frostfs-adm.yml /config/frostfs-adm.yml
|
||||
COPY ./ir/cli-cfg.yaml /config/cli-cfg-ir.yaml
|
||||
|
@ -32,13 +30,9 @@ COPY ./morph/node-config.yaml /config/node-config.yaml
|
|||
COPY ./http-gw/http-gw-config.yaml /config/http-gw-config.yaml
|
||||
COPY ./http-gw/http-gw-wallet.json /config/http-gw-wallet.json
|
||||
COPY ./s3-gw/rules.json /config/bearer-rules.json
|
||||
COPY ./s3-gw/regions.json /config/regions.json
|
||||
COPY ./s3-gw/s3-gw-config.yaml /config/s3-gw-config.yaml
|
||||
COPY ./s3-gw/s3-gw-wallet.json /config/s3-gw-wallet.json
|
||||
COPY ./s3-gw/s3-gw-tls.crt /config/s3-gw-tls.crt
|
||||
COPY ./s3-gw/s3-gw-tls.key /config/s3-gw-tls.key
|
||||
COPY ./s3-gw/user-wallet.json /config/user-wallet.json
|
||||
COPY ./s3-lifecycler/s3-lc-config.yaml /config/s3-lc-config.yaml
|
||||
COPY ./sn/cli-cfg.yaml /config/cli-cfg-sn.yaml
|
||||
COPY ./sn/wallet.json /config/wallet-sn.json
|
||||
COPY ./sn/config.yaml /config/config-sn.yaml
|
||||
|
@ -48,6 +42,5 @@ COPY ./vendor/contracts/ /config/contracts
|
|||
COPY ./bin/init-aio.sh /usr/bin/init-aio.sh
|
||||
|
||||
ENV AUTHMATE_WALLET_PASSPHRASE=""
|
||||
ENV AUTHMATE_WALLET_CONTRACT_PASSPHRASE=""
|
||||
|
||||
ENTRYPOINT ["/usr/bin/init-aio.sh"]
|
||||
|
|
68
Makefile
68
Makefile
|
@ -9,7 +9,6 @@ VERSION ?= "$(shell git describe --tags --match "v*" 2>/dev/null || git rev-pars
|
|||
|
||||
# Variables for docker
|
||||
AIO_IMAGE ?= "truecloudlab/frostfs-aio"
|
||||
LOG_DIR ?= "/var/log"
|
||||
|
||||
# Variables for compose
|
||||
COMPOSE_CMD_UP ?= docker-compose up -d
|
||||
|
@ -31,11 +30,6 @@ image-aio:
|
|||
@docker build \
|
||||
--rm \
|
||||
-f Dockerfile \
|
||||
--build-arg FROSTFS_CORE_TAG=$(FROSTFS_CORE_TAG) \
|
||||
--build-arg FROSTFS_HTTP_GATE_TAG=$(FROSTFS_HTTP_GATE_TAG) \
|
||||
--build-arg FROSTFS_S3_GATE_TAG=$(FROSTFS_S3_GATE_TAG) \
|
||||
--build-arg FROSTFS_S3_LIFECYCLER_TAG=$(FROSTFS_S3_LIFECYCLER_TAG) \
|
||||
--build-arg NEOGO_TAG=$(NEOGO_TAG) \
|
||||
-t $(AIO_IMAGE):$(AIO_VERSION) .
|
||||
|
||||
# Build aio Docker image from all local pre-built binaries
|
||||
|
@ -52,11 +46,6 @@ image-aio-custom:
|
|||
@docker build \
|
||||
--rm \
|
||||
-f Dockerfile.custom \
|
||||
--build-arg FROSTFS_CORE_TAG=$(FROSTFS_CORE_TAG) \
|
||||
--build-arg FROSTFS_HTTP_GATE_TAG=$(FROSTFS_HTTP_GATE_TAG) \
|
||||
--build-arg FROSTFS_S3_GATE_TAG=$(FROSTFS_S3_GATE_TAG) \
|
||||
--build-arg FROSTFS_S3_LIFECYCLER_TAG=$(FROSTFS_S3_LIFECYCLER_TAG) \
|
||||
--build-arg NEOGO_TAG=$(NEOGO_TAG) \
|
||||
-t $(AIO_IMAGE):$(AIO_VERSION) .
|
||||
|
||||
# Start AIO
|
||||
|
@ -73,19 +62,19 @@ clean: down
|
|||
|
||||
# Generate S3 credentials
|
||||
s3cred:
|
||||
@docker exec aio /usr/bin/issue-creds.sh s3
|
||||
@docker exec aio /usr/bin/frostfs-s3-authmate issue-secret \
|
||||
--wallet /config/user-wallet.json \
|
||||
--peer localhost:8080 \
|
||||
--gate-public-key $(S3_GATE_PUBLIC_KEY) \
|
||||
--container-placement-policy "REP 1"
|
||||
|
||||
# Generate S3 credentials based on imported wallets
|
||||
s3cred-custom:
|
||||
@docker exec aio /usr/bin/issue-creds.sh s3 $(wallet)
|
||||
|
||||
# Register user-wallet.json in FrostFS ID contract
|
||||
cred:
|
||||
@docker exec aio /usr/bin/issue-creds.sh native
|
||||
|
||||
# Register custom wallet in FrostFS ID contract
|
||||
cred-custom:
|
||||
@docker exec aio /usr/bin/issue-creds.sh native $(wallet)
|
||||
@docker exec aio /usr/bin/frostfs-s3-authmate issue-secret \
|
||||
--wallet /wallets/$(wallet) \
|
||||
--peer localhost:8080 \
|
||||
--gate-public-key $(S3_GATE_PUBLIC_KEY) \
|
||||
--container-placement-policy "REP 1"
|
||||
|
||||
enable-oracle:
|
||||
@docker exec aio neo-go contract invokefunction -r http://localhost:30333 \
|
||||
|
@ -102,39 +91,8 @@ enable-oracle:
|
|||
tick.epoch:
|
||||
@docker exec aio /usr/bin/frostfs-adm --config /config/frostfs-adm.yml morph force-new-epoch
|
||||
|
||||
# Create new wallet
|
||||
WALLET?=wallets/wallet1.json
|
||||
.PHONY: wallet
|
||||
wallet:
|
||||
@! test -f "$(WALLET)" || { echo "File exists: $(WALLET)"; exit 1; }
|
||||
@docker exec -it aio /usr/bin/neo-go wallet init -a -w "$(WALLET)"
|
||||
|
||||
# Refill GAS in arbitrary WALLET (must be under wallets/ directory)
|
||||
GAS?=50.0
|
||||
.PHONY: refill
|
||||
refill:
|
||||
@docker exec aio /usr/bin/frostfs-adm --config /config/frostfs-adm.yml \
|
||||
morph refill-gas --storage-wallet=/$(WALLET) --gas=$(GAS)
|
||||
@$(MAKE) --no-print-directory balance
|
||||
|
||||
# Show wallet balance
|
||||
.PHONY: balance
|
||||
balance:
|
||||
@echo "Balance for $(WALLET)"
|
||||
@docker exec aio /usr/bin/neo-go wallet nep17 balance -r http://localhost:30333 -w "$(WALLET)"
|
||||
|
||||
# Show current version
|
||||
version:
|
||||
@echo "aio:" $(VERSION)
|
||||
@echo "frostfs-node: $(FROSTFS_CORE_TAG)"
|
||||
@echo "frostfs-s3-gw: $(FROSTFS_S3_GATE_TAG)"
|
||||
@echo "frostfs-http-gw: $(FROSTFS_HTTP_GATE_TAG)"
|
||||
@echo "neo-go: $(NEOGO_TAG)"
|
||||
|
||||
# Show all logs of the FrostFS service
|
||||
logs/%:
|
||||
@docker exec aio cat ${LOG_DIR}/$*
|
||||
|
||||
# Streaming of the frostFS service logs
|
||||
logs-stream/%:
|
||||
@docker exec aio tail -f ${LOG_DIR}/$*
|
||||
@echo $(VERSION)
|
||||
@echo "frostfs-node: $(AIO_VERSION)"
|
||||
@echo "neo-go: $(NEOGO_VERSION)"
|
||||
|
|
72
README.md
72
README.md
|
@ -11,18 +11,17 @@ files for:
|
|||
- frostfs-s3-gw
|
||||
- frostfs-s3-authmate
|
||||
- frostfs-http-gw
|
||||
- frostfs-s3-lifecycler
|
||||
|
||||
Entrypoint script starts blockchain, inner ring, storage, s3, and http gateway
|
||||
services and configures it in the initial start.
|
||||
|
||||
| Service | Port |
|
||||
|-----------------------------|------------------|
|
||||
|-----------------------------|-------|
|
||||
| neo-go RPC | 30333 |
|
||||
| FrostFS Storage gRPC API | 8080 |
|
||||
| FrostFS Storage Control API | 16513 |
|
||||
| FrostFS HTTP Gateway | 8081 |
|
||||
| FrostFS S3 Gateway | 8084, 8184 (TLS) |
|
||||
| FrostFS S3 Gateway | 8084 |
|
||||
|
||||
# Limitations
|
||||
|
||||
|
@ -63,8 +62,7 @@ Data and the system configuration is stored in container's volume.
|
|||
Next time container is started, it will take less time to initialize.
|
||||
|
||||
Before updating image version, reset `frostfs-aio` by clearing its local volume
|
||||
before starting container. Update may contain incompatible changes, e.g. neo-go
|
||||
database format update. This repository does not provide any migration tools.
|
||||
before starting container.
|
||||
|
||||
```
|
||||
$ make clean
|
||||
|
@ -118,7 +116,6 @@ Put all the needed pre-built binaries to the `frostfs-aio/bin/`:
|
|||
- frostfs-s3-gw
|
||||
- frostfs-s3-authmate
|
||||
- frostfs-http-gw
|
||||
- frostfs-s3-lifecycler
|
||||
|
||||
Make sure they all have the `x` right for the execution enabled.
|
||||
Build frostfs-aio image using pre-built local binaries for all the services.
|
||||
|
@ -290,55 +287,16 @@ If everything is rigth, the stdout will show a pretty-printed contents of the wa
|
|||
wallet successfully created, file location is /wallets/new-wallet.json
|
||||
```
|
||||
|
||||
You can use `make wallet WALLET=wallets/new-wallet.json`
|
||||
to execute the steps listed above a little faster.
|
||||
|
||||
|
||||
### Transfering GAS tokens to wallet
|
||||
|
||||
To add GAS to a new wallet use `make refill`
|
||||
|
||||
```console
|
||||
$ make refill GAS=12.3 WALLET=wallets/new-wallet.json
|
||||
Waiting for transactions to persist...
|
||||
Balance for wallets/new-wallet.json
|
||||
Account NgB6jnyVsMg6E3gQQLXoccZ3JBMLsgiut3
|
||||
GAS: GasToken (d2a4cff31913016155e38e474a2c06d08be276cf)
|
||||
Amount : 12.3
|
||||
Updated: 25069
|
||||
```
|
||||
|
||||
### Checking wallet balance
|
||||
|
||||
```console
|
||||
$ make balance WALLET=wallets/new-wallet.json
|
||||
Balance for wallets/new-wallet.json
|
||||
Account NgB6jnyVsMg6E3gQQLXoccZ3JBMLsgiut3
|
||||
GAS: GasToken (d2a4cff31913016155e38e474a2c06d08be276cf)
|
||||
Amount : 12.3
|
||||
Updated: 25069
|
||||
```
|
||||
|
||||
|
||||
## frostfs-cli interface
|
||||
|
||||
### Native credentials
|
||||
|
||||
To use wallet file, it should be register in FrostFS ID contract and have
|
||||
policies to perform FrostFS operations.
|
||||
|
||||
Use `make cred` to register `s3-gw/user-wallet.json`. For custom wallets from
|
||||
`wallet` dir, use `make cred-custom wallet=wallet1.json`.
|
||||
|
||||
These commands are similar to `make s3cred` and `make s3cred-custom`.
|
||||
|
||||
### Create container with frostfs-cli
|
||||
|
||||
``` sh
|
||||
$ frostfs-cli -r localhost:8080 -w s3-gw/user-wallet.json \
|
||||
$ frostfs-cli -r localhost:8080 -w /config/user-wallet.json \
|
||||
--address NWeByJPgNC97F83hTUnSbnZSBKaFvk5HNw \
|
||||
container create \
|
||||
--policy "REP 1" --await
|
||||
--policy "REP 1" --basic-acl public-read-write --await
|
||||
container ID: GfWw35kHds7gKWmSvW7Zi4U39K7NMLK8EfXBQ5FPJA46
|
||||
awaiting...
|
||||
container has been persisted on sidechain
|
||||
|
@ -347,7 +305,7 @@ container has been persisted on sidechain
|
|||
### Put an object with frostfs-cli
|
||||
|
||||
``` sh
|
||||
$ frostfs-cli -r localhost:8080 -w s3-gw/user-wallet.json \
|
||||
$ frostfs-cli -r localhost:8080 -w /config/user-wallet.json \
|
||||
--address NWeByJPgNC97F83hTUnSbnZSBKaFvk5HNw \
|
||||
object put \
|
||||
--cid GfWw35kHds7gKWmSvW7Zi4U39K7NMLK8EfXBQ5FPJA46 \
|
||||
|
@ -360,25 +318,9 @@ $ frostfs-cli -r localhost:8080 -w s3-gw/user-wallet.json \
|
|||
### Get and object with frostfs-cli
|
||||
|
||||
``` sh
|
||||
$ frostfs-cli -r localhost:8080 -w s3-gw/user-wallet.json \
|
||||
$ frostfs-cli -r localhost:8080 -w /config/user-wallet.json \
|
||||
--address NWeByJPgNC97F83hTUnSbnZSBKaFvk5HNw \
|
||||
object get \
|
||||
--cid GfWw35kHds7gKWmSvW7Zi4U39K7NMLK8EfXBQ5FPJA46 \
|
||||
--oid HByVC9A34i22BnzW3n83z9vEMxuYZoC7nNu11ZvGeCTe > new_cat.jpg
|
||||
```
|
||||
|
||||
## Viewing logs
|
||||
|
||||
There are two targets for viewing logs.
|
||||
|
||||
You can view all the logs by replacing the desired service name:
|
||||
|
||||
``` sh
|
||||
make logs/frostfs-node
|
||||
```
|
||||
|
||||
You can also make a continuous stream of logs by replacing the desired service name:
|
||||
|
||||
``` sh
|
||||
make stream-logs/frostfs-node
|
||||
```
|
||||
|
|
|
@ -14,7 +14,7 @@ die() {
|
|||
runBlockchain() {
|
||||
stage "Starting the blockchain"
|
||||
|
||||
/usr/bin/neo-go node --config-path /config --privnet |& tee -a ${LOG_DIR}/neo-go &
|
||||
/usr/bin/neo-go node --config-path /config --privnet &
|
||||
|
||||
while [[ "$(curl -s -o /dev/null -w %{http_code} localhost:30333)" != "422" ]];
|
||||
do
|
||||
|
@ -31,15 +31,13 @@ configure() {
|
|||
|
||||
/usr/bin/frostfs-adm morph refill-gas --config /config/frostfs-adm.yml --storage-wallet /config/wallet-sn.json --gas 10.0 || die "Failed to transfer GAS to alphabet wallets"
|
||||
|
||||
/usr/bin/frostfs-adm morph proxy-add-account --config /config/frostfs-adm.yml --account NejLbQpojKJWec4NQRMBhzsrmCyhXfGJJe || die "Failed to set storage wallet as proxy wallet"
|
||||
|
||||
/usr/bin/frostfs-adm morph proxy-add-account --config /config/frostfs-adm.yml --account NN1RQ3qwnvDMVNsQw4WPkKi7BrjxdVTDZp || die "Failed to set s3 gateway wallet as proxy wallet"
|
||||
}
|
||||
|
||||
runServices() {
|
||||
stage "Running services"
|
||||
|
||||
/usr/bin/frostfs-ir --config /config/config-ir.yaml |& tee -a ${LOG_DIR}/frostfs-ir &
|
||||
/usr/bin/frostfs-ir --config /config/config-ir.yaml &
|
||||
|
||||
while [[ -z "$(/usr/bin/frostfs-cli control ir healthcheck --endpoint localhost:16512 -c /config/cli-cfg-ir.yaml | grep 'Health status: READY')" ]];
|
||||
do
|
||||
|
@ -47,7 +45,7 @@ runServices() {
|
|||
done
|
||||
|
||||
set -m
|
||||
/usr/bin/frostfs-node --config /config/config-sn.yaml |& tee -a ${LOG_DIR}/frostfs-node &
|
||||
/usr/bin/frostfs-node --config /config/config-sn.yaml &
|
||||
|
||||
while [[ -z "$(/usr/bin/frostfs-cli control healthcheck --endpoint localhost:16513 -c /config/cli-cfg-sn.yaml | grep 'Health status: READY')" ]];
|
||||
do
|
||||
|
@ -65,9 +63,8 @@ runServices() {
|
|||
sleep 2
|
||||
done
|
||||
|
||||
/usr/bin/frostfs-s3-gw --config /config/s3-gw-config.yaml |& tee -a ${LOG_DIR}/frostfs-s3-gw &
|
||||
/usr/bin/frostfs-s3-lifecycler --config /config/s3-lc-config.yaml |& tee -a ${LOG_DIR}/frostfs-s3-lifecycler &
|
||||
/usr/bin/frostfs-http-gw --config /config/http-gw-config.yaml |& tee -a ${LOG_DIR}/frostfs-http-gw &
|
||||
/usr/bin/frostfs-s3-gw --config /config/s3-gw-config.yaml &
|
||||
/usr/bin/frostfs-http-gw --config /config/http-gw-config.yaml &
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1,35 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
initUser() {
|
||||
/usr/bin/frostfs-s3-authmate register-user \
|
||||
--wallet $WALLET_PATH \
|
||||
--rpc-endpoint http://localhost:30333 \
|
||||
--username $USERNAME \
|
||||
--contract-wallet /config/s3-gw-wallet.json >/dev/null 2>&1 && touch $WALLET_CACHE/$USERNAME
|
||||
}
|
||||
|
||||
issueAWS() {
|
||||
/usr/bin/frostfs-s3-authmate issue-secret \
|
||||
--wallet $WALLET_PATH \
|
||||
--peer localhost:8080 \
|
||||
--gate-public-key $S3_GATE_PUBLIC_KEY \
|
||||
--container-placement-policy "REP 1"
|
||||
}
|
||||
|
||||
S3_GATE_PUBLIC_KEY=$(neo-go wallet dump-keys -w /config/s3-gw-wallet.json | tail -1)
|
||||
WALLET_PATH=/wallets/$2
|
||||
if [[ -z "$2" ]]; then
|
||||
WALLET_PATH=/config/user-wallet.json
|
||||
fi
|
||||
|
||||
WALLET_CACHE=/data/wallets
|
||||
mkdir -p $WALLET_CACHE
|
||||
|
||||
USERNAME=$(echo $WALLET_PATH | md5sum | cut -d' ' -f1)
|
||||
if [ ! -e $WALLET_CACHE/$USERNAME ]; then
|
||||
initUser
|
||||
fi
|
||||
|
||||
if [ $1 == "s3" ]; then
|
||||
issueAWS
|
||||
fi
|
|
@ -15,8 +15,6 @@ services:
|
|||
retries: 100
|
||||
start_period: 2s
|
||||
timeout: 2s
|
||||
environment:
|
||||
- LOG_DIR=/var/log
|
||||
volumes:
|
||||
- data:/data
|
||||
- ./wallets:/wallets
|
||||
|
@ -25,7 +23,6 @@ services:
|
|||
- "30333:30333" # RPC
|
||||
- "8080:8080" # FrostFS API RPC
|
||||
- "8084:8084" # S3 Gateway
|
||||
- "8184:8184" # S3 Gateway with TLS
|
||||
- "16513:16513" # Control service
|
||||
|
||||
volumes:
|
||||
|
|
|
@ -34,7 +34,3 @@ peers:
|
|||
weight: 1
|
||||
|
||||
rpc_endpoint: http://localhost:30333
|
||||
|
||||
cors:
|
||||
allow_origin: "*"
|
||||
allow_headers: ["*"]
|
||||
|
|
|
@ -11,7 +11,6 @@ ProtocolConfiguration:
|
|||
VerifyTransactions: true
|
||||
StateRootInHeader: true
|
||||
P2PSigExtensions: true
|
||||
Hardforks: {}
|
||||
|
||||
ApplicationConfiguration:
|
||||
SkipBlockVerification: false
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
{
|
||||
"us-east-1": "REP 1",
|
||||
"us-west-1": "REP 1"
|
||||
}
|
|
@ -11,11 +11,6 @@ peers:
|
|||
|
||||
server:
|
||||
- address: 0.0.0.0:8084
|
||||
- address: 0.0.0.0:8184
|
||||
tls:
|
||||
enabled: true
|
||||
cert_file: /config/s3-gw-tls.crt
|
||||
key_file: /config/s3-gw-tls.key
|
||||
|
||||
logger:
|
||||
level: debug
|
||||
|
@ -37,7 +32,7 @@ stream_timeout: 10s
|
|||
healthcheck_timeout: 15s
|
||||
rebalance_interval: 60s
|
||||
pool_error_threshold: 100
|
||||
max_clients_count: 1000
|
||||
max_clients_count: 100
|
||||
max_clients_deadline: 30s
|
||||
|
||||
cache:
|
||||
|
@ -65,7 +60,6 @@ cache:
|
|||
|
||||
placement_policy:
|
||||
default: REP 1
|
||||
region_mapping: /config/regions.json
|
||||
|
||||
features:
|
||||
md5:
|
||||
|
@ -75,6 +69,9 @@ control:
|
|||
grpc:
|
||||
endpoint: localhost:16515
|
||||
|
||||
frostfsid:
|
||||
validation:
|
||||
enabled: false
|
||||
|
||||
kludge:
|
||||
use_default_xmlns: true
|
||||
bypass_content_encoding_check_in_chunks: true
|
||||
|
|
|
@ -1,36 +0,0 @@
|
|||
-----BEGIN CERTIFICATE-----
|
||||
MIIGOzCCBCOgAwIBAgIUYWyZ9RMzV7CIRScF85cb8kmjUK4wDQYJKoZIhvcNAQEL
|
||||
BQAwgawxCzAJBgNVBAYTAlJVMRkwFwYDVQQIDBBTYWludCBQZXRlcnNidXJnMRcw
|
||||
FQYDVQQHDA5TdC4gUGV0ZXJzYnVyZzEXMBUGA1UECgwOVHJ1ZSBDbG91ZCBMYWIx
|
||||
FzAVBgNVBAsMDlRydWUgQ2xvdWQgTGFiMRUwEwYDVQQDDAxmcm9zdGZzLmluZm8x
|
||||
IDAeBgkqhkiG9w0BCQEWEWluZm9AZnJvc3Rmcy5pbmZvMB4XDTI0MTEwODA5MzQ0
|
||||
MFoXDTM0MTEwNjA5MzQ0MFowgawxCzAJBgNVBAYTAlJVMRkwFwYDVQQIDBBTYWlu
|
||||
dCBQZXRlcnNidXJnMRcwFQYDVQQHDA5TdC4gUGV0ZXJzYnVyZzEXMBUGA1UECgwO
|
||||
VHJ1ZSBDbG91ZCBMYWIxFzAVBgNVBAsMDlRydWUgQ2xvdWQgTGFiMRUwEwYDVQQ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u/bR5
|
||||
/ouRL05cUMNEPYtt9huQsbEqqVWqMX78FdVuZh4EbN8RFi7dDeKyug6nxwkv+WFL
|
||||
Pq/MphPxa6KNY93tMtwOUU5t5p4yBfDg9d84Qw7WcmtkbHH/j4s735QD4moQM4Zt
|
||||
4j+9fryB1MncX8n3wo0GZJ2fux0zGeBlAGuVH+DA8CGj3cmKiKXfaDux+vokzrBG
|
||||
v+KxFrc2WTWVzJWPQQlTdaGU+a+cvmLDeDrT2zA/AoIBAQC/U2VfRz2TFuEF/1+M
|
||||
qJW3/29m7EwilAoUdkkpWRXf/OKw10eQ8nNrV+ZitOXxHPt4cBWv7WpGP92fTtUV
|
||||
HwmPD5YdNyu93bBcxlrU/AVj6GCoR9E1waqUGq25CTha5AV/J/7OIQ8xwL7/EC60
|
||||
vFCx2m3UmKBCJbfhzVWADruBG35j5z45jsFyF9O4RaQY5VV2G8wuv39II6M/60IY
|
||||
smyJv/ZzvCzpZAuE1oxaIUVV2jzfR7RyoV7nh0qHPcFqqapFNysbHylOY1oFrujM
|
||||
mZAXypLN7GvQ0b7TeB+jP65RX3z+oGomTgZQD5dUeTowq8fzDlJYXV5TSqIBBNQu
|
||||
TNz9AoIBAELhsEeQucMagn0hFKY5WgxIYF27UjYZVzpt78SKyKjwka0CqDFrCwM+
|
||||
KF80TiAfqMBLD27UpYM9ylwv56e2ZLMWZb/Z0y25jlRC3ctSyRPFyLC6dRgZ1IVA
|
||||
pDsh06uxJhBcZyJC1KKMShdfgV37TQC4qlpqAnDyN39TQH0rr7g9EOzUrOk1tclU
|
||||
mnuUD5wTL5vx7h0mpTSJxf8r6D17i5loWYfi+tp4V7wibVrr7QNh7KWZ5Ww24Rmc
|
||||
LZBtCAKI6Eoac9SOmtpDHW8l8istyNNCqrvU+xtwAnguRbo71rE18j+y11PPhqxn
|
||||
4y2gRqQJl4QzugozyY0+9DKux/FDFfM=
|
||||
-----END PRIVATE KEY-----
|
|
@ -1,61 +0,0 @@
|
|||
# Wallet address, path to the wallet must be set as cli parameter or environment variable
|
||||
wallet:
|
||||
path: /wallets/wallet1.json # Path to wallet
|
||||
address: NhCHDEtGgSph1v6PmjFC1gtzJWNKtNSadk # Account address. If omitted default one will be used.
|
||||
passphrase: "" # Passphrase to decrypt wallet. If you're using a wallet without a password, place '' here.
|
||||
|
||||
logger:
|
||||
level: debug # Log level.
|
||||
destination: stdout # Logging destination.
|
||||
sampling:
|
||||
enabled: false
|
||||
initial: 100
|
||||
thereafter: 100
|
||||
interval: 1s
|
||||
|
||||
morph:
|
||||
rpc_endpoint:
|
||||
- address: ws://localhost:30333/ws
|
||||
priority: 1
|
||||
reconnect_clients_interval: 30s
|
||||
dial_timeout: 5s
|
||||
contract:
|
||||
netmap: netmap.frostfs
|
||||
frostfsid: frostfsid.frostfs
|
||||
container: container.frostfs
|
||||
|
||||
credential:
|
||||
use: wallets
|
||||
source:
|
||||
wallets:
|
||||
- path: /wallets/wallet1.json
|
||||
address: NhCHDEtGgSph1v6PmjFC1gtzJWNKtNSadk
|
||||
passphrase: ""
|
||||
- path: /wallets/wallet2.json
|
||||
address: NivQRezLwGP8xFPr87DD5XaYGUKK3BMsTa
|
||||
passphrase: ""
|
||||
- path: /wallets/wallet3.json
|
||||
address: NR8qvrREk1eCeQJce9zBaDyPE3PHGZfT6t
|
||||
passphrase: ""
|
||||
- path: /config/user-wallet.json
|
||||
address: NWeByJPgNC97F83hTUnSbnZSBKaFvk5HNw
|
||||
passphrase: ""
|
||||
|
||||
|
||||
lifecycle:
|
||||
job_fetcher_buffer: 1000
|
||||
executor_pool_size: 100
|
||||
|
||||
frostfs:
|
||||
stream_timeout: 10s
|
||||
connect_timeout: 10s
|
||||
healthcheck_timeout: 15s
|
||||
rebalance_interval: 60s
|
||||
pool_error_threshold: 100
|
||||
tree_pool_max_attempts: 4
|
||||
|
||||
peers:
|
||||
0:
|
||||
address: localhost:8080
|
||||
priority: 1
|
||||
weight: 1
|
|
@ -2,6 +2,7 @@ morph:
|
|||
rpc_endpoint:
|
||||
- address: ws://localhost:30333/ws
|
||||
dial_timeout: 20s
|
||||
ape_chain_cache_size: 0
|
||||
|
||||
control:
|
||||
grpc:
|
||||
|
@ -37,7 +38,6 @@ pprof:
|
|||
|
||||
storage:
|
||||
shard_num: 1
|
||||
shard_pool_size: 1000
|
||||
shard:
|
||||
0:
|
||||
writecache:
|
||||
|
@ -66,4 +66,6 @@ tree:
|
|||
|
||||
object:
|
||||
put:
|
||||
local_pool_size: 1000
|
||||
pool_size_remote: 100
|
||||
pool_size_local: 100
|
||||
|
||||
|
|
BIN
vendor/contracts/alphabet/alphabet_contract.nef
vendored
BIN
vendor/contracts/alphabet/alphabet_contract.nef
vendored
Binary file not shown.
BIN
vendor/contracts/balance/balance_contract.nef
vendored
BIN
vendor/contracts/balance/balance_contract.nef
vendored
Binary file not shown.
BIN
vendor/contracts/container/container_contract.nef
vendored
BIN
vendor/contracts/container/container_contract.nef
vendored
Binary file not shown.
BIN
vendor/contracts/frostfs/frostfs_contract.nef
vendored
BIN
vendor/contracts/frostfs/frostfs_contract.nef
vendored
Binary file not shown.
2
vendor/contracts/frostfsid/config.json
vendored
2
vendor/contracts/frostfsid/config.json
vendored
File diff suppressed because one or more lines are too long
BIN
vendor/contracts/frostfsid/frostfsid_contract.nef
vendored
BIN
vendor/contracts/frostfsid/frostfsid_contract.nef
vendored
Binary file not shown.
BIN
vendor/contracts/netmap/netmap_contract.nef
vendored
BIN
vendor/contracts/netmap/netmap_contract.nef
vendored
Binary file not shown.
2
vendor/contracts/nns/config.json
vendored
2
vendor/contracts/nns/config.json
vendored
|
@ -1 +1 @@
|
|||
{"name":"NameService","abi":{"methods":[{"name":"_initialize","offset":0,"parameters":[],"returntype":"Void","safe":false},{"name":"_deploy","offset":32,"parameters":[{"name":"data","type":"Any"},{"name":"isUpdate","type":"Boolean"}],"returntype":"Void","safe":false},{"name":"addRecord","offset":3090,"parameters":[{"name":"name","type":"String"},{"name":"typ","type":"Integer"},{"name":"data","type":"String"}],"returntype":"Void","safe":false},{"name":"balanceOf","offset":828,"parameters":[{"name":"owner","type":"Hash160"}],"returntype":"Integer","safe":true},{"name":"decimals","offset":739,"parameters":[],"returntype":"Integer","safe":true},{"name":"deleteDomain","offset":3726,"parameters":[{"name":"name","type":"String"}],"returntype":"Void","safe":false},{"name":"deleteRecord","offset":3469,"parameters":[{"name":"name","type":"String"},{"name":"typ","type":"Integer"},{"name":"data","type":"String"}],"returntype":"Boolean","safe":false},{"name":"deleteRecords","offset":3225,"parameters":[{"name":"name","type":"String"},{"name":"typ","type":"Integer"}],"returntype":"Void","safe":false},{"name":"getAllRecords","offset":4401,"parameters":[{"name":"name","type":"String"}],"returntype":"InteropInterface","safe":false},{"name":"getPrice","offset":1232,"parameters":[],"returntype":"Integer","safe":true},{"name":"getRecords","offset":3182,"parameters":[{"name":"name","type":"String"},{"name":"typ","type":"Integer"}],"returntype":"Array","safe":true},{"name":"isAvailable","offset":1266,"parameters":[{"name":"name","type":"String"}],"returntype":"Boolean","safe":true},{"name":"ownerOf","offset":761,"parameters":[{"name":"tokenID","type":"ByteArray"}],"returntype":"Hash160","safe":true},{"name":"properties","offset":783,"parameters":[{"name":"tokenID","type":"ByteArray"}],"returntype":"Map","safe":true},{"name":"register","offset":1861,"parameters":[{"name":"name","type":"String"},{"name":"owner","type":"Hash160"},{"name":"email","type":"String"},{"name":"refresh","type":"Integer"},{"name":"retry","type":"Integer"},{"name":"expire","type":"Integer"},{"name":"ttl","type":"Integer"}],"returntype":"Boolean","safe":false},{"name":"renew","offset":2665,"parameters":[{"name":"name","type":"String"}],"returntype":"Integer","safe":false},{"name":"resolve","offset":4379,"parameters":[{"name":"name","type":"String"},{"name":"typ","type":"Integer"}],"returntype":"Array","safe":true},{"name":"roots","offset":1126,"parameters":[],"returntype":"InteropInterface","safe":true},{"name":"setAdmin","offset":2800,"parameters":[{"name":"name","type":"String"},{"name":"admin","type":"Hash160"}],"returntype":"Void","safe":false},{"name":"setPrice","offset":1154,"parameters":[{"name":"price","type":"Integer"}],"returntype":"Void","safe":false},{"name":"setRecord","offset":2896,"parameters":[{"name":"name","type":"String"},{"name":"typ","type":"Integer"},{"name":"id","type":"Integer"},{"name":"data","type":"String"}],"returntype":"Void","safe":false},{"name":"symbol","offset":733,"parameters":[],"returntype":"String","safe":true},{"name":"tokens","offset":904,"parameters":[],"returntype":"InteropInterface","safe":true},{"name":"tokensOf","offset":933,"parameters":[{"name":"owner","type":"Hash160"}],"returntype":"InteropInterface","safe":true},{"name":"totalSupply","offset":745,"parameters":[],"returntype":"Integer","safe":true},{"name":"transfer","offset":995,"parameters":[{"name":"to","type":"Hash160"},{"name":"tokenID","type":"ByteArray"},{"name":"data","type":"Any"}],"returntype":"Boolean","safe":false},{"name":"update","offset":674,"parameters":[{"name":"nef","type":"ByteArray"},{"name":"manifest","type":"String"},{"name":"data","type":"Any"}],"returntype":"Void","safe":false},{"name":"updateSOA","offset":2748,"parameters":[{"name":"name","type":"String"},{"name":"email","type":"String"},{"name":"refresh","type":"Integer"},{"name":"retry","type":"Integer"},{"name":"expire","type":"Integer"},{"name":"ttl","type":"Integer"}],"returntype":"Void","safe":false},{"name":"version","offset":741,"parameters":[],"returntype":"Integer","safe":true}],"events":[{"name":"RegisterDomain","parameters":[{"name":"name","type":"String"}]},{"name":"AddRecord","parameters":[{"name":"name","type":"String"},{"name":"type","type":"Integer"}]},{"name":"DeleteRecord","parameters":[{"name":"name","type":"String"},{"name":"type","type":"Integer"}]},{"name":"DeleteRecords","parameters":[{"name":"name","type":"String"},{"name":"type","type":"Integer"}]},{"name":"DeleteDomain","parameters":[{"name":"name","type":"String"}]},{"name":"Transfer","parameters":[{"name":"from","type":"Hash160"},{"name":"to","type":"Hash160"},{"name":"amount","type":"Integer"},{"name":"tokenId","type":"ByteArray"}]}]},"features":{},"groups":[],"permissions":[{"contract":"0xfffdc93764dbaddd97c48f252a53ea4643faa3fd","methods":["update"]},{"contract":"*","methods":["onNEP11Payment"]}],"supportedstandards":["NEP-11"],"trusts":[],"extra":null}
|
||||
{"name":"NameService","abi":{"methods":[{"name":"_initialize","offset":0,"parameters":[],"returntype":"Void","safe":false},{"name":"_deploy","offset":32,"parameters":[{"name":"data","type":"Any"},{"name":"isUpdate","type":"Boolean"}],"returntype":"Void","safe":false},{"name":"addRecord","offset":2681,"parameters":[{"name":"name","type":"String"},{"name":"typ","type":"Integer"},{"name":"data","type":"String"}],"returntype":"Void","safe":false},{"name":"balanceOf","offset":609,"parameters":[{"name":"owner","type":"Hash160"}],"returntype":"Integer","safe":true},{"name":"decimals","offset":520,"parameters":[],"returntype":"Integer","safe":true},{"name":"deleteRecords","offset":2816,"parameters":[{"name":"name","type":"String"},{"name":"typ","type":"Integer"}],"returntype":"Void","safe":false},{"name":"getAllRecords","offset":2972,"parameters":[{"name":"name","type":"String"}],"returntype":"InteropInterface","safe":false},{"name":"getPrice","offset":1013,"parameters":[],"returntype":"Integer","safe":true},{"name":"getRecords","offset":2773,"parameters":[{"name":"name","type":"String"},{"name":"typ","type":"Integer"}],"returntype":"Array","safe":true},{"name":"isAvailable","offset":1047,"parameters":[{"name":"name","type":"String"}],"returntype":"Boolean","safe":true},{"name":"ownerOf","offset":542,"parameters":[{"name":"tokenID","type":"ByteArray"}],"returntype":"Hash160","safe":true},{"name":"properties","offset":564,"parameters":[{"name":"tokenID","type":"ByteArray"}],"returntype":"Map","safe":true},{"name":"register","offset":1386,"parameters":[{"name":"name","type":"String"},{"name":"owner","type":"Hash160"},{"name":"email","type":"String"},{"name":"refresh","type":"Integer"},{"name":"retry","type":"Integer"},{"name":"expire","type":"Integer"},{"name":"ttl","type":"Integer"}],"returntype":"Boolean","safe":false},{"name":"renew","offset":2142,"parameters":[{"name":"name","type":"String"}],"returntype":"Integer","safe":false},{"name":"resolve","offset":2950,"parameters":[{"name":"name","type":"String"},{"name":"typ","type":"Integer"}],"returntype":"Array","safe":true},{"name":"roots","offset":907,"parameters":[],"returntype":"InteropInterface","safe":true},{"name":"setAdmin","offset":2353,"parameters":[{"name":"name","type":"String"},{"name":"admin","type":"Hash160"}],"returntype":"Void","safe":false},{"name":"setPrice","offset":935,"parameters":[{"name":"price","type":"Integer"}],"returntype":"Void","safe":false},{"name":"setRecord","offset":2487,"parameters":[{"name":"name","type":"String"},{"name":"typ","type":"Integer"},{"name":"id","type":"Integer"},{"name":"data","type":"String"}],"returntype":"Void","safe":false},{"name":"symbol","offset":514,"parameters":[],"returntype":"String","safe":true},{"name":"tokens","offset":685,"parameters":[],"returntype":"InteropInterface","safe":true},{"name":"tokensOf","offset":714,"parameters":[{"name":"owner","type":"Hash160"}],"returntype":"InteropInterface","safe":true},{"name":"totalSupply","offset":526,"parameters":[],"returntype":"Integer","safe":true},{"name":"transfer","offset":776,"parameters":[{"name":"to","type":"Hash160"},{"name":"tokenID","type":"ByteArray"},{"name":"data","type":"Any"}],"returntype":"Boolean","safe":false},{"name":"update","offset":455,"parameters":[{"name":"nef","type":"ByteArray"},{"name":"manifest","type":"String"},{"name":"data","type":"Any"}],"returntype":"Void","safe":false},{"name":"updateSOA","offset":2263,"parameters":[{"name":"name","type":"String"},{"name":"email","type":"String"},{"name":"refresh","type":"Integer"},{"name":"retry","type":"Integer"},{"name":"expire","type":"Integer"},{"name":"ttl","type":"Integer"}],"returntype":"Void","safe":false},{"name":"version","offset":522,"parameters":[],"returntype":"Integer","safe":true}],"events":[{"name":"Transfer","parameters":[{"name":"from","type":"Hash160"},{"name":"to","type":"Hash160"},{"name":"amount","type":"Integer"},{"name":"tokenId","type":"ByteArray"}]}]},"features":{},"groups":[],"permissions":[{"contract":"0xfffdc93764dbaddd97c48f252a53ea4643faa3fd","methods":["update"]},{"contract":"*","methods":["onNEP11Payment"]}],"supportedstandards":["NEP-11"],"trusts":[],"extra":null}
|
BIN
vendor/contracts/nns/nns_contract.nef
vendored
BIN
vendor/contracts/nns/nns_contract.nef
vendored
Binary file not shown.
2
vendor/contracts/policy/config.json
vendored
2
vendor/contracts/policy/config.json
vendored
|
@ -1 +1 @@
|
|||
{"name":"APE","abi":{"methods":[{"name":"_initialize","offset":0,"parameters":[],"returntype":"Void","safe":false},{"name":"_deploy","offset":35,"parameters":[{"name":"data","type":"Any"},{"name":"isUpdate","type":"Boolean"}],"returntype":"Void","safe":false},{"name":"addChain","offset":972,"parameters":[{"name":"entity","type":"Integer"},{"name":"entityName","type":"String"},{"name":"name","type":"ByteArray"},{"name":"chain","type":"ByteArray"}],"returntype":"Void","safe":false},{"name":"getAdmin","offset":731,"parameters":[],"returntype":"Hash160","safe":true},{"name":"getChain","offset":1024,"parameters":[{"name":"entity","type":"Integer"},{"name":"entityName","type":"String"},{"name":"name","type":"ByteArray"}],"returntype":"ByteArray","safe":true},{"name":"iteratorChainsByPrefix","offset":1552,"parameters":[{"name":"entity","type":"Integer"},{"name":"entityName","type":"String"},{"name":"prefix","type":"ByteArray"}],"returntype":"InteropInterface","safe":true},{"name":"listChainNames","offset":1635,"parameters":[{"name":"entity","type":"Integer"},{"name":"entityName","type":"String"}],"returntype":"InteropInterface","safe":true},{"name":"listChains","offset":1405,"parameters":[{"name":"namespace","type":"String"},{"name":"container","type":"String"},{"name":"name","type":"ByteArray"}],"returntype":"Array","safe":true},{"name":"listChainsByPrefix","offset":1461,"parameters":[{"name":"entity","type":"Integer"},{"name":"entityName","type":"String"},{"name":"prefix","type":"ByteArray"}],"returntype":"Array","safe":true},{"name":"listTargets","offset":1599,"parameters":[{"name":"entity","type":"Integer"}],"returntype":"InteropInterface","safe":true},{"name":"removeChain","offset":1111,"parameters":[{"name":"entity","type":"Integer"},{"name":"entityName","type":"String"},{"name":"name","type":"ByteArray"}],"returntype":"Void","safe":false},{"name":"removeChainsByPrefix","offset":1240,"parameters":[{"name":"entity","type":"Integer"},{"name":"entityName","type":"String"},{"name":"name","type":"ByteArray"}],"returntype":"Void","safe":false},{"name":"setAdmin","offset":698,"parameters":[{"name":"addr","type":"Hash160"}],"returntype":"Void","safe":false},{"name":"update","offset":605,"parameters":[{"name":"script","type":"ByteArray"},{"name":"manifest","type":"ByteArray"},{"name":"data","type":"Any"}],"returntype":"Void","safe":false},{"name":"version","offset":601,"parameters":[],"returntype":"Integer","safe":true}],"events":[]},"features":{},"groups":[],"permissions":[{"contract":"*","methods":["update"]}],"supportedstandards":[],"trusts":[],"extra":null}
|
||||
{"name":"APE","abi":{"methods":[{"name":"_initialize","offset":0,"parameters":[],"returntype":"Void","safe":false},{"name":"_deploy","offset":35,"parameters":[{"name":"data","type":"Any"},{"name":"isUpdate","type":"Boolean"}],"returntype":"Void","safe":false},{"name":"addChain","offset":968,"parameters":[{"name":"entity","type":"Integer"},{"name":"entityName","type":"String"},{"name":"name","type":"ByteArray"},{"name":"chain","type":"ByteArray"}],"returntype":"Void","safe":false},{"name":"getAdmin","offset":731,"parameters":[],"returntype":"Hash160","safe":true},{"name":"getChain","offset":1020,"parameters":[{"name":"entity","type":"Integer"},{"name":"entityName","type":"String"},{"name":"name","type":"ByteArray"}],"returntype":"ByteArray","safe":true},{"name":"iteratorChainsByPrefix","offset":1548,"parameters":[{"name":"entity","type":"Integer"},{"name":"entityName","type":"String"},{"name":"prefix","type":"ByteArray"}],"returntype":"InteropInterface","safe":true},{"name":"listChains","offset":1401,"parameters":[{"name":"namespace","type":"String"},{"name":"container","type":"String"},{"name":"name","type":"ByteArray"}],"returntype":"Array","safe":true},{"name":"listChainsByPrefix","offset":1457,"parameters":[{"name":"entity","type":"Integer"},{"name":"entityName","type":"String"},{"name":"prefix","type":"ByteArray"}],"returntype":"Array","safe":true},{"name":"listTargets","offset":1595,"parameters":[{"name":"entity","type":"Integer"}],"returntype":"InteropInterface","safe":true},{"name":"removeChain","offset":1107,"parameters":[{"name":"entity","type":"Integer"},{"name":"entityName","type":"String"},{"name":"name","type":"ByteArray"}],"returntype":"Void","safe":false},{"name":"removeChainsByPrefix","offset":1236,"parameters":[{"name":"entity","type":"Integer"},{"name":"entityName","type":"String"},{"name":"name","type":"ByteArray"}],"returntype":"Void","safe":false},{"name":"setAdmin","offset":698,"parameters":[{"name":"addr","type":"Hash160"}],"returntype":"Void","safe":false},{"name":"update","offset":605,"parameters":[{"name":"script","type":"ByteArray"},{"name":"manifest","type":"ByteArray"},{"name":"data","type":"Any"}],"returntype":"Void","safe":false},{"name":"version","offset":601,"parameters":[],"returntype":"Integer","safe":true}],"events":[]},"features":{},"groups":[],"permissions":[{"contract":"*","methods":["update"]}],"supportedstandards":[],"trusts":[],"extra":null}
|
BIN
vendor/contracts/policy/policy_contract.nef
vendored
BIN
vendor/contracts/policy/policy_contract.nef
vendored
Binary file not shown.
BIN
vendor/contracts/processing/processing_contract.nef
vendored
BIN
vendor/contracts/processing/processing_contract.nef
vendored
Binary file not shown.
BIN
vendor/contracts/proxy/proxy_contract.nef
vendored
BIN
vendor/contracts/proxy/proxy_contract.nef
vendored
Binary file not shown.
Loading…
Reference in a new issue