Commit 1f84adb
authored
new Testing environment (#890)
* 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]>1 parent 77b6953 commit 1f84adb
File tree
32 files changed
+3139
-10
lines changed- src
- Neo.Compiler.CSharp
- Neo.SmartContract.Testing
- Extensions
- Native
- tests/Neo.SmartContract.Testing.UnitTests
- Extensions
32 files changed
+3139
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
| |||
86 | 90 | | |
87 | 91 | | |
88 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
89 | 101 | | |
90 | 102 | | |
91 | 103 | | |
| |||
101 | 113 | | |
102 | 114 | | |
103 | 115 | | |
104 | | - | |
105 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
106 | 120 | | |
107 | 121 | | |
108 | 122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| 19 | + | |
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
| 24 | + | |
21 | 25 | | |
22 | 26 | | |
23 | 27 | | |
| |||
38 | 42 | | |
39 | 43 | | |
40 | 44 | | |
| 45 | + | |
41 | 46 | | |
42 | 47 | | |
43 | 48 | | |
| |||
176 | 181 | | |
177 | 182 | | |
178 | 183 | | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
179 | 242 | | |
180 | 243 | | |
181 | 244 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
0 commit comments