Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update for Preview 20 #138

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

chadoh
Copy link
Contributor

@chadoh chadoh commented Dec 18, 2023

@chadoh chadoh marked this pull request as ready for review December 20, 2023 19:40
@chadoh chadoh force-pushed the chore/v20 branch 2 times, most recently from 89c691d to 6b4cea5 Compare December 21, 2023 15:29
@chadoh chadoh mentioned this pull request Dec 21, 2023
- Pin soroban-cli to latest version, 20.1.1
- Update the contract's SDK version
  - **Copy in `abundance` source from `token` contract** at stellar/soroban-examples#277. Note that I **did not author most of the changes in the `contracts/abundance` folder**. I _only_ copied in the changes originally authored in the `soroban-examples` repo, then updated for the single tweak that this `abundance` contract already had: 1. comments on the `mint` method; 2. slightly modified `mint` behavior.
- New CLI's typescript-bindings-generated libraries now return an `AssembledTransaction`, which has a `result` getter and a `signAndSend` method, as explained in stellar/stellar-cli#1034
- Use `stellar-sdk` rather than `soroban-client`
- Use latest `@stellar/freighter-api`
Copy link
Contributor

@Shaptic Shaptic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! One small dep nitpick

@@ -28,7 +28,7 @@
"next": "^13.4.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"soroban-client": "1.0.0-beta.2"
"stellar-sdk": "^11.1.0"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you use @stellar/stellar-sdk, instead? 🙏

@@ -14,6 +13,9 @@ type PagingKey = string
*/
const paging: Record<PagingKey, { lastLedgerStart?: number, pagingToken?: string }> = {}

// `EventResponse` is not exported from stellar-sdk
type EventResponse = SorobanRpc.Api.GetEventsResponse['events'][number]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

noted! will fix :o

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will be fixed by stellar/js-stellar-sdk#904

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants