@flashbacktech/flashbackclient 0.1.69 → 0.1.70

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.
@@ -24,6 +24,7 @@ export declare class DealOps {
24
24
  * @returns Promise resolving to the acceptance result
25
25
  */
26
26
  setDealAccepted: (provider_id: string, consumer_id: string, deal_id: number) => Promise<void>;
27
+ setDealRejected: (provider_id: string, consumer_id: string, deal_id: number) => Promise<void>;
27
28
  /**
28
29
  * Sets a deal as funded by the consumer
29
30
  * @param consumer_id - Address of the consumer funding the deal
@@ -50,6 +50,12 @@ class DealOps {
50
50
  { value: deal_id, type: 'u32' }
51
51
  ]);
52
52
  });
53
+ this.setDealRejected = (0, decorator_1.withSignature)(async (provider_id, consumer_id, deal_id) => {
54
+ await (0, transaction_1.executeWalletTransaction)(this.context, provider_id, "set_deal_rejected", [
55
+ { value: consumer_id, type: 'address' },
56
+ { value: deal_id, type: 'u32' }
57
+ ]);
58
+ });
53
59
  /**
54
60
  * Sets a deal as funded by the consumer
55
61
  * @param consumer_id - Address of the consumer funding the deal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flashbacktech/flashbackclient",
3
- "version": "0.1.69",
3
+ "version": "0.1.70",
4
4
  "type": "commonjs",
5
5
  "publishConfig": {
6
6
  "access": "public"