wowok 1.4.31 → 1.4.32

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wowok",
3
- "version": "1.4.31",
3
+ "version": "1.4.32",
4
4
  "description": "Create, collaborate, and transact on your own terms with the AI-driven web3 collaboration protocol.",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -38,8 +38,7 @@
38
38
  "move language",
39
39
  "move",
40
40
  "treasury",
41
- "payment",
42
- "Withholding"
41
+ "payment"
43
42
  ],
44
43
  "author": "wowok",
45
44
  "license": "Apache-2.0",
package/src/exception.ts CHANGED
@@ -26,6 +26,6 @@ export enum Errors {
26
26
  }
27
27
 
28
28
  export const ERROR = (error:Errors, info?:any) => {
29
- const e = error + info ? (' ' + info) : '';
29
+ const e = error.toString() + (info ? (' ' + info) : '');
30
30
  throw e;
31
31
  }
package/src/protocol.ts CHANGED
@@ -213,11 +213,11 @@ const TESTNET = {
213
213
  }
214
214
  */
215
215
  const TESTNET = {
216
- wowok: "0xdc41a2bf843f25c079205f763b5664d503300590329b01772e227bf62adef4dd",
217
- wowok_origin:'0xdc41a2bf843f25c079205f763b5664d503300590329b01772e227bf62adef4dd' ,
216
+ wowok: "0xe73417677a2f16a4f1d152f4f3ba0986d8aad0adc214a9477b4dcebd7dcfcc50",
217
+ wowok_origin:'0xe73417677a2f16a4f1d152f4f3ba0986d8aad0adc214a9477b4dcebd7dcfcc50' ,
218
218
  base: '0x7efcdab72af2351e5915e34ad2ac8d4ea7f4f408e08138d3498af35a362db782',
219
- wowok_object: '0x346ad6492d083d7a345f233e4af16f451bbd2307cdf7b100faa3bc2a9c8dc8d9',
220
- entity_object: '0xd2d1b91a348300915b3213c30310fbf2f112c6b2b273096ca78fd85f7c9b8217',
219
+ wowok_object: '0xf8279dc84a34795e8f9270ebee06a07d6d90bc6c8b2e6d809eb376035d796607',
220
+ entity_object: '0x04b091c8023806557065747ee50f89a9837655a957813c1dc0f235ba9652dee7',
221
221
  treasury_cap:'0x538cf8f32d59f58c0450a3a97c1eeed3096f4ce63e07e0bdf343a5cc1464887c',
222
222
  }
223
223
  const MAINNET = {
package/src/treasury.ts CHANGED
@@ -155,7 +155,6 @@ export class Treasury {
155
155
 
156
156
  const for_obj = this.txb.pure.option('address', param.for_object ?? undefined);
157
157
  const clock = this.txb.sharedObjectRef(Protocol.CLOCK_OBJECT);
158
-
159
158
  if (passport) {
160
159
  if (param.for_guard) {
161
160
  return this.txb.moveCall({
@@ -196,19 +195,19 @@ export class Treasury {
196
195
  if (!Protocol.IsValidObjects([payment, received])) {
197
196
  ERROR(Errors.IsValidArray, 'receive.payment&received');
198
197
  }
199
-
198
+ const clock = this.txb.sharedObjectRef(Protocol.CLOCK_OBJECT);
200
199
  if (passport) {
201
200
  return this.txb.moveCall({
202
201
  target:Protocol.Instance().TreasuryFn('receive_with_passport') as FnCallType,
203
202
  arguments:[passport, Protocol.TXB_OBJECT(this.txb, this.object), this.txb.object(received), this.txb.object(payment),
204
- Protocol.TXB_OBJECT(this.txb, this.permission)],
203
+ this.txb.object(clock), Protocol.TXB_OBJECT(this.txb, this.permission)],
205
204
  typeArguments:[this.token_type],
206
205
  })
207
206
  } else {
208
207
  return this.txb.moveCall({
209
208
  target:Protocol.Instance().TreasuryFn('receive') as FnCallType,
210
209
  arguments:[Protocol.TXB_OBJECT(this.txb, this.object), this.txb.object(received), this.txb.object(payment),
211
- Protocol.TXB_OBJECT(this.txb, this.permission)],
210
+ this.txb.object(clock), Protocol.TXB_OBJECT(this.txb, this.permission)],
212
211
  typeArguments:[this.token_type],
213
212
  })
214
213
  }