@stellar/stellar-sdk 14.0.0-rc.1 → 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.
- package/CHANGELOG.md +21 -0
- package/dist/stellar-sdk-minimal.js +16 -19
- package/dist/stellar-sdk-minimal.min.js +1 -1
- package/dist/stellar-sdk-no-axios.js +16 -19
- package/dist/stellar-sdk-no-axios.min.js +1 -1
- package/dist/stellar-sdk-no-eventsource.js +16 -19
- package/dist/stellar-sdk-no-eventsource.min.js +1 -1
- package/dist/stellar-sdk.js +16 -19
- package/dist/stellar-sdk.min.js +1 -1
- package/lib/contract/assembled_transaction.js +2 -2
- package/lib/horizon/call_builder.d.ts +1 -1
- package/lib/horizon/horizon_axios_client.js +1 -1
- package/lib/horizon/server.js +1 -1
- package/lib/horizon/types/effects.d.ts +6 -6
- package/lib/minimal/contract/assembled_transaction.js +2 -2
- package/lib/minimal/horizon/call_builder.d.ts +1 -1
- package/lib/minimal/horizon/horizon_axios_client.js +1 -1
- package/lib/minimal/horizon/server.js +1 -1
- package/lib/minimal/horizon/types/effects.d.ts +6 -6
- package/lib/minimal/rpc/api.d.ts +2 -4
- package/lib/minimal/rpc/axios.js +1 -1
- package/lib/minimal/rpc/parsers.js +7 -10
- package/lib/minimal/rpc/server.js +1 -1
- package/lib/no-axios/contract/assembled_transaction.js +2 -2
- package/lib/no-axios/horizon/call_builder.d.ts +1 -1
- package/lib/no-axios/horizon/horizon_axios_client.js +1 -1
- package/lib/no-axios/horizon/server.js +1 -1
- package/lib/no-axios/horizon/types/effects.d.ts +6 -6
- package/lib/no-axios/rpc/api.d.ts +2 -4
- package/lib/no-axios/rpc/axios.js +1 -1
- package/lib/no-axios/rpc/parsers.js +7 -10
- package/lib/no-axios/rpc/server.js +1 -1
- package/lib/no-eventsource/contract/assembled_transaction.js +2 -2
- package/lib/no-eventsource/horizon/call_builder.d.ts +1 -1
- package/lib/no-eventsource/horizon/horizon_axios_client.js +1 -1
- package/lib/no-eventsource/horizon/server.js +1 -1
- package/lib/no-eventsource/horizon/types/effects.d.ts +6 -6
- package/lib/no-eventsource/rpc/api.d.ts +2 -4
- package/lib/no-eventsource/rpc/axios.js +1 -1
- package/lib/no-eventsource/rpc/parsers.js +7 -10
- package/lib/no-eventsource/rpc/server.js +1 -1
- package/lib/rpc/api.d.ts +2 -4
- package/lib/rpc/axios.js +1 -1
- package/lib/rpc/parsers.js +7 -10
- package/lib/rpc/server.js +1 -1
- package/package.json +10 -10
|
@@ -200,7 +200,7 @@ var AssembledTransaction = exports.AssembledTransaction = function () {
|
|
|
200
200
|
originalSubmit,
|
|
201
201
|
_args3 = arguments;
|
|
202
202
|
return _regenerator().w(function (_context3) {
|
|
203
|
-
while (1) switch (_context3.n) {
|
|
203
|
+
while (1) switch (_context3.p = _context3.n) {
|
|
204
204
|
case 0:
|
|
205
205
|
_ref6 = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {}, _ref6$force = _ref6.force, force = _ref6$force === void 0 ? false : _ref6$force, _ref6$signTransaction = _ref6.signTransaction, signTransaction = _ref6$signTransaction === void 0 ? _this.options.signTransaction : _ref6$signTransaction;
|
|
206
206
|
if (_this.signed) {
|
|
@@ -265,7 +265,7 @@ var AssembledTransaction = exports.AssembledTransaction = function () {
|
|
|
265
265
|
_args7 = arguments,
|
|
266
266
|
_t7;
|
|
267
267
|
return _regenerator().w(function (_context7) {
|
|
268
|
-
while (1) switch (_context7.n) {
|
|
268
|
+
while (1) switch (_context7.p = _context7.n) {
|
|
269
269
|
case 0:
|
|
270
270
|
_ref9 = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : {}, _ref9$expiration = _ref9.expiration, expiration = _ref9$expiration === void 0 ? _asyncToGenerator(_regenerator().m(function _callee4() {
|
|
271
271
|
var _t;
|
|
@@ -2,7 +2,7 @@ import URI from "urijs";
|
|
|
2
2
|
import { HorizonApi } from "./horizon_api";
|
|
3
3
|
import { ServerApi } from "./server_api";
|
|
4
4
|
export interface EventSourceOptions<T> {
|
|
5
|
-
onmessage?: (value: T) => void;
|
|
5
|
+
onmessage?: (value: T extends ServerApi.CollectionPage<infer U> ? U : T) => void;
|
|
6
6
|
onerror?: (event: MessageEvent) => void;
|
|
7
7
|
reconnectTimeout?: number;
|
|
8
8
|
}
|
|
@@ -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.
|
|
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: {
|
package/lib/horizon/server.js
CHANGED
|
@@ -461,7 +461,7 @@ var HorizonServer = exports.HorizonServer = function () {
|
|
|
461
461
|
var _checkMemoRequired = _asyncToGenerator(_regenerator().m(function _callee8(transaction) {
|
|
462
462
|
var destinations, i, operation, destination, account, _t, _t2;
|
|
463
463
|
return _regenerator().w(function (_context8) {
|
|
464
|
-
while (1) switch (_context8.n) {
|
|
464
|
+
while (1) switch (_context8.p = _context8.n) {
|
|
465
465
|
case 0:
|
|
466
466
|
if (transaction instanceof _stellarBase.FeeBumpTransaction) {
|
|
467
467
|
transaction = transaction.innerTransaction;
|
|
@@ -158,12 +158,12 @@ export interface ClaimableBalanceClaimed extends Omit<ClaimableBalanceCreated, "
|
|
|
158
158
|
export interface ClaimableBalanceClaimantCreated extends Omit<ClaimableBalanceCreated, "type_i"> {
|
|
159
159
|
type_i: EffectType.claimable_balance_claimant_created;
|
|
160
160
|
}
|
|
161
|
-
interface
|
|
161
|
+
interface SponsorshipFields {
|
|
162
162
|
sponsor: string;
|
|
163
163
|
new_sponsor: string;
|
|
164
164
|
former_sponsor: string;
|
|
165
165
|
}
|
|
166
|
-
interface AccountSponsorshipEvents<T extends string> extends BaseEffectRecord<T>,
|
|
166
|
+
interface AccountSponsorshipEvents<T extends string> extends BaseEffectRecord<T>, SponsorshipFields {
|
|
167
167
|
}
|
|
168
168
|
export type AccountSponsorshipCreated = Omit<AccountSponsorshipEvents<'account_sponsorship_created'>, "new_sponsor" | "former_sponsor"> & {
|
|
169
169
|
type_i: EffectType.account_sponsorship_created;
|
|
@@ -174,7 +174,7 @@ export type AccountSponsorshipUpdated = Omit<AccountSponsorshipEvents<'account_s
|
|
|
174
174
|
export type AccountSponsorshipRemoved = Omit<AccountSponsorshipEvents<'account_sponsorship_removed'>, "new_sponsor" | "sponsor"> & {
|
|
175
175
|
type_i: EffectType.account_sponsorship_removed;
|
|
176
176
|
};
|
|
177
|
-
interface TrustlineSponsorshipEvents<T extends string> extends BaseEffectRecord<T>,
|
|
177
|
+
interface TrustlineSponsorshipEvents<T extends string> extends BaseEffectRecord<T>, SponsorshipFields {
|
|
178
178
|
asset?: string;
|
|
179
179
|
liquidity_pool_id?: string;
|
|
180
180
|
}
|
|
@@ -187,7 +187,7 @@ export type TrustlineSponsorshipUpdated = Omit<TrustlineSponsorshipEvents<'trust
|
|
|
187
187
|
export type TrustlineSponsorshipRemoved = Omit<TrustlineSponsorshipEvents<'trustline_sponsorship_removed'>, "new_sponsor" | "sponsor"> & {
|
|
188
188
|
type_i: EffectType.trustline_sponsorship_removed;
|
|
189
189
|
};
|
|
190
|
-
interface DataSponsorshipEvents<T extends string> extends BaseEffectRecord<T>,
|
|
190
|
+
interface DataSponsorshipEvents<T extends string> extends BaseEffectRecord<T>, SponsorshipFields {
|
|
191
191
|
data_name: string;
|
|
192
192
|
}
|
|
193
193
|
export type DateSponsorshipCreated = Omit<DataSponsorshipEvents<'data_sponsorship_created'>, "new_sponsor" | "former_sponsor"> & {
|
|
@@ -199,7 +199,7 @@ export type DateSponsorshipUpdated = Omit<DataSponsorshipEvents<'data_sponsorshi
|
|
|
199
199
|
export type DateSponsorshipRemoved = Omit<DataSponsorshipEvents<'data_sponsorship_removed'>, "new_sponsor" | "sponsor"> & {
|
|
200
200
|
type_i: EffectType.data_sponsorship_removed;
|
|
201
201
|
};
|
|
202
|
-
interface ClaimableBalanceSponsorshipEvents<T extends string> extends BaseEffectRecord<T>,
|
|
202
|
+
interface ClaimableBalanceSponsorshipEvents<T extends string> extends BaseEffectRecord<T>, SponsorshipFields {
|
|
203
203
|
balance_type_i: string;
|
|
204
204
|
}
|
|
205
205
|
export type ClaimableBalanceSponsorshipCreated = Omit<ClaimableBalanceSponsorshipEvents<'claimable_balance_sponsorship_created'>, "new_sponsor" | "former_sponsor"> & {
|
|
@@ -211,7 +211,7 @@ export type ClaimableBalanceSponsorshipUpdated = Omit<ClaimableBalanceSponsorshi
|
|
|
211
211
|
export type ClaimableBalanceSponsorshipRemoved = Omit<ClaimableBalanceSponsorshipEvents<'claimable_balance_sponsorship_removed'>, "new_sponsor" | "sponsor"> & {
|
|
212
212
|
type_i: EffectType.claimable_balance_sponsorship_removed;
|
|
213
213
|
};
|
|
214
|
-
interface SignerSponsorshipEvents<T extends string> extends BaseEffectRecord<T>,
|
|
214
|
+
interface SignerSponsorshipEvents<T extends string> extends BaseEffectRecord<T>, SponsorshipFields {
|
|
215
215
|
signer: string;
|
|
216
216
|
}
|
|
217
217
|
export type SignerSponsorshipCreated = Omit<SignerSponsorshipEvents<'signer_sponsorship_created'>, "new_sponsor" | "former_sponsor"> & {
|
|
@@ -200,7 +200,7 @@ var AssembledTransaction = exports.AssembledTransaction = function () {
|
|
|
200
200
|
originalSubmit,
|
|
201
201
|
_args3 = arguments;
|
|
202
202
|
return _regenerator().w(function (_context3) {
|
|
203
|
-
while (1) switch (_context3.n) {
|
|
203
|
+
while (1) switch (_context3.p = _context3.n) {
|
|
204
204
|
case 0:
|
|
205
205
|
_ref6 = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {}, _ref6$force = _ref6.force, force = _ref6$force === void 0 ? false : _ref6$force, _ref6$signTransaction = _ref6.signTransaction, signTransaction = _ref6$signTransaction === void 0 ? _this.options.signTransaction : _ref6$signTransaction;
|
|
206
206
|
if (_this.signed) {
|
|
@@ -265,7 +265,7 @@ var AssembledTransaction = exports.AssembledTransaction = function () {
|
|
|
265
265
|
_args7 = arguments,
|
|
266
266
|
_t7;
|
|
267
267
|
return _regenerator().w(function (_context7) {
|
|
268
|
-
while (1) switch (_context7.n) {
|
|
268
|
+
while (1) switch (_context7.p = _context7.n) {
|
|
269
269
|
case 0:
|
|
270
270
|
_ref9 = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : {}, _ref9$expiration = _ref9.expiration, expiration = _ref9$expiration === void 0 ? _asyncToGenerator(_regenerator().m(function _callee4() {
|
|
271
271
|
var _t;
|
|
@@ -2,7 +2,7 @@ import URI from "urijs";
|
|
|
2
2
|
import { HorizonApi } from "./horizon_api";
|
|
3
3
|
import { ServerApi } from "./server_api";
|
|
4
4
|
export interface EventSourceOptions<T> {
|
|
5
|
-
onmessage?: (value: T) => void;
|
|
5
|
+
onmessage?: (value: T extends ServerApi.CollectionPage<infer U> ? U : T) => void;
|
|
6
6
|
onerror?: (event: MessageEvent) => void;
|
|
7
7
|
reconnectTimeout?: number;
|
|
8
8
|
}
|
|
@@ -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.
|
|
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: {
|
|
@@ -461,7 +461,7 @@ var HorizonServer = exports.HorizonServer = function () {
|
|
|
461
461
|
var _checkMemoRequired = _asyncToGenerator(_regenerator().m(function _callee8(transaction) {
|
|
462
462
|
var destinations, i, operation, destination, account, _t, _t2;
|
|
463
463
|
return _regenerator().w(function (_context8) {
|
|
464
|
-
while (1) switch (_context8.n) {
|
|
464
|
+
while (1) switch (_context8.p = _context8.n) {
|
|
465
465
|
case 0:
|
|
466
466
|
if (transaction instanceof _stellarBase.FeeBumpTransaction) {
|
|
467
467
|
transaction = transaction.innerTransaction;
|
|
@@ -158,12 +158,12 @@ export interface ClaimableBalanceClaimed extends Omit<ClaimableBalanceCreated, "
|
|
|
158
158
|
export interface ClaimableBalanceClaimantCreated extends Omit<ClaimableBalanceCreated, "type_i"> {
|
|
159
159
|
type_i: EffectType.claimable_balance_claimant_created;
|
|
160
160
|
}
|
|
161
|
-
interface
|
|
161
|
+
interface SponsorshipFields {
|
|
162
162
|
sponsor: string;
|
|
163
163
|
new_sponsor: string;
|
|
164
164
|
former_sponsor: string;
|
|
165
165
|
}
|
|
166
|
-
interface AccountSponsorshipEvents<T extends string> extends BaseEffectRecord<T>,
|
|
166
|
+
interface AccountSponsorshipEvents<T extends string> extends BaseEffectRecord<T>, SponsorshipFields {
|
|
167
167
|
}
|
|
168
168
|
export type AccountSponsorshipCreated = Omit<AccountSponsorshipEvents<'account_sponsorship_created'>, "new_sponsor" | "former_sponsor"> & {
|
|
169
169
|
type_i: EffectType.account_sponsorship_created;
|
|
@@ -174,7 +174,7 @@ export type AccountSponsorshipUpdated = Omit<AccountSponsorshipEvents<'account_s
|
|
|
174
174
|
export type AccountSponsorshipRemoved = Omit<AccountSponsorshipEvents<'account_sponsorship_removed'>, "new_sponsor" | "sponsor"> & {
|
|
175
175
|
type_i: EffectType.account_sponsorship_removed;
|
|
176
176
|
};
|
|
177
|
-
interface TrustlineSponsorshipEvents<T extends string> extends BaseEffectRecord<T>,
|
|
177
|
+
interface TrustlineSponsorshipEvents<T extends string> extends BaseEffectRecord<T>, SponsorshipFields {
|
|
178
178
|
asset?: string;
|
|
179
179
|
liquidity_pool_id?: string;
|
|
180
180
|
}
|
|
@@ -187,7 +187,7 @@ export type TrustlineSponsorshipUpdated = Omit<TrustlineSponsorshipEvents<'trust
|
|
|
187
187
|
export type TrustlineSponsorshipRemoved = Omit<TrustlineSponsorshipEvents<'trustline_sponsorship_removed'>, "new_sponsor" | "sponsor"> & {
|
|
188
188
|
type_i: EffectType.trustline_sponsorship_removed;
|
|
189
189
|
};
|
|
190
|
-
interface DataSponsorshipEvents<T extends string> extends BaseEffectRecord<T>,
|
|
190
|
+
interface DataSponsorshipEvents<T extends string> extends BaseEffectRecord<T>, SponsorshipFields {
|
|
191
191
|
data_name: string;
|
|
192
192
|
}
|
|
193
193
|
export type DateSponsorshipCreated = Omit<DataSponsorshipEvents<'data_sponsorship_created'>, "new_sponsor" | "former_sponsor"> & {
|
|
@@ -199,7 +199,7 @@ export type DateSponsorshipUpdated = Omit<DataSponsorshipEvents<'data_sponsorshi
|
|
|
199
199
|
export type DateSponsorshipRemoved = Omit<DataSponsorshipEvents<'data_sponsorship_removed'>, "new_sponsor" | "sponsor"> & {
|
|
200
200
|
type_i: EffectType.data_sponsorship_removed;
|
|
201
201
|
};
|
|
202
|
-
interface ClaimableBalanceSponsorshipEvents<T extends string> extends BaseEffectRecord<T>,
|
|
202
|
+
interface ClaimableBalanceSponsorshipEvents<T extends string> extends BaseEffectRecord<T>, SponsorshipFields {
|
|
203
203
|
balance_type_i: string;
|
|
204
204
|
}
|
|
205
205
|
export type ClaimableBalanceSponsorshipCreated = Omit<ClaimableBalanceSponsorshipEvents<'claimable_balance_sponsorship_created'>, "new_sponsor" | "former_sponsor"> & {
|
|
@@ -211,7 +211,7 @@ export type ClaimableBalanceSponsorshipUpdated = Omit<ClaimableBalanceSponsorshi
|
|
|
211
211
|
export type ClaimableBalanceSponsorshipRemoved = Omit<ClaimableBalanceSponsorshipEvents<'claimable_balance_sponsorship_removed'>, "new_sponsor" | "sponsor"> & {
|
|
212
212
|
type_i: EffectType.claimable_balance_sponsorship_removed;
|
|
213
213
|
};
|
|
214
|
-
interface SignerSponsorshipEvents<T extends string> extends BaseEffectRecord<T>,
|
|
214
|
+
interface SignerSponsorshipEvents<T extends string> extends BaseEffectRecord<T>, SponsorshipFields {
|
|
215
215
|
signer: string;
|
|
216
216
|
}
|
|
217
217
|
export type SignerSponsorshipCreated = Omit<SignerSponsorshipEvents<'signer_sponsorship_created'>, "new_sponsor" | "former_sponsor"> & {
|
package/lib/minimal/rpc/api.d.ts
CHANGED
|
@@ -109,9 +109,8 @@ export declare namespace Api {
|
|
|
109
109
|
limit?: number;
|
|
110
110
|
}
|
|
111
111
|
export interface RawTransactionEvents {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
contractEventsXdr: string[][];
|
|
112
|
+
transactionEventsXdr?: string[];
|
|
113
|
+
contractEventsXdr?: string[][];
|
|
115
114
|
}
|
|
116
115
|
export interface RawTransactionInfo {
|
|
117
116
|
status: GetTransactionStatus;
|
|
@@ -127,7 +126,6 @@ export declare namespace Api {
|
|
|
127
126
|
events?: RawTransactionEvents;
|
|
128
127
|
}
|
|
129
128
|
export interface TransactionEvents {
|
|
130
|
-
diagnosticEventsXdr: xdr.DiagnosticEvent[];
|
|
131
129
|
transactionEventsXdr: xdr.TransactionEvent[];
|
|
132
130
|
contractEventsXdr: xdr.ContractEvent[][];
|
|
133
131
|
}
|
package/lib/minimal/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.
|
|
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',
|
|
@@ -34,7 +34,7 @@ function parseRawSendTransaction(raw) {
|
|
|
34
34
|
return _objectSpread({}, raw);
|
|
35
35
|
}
|
|
36
36
|
function parseTransactionInfo(raw) {
|
|
37
|
-
var _raw$events$
|
|
37
|
+
var _raw$events$contractE, _raw$events, _raw$events$transacti, _raw$events2;
|
|
38
38
|
var meta = _stellarBase.xdr.TransactionMeta.fromXDR(raw.resultMetaXdr, 'base64');
|
|
39
39
|
var info = {
|
|
40
40
|
ledger: raw.ledger,
|
|
@@ -45,17 +45,14 @@ function parseTransactionInfo(raw) {
|
|
|
45
45
|
resultXdr: _stellarBase.xdr.TransactionResult.fromXDR(raw.resultXdr, 'base64'),
|
|
46
46
|
resultMetaXdr: meta,
|
|
47
47
|
events: {
|
|
48
|
-
|
|
49
|
-
return _stellarBase.xdr.DiagnosticEvent.fromXDR(e, "base64");
|
|
50
|
-
})) !== null && _raw$events$diagnosti !== void 0 ? _raw$events$diagnosti : [],
|
|
51
|
-
contractEventsXdr: (_raw$events$contractE = (_raw$events2 = raw.events) === null || _raw$events2 === void 0 ? void 0 : _raw$events2.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) {
|
|
52
49
|
return lst.map(function (e) {
|
|
53
50
|
return _stellarBase.xdr.ContractEvent.fromXDR(e, "base64");
|
|
54
51
|
});
|
|
55
|
-
})
|
|
56
|
-
transactionEventsXdr: (_raw$events$transacti = (_raw$
|
|
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) {
|
|
57
54
|
return _stellarBase.xdr.TransactionEvent.fromXDR(e, "base64");
|
|
58
|
-
})
|
|
55
|
+
})
|
|
59
56
|
}
|
|
60
57
|
};
|
|
61
58
|
switch (meta.switch()) {
|
|
@@ -81,14 +78,14 @@ function parseRawTransactions(r) {
|
|
|
81
78
|
}, parseTransactionInfo(r));
|
|
82
79
|
}
|
|
83
80
|
function parseRawEvents(raw) {
|
|
84
|
-
var _raw$
|
|
81
|
+
var _raw$events3;
|
|
85
82
|
return {
|
|
86
83
|
latestLedger: raw.latestLedger,
|
|
87
84
|
oldestLedger: raw.oldestLedger,
|
|
88
85
|
latestLedgerCloseTime: raw.latestLedgerCloseTime,
|
|
89
86
|
oldestLedgerCloseTime: raw.oldestLedgerCloseTime,
|
|
90
87
|
cursor: raw.cursor,
|
|
91
|
-
events: ((_raw$
|
|
88
|
+
events: ((_raw$events3 = raw.events) !== null && _raw$events3 !== void 0 ? _raw$events3 : []).map(function (evt) {
|
|
92
89
|
var clone = _objectSpread({}, evt);
|
|
93
90
|
delete clone.contractId;
|
|
94
91
|
return _objectSpread(_objectSpread(_objectSpread({}, clone), evt.contractId !== '' && {
|
|
@@ -638,7 +638,7 @@ var RpcServer = exports.RpcServer = function () {
|
|
|
638
638
|
var _requestAirdrop = _asyncToGenerator(_regenerator().m(function _callee20(address, friendbotUrl) {
|
|
639
639
|
var account, response, meta, txMeta, sequence, _error$response, _error$response$detai, _t2, _t3;
|
|
640
640
|
return _regenerator().w(function (_context20) {
|
|
641
|
-
while (1) switch (_context20.n) {
|
|
641
|
+
while (1) switch (_context20.p = _context20.n) {
|
|
642
642
|
case 0:
|
|
643
643
|
account = typeof address === 'string' ? address : address.accountId();
|
|
644
644
|
_t2 = friendbotUrl;
|
|
@@ -200,7 +200,7 @@ var AssembledTransaction = exports.AssembledTransaction = function () {
|
|
|
200
200
|
originalSubmit,
|
|
201
201
|
_args3 = arguments;
|
|
202
202
|
return _regenerator().w(function (_context3) {
|
|
203
|
-
while (1) switch (_context3.n) {
|
|
203
|
+
while (1) switch (_context3.p = _context3.n) {
|
|
204
204
|
case 0:
|
|
205
205
|
_ref6 = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {}, _ref6$force = _ref6.force, force = _ref6$force === void 0 ? false : _ref6$force, _ref6$signTransaction = _ref6.signTransaction, signTransaction = _ref6$signTransaction === void 0 ? _this.options.signTransaction : _ref6$signTransaction;
|
|
206
206
|
if (_this.signed) {
|
|
@@ -265,7 +265,7 @@ var AssembledTransaction = exports.AssembledTransaction = function () {
|
|
|
265
265
|
_args7 = arguments,
|
|
266
266
|
_t7;
|
|
267
267
|
return _regenerator().w(function (_context7) {
|
|
268
|
-
while (1) switch (_context7.n) {
|
|
268
|
+
while (1) switch (_context7.p = _context7.n) {
|
|
269
269
|
case 0:
|
|
270
270
|
_ref9 = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : {}, _ref9$expiration = _ref9.expiration, expiration = _ref9$expiration === void 0 ? _asyncToGenerator(_regenerator().m(function _callee4() {
|
|
271
271
|
var _t;
|
|
@@ -2,7 +2,7 @@ import URI from "urijs";
|
|
|
2
2
|
import { HorizonApi } from "./horizon_api";
|
|
3
3
|
import { ServerApi } from "./server_api";
|
|
4
4
|
export interface EventSourceOptions<T> {
|
|
5
|
-
onmessage?: (value: T) => void;
|
|
5
|
+
onmessage?: (value: T extends ServerApi.CollectionPage<infer U> ? U : T) => void;
|
|
6
6
|
onerror?: (event: MessageEvent) => void;
|
|
7
7
|
reconnectTimeout?: number;
|
|
8
8
|
}
|
|
@@ -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.
|
|
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: {
|
|
@@ -461,7 +461,7 @@ var HorizonServer = exports.HorizonServer = function () {
|
|
|
461
461
|
var _checkMemoRequired = _asyncToGenerator(_regenerator().m(function _callee8(transaction) {
|
|
462
462
|
var destinations, i, operation, destination, account, _t, _t2;
|
|
463
463
|
return _regenerator().w(function (_context8) {
|
|
464
|
-
while (1) switch (_context8.n) {
|
|
464
|
+
while (1) switch (_context8.p = _context8.n) {
|
|
465
465
|
case 0:
|
|
466
466
|
if (transaction instanceof _stellarBase.FeeBumpTransaction) {
|
|
467
467
|
transaction = transaction.innerTransaction;
|
|
@@ -158,12 +158,12 @@ export interface ClaimableBalanceClaimed extends Omit<ClaimableBalanceCreated, "
|
|
|
158
158
|
export interface ClaimableBalanceClaimantCreated extends Omit<ClaimableBalanceCreated, "type_i"> {
|
|
159
159
|
type_i: EffectType.claimable_balance_claimant_created;
|
|
160
160
|
}
|
|
161
|
-
interface
|
|
161
|
+
interface SponsorshipFields {
|
|
162
162
|
sponsor: string;
|
|
163
163
|
new_sponsor: string;
|
|
164
164
|
former_sponsor: string;
|
|
165
165
|
}
|
|
166
|
-
interface AccountSponsorshipEvents<T extends string> extends BaseEffectRecord<T>,
|
|
166
|
+
interface AccountSponsorshipEvents<T extends string> extends BaseEffectRecord<T>, SponsorshipFields {
|
|
167
167
|
}
|
|
168
168
|
export type AccountSponsorshipCreated = Omit<AccountSponsorshipEvents<'account_sponsorship_created'>, "new_sponsor" | "former_sponsor"> & {
|
|
169
169
|
type_i: EffectType.account_sponsorship_created;
|
|
@@ -174,7 +174,7 @@ export type AccountSponsorshipUpdated = Omit<AccountSponsorshipEvents<'account_s
|
|
|
174
174
|
export type AccountSponsorshipRemoved = Omit<AccountSponsorshipEvents<'account_sponsorship_removed'>, "new_sponsor" | "sponsor"> & {
|
|
175
175
|
type_i: EffectType.account_sponsorship_removed;
|
|
176
176
|
};
|
|
177
|
-
interface TrustlineSponsorshipEvents<T extends string> extends BaseEffectRecord<T>,
|
|
177
|
+
interface TrustlineSponsorshipEvents<T extends string> extends BaseEffectRecord<T>, SponsorshipFields {
|
|
178
178
|
asset?: string;
|
|
179
179
|
liquidity_pool_id?: string;
|
|
180
180
|
}
|
|
@@ -187,7 +187,7 @@ export type TrustlineSponsorshipUpdated = Omit<TrustlineSponsorshipEvents<'trust
|
|
|
187
187
|
export type TrustlineSponsorshipRemoved = Omit<TrustlineSponsorshipEvents<'trustline_sponsorship_removed'>, "new_sponsor" | "sponsor"> & {
|
|
188
188
|
type_i: EffectType.trustline_sponsorship_removed;
|
|
189
189
|
};
|
|
190
|
-
interface DataSponsorshipEvents<T extends string> extends BaseEffectRecord<T>,
|
|
190
|
+
interface DataSponsorshipEvents<T extends string> extends BaseEffectRecord<T>, SponsorshipFields {
|
|
191
191
|
data_name: string;
|
|
192
192
|
}
|
|
193
193
|
export type DateSponsorshipCreated = Omit<DataSponsorshipEvents<'data_sponsorship_created'>, "new_sponsor" | "former_sponsor"> & {
|
|
@@ -199,7 +199,7 @@ export type DateSponsorshipUpdated = Omit<DataSponsorshipEvents<'data_sponsorshi
|
|
|
199
199
|
export type DateSponsorshipRemoved = Omit<DataSponsorshipEvents<'data_sponsorship_removed'>, "new_sponsor" | "sponsor"> & {
|
|
200
200
|
type_i: EffectType.data_sponsorship_removed;
|
|
201
201
|
};
|
|
202
|
-
interface ClaimableBalanceSponsorshipEvents<T extends string> extends BaseEffectRecord<T>,
|
|
202
|
+
interface ClaimableBalanceSponsorshipEvents<T extends string> extends BaseEffectRecord<T>, SponsorshipFields {
|
|
203
203
|
balance_type_i: string;
|
|
204
204
|
}
|
|
205
205
|
export type ClaimableBalanceSponsorshipCreated = Omit<ClaimableBalanceSponsorshipEvents<'claimable_balance_sponsorship_created'>, "new_sponsor" | "former_sponsor"> & {
|
|
@@ -211,7 +211,7 @@ export type ClaimableBalanceSponsorshipUpdated = Omit<ClaimableBalanceSponsorshi
|
|
|
211
211
|
export type ClaimableBalanceSponsorshipRemoved = Omit<ClaimableBalanceSponsorshipEvents<'claimable_balance_sponsorship_removed'>, "new_sponsor" | "sponsor"> & {
|
|
212
212
|
type_i: EffectType.claimable_balance_sponsorship_removed;
|
|
213
213
|
};
|
|
214
|
-
interface SignerSponsorshipEvents<T extends string> extends BaseEffectRecord<T>,
|
|
214
|
+
interface SignerSponsorshipEvents<T extends string> extends BaseEffectRecord<T>, SponsorshipFields {
|
|
215
215
|
signer: string;
|
|
216
216
|
}
|
|
217
217
|
export type SignerSponsorshipCreated = Omit<SignerSponsorshipEvents<'signer_sponsorship_created'>, "new_sponsor" | "former_sponsor"> & {
|
|
@@ -109,9 +109,8 @@ export declare namespace Api {
|
|
|
109
109
|
limit?: number;
|
|
110
110
|
}
|
|
111
111
|
export interface RawTransactionEvents {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
contractEventsXdr: string[][];
|
|
112
|
+
transactionEventsXdr?: string[];
|
|
113
|
+
contractEventsXdr?: string[][];
|
|
115
114
|
}
|
|
116
115
|
export interface RawTransactionInfo {
|
|
117
116
|
status: GetTransactionStatus;
|
|
@@ -127,7 +126,6 @@ export declare namespace Api {
|
|
|
127
126
|
events?: RawTransactionEvents;
|
|
128
127
|
}
|
|
129
128
|
export interface TransactionEvents {
|
|
130
|
-
diagnosticEventsXdr: xdr.DiagnosticEvent[];
|
|
131
129
|
transactionEventsXdr: xdr.TransactionEvent[];
|
|
132
130
|
contractEventsXdr: xdr.ContractEvent[][];
|
|
133
131
|
}
|
|
@@ -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.
|
|
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',
|
|
@@ -34,7 +34,7 @@ function parseRawSendTransaction(raw) {
|
|
|
34
34
|
return _objectSpread({}, raw);
|
|
35
35
|
}
|
|
36
36
|
function parseTransactionInfo(raw) {
|
|
37
|
-
var _raw$events$
|
|
37
|
+
var _raw$events$contractE, _raw$events, _raw$events$transacti, _raw$events2;
|
|
38
38
|
var meta = _stellarBase.xdr.TransactionMeta.fromXDR(raw.resultMetaXdr, 'base64');
|
|
39
39
|
var info = {
|
|
40
40
|
ledger: raw.ledger,
|
|
@@ -45,17 +45,14 @@ function parseTransactionInfo(raw) {
|
|
|
45
45
|
resultXdr: _stellarBase.xdr.TransactionResult.fromXDR(raw.resultXdr, 'base64'),
|
|
46
46
|
resultMetaXdr: meta,
|
|
47
47
|
events: {
|
|
48
|
-
|
|
49
|
-
return _stellarBase.xdr.DiagnosticEvent.fromXDR(e, "base64");
|
|
50
|
-
})) !== null && _raw$events$diagnosti !== void 0 ? _raw$events$diagnosti : [],
|
|
51
|
-
contractEventsXdr: (_raw$events$contractE = (_raw$events2 = raw.events) === null || _raw$events2 === void 0 ? void 0 : _raw$events2.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) {
|
|
52
49
|
return lst.map(function (e) {
|
|
53
50
|
return _stellarBase.xdr.ContractEvent.fromXDR(e, "base64");
|
|
54
51
|
});
|
|
55
|
-
})
|
|
56
|
-
transactionEventsXdr: (_raw$events$transacti = (_raw$
|
|
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) {
|
|
57
54
|
return _stellarBase.xdr.TransactionEvent.fromXDR(e, "base64");
|
|
58
|
-
})
|
|
55
|
+
})
|
|
59
56
|
}
|
|
60
57
|
};
|
|
61
58
|
switch (meta.switch()) {
|
|
@@ -81,14 +78,14 @@ function parseRawTransactions(r) {
|
|
|
81
78
|
}, parseTransactionInfo(r));
|
|
82
79
|
}
|
|
83
80
|
function parseRawEvents(raw) {
|
|
84
|
-
var _raw$
|
|
81
|
+
var _raw$events3;
|
|
85
82
|
return {
|
|
86
83
|
latestLedger: raw.latestLedger,
|
|
87
84
|
oldestLedger: raw.oldestLedger,
|
|
88
85
|
latestLedgerCloseTime: raw.latestLedgerCloseTime,
|
|
89
86
|
oldestLedgerCloseTime: raw.oldestLedgerCloseTime,
|
|
90
87
|
cursor: raw.cursor,
|
|
91
|
-
events: ((_raw$
|
|
88
|
+
events: ((_raw$events3 = raw.events) !== null && _raw$events3 !== void 0 ? _raw$events3 : []).map(function (evt) {
|
|
92
89
|
var clone = _objectSpread({}, evt);
|
|
93
90
|
delete clone.contractId;
|
|
94
91
|
return _objectSpread(_objectSpread(_objectSpread({}, clone), evt.contractId !== '' && {
|
|
@@ -638,7 +638,7 @@ var RpcServer = exports.RpcServer = function () {
|
|
|
638
638
|
var _requestAirdrop = _asyncToGenerator(_regenerator().m(function _callee20(address, friendbotUrl) {
|
|
639
639
|
var account, response, meta, txMeta, sequence, _error$response, _error$response$detai, _t2, _t3;
|
|
640
640
|
return _regenerator().w(function (_context20) {
|
|
641
|
-
while (1) switch (_context20.n) {
|
|
641
|
+
while (1) switch (_context20.p = _context20.n) {
|
|
642
642
|
case 0:
|
|
643
643
|
account = typeof address === 'string' ? address : address.accountId();
|
|
644
644
|
_t2 = friendbotUrl;
|
|
@@ -200,7 +200,7 @@ var AssembledTransaction = exports.AssembledTransaction = function () {
|
|
|
200
200
|
originalSubmit,
|
|
201
201
|
_args3 = arguments;
|
|
202
202
|
return _regenerator().w(function (_context3) {
|
|
203
|
-
while (1) switch (_context3.n) {
|
|
203
|
+
while (1) switch (_context3.p = _context3.n) {
|
|
204
204
|
case 0:
|
|
205
205
|
_ref6 = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {}, _ref6$force = _ref6.force, force = _ref6$force === void 0 ? false : _ref6$force, _ref6$signTransaction = _ref6.signTransaction, signTransaction = _ref6$signTransaction === void 0 ? _this.options.signTransaction : _ref6$signTransaction;
|
|
206
206
|
if (_this.signed) {
|
|
@@ -265,7 +265,7 @@ var AssembledTransaction = exports.AssembledTransaction = function () {
|
|
|
265
265
|
_args7 = arguments,
|
|
266
266
|
_t7;
|
|
267
267
|
return _regenerator().w(function (_context7) {
|
|
268
|
-
while (1) switch (_context7.n) {
|
|
268
|
+
while (1) switch (_context7.p = _context7.n) {
|
|
269
269
|
case 0:
|
|
270
270
|
_ref9 = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : {}, _ref9$expiration = _ref9.expiration, expiration = _ref9$expiration === void 0 ? _asyncToGenerator(_regenerator().m(function _callee4() {
|
|
271
271
|
var _t;
|
|
@@ -2,7 +2,7 @@ import URI from "urijs";
|
|
|
2
2
|
import { HorizonApi } from "./horizon_api";
|
|
3
3
|
import { ServerApi } from "./server_api";
|
|
4
4
|
export interface EventSourceOptions<T> {
|
|
5
|
-
onmessage?: (value: T) => void;
|
|
5
|
+
onmessage?: (value: T extends ServerApi.CollectionPage<infer U> ? U : T) => void;
|
|
6
6
|
onerror?: (event: MessageEvent) => void;
|
|
7
7
|
reconnectTimeout?: number;
|
|
8
8
|
}
|
|
@@ -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.
|
|
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: {
|
|
@@ -461,7 +461,7 @@ var HorizonServer = exports.HorizonServer = function () {
|
|
|
461
461
|
var _checkMemoRequired = _asyncToGenerator(_regenerator().m(function _callee8(transaction) {
|
|
462
462
|
var destinations, i, operation, destination, account, _t, _t2;
|
|
463
463
|
return _regenerator().w(function (_context8) {
|
|
464
|
-
while (1) switch (_context8.n) {
|
|
464
|
+
while (1) switch (_context8.p = _context8.n) {
|
|
465
465
|
case 0:
|
|
466
466
|
if (transaction instanceof _stellarBase.FeeBumpTransaction) {
|
|
467
467
|
transaction = transaction.innerTransaction;
|
|
@@ -158,12 +158,12 @@ export interface ClaimableBalanceClaimed extends Omit<ClaimableBalanceCreated, "
|
|
|
158
158
|
export interface ClaimableBalanceClaimantCreated extends Omit<ClaimableBalanceCreated, "type_i"> {
|
|
159
159
|
type_i: EffectType.claimable_balance_claimant_created;
|
|
160
160
|
}
|
|
161
|
-
interface
|
|
161
|
+
interface SponsorshipFields {
|
|
162
162
|
sponsor: string;
|
|
163
163
|
new_sponsor: string;
|
|
164
164
|
former_sponsor: string;
|
|
165
165
|
}
|
|
166
|
-
interface AccountSponsorshipEvents<T extends string> extends BaseEffectRecord<T>,
|
|
166
|
+
interface AccountSponsorshipEvents<T extends string> extends BaseEffectRecord<T>, SponsorshipFields {
|
|
167
167
|
}
|
|
168
168
|
export type AccountSponsorshipCreated = Omit<AccountSponsorshipEvents<'account_sponsorship_created'>, "new_sponsor" | "former_sponsor"> & {
|
|
169
169
|
type_i: EffectType.account_sponsorship_created;
|
|
@@ -174,7 +174,7 @@ export type AccountSponsorshipUpdated = Omit<AccountSponsorshipEvents<'account_s
|
|
|
174
174
|
export type AccountSponsorshipRemoved = Omit<AccountSponsorshipEvents<'account_sponsorship_removed'>, "new_sponsor" | "sponsor"> & {
|
|
175
175
|
type_i: EffectType.account_sponsorship_removed;
|
|
176
176
|
};
|
|
177
|
-
interface TrustlineSponsorshipEvents<T extends string> extends BaseEffectRecord<T>,
|
|
177
|
+
interface TrustlineSponsorshipEvents<T extends string> extends BaseEffectRecord<T>, SponsorshipFields {
|
|
178
178
|
asset?: string;
|
|
179
179
|
liquidity_pool_id?: string;
|
|
180
180
|
}
|
|
@@ -187,7 +187,7 @@ export type TrustlineSponsorshipUpdated = Omit<TrustlineSponsorshipEvents<'trust
|
|
|
187
187
|
export type TrustlineSponsorshipRemoved = Omit<TrustlineSponsorshipEvents<'trustline_sponsorship_removed'>, "new_sponsor" | "sponsor"> & {
|
|
188
188
|
type_i: EffectType.trustline_sponsorship_removed;
|
|
189
189
|
};
|
|
190
|
-
interface DataSponsorshipEvents<T extends string> extends BaseEffectRecord<T>,
|
|
190
|
+
interface DataSponsorshipEvents<T extends string> extends BaseEffectRecord<T>, SponsorshipFields {
|
|
191
191
|
data_name: string;
|
|
192
192
|
}
|
|
193
193
|
export type DateSponsorshipCreated = Omit<DataSponsorshipEvents<'data_sponsorship_created'>, "new_sponsor" | "former_sponsor"> & {
|
|
@@ -199,7 +199,7 @@ export type DateSponsorshipUpdated = Omit<DataSponsorshipEvents<'data_sponsorshi
|
|
|
199
199
|
export type DateSponsorshipRemoved = Omit<DataSponsorshipEvents<'data_sponsorship_removed'>, "new_sponsor" | "sponsor"> & {
|
|
200
200
|
type_i: EffectType.data_sponsorship_removed;
|
|
201
201
|
};
|
|
202
|
-
interface ClaimableBalanceSponsorshipEvents<T extends string> extends BaseEffectRecord<T>,
|
|
202
|
+
interface ClaimableBalanceSponsorshipEvents<T extends string> extends BaseEffectRecord<T>, SponsorshipFields {
|
|
203
203
|
balance_type_i: string;
|
|
204
204
|
}
|
|
205
205
|
export type ClaimableBalanceSponsorshipCreated = Omit<ClaimableBalanceSponsorshipEvents<'claimable_balance_sponsorship_created'>, "new_sponsor" | "former_sponsor"> & {
|
|
@@ -211,7 +211,7 @@ export type ClaimableBalanceSponsorshipUpdated = Omit<ClaimableBalanceSponsorshi
|
|
|
211
211
|
export type ClaimableBalanceSponsorshipRemoved = Omit<ClaimableBalanceSponsorshipEvents<'claimable_balance_sponsorship_removed'>, "new_sponsor" | "sponsor"> & {
|
|
212
212
|
type_i: EffectType.claimable_balance_sponsorship_removed;
|
|
213
213
|
};
|
|
214
|
-
interface SignerSponsorshipEvents<T extends string> extends BaseEffectRecord<T>,
|
|
214
|
+
interface SignerSponsorshipEvents<T extends string> extends BaseEffectRecord<T>, SponsorshipFields {
|
|
215
215
|
signer: string;
|
|
216
216
|
}
|
|
217
217
|
export type SignerSponsorshipCreated = Omit<SignerSponsorshipEvents<'signer_sponsorship_created'>, "new_sponsor" | "former_sponsor"> & {
|
|
@@ -109,9 +109,8 @@ export declare namespace Api {
|
|
|
109
109
|
limit?: number;
|
|
110
110
|
}
|
|
111
111
|
export interface RawTransactionEvents {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
contractEventsXdr: string[][];
|
|
112
|
+
transactionEventsXdr?: string[];
|
|
113
|
+
contractEventsXdr?: string[][];
|
|
115
114
|
}
|
|
116
115
|
export interface RawTransactionInfo {
|
|
117
116
|
status: GetTransactionStatus;
|
|
@@ -127,7 +126,6 @@ export declare namespace Api {
|
|
|
127
126
|
events?: RawTransactionEvents;
|
|
128
127
|
}
|
|
129
128
|
export interface TransactionEvents {
|
|
130
|
-
diagnosticEventsXdr: xdr.DiagnosticEvent[];
|
|
131
129
|
transactionEventsXdr: xdr.TransactionEvent[];
|
|
132
130
|
contractEventsXdr: xdr.ContractEvent[][];
|
|
133
131
|
}
|
|
@@ -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.
|
|
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',
|