@cryptoeconomicslab/primitives
Advanced tools
Comparing version 0.3.0 to 0.3.4
@@ -11,2 +11,3 @@ import Codable from './Codable'; | ||
toString(): string; | ||
equals(address: Address): boolean; | ||
} |
@@ -25,4 +25,7 @@ "use strict"; | ||
} | ||
equals(address) { | ||
return this.raw === address.raw; | ||
} | ||
} | ||
exports.default = Address; | ||
//# sourceMappingURL=Address.js.map |
@@ -16,2 +16,3 @@ import Codable from './Codable'; | ||
toTypeString(): string; | ||
equals(bigNumber: BigNumber): boolean; | ||
} |
@@ -47,2 +47,5 @@ "use strict"; | ||
} | ||
equals(bigNumber) { | ||
return this.raw === bigNumber.raw; | ||
} | ||
} | ||
@@ -49,0 +52,0 @@ exports.default = BigNumber; |
@@ -11,2 +11,3 @@ import Codable from './Codable'; | ||
toTypeString(): string; | ||
equals(integer: Integer): boolean; | ||
} |
@@ -25,4 +25,7 @@ "use strict"; | ||
} | ||
equals(integer) { | ||
return this.raw === integer.raw; | ||
} | ||
} | ||
exports.default = Integer; | ||
//# sourceMappingURL=Integer.js.map |
@@ -13,2 +13,3 @@ import Codable, { CodableF } from './Codable'; | ||
toTypeString(): string; | ||
equals(list: List<T>): boolean; | ||
} |
@@ -31,4 +31,7 @@ "use strict"; | ||
} | ||
equals(list) { | ||
return JSON.stringify(this.raw) === JSON.stringify(list.raw); | ||
} | ||
} | ||
exports.default = List; | ||
//# sourceMappingURL=List.js.map |
@@ -11,2 +11,3 @@ import { Struct, BigNumber, Bytes } from './'; | ||
static getParamType(): Struct; | ||
equals(range: Range): boolean; | ||
} |
@@ -37,4 +37,7 @@ "use strict"; | ||
} | ||
equals(range) { | ||
return this.start.equals(range.start) && this.end.equals(range.end); | ||
} | ||
} | ||
exports.default = Range; | ||
//# sourceMappingURL=Range.js.map |
@@ -15,3 +15,4 @@ import Codable from './Codable'; | ||
toTypeString(): string; | ||
equals(struct: Struct): boolean; | ||
} | ||
export {}; |
@@ -23,4 +23,7 @@ "use strict"; | ||
} | ||
equals(struct) { | ||
return JSON.stringify(this.data) === JSON.stringify(struct.data); | ||
} | ||
} | ||
exports.default = Struct; | ||
//# sourceMappingURL=Struct.js.map |
@@ -10,2 +10,3 @@ import Codable from './Codable'; | ||
toTypeString(): string; | ||
equals(tuple: Tuple): boolean; | ||
} |
@@ -22,4 +22,7 @@ "use strict"; | ||
} | ||
equals(tuple) { | ||
return JSON.stringify(this.data) === JSON.stringify(tuple.data); | ||
} | ||
} | ||
exports.default = Tuple; | ||
//# sourceMappingURL=Tuple.js.map |
{ | ||
"name": "@cryptoeconomicslab/primitives", | ||
"version": "0.3.0", | ||
"version": "0.3.4", | ||
"description": "primitive types", | ||
@@ -38,3 +38,3 @@ "author": { | ||
}, | ||
"gitHead": "f48e8a87baaa0b315db339f0809e6266f570be55" | ||
"gitHead": "54bedfb37ef43b547f78268be769144b44fdd51d" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
44239
588