@stellar/stellar-sdk 14.0.0-rc.2 → 14.0.0-rc.3

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.
@@ -10,7 +10,7 @@ var _urijs = _interopRequireDefault(require("urijs"));
10
10
  var _httpClient = require("../http-client");
11
11
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
12
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
13
- var version = exports.version = "14.0.0-rc.2";
13
+ var version = exports.version = "14.0.0-rc.3";
14
14
  var SERVER_TIME_MAP = exports.SERVER_TIME_MAP = {};
15
15
  var AxiosClient = exports.AxiosClient = (0, _httpClient.create)({
16
16
  headers: {
@@ -10,7 +10,7 @@ var _urijs = _interopRequireDefault(require("urijs"));
10
10
  var _httpClient = require("../http-client");
11
11
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
12
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
13
- var version = exports.version = "14.0.0-rc.2";
13
+ var version = exports.version = "14.0.0-rc.3";
14
14
  var SERVER_TIME_MAP = exports.SERVER_TIME_MAP = {};
15
15
  var AxiosClient = exports.AxiosClient = (0, _httpClient.create)({
16
16
  headers: {
@@ -109,8 +109,8 @@ export declare namespace Api {
109
109
  limit?: number;
110
110
  }
111
111
  export interface RawTransactionEvents {
112
- transactionEventsXdr: string[];
113
- contractEventsXdr: string[][];
112
+ transactionEventsXdr?: string[];
113
+ contractEventsXdr?: string[][];
114
114
  }
115
115
  export interface RawTransactionInfo {
116
116
  status: GetTransactionStatus;
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = exports.default = exports.AxiosClient = void 0;
7
7
  var _httpClient = require("../http-client");
8
- var version = exports.version = "14.0.0-rc.2";
8
+ var version = exports.version = "14.0.0-rc.3";
9
9
  var AxiosClient = exports.AxiosClient = (0, _httpClient.create)({
10
10
  headers: {
11
11
  'X-Client-Name': 'js-soroban-client',
@@ -45,14 +45,14 @@ function parseTransactionInfo(raw) {
45
45
  resultXdr: _stellarBase.xdr.TransactionResult.fromXDR(raw.resultXdr, 'base64'),
46
46
  resultMetaXdr: meta,
47
47
  events: {
48
- contractEventsXdr: (_raw$events$contractE = (_raw$events = raw.events) === null || _raw$events === void 0 ? void 0 : _raw$events.contractEventsXdr.map(function (lst) {
48
+ contractEventsXdr: ((_raw$events$contractE = (_raw$events = raw.events) === null || _raw$events === void 0 ? void 0 : _raw$events.contractEventsXdr) !== null && _raw$events$contractE !== void 0 ? _raw$events$contractE : []).map(function (lst) {
49
49
  return lst.map(function (e) {
50
50
  return _stellarBase.xdr.ContractEvent.fromXDR(e, "base64");
51
51
  });
52
- })) !== null && _raw$events$contractE !== void 0 ? _raw$events$contractE : [],
53
- transactionEventsXdr: (_raw$events$transacti = (_raw$events2 = raw.events) === null || _raw$events2 === void 0 ? void 0 : _raw$events2.transactionEventsXdr.map(function (e) {
52
+ }),
53
+ transactionEventsXdr: ((_raw$events$transacti = (_raw$events2 = raw.events) === null || _raw$events2 === void 0 ? void 0 : _raw$events2.transactionEventsXdr) !== null && _raw$events$transacti !== void 0 ? _raw$events$transacti : []).map(function (e) {
54
54
  return _stellarBase.xdr.TransactionEvent.fromXDR(e, "base64");
55
- })) !== null && _raw$events$transacti !== void 0 ? _raw$events$transacti : []
55
+ })
56
56
  }
57
57
  };
58
58
  switch (meta.switch()) {
@@ -10,7 +10,7 @@ var _urijs = _interopRequireDefault(require("urijs"));
10
10
  var _httpClient = require("../http-client");
11
11
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
12
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
13
- var version = exports.version = "14.0.0-rc.2";
13
+ var version = exports.version = "14.0.0-rc.3";
14
14
  var SERVER_TIME_MAP = exports.SERVER_TIME_MAP = {};
15
15
  var AxiosClient = exports.AxiosClient = (0, _httpClient.create)({
16
16
  headers: {
@@ -109,8 +109,8 @@ export declare namespace Api {
109
109
  limit?: number;
110
110
  }
111
111
  export interface RawTransactionEvents {
112
- transactionEventsXdr: string[];
113
- contractEventsXdr: string[][];
112
+ transactionEventsXdr?: string[];
113
+ contractEventsXdr?: string[][];
114
114
  }
115
115
  export interface RawTransactionInfo {
116
116
  status: GetTransactionStatus;
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = exports.default = exports.AxiosClient = void 0;
7
7
  var _httpClient = require("../http-client");
8
- var version = exports.version = "14.0.0-rc.2";
8
+ var version = exports.version = "14.0.0-rc.3";
9
9
  var AxiosClient = exports.AxiosClient = (0, _httpClient.create)({
10
10
  headers: {
11
11
  'X-Client-Name': 'js-soroban-client',
@@ -45,14 +45,14 @@ function parseTransactionInfo(raw) {
45
45
  resultXdr: _stellarBase.xdr.TransactionResult.fromXDR(raw.resultXdr, 'base64'),
46
46
  resultMetaXdr: meta,
47
47
  events: {
48
- contractEventsXdr: (_raw$events$contractE = (_raw$events = raw.events) === null || _raw$events === void 0 ? void 0 : _raw$events.contractEventsXdr.map(function (lst) {
48
+ contractEventsXdr: ((_raw$events$contractE = (_raw$events = raw.events) === null || _raw$events === void 0 ? void 0 : _raw$events.contractEventsXdr) !== null && _raw$events$contractE !== void 0 ? _raw$events$contractE : []).map(function (lst) {
49
49
  return lst.map(function (e) {
50
50
  return _stellarBase.xdr.ContractEvent.fromXDR(e, "base64");
51
51
  });
52
- })) !== null && _raw$events$contractE !== void 0 ? _raw$events$contractE : [],
53
- transactionEventsXdr: (_raw$events$transacti = (_raw$events2 = raw.events) === null || _raw$events2 === void 0 ? void 0 : _raw$events2.transactionEventsXdr.map(function (e) {
52
+ }),
53
+ transactionEventsXdr: ((_raw$events$transacti = (_raw$events2 = raw.events) === null || _raw$events2 === void 0 ? void 0 : _raw$events2.transactionEventsXdr) !== null && _raw$events$transacti !== void 0 ? _raw$events$transacti : []).map(function (e) {
54
54
  return _stellarBase.xdr.TransactionEvent.fromXDR(e, "base64");
55
- })) !== null && _raw$events$transacti !== void 0 ? _raw$events$transacti : []
55
+ })
56
56
  }
57
57
  };
58
58
  switch (meta.switch()) {
@@ -10,7 +10,7 @@ var _urijs = _interopRequireDefault(require("urijs"));
10
10
  var _httpClient = require("../http-client");
11
11
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
12
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
13
- var version = exports.version = "14.0.0-rc.2";
13
+ var version = exports.version = "14.0.0-rc.3";
14
14
  var SERVER_TIME_MAP = exports.SERVER_TIME_MAP = {};
15
15
  var AxiosClient = exports.AxiosClient = (0, _httpClient.create)({
16
16
  headers: {
@@ -109,8 +109,8 @@ export declare namespace Api {
109
109
  limit?: number;
110
110
  }
111
111
  export interface RawTransactionEvents {
112
- transactionEventsXdr: string[];
113
- contractEventsXdr: string[][];
112
+ transactionEventsXdr?: string[];
113
+ contractEventsXdr?: string[][];
114
114
  }
115
115
  export interface RawTransactionInfo {
116
116
  status: GetTransactionStatus;
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = exports.default = exports.AxiosClient = void 0;
7
7
  var _httpClient = require("../http-client");
8
- var version = exports.version = "14.0.0-rc.2";
8
+ var version = exports.version = "14.0.0-rc.3";
9
9
  var AxiosClient = exports.AxiosClient = (0, _httpClient.create)({
10
10
  headers: {
11
11
  'X-Client-Name': 'js-soroban-client',
@@ -45,14 +45,14 @@ function parseTransactionInfo(raw) {
45
45
  resultXdr: _stellarBase.xdr.TransactionResult.fromXDR(raw.resultXdr, 'base64'),
46
46
  resultMetaXdr: meta,
47
47
  events: {
48
- contractEventsXdr: (_raw$events$contractE = (_raw$events = raw.events) === null || _raw$events === void 0 ? void 0 : _raw$events.contractEventsXdr.map(function (lst) {
48
+ contractEventsXdr: ((_raw$events$contractE = (_raw$events = raw.events) === null || _raw$events === void 0 ? void 0 : _raw$events.contractEventsXdr) !== null && _raw$events$contractE !== void 0 ? _raw$events$contractE : []).map(function (lst) {
49
49
  return lst.map(function (e) {
50
50
  return _stellarBase.xdr.ContractEvent.fromXDR(e, "base64");
51
51
  });
52
- })) !== null && _raw$events$contractE !== void 0 ? _raw$events$contractE : [],
53
- transactionEventsXdr: (_raw$events$transacti = (_raw$events2 = raw.events) === null || _raw$events2 === void 0 ? void 0 : _raw$events2.transactionEventsXdr.map(function (e) {
52
+ }),
53
+ transactionEventsXdr: ((_raw$events$transacti = (_raw$events2 = raw.events) === null || _raw$events2 === void 0 ? void 0 : _raw$events2.transactionEventsXdr) !== null && _raw$events$transacti !== void 0 ? _raw$events$transacti : []).map(function (e) {
54
54
  return _stellarBase.xdr.TransactionEvent.fromXDR(e, "base64");
55
- })) !== null && _raw$events$transacti !== void 0 ? _raw$events$transacti : []
55
+ })
56
56
  }
57
57
  };
58
58
  switch (meta.switch()) {
package/lib/rpc/api.d.ts CHANGED
@@ -109,8 +109,8 @@ export declare namespace Api {
109
109
  limit?: number;
110
110
  }
111
111
  export interface RawTransactionEvents {
112
- transactionEventsXdr: string[];
113
- contractEventsXdr: string[][];
112
+ transactionEventsXdr?: string[];
113
+ contractEventsXdr?: string[][];
114
114
  }
115
115
  export interface RawTransactionInfo {
116
116
  status: GetTransactionStatus;
package/lib/rpc/axios.js CHANGED
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = exports.default = exports.AxiosClient = void 0;
7
7
  var _httpClient = require("../http-client");
8
- var version = exports.version = "14.0.0-rc.2";
8
+ var version = exports.version = "14.0.0-rc.3";
9
9
  var AxiosClient = exports.AxiosClient = (0, _httpClient.create)({
10
10
  headers: {
11
11
  'X-Client-Name': 'js-soroban-client',
@@ -45,14 +45,14 @@ function parseTransactionInfo(raw) {
45
45
  resultXdr: _stellarBase.xdr.TransactionResult.fromXDR(raw.resultXdr, 'base64'),
46
46
  resultMetaXdr: meta,
47
47
  events: {
48
- contractEventsXdr: (_raw$events$contractE = (_raw$events = raw.events) === null || _raw$events === void 0 ? void 0 : _raw$events.contractEventsXdr.map(function (lst) {
48
+ contractEventsXdr: ((_raw$events$contractE = (_raw$events = raw.events) === null || _raw$events === void 0 ? void 0 : _raw$events.contractEventsXdr) !== null && _raw$events$contractE !== void 0 ? _raw$events$contractE : []).map(function (lst) {
49
49
  return lst.map(function (e) {
50
50
  return _stellarBase.xdr.ContractEvent.fromXDR(e, "base64");
51
51
  });
52
- })) !== null && _raw$events$contractE !== void 0 ? _raw$events$contractE : [],
53
- transactionEventsXdr: (_raw$events$transacti = (_raw$events2 = raw.events) === null || _raw$events2 === void 0 ? void 0 : _raw$events2.transactionEventsXdr.map(function (e) {
52
+ }),
53
+ transactionEventsXdr: ((_raw$events$transacti = (_raw$events2 = raw.events) === null || _raw$events2 === void 0 ? void 0 : _raw$events2.transactionEventsXdr) !== null && _raw$events$transacti !== void 0 ? _raw$events$transacti : []).map(function (e) {
54
54
  return _stellarBase.xdr.TransactionEvent.fromXDR(e, "base64");
55
- })) !== null && _raw$events$transacti !== void 0 ? _raw$events$transacti : []
55
+ })
56
56
  }
57
57
  };
58
58
  switch (meta.switch()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stellar/stellar-sdk",
3
- "version": "14.0.0-rc.2",
3
+ "version": "14.0.0-rc.3",
4
4
  "description": "A library for working with the Stellar network, including communication with the Horizon and Soroban RPC servers.",
5
5
  "keywords": [
6
6
  "stellar"