@interest-protocol/vortex-sdk 7.0.0 → 7.1.0
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/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/dist/vortex-api.d.ts.map +1 -1
- package/dist/vortex-api.types.d.ts +1 -0
- package/dist/vortex-api.types.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/vortex-api.ts +5 -2
- package/src/vortex-api.types.ts +1 -0
package/dist/index.mjs
CHANGED
|
@@ -39746,7 +39746,7 @@ class VortexAPI {
|
|
|
39746
39746
|
async executeTransaction(args) {
|
|
39747
39747
|
const response = await __classPrivateFieldGet(this, _VortexAPI_instances, "m", _VortexAPI_post).call(this, '/api/v1/transactions', {
|
|
39748
39748
|
txBytes: args.txBytes,
|
|
39749
|
-
});
|
|
39749
|
+
}, args.apiKey);
|
|
39750
39750
|
__classPrivateFieldGet(this, _VortexAPI_instances, "m", _VortexAPI_assertSuccess).call(this, response);
|
|
39751
39751
|
return response;
|
|
39752
39752
|
}
|
|
@@ -39764,11 +39764,12 @@ _VortexAPI_apiUrl = new WeakMap(), _VortexAPI_instances = new WeakSet(), _Vortex
|
|
|
39764
39764
|
},
|
|
39765
39765
|
});
|
|
39766
39766
|
return response.json();
|
|
39767
|
-
}, _VortexAPI_post = async function _VortexAPI_post(path, body) {
|
|
39767
|
+
}, _VortexAPI_post = async function _VortexAPI_post(path, body, apiKey) {
|
|
39768
39768
|
const response = await fetch(`${__classPrivateFieldGet(this, _VortexAPI_apiUrl, "f")}${path}`, {
|
|
39769
39769
|
method: 'POST',
|
|
39770
39770
|
headers: {
|
|
39771
39771
|
'Content-Type': 'application/json',
|
|
39772
|
+
'x-api-key': apiKey ?? '',
|
|
39772
39773
|
},
|
|
39773
39774
|
body: JSON.stringify(body),
|
|
39774
39775
|
});
|