@1stdex/first-sdk 1.0.38 → 1.0.40

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.
@@ -5,7 +5,7 @@ import { CurrencyFlow, DefaultReadContractOptions } from '../../types';
5
5
  * @param chainId - chain id from {@link CHAIN_IDS}
6
6
  * @param txHash - transaction hash of the limit order placement
7
7
  * @param options {@link DefaultReadContractOptions} options.
8
- * @returns Limit order result with make, taken, and spent flows
8
+ * @returns Limit order result with make, taken, and spent flows, plus provider and referrer fees
9
9
  *
10
10
  * @example
11
11
  * import { getLimitOrderResult } from '@clober/v2-sdk'
@@ -37,13 +37,15 @@ export declare const getLimitOrderResult: ({ chainId, txHash, options, }: {
37
37
  }[];
38
38
  averagePrice: string;
39
39
  };
40
+ providerFees: CurrencyFlow[];
41
+ referrerFees: CurrencyFlow[];
40
42
  }>;
41
43
  /**
42
44
  * Get make order result from transaction hash
43
45
  * @param chainId - chain id from {@link CHAIN_IDS}
44
46
  * @param txHash - transaction hash of the make order placement
45
47
  * @param options {@link DefaultReadContractOptions} options.
46
- * @returns Make order result with make flow and price
48
+ * @returns Make order result with taken and spent flows (no make), plus provider and referrer fees
47
49
  *
48
50
  * @example
49
51
  * import { getMakeOrderResult } from '@clober/v2-sdk'
@@ -58,8 +60,21 @@ export declare const getMakeOrderResult: ({ chainId, txHash, options, }: {
58
60
  txHash: `0x${string}`;
59
61
  options?: DefaultReadContractOptions;
60
62
  }) => Promise<{
61
- make: CurrencyFlow & {
62
- price: string;
63
+ taken: CurrencyFlow & {
64
+ events: {
65
+ price: string;
66
+ amount: string;
67
+ }[];
68
+ averagePrice: string;
69
+ };
70
+ spent: CurrencyFlow & {
71
+ events: {
72
+ price: string;
73
+ amount: string;
74
+ }[];
75
+ averagePrice: string;
63
76
  };
77
+ providerFees: CurrencyFlow[];
78
+ referrerFees: CurrencyFlow[];
64
79
  }>;
65
80
  //# sourceMappingURL=order-result.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"order-result.d.ts","sourceRoot":"","sources":["../../../../src/views/market/order-result.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,SAAS,EAAa,MAAM,qCAAqC,CAAC;AAE3E,OAAO,EAAE,YAAY,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAmFvE;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,mBAAmB,kCAI7B;IACD,OAAO,EAAE,SAAS,CAAC;IACnB,MAAM,EAAE,KAAK,MAAM,EAAE,CAAC;IACtB,OAAO,CAAC,EAAE,0BAA0B,CAAC;CACtC,KAAG,QAAQ;IACV,IAAI,EAAE,YAAY,GAAG;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IACvC,KAAK,EAAE,YAAY,GAAG;QACpB,MAAM,EAAE;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAA;SAAE,EAAE,CAAC;QAC5C,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC;IACF,KAAK,EAAE,YAAY,GAAG;QACpB,MAAM,EAAE;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAA;SAAE,EAAE,CAAC;QAC5C,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC;CACH,CA8SA,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,kBAAkB,kCAI5B;IACD,OAAO,EAAE,SAAS,CAAC;IACnB,MAAM,EAAE,KAAK,MAAM,EAAE,CAAC;IACtB,OAAO,CAAC,EAAE,0BAA0B,CAAC;CACtC,KAAG,QAAQ;IACV,IAAI,EAAE,YAAY,GAAG;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;CACxC,CA8EA,CAAC"}
1
+ {"version":3,"file":"order-result.d.ts","sourceRoot":"","sources":["../../../../src/views/market/order-result.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,SAAS,EAAa,MAAM,qCAAqC,CAAC;AAE3E,OA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QAC5C,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC;IACF,YAAY,EAAE,YAAY,EAAE,CAAC;IAC7B,YAAY,EAAE,YAAY,EAAE,CAAC;CAC9B,CA8PA,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1stdex/first-sdk",
3
- "version": "1.0.38",
3
+ "version": "1.0.40",
4
4
  "description": "🛠 An SDK for building applications on top of 1st V2",
5
5
  "files": [
6
6
  "dist"