Skip to content

Commit

Permalink
Point stellar-base to npm package under @stellar
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaptic committed Dec 7, 2023
1 parent ae9f608 commit a1c59bf
Show file tree
Hide file tree
Showing 32 changed files with 270 additions and 254 deletions.
11 changes: 7 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,17 @@
A breaking change will get clearly marked in this log.


## Unreleased

### Fixed
* The `SorobanRpc.Server.getEvents` method now correctly parses responses without a `contractId` field set. The `events[i].contractId` field on an event is now optional, omitted if there was no ID for the event (e.g. system events; ([#883](https://github.com/stellar/js-stellar-sdk/pull/883))).
## [v11.0.0](https://github.com/stellar/js-stellar-sdk/compare/v10.2.1...v11.0.0)

### Breaking Changes

* The package has been renamed to `@stellar/stellar-sdk`.
* The new minimum supported version is Node 18.
* The `PaymentCallBuilder` was incorrectly indicating that it would return a collection of `Payment` records, while [in reality](https://developers.stellar.org/api/horizon/resources/list-all-payments) it can return a handful of "payment-like" records ([#885](https://github.com/stellar/js-stellar-sdk/pull/885)).

### Fixed
* The `SorobanRpc.Server.getEvents` method now correctly parses responses without a `contractId` field set. The `events[i].contractId` field on an event is now optional, omitted if there was no ID for the event (e.g. system events; ([#883](https://github.com/stellar/js-stellar-sdk/pull/883))).


## [v11.0.0-beta.6](https://github.com/stellar/js-stellar-sdk/compare/v11.0.0-beta.5...v11.0.0-beta.6)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
"bignumber.js": "^9.1.2",
"eventsource": "^2.0.2",
"randombytes": "^2.1.0",
"stellar-base": "git+https://github.com/stellar/js-stellar-base#master",
"@stellar/stellar-base": "10.0.0",
"toml": "^3.0.0",
"urijs": "^1.19.1"
}
Expand Down
2 changes: 1 addition & 1 deletion src/browser.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* tslint:disable:no-var-requires */

export * from "./index";
export * as StellarBase from "stellar-base";
export * as StellarBase from "@stellar/stellar-base";

import axios from "axios"; // idk why axios is weird
export { axios };
Expand Down
2 changes: 1 addition & 1 deletion src/contract_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
XdrLargeInt,
scValToBigInt,
xdr
} from 'stellar-base';
} from '@stellar/stellar-base';

export interface Union<T> {
tag: string;
Expand Down
2 changes: 1 addition & 1 deletion src/federation/server.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import axios from "axios";
import { StrKey } from "stellar-base";
import { StrKey } from "@stellar/stellar-base";
import URI from "urijs";

import { Config } from "../config";
Expand Down
2 changes: 1 addition & 1 deletion src/horizon/account_call_builder.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Asset } from "stellar-base";
import { Asset } from "@stellar/stellar-base";
import { CallBuilder } from "./call_builder";
import { ServerApi } from "./server_api";

Expand Down
2 changes: 1 addition & 1 deletion src/horizon/account_response.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* tslint:disable:variable-name */

import { Account as BaseAccount } from "stellar-base";
import { Account as BaseAccount } from "@stellar/stellar-base";
import { HorizonApi } from "./horizon_api";
import { ServerApi } from "./server_api";

Expand Down
2 changes: 1 addition & 1 deletion src/horizon/claimable_balances_call_builder.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Asset } from "stellar-base";
import { Asset } from "@stellar/stellar-base";
import { CallBuilder } from "./call_builder";
import { ServerApi } from "./server_api";

Expand Down
2 changes: 1 addition & 1 deletion src/horizon/horizon_api.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AssetType, MemoType } from "stellar-base";
import { AssetType, MemoType } from "@stellar/stellar-base";

/* tslint:disable-next-line:no-namespace */
export namespace HorizonApi {
Expand Down
2 changes: 1 addition & 1 deletion src/horizon/liquidity_pool_call_builder.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Asset } from "stellar-base";
import { Asset } from "@stellar/stellar-base";

import { CallBuilder } from "./call_builder";
import { ServerApi } from "./server_api";
Expand Down
2 changes: 1 addition & 1 deletion src/horizon/offer_call_builder.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Asset } from "stellar-base";
import { Asset } from "@stellar/stellar-base";
import { CallBuilder } from "./call_builder";
import { ServerApi } from "./server_api";

Expand Down
2 changes: 1 addition & 1 deletion src/horizon/orderbook_call_builder.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Asset } from "stellar-base";
import { Asset } from "@stellar/stellar-base";
import { CallBuilder } from "./call_builder";
import { ServerApi } from "./server_api";

Expand Down
2 changes: 1 addition & 1 deletion src/horizon/path_call_builder.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Asset } from "stellar-base";
import { Asset } from "@stellar/stellar-base";
import { CallBuilder } from "./call_builder";
import { ServerApi } from "./server_api";

Expand Down
2 changes: 1 addition & 1 deletion src/horizon/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
StrKey,
Transaction,
xdr,
} from "stellar-base";
} from "@stellar/stellar-base";
import URI from "urijs";

import { CallBuilder } from "./call_builder";
Expand Down
2 changes: 1 addition & 1 deletion src/horizon/server_api.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Asset } from "stellar-base";
import { Asset } from "@stellar/stellar-base";
import { Omit } from "utility-types";
import { HorizonApi } from "./horizon_api";

Expand Down
2 changes: 1 addition & 1 deletion src/horizon/strict_receive_path_call_builder.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Asset } from "stellar-base";
import { Asset } from "@stellar/stellar-base";
import { CallBuilder } from "./call_builder";
import { ServerApi } from "./server_api";

Expand Down
2 changes: 1 addition & 1 deletion src/horizon/strict_send_path_call_builder.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Asset } from "stellar-base";
import { Asset } from "@stellar/stellar-base";
import { CallBuilder } from "./call_builder";
import { ServerApi } from "./server_api";

Expand Down
2 changes: 1 addition & 1 deletion src/horizon/trade_aggregation_call_builder.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* tslint:disable: variable-name */
import { Asset } from "stellar-base";
import { Asset } from "@stellar/stellar-base";
import { CallBuilder } from "./call_builder";
import { BadRequestError } from "../errors";
import { HorizonApi } from "./horizon_api";
Expand Down
2 changes: 1 addition & 1 deletion src/horizon/trades_call_builder.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Asset } from "stellar-base";
import { Asset } from "@stellar/stellar-base";
import { CallBuilder } from "./call_builder";
import { ServerApi } from "./server_api";

Expand Down
2 changes: 1 addition & 1 deletion src/horizon/types/assets.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AssetType } from "stellar-base";
import { AssetType } from "@stellar/stellar-base";
import { HorizonApi } from "./../horizon_api";

export interface AssetRecord extends HorizonApi.BaseResponse {
Expand Down
2 changes: 1 addition & 1 deletion src/horizon/types/offer.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AssetType } from "stellar-base";
import { AssetType } from "@stellar/stellar-base";
import { HorizonApi } from "./../horizon_api";

export interface OfferAsset {
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ export * as SorobanRpc from './soroban';
export { ContractSpec } from './contract_spec';

// expose classes and functions from stellar-base
export * from 'stellar-base';
export * from '@stellar/stellar-base';

export default module.exports;
2 changes: 1 addition & 1 deletion src/soroban/api.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AssetType, Contract, SorobanDataBuilder, xdr } from 'stellar-base';
import { AssetType, Contract, SorobanDataBuilder, xdr } from '@stellar/stellar-base';

/* tslint:disable-next-line:no-namespace */
/** @namespace Api */
Expand Down
2 changes: 1 addition & 1 deletion src/soroban/browser.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* tslint:disable:no-var-requires */

export * from './index';
export * as StellarBase from 'stellar-base';
export * as StellarBase from '@stellar/stellar-base';

import axios from 'axios'; // idk why axios is weird
export { axios };
Expand Down
2 changes: 1 addition & 1 deletion src/soroban/parsers.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { xdr, Contract, SorobanDataBuilder } from 'stellar-base';
import { xdr, Contract, SorobanDataBuilder } from '@stellar/stellar-base';
import { Api } from './api';

export function parseRawSendTransaction(
Expand Down
2 changes: 1 addition & 1 deletion src/soroban/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
Keypair,
Transaction,
xdr
} from 'stellar-base';
} from '@stellar/stellar-base';

import AxiosClient from './axios';
import { Api as FriendbotApi } from '../friendbot';
Expand Down
2 changes: 1 addition & 1 deletion src/soroban/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
Operation,
Transaction,
TransactionBuilder
} from 'stellar-base';
} from '@stellar/stellar-base';

import { Api } from './api';
import { parseRawSimulation } from './parsers';
Expand Down
2 changes: 1 addition & 1 deletion src/stellartoml/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import axios from "axios";
import toml from "toml";
import { Networks } from "stellar-base";
import { Networks } from "@stellar/stellar-base";

import { Config } from "../config";

Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Transaction } from "stellar-base";
import { Transaction } from "@stellar/stellar-base";

export class Utils {
/**
Expand Down
2 changes: 1 addition & 1 deletion src/webauth/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
TimeoutInfinite,
Transaction,
TransactionBuilder,
} from "stellar-base";
} from "@stellar/stellar-base";

import { Utils } from "../utils";
import { InvalidChallengeError } from "./errors";
Expand Down
Loading

0 comments on commit a1c59bf

Please sign in to comment.