-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Creating source from nef * change to LF * Fix _deploy in NEP17 template * change comment * Replace SetOwner * Remove extra file * Remove _deploy and _initialize * change to _ * Add args * Separate safe from unsafe * abstract Class * format * Only source * Generate events * Mock * starting native artifacts * CryptoLib * Rename project to avoid old one * LF * Escape name * Avoid generation native artifacts * TestNativeContracts * Redirect Logs and Notifications to the mocked smart contract * Mock notifications * Converts * format * LoadFromJson * Initialize native contracts * Partially mocked * Mocked with args * Fix Scope * Found bug in MemoryStore * TriggerType.Application * clean and fixes * format * Remove utartifact * Fix FromHash * Clean code * Store current script in transaction * Allow to set the Gas * Clean code * Reduce changes * Change Snapshot * Change to Artifact to ArtifactExtensions * Clean code * Move to Extensions folder * Fix Native initialization * Allow Custom mocks * Format * some vars * Add some summaries * Allow to mock undeployed contracts * Test undeployed mocked contracts * Change init native to true by default * Clean using * Allow null in deploy * Modify ContractManagement artifact * Readme * Fix menu * Resume example using native access * Clean storage example * fix readme * Fix readme * Fix readme and move CommitteeAddress * Add event testing to readme * Allow properties! * Allow properties if the method is without args and safe * User uppercase for first letter (conflicts with events and methods in native contracts) * All events start with "On" (avoid native conflicts) * Rename log event * Avoid re-query contract id if it was checked * format * Update Readme examples * Improve Mock.OnSysCall * Some small changes * Generate compiled artifacts (.dll) * LF * is 3 not 2 * Update src/Neo.SmartContract.Testing/README.md * Update src/Neo.SmartContract.Testing/NativeArtifacts.cs * Sign by default with Validators and committee * Rename to ValidatorsAddress * Allow to get address without initialize * Clean comment * Allow deploy with byte[] * allow null on deploy and update * Update readme * Fix static event * Allow native init notifications * Belane's feedback * Nullable when ends in object argument * Speedup InvokeOnNotify * Increase protected words * Allow Export and Import contract storage * format * Fix summary * Known limitations * Fix comments * Fix "Value" string * devcontainer ready for testing PR * Revert "devcontainer ready for testing PR" This reverts commit 04cc1ef. * Add more ways to set the signers easy * Avoid base64 strings * cschuchardt88's feedback * Change to IList when Array * Clean Check initialized --------- Co-authored-by: Vitor Nazario Coelho <[email protected]>
- Loading branch information
Showing
32 changed files
with
3,139 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using System.Reflection; | ||
|
||
namespace Neo.SmartContract.Testing | ||
{ | ||
internal class CustomMock | ||
{ | ||
/// <summary> | ||
/// Mocked contract | ||
/// </summary> | ||
public required SmartContract Contract { get; init; } | ||
|
||
/// <summary> | ||
/// Mocked method | ||
/// </summary> | ||
public required MethodInfo Method { get; init; } | ||
} | ||
} |
Oops, something went wrong.