diff --git a/.npmignore b/.npmignore index 8e89559..9971573 100644 --- a/.npmignore +++ b/.npmignore @@ -1,3 +1,9 @@ docs .idea .husky +.github +coverage +*.tgz +*.log +typedoc.json +build.sh diff --git a/README.md b/README.md index e9f3dc8..74d8de1 100644 --- a/README.md +++ b/README.md @@ -109,7 +109,7 @@ Look at [API Documentation](https://ohager.github.io/signum-smartc-testbed/index ## ROADMAP - [x] Github Starter Template -- [ ] Unit Tests +- [x] Unit Tests - [x] Externalize Utility Functions, e.g. method args conversion -- [ ] Stable MultiSlot Support +- [x] Stable MultiSlot Support - [ ] Adding Testbed for real Blockchain Node diff --git a/docs/assets/navigation.js b/docs/assets/navigation.js index 258d61a..db42417 100644 --- a/docs/assets/navigation.js +++ b/docs/assets/navigation.js @@ -1 +1 @@ -window.navigationData = "data:application/octet-stream;base64,H4sIAAAAAAAAA4uuVipJrShRslIKzswtzUksyS8KSS0uSUpNUdJRKkgsyQDKJOckFhenFuujq9DLKMnNASrLzsxLUbIyNLKo1YGblljskVrhm1pcnJieijAprTQvuSQzP69YH1ke1RwzEyRjSvIRlhYl5hUnQrRjMxGHUgzDYwHoATze8wAAAA==" \ No newline at end of file +window.navigationData = "data:application/octet-stream;base64,H4sIAAAAAAAAA3XNvQrCQBAE4HeZ+jAoInJPYGOlnaRYk9UcXu4ks4GA+O4Wgol/9cx8c7jBdDB47ELbR7Hc7ZV21BoOV7EGHlUUUll8NmaNtREOl5Bq+PlifXcvTbjRYauknHWUTn2qLOTEYpq/O6vlhLE8nnaSKM/5L/FP9QsvH+gBPN7zAAAA" \ No newline at end of file diff --git a/docs/assets/search.js b/docs/assets/search.js index d456f63..bc35e67 100644 --- a/docs/assets/search.js +++ b/docs/assets/search.js @@ -1 +1 @@ -window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAAA61YTXPbIBD9L/SqOF5J/rylObQ55NJ0cvF4OkQiiVoJeQROk3r837tYlgEbEhz7iHlvd3mPReAVaeq/gkxnK/Kn4DmZQjyOCKcVI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JYcrk/0FqrtYYHQ9PT3Bh9vVpehazSZw/LecrzOVNif/awWrFmAkNDIdvPvWp/CzIC1jSHhlnVRiC0m6wuNI8AeodjRmBRLFhZcAZJOtts/gPSbzAnxBIAAA=="; \ No newline at end of file diff --git a/docs/classes/SimulatorTestbed.html b/docs/classes/SimulatorTestbed.html index a6ddfb6..894059d 100644 --- a/docs/classes/SimulatorTestbed.html +++ b/docs/classes/SimulatorTestbed.html @@ -15,7 +15,7 @@

This testbed loads a SmartC Contract and a scenario (set of transactions) and forges all necessary blocks. It's possible to inspect all the results, i.e. transactions, kkv-maps, accounts, in-memory variables, and test them against expected result sets. This class is meant to be used with Test Runners like Vitest or Jest.

-

Constructors

Constructors

Properties

Methods

Constructors

Properties

node: SimNode

Methods

  • Retrieves the account with the specified account ID.

    +

Returns SimulatorTestbed

Properties

node: SimNode

Methods

Returns SimulatorTestbed

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/functions/asHexMessage.html b/docs/functions/asHexMessage.html index 73e04e0..ac1586f 100644 --- a/docs/functions/asHexMessage.html +++ b/docs/functions/asHexMessage.html @@ -5,4 +5,4 @@

Parameters

Returns string

The hex string representation of the array of big integers.

-

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/functions/toSimulatorTransactions.html b/docs/functions/toSimulatorTransactions.html index e8ae4eb..3dde67e 100644 --- a/docs/functions/toSimulatorTransactions.html +++ b/docs/functions/toSimulatorTransactions.html @@ -1,4 +1,4 @@ toSimulatorTransactions | signum-smartc-testbed

Function toSimulatorTransactions

  • Converts a scenario into a Simulator UI compatible string

    Parameters

    • scenario: TransactionObj[]

      Scenario Object

    Returns string

    string

    -

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/index.html b/docs/index.html index fc588d0..3290c3c 100644 --- a/docs/index.html +++ b/docs/index.html @@ -33,9 +33,9 @@

Look at API Documentation for details.

ROADMAP

Generated using TypeDoc

\ No newline at end of file diff --git a/package.json b/package.json index 30a7204..5e2ccb7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "signum-smartc-testbed", - "version": "0.1.0", + "version": "1.0.1", "description": "A testbed for faster smart contract development with SmartC for Signum blockchain platform", "main": "./dist/index.js", "exports": "./dist/index.js", @@ -35,8 +35,8 @@ }, "homepage": "https://github.com/ohager/signum-smartc-testbed#readme", "dependencies": { - "smartc-signum-compiler": "^2.2.1", - "smartc-signum-simulator": "^3.0.2" + "smartc-signum-compiler": "2.2.1", + "smartc-signum-simulator": "^3.0.3" }, "devDependencies": { "@vitest/coverage-v8": "^1.3.1", diff --git a/signum-smartc-testbed-v1.0.1.tgz b/signum-smartc-testbed-v1.0.1.tgz new file mode 100644 index 0000000..46cd448 Binary files /dev/null and b/signum-smartc-testbed-v1.0.1.tgz differ diff --git a/tsconfig.json b/tsconfig.json index d564861..37464c5 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -12,7 +12,7 @@ // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', 'react', 'react-jsx' or 'react-jsxdev'. */ "declaration": true /* Generates corresponding '.d.ts' file. */, // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ - //"sourceMap": true, /* Generates corresponding '.map' file. */ + "sourceMap": true, /* Generates corresponding '.map' file. */ //"outFile": "", /* Concatenate and emit output to single file. */ "outDir": "./dist" /* Redirect output structure to the directory. */, "rootDir": "./src" /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */, @@ -61,7 +61,6 @@ // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */ // "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */ // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */ - "sourceMap": false, /* Experimental Options */ // "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */ // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */ diff --git a/yarn.lock b/yarn.lock index 4b74050..fe9609b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1202,15 +1202,15 @@ slice-ansi@^5.0.0: ansi-styles "^6.0.0" is-fullwidth-code-point "^4.0.0" -smartc-signum-compiler@^2.2.1: +smartc-signum-compiler@2.2.1: version "2.2.1" resolved "https://registry.yarnpkg.com/smartc-signum-compiler/-/smartc-signum-compiler-2.2.1.tgz#3ba41a86286c74867e02ee9cd93305659fe41823" integrity sha512-W98XPx42DIyB9yMzGjPIitN/yCs4XVOYEPSg9MAqWyqi8U0za6Qag3qvp2fp6thhNgEbZ8NCfCBQLS7XVjWQlA== -smartc-signum-simulator@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/smartc-signum-simulator/-/smartc-signum-simulator-3.0.2.tgz#d6872d83fd17eb935d518409f4bd5b469c01acd9" - integrity sha512-1rx9wcDYt5/A+ZrRlr8YCAV1cP+McNR4M+LlCDmF1kAEyLGfqwSGK+fNAzPEXTILrrAriP4IUsuBsZaoI57uYg== +smartc-signum-simulator@^3.0.3: + version "3.0.3" + resolved "https://registry.yarnpkg.com/smartc-signum-simulator/-/smartc-signum-simulator-3.0.3.tgz#b9af9dff3c6c9cad79e72cc7c5b9e93282271f68" + integrity sha512-H398MW0URz2BjOK1FpqdIN6bN4k46STj7P+JPKW6FRLFOex/wqrVSJ4Mnp++8pMNoTkPbyG1QVUbcORPIcU/8g== source-map-js@^1.0.2: version "1.0.2"