koinos / koinos-sdk-as

AssemblyScript (AS) Software Development Toolkit (SDK) for the Koinos Blockchain
https://roaminroe.github.io/koinos-as-sdk/
MIT License
6 stars 3 forks source link

Feat new space helpers #14

Closed mvandeberg closed 2 years ago

mvandeberg commented 2 years ago

Brief description

Note: this is a recreation of #13 due to erroneous closure.

Add 4 additional methods to the Space helper:

Checklist

Demonstration

see unit tests: https://github.com/koinos/koinos-sdk-as/blob/feat-new-space-helpers/__tests__/space.spec.ts

[Describe]: space

 [Success]: ✔ should put and get an object RTrace: +45
 [Success]: ✔ should check if space has an object or not RTrace: +37
 [Success]: ✔ should remove an object RTrace: +45
 [Success]: ✔ should get next and prev object RTrace: +124
 [Success]: ✔ should get many RTrace: +641

[Describe]: space with proto key

 [Success]: ✔ should put and get an object RTrace: +41
 [Success]: ✔ should check if space has an object or not RTrace: +37
 [Success]: ✔ should remove an object RTrace: +43
 [Success]: ✔ should get next and prev object RTrace: +124
 [Success]: ✔ should get many RTrace: +448

    [File]: /Users/rr/Documents/blockchain/koinos-sdk-as/__tests__/space.spec.ts
  [Groups]: 3 pass, 3 total
  [Result]: ✔ PASS
[Snapshot]: 0 total, 0 added, 0 removed, 0 different
 [Summary]: 10 pass,  0 fail, 10 total
    [Time]: 298.663ms