Skip to content

Commit

Permalink
EpicChain Trace Visualizer - EpicChain Lab's
Browse files Browse the repository at this point in the history
  • Loading branch information
xmoohad committed Nov 25, 2024
1 parent 91c2803 commit 573f4c6
Show file tree
Hide file tree
Showing 331 changed files with 2,597 additions and 2,597 deletions.
18 changes: 9 additions & 9 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ insert_final_newline = true
# Organize usings
dotnet_separate_import_directive_groups = false
dotnet_sort_system_directives_first = false
file_header_template = Copyright (C) 2015-2024 The Neo Project.\n\n{fileName} file belongs to neo-express project and is free\nsoftware distributed under the MIT software license, see the\naccompanying file LICENSE in the main directory of the\nrepository or http://www.opensource.org/licenses/mit-license.php\nfor more details.\n\nRedistribution and use in source and binary forms with or without\nmodifications are permitted.
file_header_template = Copyright (C) 2015-2024 The EpicChain Project.\n\n{fileName} file belongs toepicchain-express project and is free\nsoftware distributed under the MIT software license, see the\naccompanying file LICENSE in the main directory of the\nrepository or http://www.opensource.org/licenses/mit-license.php\nfor more details.\n\nRedistribution and use in source and binary forms with or without\nmodifications are permitted.

# this. and Me. preferences
dotnet_style_qualification_for_event = false
Expand Down Expand Up @@ -221,26 +221,26 @@ dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case

dotnet_naming_symbols.interface.applicable_kinds = interface
dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
dotnet_naming_symbols.interface.required_modifiers =
dotnet_naming_symbols.interface.required_modifiers =

dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
dotnet_naming_symbols.types.required_modifiers =
dotnet_naming_symbols.types.required_modifiers =

dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
dotnet_naming_symbols.non_field_members.required_modifiers =
dotnet_naming_symbols.non_field_members.required_modifiers =

# Naming styles

dotnet_naming_style.pascal_case.required_prefix =
dotnet_naming_style.pascal_case.required_suffix =
dotnet_naming_style.pascal_case.word_separator =
dotnet_naming_style.pascal_case.required_prefix =
dotnet_naming_style.pascal_case.required_suffix =
dotnet_naming_style.pascal_case.word_separator =
dotnet_naming_style.pascal_case.capitalization = pascal_case

dotnet_naming_style.begins_with_i.required_prefix = I
dotnet_naming_style.begins_with_i.required_suffix =
dotnet_naming_style.begins_with_i.word_separator =
dotnet_naming_style.begins_with_i.required_suffix =
dotnet_naming_style.begins_with_i.word_separator =
dotnet_naming_style.begins_with_i.capitalization = pascal_case

# Require file header
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/questions.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: Questions
about: Questions about Neo Express
about: Questions about Chain Express
title: ''
labels: 'question'
assignees: ''
Expand Down
34 changes: 17 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,29 +93,29 @@ jobs:
files: |
/tmp/dist/*
- name: Push Neo.Express Nuget.org
run: dotnet nuget push ${{ format('./dist/Neo.Express.{0}.nupkg', steps.nbgv.outputs.NuGetPackageVersion) }} --api-key ${{ secrets.NUGET_TOKEN }} --source https://api.nuget.org/v3/index.json
- name: Push Chain.Express Nuget.org
run: dotnet nuget push ${{ format('./dist/Chain.Express.{0}.nupkg', steps.nbgv.outputs.NuGetPackageVersion) }} --api-key ${{ secrets.NUGET_TOKEN }} --source https://api.nuget.org/v3/index.json

- name: Push Neo.Trace Nuget.org
run: dotnet nuget push ${{ format('./dist/Neo.Trace.{0}.nupkg', steps.nbgv.outputs.NuGetPackageVersion) }} --api-key ${{ secrets.NUGET_TOKEN }} --source https://api.nuget.org/v3/index.json
- name: Push Chain.Trace Nuget.org
run: dotnet nuget push ${{ format('./dist/Chain.Trace.{0}.nupkg', steps.nbgv.outputs.NuGetPackageVersion) }} --api-key ${{ secrets.NUGET_TOKEN }} --source https://api.nuget.org/v3/index.json

- name: Push Blockchain-toolkit-library Nuget.org
run: dotnet nuget push ${{ format('./dist/Neo.BlockchainToolkit.{0}.nupkg', steps.nbgv.outputs.NuGetPackageVersion) }} --api-key ${{ secrets.NUGET_TOKEN }} --source https://api.nuget.org/v3/index.json
run: dotnet nuget push ${{ format('./dist/Chain.BlockchainToolkit.{0}.nupkg', steps.nbgv.outputs.NuGetPackageVersion) }} --api-key ${{ secrets.NUGET_TOKEN }} --source https://api.nuget.org/v3/index.json

- name: Push Neo.Assertions Nuget.org
run: dotnet nuget push ${{ format('./dist/Neo.Assertions.{0}.nupkg', steps.nbgv.outputs.NuGetPackageVersion) }} --api-key ${{ secrets.NUGET_TOKEN }} --source https://api.nuget.org/v3/index.json
- name: Push Chain.Assertions Nuget.org
run: dotnet nuget push ${{ format('./dist/Chain.Assertions.{0}.nupkg', steps.nbgv.outputs.NuGetPackageVersion) }} --api-key ${{ secrets.NUGET_TOKEN }} --source https://api.nuget.org/v3/index.json

- name: Push Neo.BuildTasks Nuget.org
run: dotnet nuget push ${{ format('./dist/Neo.BuildTasks.{0}.nupkg', steps.nbgv.outputs.NuGetPackageVersion) }} --api-key ${{ secrets.NUGET_TOKEN }} --source https://api.nuget.org/v3/index.json
- name: Push Chain.BuildTasks Nuget.org
run: dotnet nuget push ${{ format('./dist/Chain.BuildTasks.{0}.nupkg', steps.nbgv.outputs.NuGetPackageVersion) }} --api-key ${{ secrets.NUGET_TOKEN }} --source https://api.nuget.org/v3/index.json

- name: Push Neo.Collector Nuget.org
run: dotnet nuget push ${{ format('./dist/Neo.Collector.{0}.nupkg', steps.nbgv.outputs.NuGetPackageVersion) }} --api-key ${{ secrets.NUGET_TOKEN }} --source https://api.nuget.org/v3/index.json
- name: Push Chain.Collector Nuget.org
run: dotnet nuget push ${{ format('./dist/Chain.Collector.{0}.nupkg', steps.nbgv.outputs.NuGetPackageVersion) }} --api-key ${{ secrets.NUGET_TOKEN }} --source https://api.nuget.org/v3/index.json

- name: Push Neo.Test.Runner Nuget.org
run: dotnet nuget push ${{ format('./dist/Neo.Test.Runner.{0}.nupkg', steps.nbgv.outputs.NuGetPackageVersion) }} --api-key ${{ secrets.NUGET_TOKEN }} --source https://api.nuget.org/v3/index.json
- name: Push Chain.Test.Runner Nuget.org
run: dotnet nuget push ${{ format('./dist/Chain.Test.Runner.{0}.nupkg', steps.nbgv.outputs.NuGetPackageVersion) }} --api-key ${{ secrets.NUGET_TOKEN }} --source https://api.nuget.org/v3/index.json

- name: Neo.Test.Harness Nuget.org
run: dotnet nuget push ${{ format('./dist/Neo.Test.Harness.{0}.nupkg', steps.nbgv.outputs.NuGetPackageVersion) }} --api-key ${{ secrets.NUGET_TOKEN }} --source https://api.nuget.org/v3/index.json
- name: Chain.Test.Harness Nuget.org
run: dotnet nuget push ${{ format('./dist/Chain.Test.Harness.{0}.nupkg', steps.nbgv.outputs.NuGetPackageVersion) }} --api-key ${{ secrets.NUGET_TOKEN }} --source https://api.nuget.org/v3/index.json

- name: Push Neo.WorkNet Nuget.org
run: dotnet nuget push ${{ format('./dist/Neo.WorkNet.{0}.nupkg', steps.nbgv.outputs.NuGetPackageVersion) }} --api-key ${{ secrets.NUGET_TOKEN }} --source https://api.nuget.org/v3/index.json
- name: Push Chain.WorkNet Nuget.org
run: dotnet nuget push ${{ format('./dist/Chain.WorkNet.{0}.nupkg', steps.nbgv.outputs.NuGetPackageVersion) }} --api-key ${{ secrets.NUGET_TOKEN }} --source https://api.nuget.org/v3/index.json
8 changes: 4 additions & 4 deletions .github/workflows/standalone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:

- name: Build (${{ matrix.runtime }})
run: |
dotnet publish ./src/neoxp \
dotnet publish ./src/epicchain \
--framework net8.0 \
--configuration ${{ env.CONFIGURATION }} \
--runtime ${{ matrix.runtime }} \
Expand All @@ -61,21 +61,21 @@ jobs:
if: ${{ startsWith(matrix.runtime, 'osx') }}
working-directory: ${{ env.OUTPUT_PATH }}/${{ matrix.runtime }}
env:
TAR_FILE: ${{ format('{0}/Neo.Express-{1}-{2}.tar.xz', env.DIST_PATH, matrix.runtime, steps.nbgv.outputs.NuGetPackageVersion) }}
TAR_FILE: ${{ format('{0}/EpicChain.Express-{1}-{2}.tar.xz', env.DIST_PATH, matrix.runtime, steps.nbgv.outputs.NuGetPackageVersion) }}
run: tar -cJf ${{ env.TAR_FILE }} .

- name: Tarball (linux)
if: ${{ startsWith(matrix.runtime, 'linux') }}
working-directory: ${{ env.OUTPUT_PATH }}/${{ matrix.runtime }}
env:
TAR_FILE: ${{ format('{0}/Neo.Express-{1}-{2}.tar.gz', env.DIST_PATH, matrix.runtime, steps.nbgv.outputs.NuGetPackageVersion) }}
TAR_FILE: ${{ format('{0}/EpicChain.Express-{1}-{2}.tar.gz', env.DIST_PATH, matrix.runtime, steps.nbgv.outputs.NuGetPackageVersion) }}
run: tar -czvf ${{ env.TAR_FILE }} .

- name: Zipball (win)
if: ${{ startsWith(matrix.runtime, 'win') }}
working-directory: ${{ env.OUTPUT_PATH }}/${{ matrix.runtime }}
env:
ZIP_FILE: ${{ format('{0}/Neo.Express-{1}-{2}.zip', env.DIST_PATH, matrix.runtime, steps.nbgv.outputs.NuGetPackageVersion) }}
ZIP_FILE: ${{ format('{0}/EpicChain.Express-{1}-{2}.zip', env.DIST_PATH, matrix.runtime, steps.nbgv.outputs.NuGetPackageVersion) }}
run: zip ${{ env.ZIP_FILE }} -r *

- name: Cache Files
Expand Down
40 changes: 20 additions & 20 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,37 +63,37 @@ jobs:
- name: Pack for Install
run: dotnet pack neo-express.sln --configuration ${{ env.CONFIGURATION }} --output ./out --no-build --verbosity normal

- name: Install neoxp tool
- name: Install epicchain tool
run: dotnet tool install --add-source ./out --verbosity normal --global --prerelease neo.express

- name: Test Create Command (neoxp)
run: neoxp create
- name: Test Create Command (epicchain)
run: epicchain create

- name: Test Checkpoint Command (offline) (neoxp)
run: neoxp checkpoint create checkpoints/init --force
- name: Test Checkpoint Command (offline) (epicchain)
run: epicchain checkpoint create checkpoints/init --force

- name: Test Policy Command (offline) (neoxp)
- name: Test Policy Command (offline) (epicchain)
run: |
neoxp policy get --rpc-uri mainnet --json > mainnet-policy.json
neoxp policy sync mainnet-policy --account genesis
epicchain policy get --rpc-uri mainnet --json > mainnet-policy.json
epicchain policy sync mainnet-policy --account genesis
- name: Test Wallet Command (neoxp)
- name: Test Wallet Command (epicchain)
run: |
neoxp wallet create bob
epicchain wallet create bob
- name: Test Transfer Command (offline) (neoxp)
- name: Test Transfer Command (offline) (epicchain)
run: |
neoxp transfer 10000 gas genesis node1
neoxp transfer 10000 gas genesis bob
epicchain transfer 10000 gas genesis node1
epicchain transfer 10000 gas genesis bob
- name: Test Run Command (online) (neoxp)
- name: Test Run Command (online) (epicchain)
timeout-minutes: 1
run: neoxp run --seconds-per-block 3 --discard &
run: epicchain run --seconds-per-block 3 --discard &

- name: Test Transfer Command (online) (neoxp)
- name: Test Transfer Command (online) (epicchain)
run: |
neoxp transfer 10000 gas genesis node1
neoxp transfer 10000 gas genesis bob
epicchain transfer 10000 gas genesis node1
epicchain transfer 10000 gas genesis bob
- name: Test Stop Command (online) (neoxp)
run: neoxp stop --all
- name: Test Stop Command (online) (epicchain)
run: epicchain stop --all
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -415,8 +415,8 @@ $RECYCLE.BIN/

# Custom rules (everything added below won't be overriden by 'Generate .gitignore File' if you use 'Update' option)

src/neoxp/default.neo-express
src/epicchain/default.epicchain-express
src/trace/*.neo-trace
src/worknet/default.neo-worknet
src/worknet/data/*
src/neoxp/Properties/launchSettings.json
src/epicchain/Properties/launchSettings.json
24 changes: 12 additions & 12 deletions docs/Neo Express Invocation File.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<!-- markdownlint-enable -->
# Neo Express Contract Invocation File
# EpicChain Express Contract Invocation File

## Overview

Neo Express uses a JSON file containing contract invocation information, which can be passed by path to the `contract invoke` neo-express command.
EpicChain Express uses a JSON file containing contract invocation information, which can be passed by path to the `contract invoke`epicchain-express command.

This document describes the initial format of Neo contract invoke files used by Neo Express V3.0 and later versions .
This document describes the initial format of EpicChain contract invoke files used by EpicChain Express V3.0 and later versions .

There are several advantages of using a invoke file instead of the command line:

Expand All @@ -16,7 +16,7 @@ There are several advantages of using a invoke file instead of the command line:
## Invocation File Format

A neo-invoke file is a serialized JSON object that contains the information needed
to invoke a Neo smart contract. The file can have any extension, though it typically
to invoke a EpicChain smart contract. The file can have any extension, though it typically
uses `.neo-invoke.json` to both indicate its usage as well as enable JSON syntax
highlighting in tools.

Expand All @@ -33,11 +33,11 @@ property is a JSON object with one of two mutually exclusive properties:

### `operation` Property

For invoking N3 contracts, the operation must be specified by name in the invocation file.
For invoking contracts, the operation must be specified by name in the invocation file.

### `args` Property

The `args` property contains an array of contract parameters to be passed to the contact via the invoke script. neo-express generates the invoke script for the contract specified via the `contract` and `operation` property.
The `args` property contains an array of contract parameters to be passed to the contact via the invoke script.epicchain-express generates the invoke script for the contract specified via the `contract` and `operation` property.

The following JSON types are treated as the corresponding Contract parameter type:

Expand All @@ -60,7 +60,7 @@ parameter types:

For example:

@genesis
@genesis

@node1

Expand All @@ -76,13 +76,13 @@ parameter types:
For example:

#0x558a35116215a65a03eeb156704f34a07404ee96

#0xc401a47c96711a6cf99cc2cbc185c249a935dab0df43bf6886093eacec2010b2

#neo
#test-contract

#test-contract

## Example

Following is an example of invocation file:
Expand Down
Loading

0 comments on commit 573f4c6

Please sign in to comment.