diff --git a/l3/hello/go.mod b/l3/hello/go.mod new file mode 100644 index 0000000..43680c0 --- /dev/null +++ b/l3/hello/go.mod @@ -0,0 +1,5 @@ +module hello + +go 1.20 + +require github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20231027092558-8ed6d97085d3 diff --git a/l3/hello/go.sum b/l3/hello/go.sum new file mode 100644 index 0000000..0e8d391 --- /dev/null +++ b/l3/hello/go.sum @@ -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= diff --git a/l3/hello/hello.go b/l3/hello/hello.go new file mode 100644 index 0000000..0ac6ed1 --- /dev/null +++ b/l3/hello/hello.go @@ -0,0 +1,9 @@ +package hello + +import ( + "github.com/nspcc-dev/neo-go/pkg/interop/runtime" +) + +func Main() { + runtime.Log("Hello, World!") +} diff --git a/l3/hello/hello.yml b/l3/hello/hello.yml new file mode 100644 index 0000000..442d59c --- /dev/null +++ b/l3/hello/hello.yml @@ -0,0 +1,4 @@ +name: "HelloWorld contract" +sourceurl: https://git.frostfs.info/Web3N3/web3-course +supportedstandards: [] +events: [] diff --git a/l3/protocol.privnet.yml b/l3/protocol.privnet.yml new file mode 100644 index 0000000..6204984 --- /dev/null +++ b/l3/protocol.privnet.yml @@ -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"