Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into legacy-migration
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgemmsilva committed Feb 20, 2024
2 parents 7a22247 + 8417db0 commit 2fa1b46
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 14 deletions.
4 changes: 2 additions & 2 deletions packages/wasmvm/wasmclient/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ iota-crypto = { git = "https://github.com/iotaledger/crypto.rs", branch = "dev",
wasmlib = { path = "../wasmlib" }
#wasmlib = { git = "https://github.com/iotaledger/wasp", branch = "develop" }
wasm-bindgen = "0.2.91"
serde = { version = "1.0.196", features = ["derive"] }
serde_json = "1.0.113"
serde = { version = "1.0.197", features = ["derive"] }
serde_json = "1.0.114"
bech32 = "0.9.1"
base64 = "0.21.7"
hmac = "0.12.1"
Expand Down
44 changes: 33 additions & 11 deletions tools/wasp-cli/.goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ builds:
goarch:
- arm64

# macOS
- id: wasp-cli-darwin-all
# macOS ARM64
- id: wasp-cli-darwin-arm64
binary: wasp-cli
ldflags:
- -s -w -X=github.com/iotaledger/wasp/components/app.Version={{ .Summary }}
Expand All @@ -50,6 +50,19 @@ builds:
- darwin
goarch:
- arm64

# macOS AMD64
- id: wasp-cli-darwin-amd64
binary: wasp-cli
ldflags:
- -s -w -X=github.com/iotaledger/wasp/components/app.Version={{ .Summary }}
main: main.go
dir: ./tools/wasp-cli
tags:
- no_wasmhost
goos:
- darwin
goarch:
- amd64

# Windows AMD64
Expand Down Expand Up @@ -110,24 +123,33 @@ archives:
- src: sdk/libiota_sdk.so
dst: libiota_sdk.so

- # MacOS
id: wasp-cli-macos
- # MacOS ARM64
id: wasp-cli-macos-arm64
builds:
- wasp-cli-darwin-all
- wasp-cli-darwin-arm64
format: tar.gz
wrap_in_directory: true
name_template: >-
{{ .ProjectName }}_{{ .Version }}_MacOS_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "arm64" }}ARM64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{ .ProjectName }}_{{ .Version }}_MacOS_ARM64
files:
- README.md
- LICENSE
- src: sdk/libiota_sdk.dylib
- src: sdk/libiota_sdk_arm64.dylib
dst: libiota_sdk.dylib

- # MacOS AMD64
id: wasp-cli-macos-amd64
builds:
- wasp-cli-darwin-amd64
format: tar.gz
wrap_in_directory: true
name_template: >-
{{ .ProjectName }}_{{ .Version }}_MacOS_x86_64
files:
- README.md
- LICENSE
- src: sdk/libiota_sdk_amd64.dylib
dst: libiota_sdk.dylib


# Checksum
Expand Down
9 changes: 8 additions & 1 deletion tools/wasp-cli/cli/wallet/providers/ledger.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
package providers

import (
"os"

walletsdk "github.com/iotaledger/wasp-wallet-sdk"
"github.com/iotaledger/wasp/packages/parameters"
"github.com/iotaledger/wasp/tools/wasp-cli/cli/wallet/wallets"
"github.com/iotaledger/wasp/tools/wasp-cli/log"
)

func LoadLedgerWallet(sdk *walletsdk.IOTASDK, addressIndex uint32) wallets.Wallet {
secretManager, err := walletsdk.NewLedgerSecretManager(sdk, false)
useEmulator := false
if isEmulator, ok := os.LookupEnv("IOTA_SDK_USE_SIMULATOR"); isEmulator == "true" && ok {
useEmulator = true
}

secretManager, err := walletsdk.NewLedgerSecretManager(sdk, useEmulator)
log.Check(err)

status, err := secretManager.GetLedgerStatus()
Expand Down

0 comments on commit 2fa1b46

Please sign in to comment.