Add hello SC

Signed-off-by: Stanislav Bogatyrev <s.bogatyrev@yadro.com>
This commit is contained in:
Stanislav Bogatyrev 2023-11-08 12:30:03 +03:00
parent 049686d698
commit c47b667d9b
5 changed files with 74 additions and 0 deletions

5
l3/hello/go.mod Normal file
View file

@ -0,0 +1,5 @@
module hello
go 1.20
require github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20231027092558-8ed6d97085d3

2
l3/hello/go.sum Normal file
View file

@ -0,0 +1,2 @@
github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20231027092558-8ed6d97085d3 h1:ybQcK5pTNAR+wQU3k4cGeOZN6OCiVcQkbgR3Zl6NFPU=
github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20231027092558-8ed6d97085d3/go.mod h1:J/Mk6+nKeKSW4wygkZQFLQ6SkLOSGX5Ga0RuuuktEag=

9
l3/hello/hello.go Normal file
View file

@ -0,0 +1,9 @@
package hello
import (
"github.com/nspcc-dev/neo-go/pkg/interop/runtime"
)
func Main() {
runtime.Log("Hello, World!")
}

4
l3/hello/hello.yml Normal file
View file

@ -0,0 +1,4 @@
name: "HelloWorld contract"
sourceurl: https://git.frostfs.info/Web3N3/web3-course
supportedstandards: []
events: []

54
l3/protocol.privnet.yml Normal file
View file

@ -0,0 +1,54 @@
ProtocolConfiguration:
Magic: 15405
MaxTraceableBlocks: 200000
TimePerBlock: 1s
MemPoolSize: 50000
StandbyCommittee:
- 02b3622bf4017bdfe317c58aed5f4c753f206b7db896046fa7d774bbc4bf7f8dc2
ValidatorsCount: 1
SeedList:
- 127.0.0.1:20333
VerifyTransactions: true
StateRootInHeader: true
P2PSigExtensions: true
ApplicationConfiguration:
SkipBlockVerification: false
DBConfiguration:
Type: "boltdb"
BoltDBOptions:
FilePath: "/data/chain/morph.bolt"
P2P:
Addresses:
- ":20333"
DialTimeout: 3s
ProtoTickInterval: 2s
PingInterval: 30s
PingTimeout: 90s
MaxPeers: 10
AttemptConnPeers: 5
MinPeers: 0
Relay: true
RPC:
Addresses:
- ":30333"
Enabled: true
SessionEnabled: true
EnableCORSWorkaround: false
MaxGasInvoke: 100
P2PNotary:
Enabled: true
UnlockWallet:
Path: "/config/node-wallet.json"
Password: "one"
Prometheus:
Addresses:
- ":20001"
Enabled: true
Pprof:
Addresses:
- ":20011"
Enabled: false
UnlockWallet:
Path: "/config/node-wallet.json"
Password: "one"