@1stdex/first-sdk 1.0.39 → 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.
- package/dist/cjs/views/market/order-result.js +136 -0
- package/dist/cjs/views/market/order-result.js.map +1 -1
- package/dist/esm/views/market/order-result.js +149 -2
- package/dist/esm/views/market/order-result.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/views/market/order-result.d.ts +6 -2
- package/dist/types/views/market/order-result.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -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 taken and spent flows (no make)
|
|
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'
|
|
@@ -72,5 +74,7 @@ export declare const getMakeOrderResult: ({ chainId, txHash, options, }: {
|
|
|
72
74
|
}[];
|
|
73
75
|
averagePrice: string;
|
|
74
76
|
};
|
|
77
|
+
providerFees: CurrencyFlow[];
|
|
78
|
+
referrerFees: CurrencyFlow[];
|
|
75
79
|
}>;
|
|
76
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;
|
|
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;AAwGvE;;;;;;;;;;;;;;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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