@waves/node-api-js 1.2.5-beta.3 → 1.2.5-beta.7
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/cjs/api-node/eth/index.d.ts +2 -1
- package/cjs/api-node/eth/index.js +4 -5
- package/cjs/api-node/eth/index.js.map +1 -1
- package/cjs/create.d.ts +1088 -0
- package/cjs/create.js +119 -0
- package/cjs/create.js.map +1 -0
- package/cjs/index.d.ts +5 -1089
- package/cjs/index.js +6 -114
- package/cjs/index.js.map +1 -1
- package/cjs/tools/adresses/ethTxId2waves.d.ts +1 -0
- package/cjs/tools/adresses/ethTxId2waves.js +8 -0
- package/cjs/tools/adresses/ethTxId2waves.js.map +1 -0
- package/cjs/tools/query.js +2 -1
- package/cjs/tools/query.js.map +1 -1
- package/cjs/tools/transactions/ethTxId2waves.d.ts +1 -0
- package/cjs/tools/transactions/ethTxId2waves.js +10 -0
- package/cjs/tools/transactions/ethTxId2waves.js.map +1 -0
- package/dist/node-api.js +64 -19
- package/dist/node-api.min.js +5 -5
- package/es/api-node/eth/index.d.ts +2 -1
- package/es/api-node/eth/index.js +4 -5
- package/es/api-node/eth/index.js.map +1 -1
- package/es/create.d.ts +1088 -0
- package/es/create.js +93 -0
- package/es/create.js.map +1 -0
- package/es/index.d.ts +5 -1089
- package/es/index.js +5 -94
- package/es/index.js.map +1 -1
- package/es/tools/adresses/ethTxId2waves.d.ts +1 -0
- package/es/tools/adresses/ethTxId2waves.js +5 -0
- package/es/tools/adresses/ethTxId2waves.js.map +1 -0
- package/es/tools/query.js +2 -1
- package/es/tools/query.js.map +1 -1
- package/es/tools/transactions/ethTxId2waves.d.ts +1 -0
- package/es/tools/transactions/ethTxId2waves.js +7 -0
- package/es/tools/transactions/ethTxId2waves.js.map +1 -0
- package/package.json +1 -1
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { TAssetDetails } from "../assets";
|
|
2
|
-
export declare function fetchEthAssetDetails(base: string, ethAssetId: string
|
|
2
|
+
export declare function fetchEthAssetDetails(base: string, ethAssetId: string, options?: RequestInit): Promise<TAssetDetails>;
|
|
3
|
+
export declare function fetchEthAssetDetails(base: string, ethAssetId: Array<string>, options?: RequestInit): Promise<Array<TAssetDetails>>;
|
package/es/api-node/eth/index.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import request from "../../tools/request";
|
|
2
|
+
import { toArray } from "../../tools/utils";
|
|
3
|
+
import query from "../../tools/query";
|
|
2
4
|
export function fetchEthAssetDetails(base, ethAssetId) {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
.join('&');
|
|
6
|
-
const query = ethAssetId.length ? `?${params}` : '';
|
|
7
|
-
return request({ base, url: `/eth/assets${query}` });
|
|
5
|
+
const id = toArray(ethAssetId);
|
|
6
|
+
return request({ base, url: `/eth/assets?${query({ id })}` }).then(list => Array.isArray(ethAssetId) ? list : list[0]);
|
|
8
7
|
}
|
|
9
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api-node/eth/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api-node/eth/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,qBAAqB,CAAC;AAE1C,OAAO,EAAC,OAAO,EAAC,MAAM,mBAAmB,CAAC;AAC1C,OAAO,KAAK,MAAM,mBAAmB,CAAC;AAItC,MAAM,UAAU,oBAAoB,CAAC,IAAY,EAAE,UAA6B;IAC5E,MAAM,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC,CAAA;IAE9B,OAAO,OAAO,CAAuB,EAAC,IAAI,EAAE,GAAG,EAAE,eAAe,KAAK,CAAC,EAAC,EAAE,EAAC,CAAC,EAAE,EAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;AAC7I,CAAC"}
|