@clober/v2-sdk 1.0.1 → 1.0.2
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/index.js +2 -1
- package/dist/cjs/views/index.js.map +1 -1
- package/dist/cjs/views/open-order.js +11 -1
- package/dist/cjs/views/open-order.js.map +1 -1
- package/dist/esm/views/index.js +1 -1
- package/dist/esm/views/index.js.map +1 -1
- package/dist/esm/views/open-order.js +10 -1
- package/dist/esm/views/open-order.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/views/index.d.ts +1 -1
- package/dist/types/views/index.d.ts.map +1 -1
- package/dist/types/views/open-order.d.ts +7 -1
- package/dist/types/views/open-order.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ export { getMarket, getChartLogs, getLatestChartLog, getExpectedOutput, getExpec
|
|
|
2
2
|
export { getPool, getPoolSnapshot, getPoolSnapshots, getUserPoolPositions, getStrategyPrice, getLastAmounts, getLpWrappedERC20Address, watchMarketMakingEvents, } from './pool';
|
|
3
3
|
export { getLatestSwaps } from './swap';
|
|
4
4
|
export { getPriceNeighborhood } from './tick';
|
|
5
|
-
export { getOpenOrder, getOpenOrders } from './open-order';
|
|
5
|
+
export { getOpenOrder, getOpenOrders, getOnChainOpenOrders } from './open-order';
|
|
6
6
|
export { getSubgraphEndpoint, getFallbackSubgraphEndpoint, getSubgraphBlockNumber, getSubgraphBlock, } from './subgraph';
|
|
7
7
|
export { getContractAddresses } from './address';
|
|
8
8
|
export { getNativeCurrency, getReferenceCurrency, getCurrencies, getStableCurrencies, getLatestPriceMap, getDailyClosePriceMap, } from './currency';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/views/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,aAAa,EACb,4BAA4B,EAC5B,eAAe,GAChB,MAAM,UAAU,CAAA;AACjB,OAAO,EACL,OAAO,EACP,eAAe,EACf,gBAAgB,EAChB,oBAAoB,EACpB,gBAAgB,EAChB,cAAc,EACd,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,QAAQ,CAAA;AACf,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAA;AAEvC,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAA;AAC7C,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/views/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,aAAa,EACb,4BAA4B,EAC5B,eAAe,GAChB,MAAM,UAAU,CAAA;AACjB,OAAO,EACL,OAAO,EACP,eAAe,EACf,gBAAgB,EAChB,oBAAoB,EACpB,gBAAgB,EAChB,cAAc,EACd,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,QAAQ,CAAA;AACf,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAA;AAEvC,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAA;AAC7C,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAA;AAChF,OAAO,EACL,mBAAmB,EACnB,2BAA2B,EAC3B,sBAAsB,EACtB,gBAAgB,GACjB,MAAM,YAAY,CAAA;AACnB,OAAO,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAA;AAChD,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,aAAa,EACb,mBAAmB,EACnB,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,YAAY,CAAA;AACnB,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,yBAAyB,EACzB,mBAAmB,GACpB,MAAM,aAAa,CAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CHAIN_IDS } from '../constants/chain-configs/chain';
|
|
2
|
-
import { OpenOrder } from '../entities/open-order/types';
|
|
2
|
+
import { OnChainOpenOrder, OpenOrder } from '../entities/open-order/types';
|
|
3
|
+
import { DefaultReadContractOptions } from '../types';
|
|
3
4
|
/**
|
|
4
5
|
* Retrieves the open order with the specified ID on the given chain.
|
|
5
6
|
*
|
|
@@ -38,4 +39,9 @@ export declare const getOpenOrders: ({ chainId, userAddress, }: {
|
|
|
38
39
|
chainId: CHAIN_IDS;
|
|
39
40
|
userAddress: `0x${string}`;
|
|
40
41
|
}) => Promise<OpenOrder[]>;
|
|
42
|
+
export declare const getOnChainOpenOrders: ({ chainId, orderIds, options, }: {
|
|
43
|
+
chainId: CHAIN_IDS;
|
|
44
|
+
orderIds: string[];
|
|
45
|
+
options?: DefaultReadContractOptions;
|
|
46
|
+
}) => Promise<OnChainOpenOrder[]>;
|
|
41
47
|
//# sourceMappingURL=open-order.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"open-order.d.ts","sourceRoot":"","sources":["../../../src/views/open-order.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"open-order.d.ts","sourceRoot":"","sources":["../../../src/views/open-order.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAa,MAAM,kCAAkC,CAAA;AACvE,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAA;AAM1E,OAAO,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAA;AAErD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,YAAY,qBAGtB;IACD,OAAO,EAAE,SAAS,CAAA;IAClB,EAAE,EAAE,MAAM,CAAA;CACX,KAAG,QAAQ,SAAS,CAEpB,CAAA;AACD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,aAAa,8BAGvB;IACD,OAAO,EAAE,SAAS,CAAA;IAClB,WAAW,EAAE,KAAK,MAAM,EAAE,CAAA;CAC3B,KAAG,QAAQ,SAAS,EAAE,CAEtB,CAAA;AAED,eAAO,MAAM,oBAAoB,oCAI9B;IACD,OAAO,EAAE,SAAS,CAAA;IAClB,QAAQ,EAAE,MAAM,EAAE,CAAA;IAClB,OAAO,CAAC,EAAE,0BAA0B,CAAA;CACrC,KAAG,QAAQ,gBAAgB,EAAE,CAW7B,CAAA"}
|