Comparing version 0.0.22 to 0.0.23
@@ -22,2 +22,37 @@ import { PermissionLevel, Action } from "./action" | ||
export class Variant implements Packer { | ||
_index: u8; | ||
value: usize; | ||
static new<T, U extends Packer>(value: T): U { | ||
check(false, "not implemented"); | ||
return instantiate<U>() | ||
} | ||
getSize(): usize { | ||
check(false, "not implemented"); | ||
return 0 | ||
} | ||
get<T>(): T { | ||
check(false, "not implemented"); | ||
return instantiate<T>() | ||
} | ||
is<T>(): bool { | ||
check(false, "not implemented"); | ||
return false | ||
} | ||
pack(): u8[] { | ||
check(false, "not implemented"); | ||
return [] | ||
} | ||
unpack(data: u8[]): usize { | ||
check(false, "not implemented"); | ||
return 0 | ||
} | ||
} | ||
export class ActionWrapper { | ||
@@ -24,0 +59,0 @@ constructor( |
@@ -62,3 +62,3 @@ export { U128, U256 } from "./bignum"; | ||
export {Contract, ActionWrapper, Table, InlineAction} from "./helpers" | ||
export {Contract, ActionWrapper, Table, InlineAction, Variant} from "./helpers" | ||
@@ -65,0 +65,0 @@ export { |
{ | ||
"name": "as-chain", | ||
"version": "0.0.22", | ||
"version": "0.0.23", | ||
"description": "chain module for assemblyscript", | ||
@@ -5,0 +5,0 @@ "main": "js/index.js", |
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
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
1323868
3371