primea-objects
Advanced tools
Comparing version 0.0.0 to 0.0.1
@@ -21,3 +21,3 @@ <!-- Generated by documentation.js. Update this documentation by updating the source code. --> | ||
[index.js:45-56][8] | ||
[index.js:45-60][8] | ||
@@ -32,3 +32,3 @@ an ID | ||
[index.js:61-83][9] | ||
[index.js:65-87][9] | ||
@@ -43,3 +43,3 @@ A function reference | ||
[index.js:88-116][10] | ||
[index.js:92-120][10] | ||
@@ -55,3 +55,3 @@ A module reference | ||
[index.js:103-111][12] | ||
[index.js:107-115][12] | ||
@@ -68,3 +68,3 @@ return a function refernce given the name of the function | ||
[index.js:121-153][15] | ||
[index.js:125-157][15] | ||
@@ -89,15 +89,15 @@ **Extends EventEmitter** | ||
[6]: https://github.com/primea/js-primea-objects/blob/a705e6ebfe30e96dda8d5d7b2d25007d23fac40b/index.js#L11-L18 "Source code on GitHub" | ||
[6]: https://github.com/primea/js-primea-objects/blob/3232a5e82edf2a3efc1f35a9be2159d416bca00d/index.js#L11-L18 "Source code on GitHub" | ||
[7]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object | ||
[8]: https://github.com/primea/js-primea-objects/blob/a705e6ebfe30e96dda8d5d7b2d25007d23fac40b/index.js#L45-L56 "Source code on GitHub" | ||
[8]: https://github.com/primea/js-primea-objects/blob/3232a5e82edf2a3efc1f35a9be2159d416bca00d/index.js#L45-L60 "Source code on GitHub" | ||
[9]: https://github.com/primea/js-primea-objects/blob/a705e6ebfe30e96dda8d5d7b2d25007d23fac40b/index.js#L61-L83 "Source code on GitHub" | ||
[9]: https://github.com/primea/js-primea-objects/blob/3232a5e82edf2a3efc1f35a9be2159d416bca00d/index.js#L65-L87 "Source code on GitHub" | ||
[10]: https://github.com/primea/js-primea-objects/blob/a705e6ebfe30e96dda8d5d7b2d25007d23fac40b/index.js#L88-L116 "Source code on GitHub" | ||
[10]: https://github.com/primea/js-primea-objects/blob/3232a5e82edf2a3efc1f35a9be2159d416bca00d/index.js#L92-L120 "Source code on GitHub" | ||
[11]: #id | ||
[12]: https://github.com/primea/js-primea-objects/blob/a705e6ebfe30e96dda8d5d7b2d25007d23fac40b/index.js#L103-L111 "Source code on GitHub" | ||
[12]: https://github.com/primea/js-primea-objects/blob/3232a5e82edf2a3efc1f35a9be2159d416bca00d/index.js#L107-L115 "Source code on GitHub" | ||
@@ -108,2 +108,2 @@ [13]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String | ||
[15]: https://github.com/primea/js-primea-objects/blob/a705e6ebfe30e96dda8d5d7b2d25007d23fac40b/index.js#L121-L153 "Source code on GitHub" | ||
[15]: https://github.com/primea/js-primea-objects/blob/3232a5e82edf2a3efc1f35a9be2159d416bca00d/index.js#L125-L157 "Source code on GitHub" |
@@ -30,3 +30,3 @@ const cbor = require('borc') | ||
params: val[1], | ||
id: val[2], | ||
actorID: val[2], | ||
gas: val[3] | ||
@@ -54,2 +54,6 @@ }), | ||
toString () { | ||
return this.id.toString('hex') | ||
} | ||
encodeCBOR (gen) { | ||
@@ -111,3 +115,3 @@ return gen.write(new cbor.Tagged(TAGS.id, this.id)) | ||
params, | ||
id: this.id | ||
actorID: this.id | ||
}) | ||
@@ -114,0 +118,0 @@ } |
{ | ||
"name": "primea-objects", | ||
"version": "0.0.0", | ||
"version": "0.0.1", | ||
"description": "Object helper classes for Primea's system Objects", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -17,3 +17,3 @@ const tape = require('tape') | ||
const rid = objects.decoder.decodeFirst(enid) | ||
t.equals(rid.id.toString('hex'), '01') | ||
t.equals(rid.toString(), '01') | ||
@@ -20,0 +20,0 @@ const modRef = new objects.ModuleRef({'name': ['i32']}, id) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
101239
594