pshenmic-dpp 1.1.0 → 1.1.2-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -654,8 +654,11 @@ export class DataContractWASM {
654
654
  set tokens(value: any);
655
655
  version: number;
656
656
  static readonly __struct: string;
657
+ keywords: string[];
657
658
  get ownerId(): IdentifierWASM;
658
659
  set ownerId(value: any);
660
+ get description(): string | undefined;
661
+ set description(value: string | null | undefined);
659
662
  get id(): IdentifierWASM;
660
663
  set id(value: any);
661
664
  readonly __type: string;
@@ -1984,6 +1987,8 @@ export class PublicKeyWASM {
1984
1987
  static fromBytes(bytes: Uint8Array): PublicKeyWASM;
1985
1988
  /** @returns {string} */
1986
1989
  getPublicKeyHash(): string;
1990
+ /** @returns {Uint8Array<ArrayBufferLike>} */
1991
+ hash160(): Uint8Array;
1987
1992
  /**
1988
1993
  * @param {boolean} compressed
1989
1994
  * @param {Uint8Array<ArrayBufferLike>} public_key_bytes
@@ -4177,16 +4182,20 @@ export interface InitOutput {
4177
4182
  readonly datacontractwasm_generateId: (a: number, b: number, c: bigint) => void;
4178
4183
  readonly datacontractwasm_getConfig: (a: number, b: number) => void;
4179
4184
  readonly datacontractwasm_getSchemas: (a: number, b: number) => void;
4185
+ readonly datacontractwasm_get_description: (a: number, b: number) => void;
4180
4186
  readonly datacontractwasm_get_groups: (a: number, b: number) => void;
4181
4187
  readonly datacontractwasm_get_id: (a: number) => number;
4188
+ readonly datacontractwasm_get_keywords: (a: number, b: number) => void;
4182
4189
  readonly datacontractwasm_get_owner_id: (a: number) => number;
4183
4190
  readonly datacontractwasm_get_tokens: (a: number, b: number) => void;
4184
4191
  readonly datacontractwasm_get_version: (a: number) => number;
4185
4192
  readonly datacontractwasm_hex: (a: number, b: number, c: number) => void;
4186
4193
  readonly datacontractwasm_setConfig: (a: number, b: number, c: number, d: number) => void;
4187
4194
  readonly datacontractwasm_setSchemas: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
4195
+ readonly datacontractwasm_set_description: (a: number, b: number, c: number) => void;
4188
4196
  readonly datacontractwasm_set_groups: (a: number, b: number, c: number) => void;
4189
4197
  readonly datacontractwasm_set_id: (a: number, b: number, c: number) => void;
4198
+ readonly datacontractwasm_set_keywords: (a: number, b: number, c: number) => void;
4190
4199
  readonly datacontractwasm_set_owner_id: (a: number, b: number, c: number) => void;
4191
4200
  readonly datacontractwasm_set_tokens: (a: number, b: number, c: number) => void;
4192
4201
  readonly datacontractwasm_set_version: (a: number, b: number) => void;
@@ -4570,6 +4579,7 @@ export interface InitOutput {
4570
4579
  readonly publickeywasm_compressed: (a: number) => number;
4571
4580
  readonly publickeywasm_fromBytes: (a: number, b: number, c: number) => void;
4572
4581
  readonly publickeywasm_getPublicKeyHash: (a: number, b: number) => void;
4582
+ readonly publickeywasm_hash160: (a: number, b: number) => void;
4573
4583
  readonly publickeywasm_inner: (a: number, b: number) => void;
4574
4584
  readonly publickeywasm_new: (a: number, b: number, c: number, d: number) => void;
4575
4585
  readonly publickeywasm_set_compressed: (a: number, b: number) => void;
@@ -4069,6 +4069,22 @@ export class DataContractWASM {
4069
4069
  wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
4070
4070
  }
4071
4071
  }
4072
+ /**
4073
+ * @returns {string[]}
4074
+ */
4075
+ get keywords() {
4076
+ try {
4077
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
4078
+ wasm.datacontractwasm_get_keywords(retptr, this.__wbg_ptr);
4079
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
4080
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
4081
+ var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
4082
+ wasm.__wbindgen_export4(r0, r1 * 4, 4);
4083
+ return v1;
4084
+ } finally {
4085
+ wasm.__wbindgen_add_to_stack_pointer(16);
4086
+ }
4087
+ }
4072
4088
  /**
4073
4089
  * @returns {IdentifierWASM}
4074
4090
  */
@@ -4076,6 +4092,14 @@ export class DataContractWASM {
4076
4092
  const ret = wasm.datacontractwasm_get_owner_id(this.__wbg_ptr);
4077
4093
  return IdentifierWASM.__wrap(ret);
4078
4094
  }
4095
+ /**
4096
+ * @param {string[]} keywords
4097
+ */
4098
+ set keywords(keywords) {
4099
+ const ptr0 = passArrayJsValueToWasm0(keywords, wasm.__wbindgen_export2);
4100
+ const len0 = WASM_VECTOR_LEN;
4101
+ wasm.datacontractwasm_set_keywords(this.__wbg_ptr, ptr0, len0);
4102
+ }
4079
4103
  /**
4080
4104
  * @param {any} js_owner_id
4081
4105
  */
@@ -4123,6 +4147,33 @@ export class DataContractWASM {
4123
4147
  heap[stack_pointer++] = undefined;
4124
4148
  }
4125
4149
  }
4150
+ /**
4151
+ * @returns {string | undefined}
4152
+ */
4153
+ get description() {
4154
+ try {
4155
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
4156
+ wasm.datacontractwasm_get_description(retptr, this.__wbg_ptr);
4157
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
4158
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
4159
+ let v1;
4160
+ if (r0 !== 0) {
4161
+ v1 = getStringFromWasm0(r0, r1).slice();
4162
+ wasm.__wbindgen_export4(r0, r1 * 1, 1);
4163
+ }
4164
+ return v1;
4165
+ } finally {
4166
+ wasm.__wbindgen_add_to_stack_pointer(16);
4167
+ }
4168
+ }
4169
+ /**
4170
+ * @param {string | null} [description]
4171
+ */
4172
+ set description(description) {
4173
+ var ptr0 = isLikeNone(description) ? 0 : passStringToWasm0(description, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
4174
+ var len0 = WASM_VECTOR_LEN;
4175
+ wasm.datacontractwasm_set_description(this.__wbg_ptr, ptr0, len0);
4176
+ }
4126
4177
  /**
4127
4178
  * @returns {IdentifierWASM}
4128
4179
  */
@@ -13677,6 +13728,22 @@ export class PublicKeyWASM {
13677
13728
  wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
13678
13729
  }
13679
13730
  }
13731
+ /**
13732
+ * @returns {Uint8Array}
13733
+ */
13734
+ hash160() {
13735
+ try {
13736
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
13737
+ wasm.publickeywasm_hash160(retptr, this.__wbg_ptr);
13738
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
13739
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
13740
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
13741
+ wasm.__wbindgen_export4(r0, r1 * 1, 1);
13742
+ return v1;
13743
+ } finally {
13744
+ wasm.__wbindgen_add_to_stack_pointer(16);
13745
+ }
13746
+ }
13680
13747
  /**
13681
13748
  * @param {boolean} compressed
13682
13749
  * @param {Uint8Array} public_key_bytes