Skip to content

Commit

Permalink
Intergrate NeoFS
Browse files Browse the repository at this point in the history
closes #108

Signed-off-by: Evgeniy Zayats <[email protected]>
  • Loading branch information
Evgeniy Zayats committed Nov 14, 2024
1 parent c8fd0d1 commit 7d7c014
Show file tree
Hide file tree
Showing 29 changed files with 891 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"Timeout": 5000
},
"NeoFS": {
"EndPoint": "http://127.0.0.1:8080",
"EndPoint": "http://neofs-storage-node:5005",
"Timeout": 15000
},
"AutoStart": true
Expand Down
57 changes: 56 additions & 1 deletion docker-compose-eco-network/Neo.CLI/wallets/wallet1.json
Original file line number Diff line number Diff line change
@@ -1 +1,56 @@
{"name":null,"version":"1.0","scrypt":{"n":16384,"r":8,"p":8},"accounts":[{"address":"NYwF2kBmTmrnggGYPUuKLiu3xWFCDUJnTX","label":null,"isDefault":false,"lock":false,"key":"6PYLXgdYBcgKHSrkFQzgaSzRNDPTrg9W55uWMdqFiYv3muCyxtt6nBfawP","contract":{"script":"DCEDXNH0auFCisGk0LtdU\u002B2JFVcJ\u002Bednq\u002Bg5pAI0lJStZVBBVuezJw==","parameters":[{"name":"signature","type":"Signature"}],"deployed":false},"extra":null},{"address":"NforeidHBjJDK6sGdxiAMRfQwW8UnkwMFm","label":null,"isDefault":false,"lock":false,"key":"6PYLXgdYBcgKHSrkFQzgaSzRNDPTrg9W55uWMdqFiYv3muCyxtt6nBfawP","contract":{"script":"EwwhA1zR9GrhQorBpNC7XVPtiRVXCfnnZ6voOaQCNJSUrWVQDCECf8MjXSSxDgcBAltpaDPynqOMmq6A4Ts92U0Aqsmw1IsMIQKNu0KTOf\u002BFy/DKBfb1CpqnIBE4ymRYpePHg2f5BLidLwwhA7vEo2UkjJZSANeVfiV14U6TKgT35D\u002BDTGibvctybETDFEGe0Nw6","parameters":[{"name":"parameter0","type":"Signature"},{"name":"parameter1","type":"Signature"},{"name":"parameter2","type":"Signature"}],"deployed":false},"extra":null}],"extra":null}
{
"name": null,
"version": "1.0",
"scrypt": {
"n": 16384,
"r": 8,
"p": 8
},
"accounts": [
{
"address": "NYwF2kBmTmrnggGYPUuKLiu3xWFCDUJnTX",
"label": null,
"isDefault": false,
"lock": false,
"key": "6PYLXgdYBcgKHSrkFQzgaSzRNDPTrg9W55uWMdqFiYv3muCyxtt6nBfawP",
"contract": {
"script": "DCEDXNH0auFCisGk0LtdU\u002B2JFVcJ\u002Bednq\u002Bg5pAI0lJStZVBBVuezJw==",
"parameters": [
{
"name": "signature",
"type": "Signature"
}
],
"deployed": false
},
"extra": null
},
{
"address": "NforeidHBjJDK6sGdxiAMRfQwW8UnkwMFm",
"label": null,
"isDefault": false,
"lock": false,
"key": "6PYLXgdYBcgKHSrkFQzgaSzRNDPTrg9W55uWMdqFiYv3muCyxtt6nBfawP",
"contract": {
"script": "EwwhA1zR9GrhQorBpNC7XVPtiRVXCfnnZ6voOaQCNJSUrWVQDCECf8MjXSSxDgcBAltpaDPynqOMmq6A4Ts92U0Aqsmw1IsMIQKNu0KTOf\u002BFy/DKBfb1CpqnIBE4ymRYpePHg2f5BLidLwwhA7vEo2UkjJZSANeVfiV14U6TKgT35D\u002BDTGibvctybETDFEGe0Nw6",
"parameters": [
{
"name": "parameter0",
"type": "Signature"
},
{
"name": "parameter1",
"type": "Signature"
},
{
"name": "parameter2",
"type": "Signature"
}
],
"deployed": false
},
"extra": null
}
],
"extra": null
}
57 changes: 56 additions & 1 deletion docker-compose-eco-network/Neo.CLI/wallets/wallet2.json
Original file line number Diff line number Diff line change
@@ -1 +1,56 @@
{"name":null,"version":"1.0","scrypt":{"n":16384,"r":8,"p":8},"accounts":[{"address":"Nii9kBJ3p9EVCVAsiQTvDpk5GsTZxWADSm","label":null,"isDefault":false,"lock":false,"key":"6PYQSMuevDXx6AdiuPkoKTH4RdedSK5NQV6Dg2qz8MMBQnysJvT8UwY3aA","contract":{"script":"DCECjbtCkzn/hcvwygX29QqapyAROMpkWKXjx4Nn\u002BQS4nS9BVuezJw==","parameters":[{"name":"signature","type":"Signature"}],"deployed":false},"extra":null},{"address":"NforeidHBjJDK6sGdxiAMRfQwW8UnkwMFm","label":null,"isDefault":false,"lock":false,"key":"6PYLXgdYBcgKHSrkFQzgaSzRNDPTrg9W55uWMdqFiYv3muCyxtt6nBfawP","contract":{"script":"EwwhA1zR9GrhQorBpNC7XVPtiRVXCfnnZ6voOaQCNJSUrWVQDCECf8MjXSSxDgcBAltpaDPynqOMmq6A4Ts92U0Aqsmw1IsMIQKNu0KTOf\u002BFy/DKBfb1CpqnIBE4ymRYpePHg2f5BLidLwwhA7vEo2UkjJZSANeVfiV14U6TKgT35D\u002BDTGibvctybETDFEGe0Nw6","parameters":[{"name":"parameter0","type":"Signature"},{"name":"parameter1","type":"Signature"},{"name":"parameter2","type":"Signature"}],"deployed":false},"extra":null}],"extra":null}
{
"name": null,
"version": "1.0",
"scrypt": {
"n": 16384,
"r": 8,
"p": 8
},
"accounts": [
{
"address": "Nii9kBJ3p9EVCVAsiQTvDpk5GsTZxWADSm",
"label": null,
"isDefault": false,
"lock": false,
"key": "6PYQSMuevDXx6AdiuPkoKTH4RdedSK5NQV6Dg2qz8MMBQnysJvT8UwY3aA",
"contract": {
"script": "DCECjbtCkzn/hcvwygX29QqapyAROMpkWKXjx4Nn\u002BQS4nS9BVuezJw==",
"parameters": [
{
"name": "signature",
"type": "Signature"
}
],
"deployed": false
},
"extra": null
},
{
"address": "NforeidHBjJDK6sGdxiAMRfQwW8UnkwMFm",
"label": null,
"isDefault": false,
"lock": false,
"key": "6PYQSMuevDXx6AdiuPkoKTH4RdedSK5NQV6Dg2qz8MMBQnysJvT8UwY3aA",
"contract": {
"script": "EwwhA1zR9GrhQorBpNC7XVPtiRVXCfnnZ6voOaQCNJSUrWVQDCECf8MjXSSxDgcBAltpaDPynqOMmq6A4Ts92U0Aqsmw1IsMIQKNu0KTOf\u002BFy/DKBfb1CpqnIBE4ymRYpePHg2f5BLidLwwhA7vEo2UkjJZSANeVfiV14U6TKgT35D\u002BDTGibvctybETDFEGe0Nw6",
"parameters": [
{
"name": "parameter0",
"type": "Signature"
},
{
"name": "parameter1",
"type": "Signature"
},
{
"name": "parameter2",
"type": "Signature"
}
],
"deployed": false
},
"extra": null
}
],
"extra": null
}
57 changes: 56 additions & 1 deletion docker-compose-eco-network/Neo.CLI/wallets/wallet3.json
Original file line number Diff line number Diff line change
@@ -1 +1,56 @@
{"name":null,"version":"1.0","scrypt":{"n":16384,"r":8,"p":8},"accounts":[{"address":"NbHq1jqbGSWdS4ksRMHK5H2wwhLUFV4iiR","label":null,"isDefault":false,"lock":false,"key":"6PYShBje4RK83KP7akyAV1XQC2AKzq3mGcEfjLnh1JxFashAPCAyRRrLBf","contract":{"script":"DCEDu8SjZSSMllIA15V\u002BJXXhTpMqBPfkP4NMaJu9y3JsRMNBVuezJw==","parameters":[{"name":"signature","type":"Signature"}],"deployed":false},"extra":null},{"address":"NforeidHBjJDK6sGdxiAMRfQwW8UnkwMFm","label":null,"isDefault":false,"lock":false,"key":"6PYLXgdYBcgKHSrkFQzgaSzRNDPTrg9W55uWMdqFiYv3muCyxtt6nBfawP","contract":{"script":"EwwhA1zR9GrhQorBpNC7XVPtiRVXCfnnZ6voOaQCNJSUrWVQDCECf8MjXSSxDgcBAltpaDPynqOMmq6A4Ts92U0Aqsmw1IsMIQKNu0KTOf\u002BFy/DKBfb1CpqnIBE4ymRYpePHg2f5BLidLwwhA7vEo2UkjJZSANeVfiV14U6TKgT35D\u002BDTGibvctybETDFEGe0Nw6","parameters":[{"name":"parameter0","type":"Signature"},{"name":"parameter1","type":"Signature"},{"name":"parameter2","type":"Signature"}],"deployed":false},"extra":null}],"extra":null}
{
"name": null,
"version": "1.0",
"scrypt": {
"n": 16384,
"r": 8,
"p": 8
},
"accounts": [
{
"address": "NbHq1jqbGSWdS4ksRMHK5H2wwhLUFV4iiR",
"label": null,
"isDefault": false,
"lock": false,
"key": "6PYShBje4RK83KP7akyAV1XQC2AKzq3mGcEfjLnh1JxFashAPCAyRRrLBf",
"contract": {
"script": "DCEDu8SjZSSMllIA15V\u002BJXXhTpMqBPfkP4NMaJu9y3JsRMNBVuezJw==",
"parameters": [
{
"name": "signature",
"type": "Signature"
}
],
"deployed": false
},
"extra": null
},
{
"address": "NforeidHBjJDK6sGdxiAMRfQwW8UnkwMFm",
"label": null,
"isDefault": false,
"lock": false,
"key": "6PYShBje4RK83KP7akyAV1XQC2AKzq3mGcEfjLnh1JxFashAPCAyRRrLBf",
"contract": {
"script": "EwwhA1zR9GrhQorBpNC7XVPtiRVXCfnnZ6voOaQCNJSUrWVQDCECf8MjXSSxDgcBAltpaDPynqOMmq6A4Ts92U0Aqsmw1IsMIQKNu0KTOf\u002BFy/DKBfb1CpqnIBE4ymRYpePHg2f5BLidLwwhA7vEo2UkjJZSANeVfiV14U6TKgT35D\u002BDTGibvctybETDFEGe0Nw6",
"parameters": [
{
"name": "parameter0",
"type": "Signature"
},
{
"name": "parameter1",
"type": "Signature"
},
{
"name": "parameter2",
"type": "Signature"
}
],
"deployed": false
},
"extra": null
}
],
"extra": null
}
57 changes: 56 additions & 1 deletion docker-compose-eco-network/Neo.CLI/wallets/wallet4.json
Original file line number Diff line number Diff line change
@@ -1 +1,56 @@
{"name":null,"version":"1.0","scrypt":{"n":16384,"r":8,"p":8},"accounts":[{"address":"NVbsa9tHHwLdAh1g1YiA8nPSR8yf4x3ubm","label":null,"isDefault":false,"lock":false,"key":"6PYK6catsTacNKLPwrh23asihVxVZyq4dBBomqi3Hxgyg8K5uCs2qDoue2","contract":{"script":"DCECf8MjXSSxDgcBAltpaDPynqOMmq6A4Ts92U0Aqsmw1ItBVuezJw==","parameters":[{"name":"signature","type":"Signature"}],"deployed":false},"extra":null},{"address":"NforeidHBjJDK6sGdxiAMRfQwW8UnkwMFm","label":null,"isDefault":false,"lock":false,"key":"6PYLXgdYBcgKHSrkFQzgaSzRNDPTrg9W55uWMdqFiYv3muCyxtt6nBfawP","contract":{"script":"EwwhA1zR9GrhQorBpNC7XVPtiRVXCfnnZ6voOaQCNJSUrWVQDCECf8MjXSSxDgcBAltpaDPynqOMmq6A4Ts92U0Aqsmw1IsMIQKNu0KTOf\u002BFy/DKBfb1CpqnIBE4ymRYpePHg2f5BLidLwwhA7vEo2UkjJZSANeVfiV14U6TKgT35D\u002BDTGibvctybETDFEGe0Nw6","parameters":[{"name":"parameter0","type":"Signature"},{"name":"parameter1","type":"Signature"},{"name":"parameter2","type":"Signature"}],"deployed":false},"extra":null}],"extra":null}
{
"name": null,
"version": "1.0",
"scrypt": {
"n": 16384,
"r": 8,
"p": 8
},
"accounts": [
{
"address": "NVbsa9tHHwLdAh1g1YiA8nPSR8yf4x3ubm",
"label": null,
"isDefault": false,
"lock": false,
"key": "6PYK6catsTacNKLPwrh23asihVxVZyq4dBBomqi3Hxgyg8K5uCs2qDoue2",
"contract": {
"script": "DCECf8MjXSSxDgcBAltpaDPynqOMmq6A4Ts92U0Aqsmw1ItBVuezJw==",
"parameters": [
{
"name": "signature",
"type": "Signature"
}
],
"deployed": false
},
"extra": null
},
{
"address": "NforeidHBjJDK6sGdxiAMRfQwW8UnkwMFm",
"label": null,
"isDefault": false,
"lock": false,
"key": "6PYK6catsTacNKLPwrh23asihVxVZyq4dBBomqi3Hxgyg8K5uCs2qDoue2",
"contract": {
"script": "EwwhA1zR9GrhQorBpNC7XVPtiRVXCfnnZ6voOaQCNJSUrWVQDCECf8MjXSSxDgcBAltpaDPynqOMmq6A4Ts92U0Aqsmw1IsMIQKNu0KTOf\u002BFy/DKBfb1CpqnIBE4ymRYpePHg2f5BLidLwwhA7vEo2UkjJZSANeVfiV14U6TKgT35D\u002BDTGibvctybETDFEGe0Nw6",
"parameters": [
{
"name": "parameter0",
"type": "Signature"
},
{
"name": "parameter1",
"type": "Signature"
},
{
"name": "parameter2",
"type": "Signature"
}
],
"deployed": false
},
"extra": null
}
],
"extra": null
}
44 changes: 44 additions & 0 deletions docker-compose-eco-network/NeoFS/chain/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
networks:
private_net:
external: true

services:
neofs-main-chain:
image: nspccdev/neo-go:0.106.3
container_name: neofs-main-chain
command: ["node", "--config-path", "/config", "--privnet", "--debug"]
ports:
- "5000:5000"
- "5001:5001"
healthcheck:
test: [ "CMD", "/neo-go", "query", "height", "-r", "http://127.0.0.1:5000" ]
interval: 5s
timeout: 1s
retries: 5
start_period: 5s
hostname: neofs-main-chain
restart: "no"
networks:
- private_net
stop_signal: SIGKILL
volumes:
# config file
- ./protocol.privnet.yml:/config/protocol.privnet.yml
# wallet of this node
- ./neofs-main-chain-wallet.json:/wallets/neofs-main-chain-wallet.json
# wallets of neocompiler nodes
- ../../Neo.CLI/wallets/wallet1.json:/wallets/wallet1.json
- ../../Neo.CLI/wallets/wallet2.json:/wallets/wallet2.json
- ../../Neo.CLI/wallets/wallet3.json:/wallets/wallet3.json
# multipurpose wallet
- ../multipurpose-wallet/wallet.json:/wallets/multipurpose-wallet.json
# wallets' configs
- ./neofs-main-chain-wallet-config.yml:/wallets/neofs-main-chain-wallet-config.yml
- ./neo-wallet1-config.yml:/wallets/neo-wallet1-config.yml
- ./neo-wallet2-config.yml:/wallets/neo-wallet2-config.yml
- ./neo-wallet3-config.yml:/wallets/neo-wallet3-config.yml
- ../multipurpose-wallet/config.yml:/wallets/multipurpose-wallet-config.yml
# binaries and directory with neofs-contract
- ../neo-go:/neo-go
- ../neofs-cli:/neofs-cli
- ../neofs-contract:/neofs-contract
4 changes: 4 additions & 0 deletions docker-compose-eco-network/NeoFS/chain/neo-wallet1-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---

Path: "/wallets/wallet1.json"
Password: "one"
4 changes: 4 additions & 0 deletions docker-compose-eco-network/NeoFS/chain/neo-wallet2-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---

Path: "/wallets/wallet2.json"
Password: "one"
4 changes: 4 additions & 0 deletions docker-compose-eco-network/NeoFS/chain/neo-wallet3-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---

Path: "/wallets/wallet3.json"
Password: "one"
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---

Path: "/wallets/neofs-main-chain-wallet.json"
Password: "one"
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"version": "3.0",
"name":null,
"accounts": [
{
"address": "Nhfg3TbpwogLvDGVvAvqyThbsHgoSUKwtn",
"key": "6PYM8VdX2BSm7BSXKzV4Fz6S3R9cDLLWNrD9nMjxW352jEv3fsC8N3wNLY",
"label": "single",
"contract": {
"script": "DCECs2Ir9AF73+MXxYrtX0x1PyBrfbiWBG+n13S7xL9/jcJBVuezJw==",
"parameters": [
{
"name": "parameter0",
"type": "Signature"
}
],
"deployed": false
},
"lock": false,
"extra":null,
"isDefault": false
},
{
"address": "NfgHwwTi3wHAS8aFAN243C5vGbkYDpqLHP",
"key": "6PYM8VdX2BSm7BSXKzV4Fz6S3R9cDLLWNrD9nMjxW352jEv3fsC8N3wNLY",
"label": "consensus",
"contract": {
"script": "EQwhArNiK/QBe9/jF8WK7V9MdT8ga324lgRvp9d0u8S/f43CEUGe0Nw6",
"parameters": [
{
"name": "parameter0",
"type": "Signature"
}
],
"deployed": false
},
"lock": false,
"extra":null,
"isDefault": false
}
],
"scrypt": {
"n": 16384,
"r": 8,
"p": 8
},
"extra": {
"Tokens": null
}
}
Loading

0 comments on commit 7d7c014

Please sign in to comment.