Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
c9760d3
feat(graphql): Allow waiting for finalization in client
DaughterOfMars Oct 27, 2025
cd89928
bindings
DaughterOfMars Oct 27, 2025
9d3ba6e
go home
DaughterOfMars Oct 27, 2025
f234a4e
add doc
DaughterOfMars Oct 28, 2025
6842feb
Improve wait fn and execute
DaughterOfMars Oct 28, 2025
770bc44
apply to other execute fn
DaughterOfMars Oct 28, 2025
731500c
Merge branch 'sdk-bindings' into feat/graphql-ex-finalization
DaughterOfMars Oct 28, 2025
9ed2bfb
Merge branch 'sdk-bindings' into feat/graphql-ex-finalization
DaughterOfMars Oct 28, 2025
b843622
clippy
DaughterOfMars Oct 28, 2025
abf5c9d
review
DaughterOfMars Oct 29, 2025
e613a32
Update crates/iota-sdk-graphql-client/src/lib.rs
DaughterOfMars Oct 29, 2025
f50986d
Merge branch 'sdk-bindings' into feat/graphql-ex-finalization
DaughterOfMars Oct 29, 2025
d2e6b30
more bindings updates
DaughterOfMars Oct 29, 2025
14da042
update gas station example
DaughterOfMars Oct 29, 2025
da48452
fix responses and wait for checkpoint inclusion
DaughterOfMars Oct 29, 2025
51d2d5b
Don't return transaction effects
DaughterOfMars Oct 30, 2025
4be54e8
fix balance query and improvements
DaughterOfMars Oct 30, 2025
8a7846a
Update schema and add `is_tx_indexed_on_node`
DaughterOfMars Oct 30, 2025
11b52b9
add WaitForTx
DaughterOfMars Oct 30, 2025
0927922
rename variants
DaughterOfMars Oct 30, 2025
b63e9dd
typo
DaughterOfMars Oct 30, 2025
ba711cb
Update iota binary
DaughterOfMars Oct 30, 2025
aa155a8
fix tests
DaughterOfMars Oct 30, 2025
d395945
fix more tests
DaughterOfMars Oct 30, 2025
beb3480
fix publish example
DaughterOfMars Oct 30, 2025
7f4fa1f
review
DaughterOfMars Oct 30, 2025
a39ad98
Merge branch 'sdk-bindings' into feat/graphql-ex-finalization
DaughterOfMars Oct 30, 2025
0268032
Merge branch 'sdk-bindings' into feat/graphql-ex-finalization
DaughterOfMars Oct 30, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/start-local-network/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ runs:
- name: Get the IOTA testnet binary and start a local network
shell: bash
env:
IOTA_BINARY_VERSION: "v0.12.0-rc"
IOTA_BINARY_VERSION: "v1.10.0-rc"
EPOCH_DURATION_MS: "10000"
run: |
ASSET_NAME="iota-$IOTA_BINARY_VERSION-linux-x86_64.tgz"
Expand Down
4 changes: 2 additions & 2 deletions bindings/go/examples/gas_station/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ func main() {

builder.GasStationSponsor(gasStationUrl, nil, &headers)

res, err := builder.Execute(simpleKey, true)
res, err := builder.Execute(simpleKey, nil)
if err.(*sdk.SdkFfiError) != nil {
log.Fatalf("Failed to sponsor transaction: %v", err)
}

if res != nil {
log.Printf("%v", *res)
log.Printf("%v", res)
}

fmt.Print("Sponsored transaction was successful!")
Expand Down
11 changes: 3 additions & 8 deletions bindings/go/examples/publish_upgrade/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,11 @@ func main() {
log.Fatalf("Failed to sign: %v", err)
}
userSigPublish := sdk.UserSignatureNewSimple(sigPublish)
effectsPublish, err := client.ExecuteTx([]*sdk.UserSignature{userSigPublish}, txPublish)
waitFor := sdk.WaitForTxFinalized
effectsPublish, err := client.ExecuteTx([]*sdk.UserSignature{userSigPublish}, txPublish, &waitFor)
if err.(*sdk.SdkFfiError) != nil {
log.Fatalf("Transaction failed: %v", err)
}
if effectsPublish == nil {
log.Fatal("Transaction failed: no effects")
}
fmt.Println("Success")

// Wait some time for the indexer to process the tx
Expand Down Expand Up @@ -206,13 +204,10 @@ func main() {
log.Fatalf("Failed to sign: %v", err)
}
userSigUpgrade := sdk.UserSignatureNewSimple(sigUpgrade)
effectsUpgrade, err := client.ExecuteTx([]*sdk.UserSignature{userSigUpgrade}, txUpgrade)
effectsUpgrade, err := client.ExecuteTx([]*sdk.UserSignature{userSigUpgrade}, txUpgrade, nil)
if err.(*sdk.SdkFfiError) != nil {
log.Fatalf("Transaction failed: %v", err)
}
if effectsUpgrade == nil {
log.Fatal("Transaction failed: no effects")
}
fmt.Println("Success")

// Wait some time for the indexer to process the tx
Expand Down
5 changes: 1 addition & 4 deletions bindings/go/examples/sign_send_iota/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,10 @@ func main() {
}
userSignature := sdk.UserSignatureNewSimple(signature)

effects, err := client.ExecuteTx([]*sdk.UserSignature{userSignature}, txn)
effects, err := client.ExecuteTx([]*sdk.UserSignature{userSignature}, txn, nil)
if err.(*sdk.SdkFfiError) != nil {
log.Fatalf("Failed to execute: %v", err)
}
if effects == nil {
log.Fatalf("Transaction execution failed")
}
log.Printf("Digest: %s", sdk.HexEncode((*effects).Digest().ToBytes()))
log.Printf("Transaction status: %v", (*effects).AsV1().Status)
log.Printf("Effects: %+v", (*effects).AsV1())
Expand Down
Loading