Skip to content

Commit

Permalink
Merge pull request #46 from airgap-it/feat/update-coinlib-core
Browse files Browse the repository at this point in the history
chore(): update @airgap/coinlib-core
  • Loading branch information
AndreasGassmann authored May 21, 2021
2 parents 6e5924d + 18eea9f commit 4963641
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 21 deletions.
32 changes: 23 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "spire",
"version": "2.2.2",
"version": "2.2.3",
"author": "AirGap",
"homepage": "https://airgap.it/",
"scripts": {
Expand All @@ -26,7 +26,7 @@
"private": true,
"dependencies": {
"@airgap/beacon-sdk": "2.2.5",
"@airgap/coinlib-core": "0.10.6",
"@airgap/coinlib-core": "0.11.2-beta.1",
"@angular/common": "^11.0.3",
"@angular/core": "^11.0.3",
"@angular/forms": "^11.0.3",
Expand Down
2 changes: 1 addition & 1 deletion src/app/services/local-wallet.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export class WalletService {

const publicKey: string = await protocol.getPublicKeyFromMnemonic(mnemonic, protocol.standardDerivationPath)

const address: string = await protocol.getAddressFromPublicKey(publicKey)
const address: string = (await protocol.getAddressFromPublicKey(publicKey)).getValue()

return {
privateKey,
Expand Down
6 changes: 2 additions & 4 deletions src/app/services/settings.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,14 @@ export class SettingsService {
[NetworkType.FLORENCENET]: AirGapNetworkType.TESTNET,
[NetworkType.CUSTOM]: AirGapNetworkType.CUSTOM
}
const blockExplorers: { [key in NetworkType]: string } = {
const blockExplorers: { [key in Exclude<NetworkType, NetworkType.DELPHINET>]: string } = {
[NetworkType.MAINNET]: 'https://tezblock.io',
[NetworkType.DELPHINET]: 'https://delphinet.tezblock.io',
[NetworkType.EDONET]: 'https://edonet.tezblock.io',
[NetworkType.FLORENCENET]: 'https://florencenet.tezblock.io',
[NetworkType.CUSTOM]: 'https://florencenet.tezblock.io'
}
const tezosNetworks: { [key in NetworkType]: TezosNetwork } = {
const tezosNetworks: { [key in Exclude<NetworkType, NetworkType.DELPHINET>]: TezosNetwork } = {
[NetworkType.MAINNET]: TezosNetwork.MAINNET,
[NetworkType.DELPHINET]: TezosNetwork.DELPHINET,
[NetworkType.EDONET]: TezosNetwork.EDONET,
[NetworkType.FLORENCENET]: TezosNetwork.EDONET, // TODO: UPDATE IN COINLIB
[NetworkType.CUSTOM]: TezosNetwork.EDONET
Expand Down
2 changes: 1 addition & 1 deletion src/extension/AirGapSigner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class AirGapOperationProvider implements OperationProvider {
): Promise<TezosWrappedOperation> {
const protocol: TezosProtocol = await getProtocolForNetwork(network)

return protocol.prepareOperations(publicKey, operations as any) // TODO: Fix type
return protocol.prepareOperations(publicKey, operations as any, false) // don't override parameters // TODO: Fix type
}

public async forgeWrappedOperation(wrappedOperation: TezosWrappedOperation, network: Network): Promise<string> {
Expand Down
5 changes: 2 additions & 3 deletions src/extension/extension-client/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,9 @@ export const getProtocolForNetwork: (network: Network) => Promise<TezosProtocol>
[NetworkType.EDONET]: 'https://edonet.tezblock.io',
[NetworkType.FLORENCENET]: 'https://florencenet.tezblock.io',
[NetworkType.CUSTOM]: 'https://florencenet.tezblock.io'
}
const tezosNetworks: { [key in NetworkType]: TezosNetwork } = {
}
const tezosNetworks: { [key in Exclude<NetworkType, NetworkType.DELPHINET>]: TezosNetwork } = {
[NetworkType.MAINNET]: TezosNetwork.MAINNET,
[NetworkType.DELPHINET]: TezosNetwork.DELPHINET,
[NetworkType.EDONET]: TezosNetwork.EDONET,
[NetworkType.FLORENCENET]: TezosNetwork.EDONET, // TODO: UPDATE IN COINLIB
[NetworkType.CUSTOM]: TezosNetwork.EDONET
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Spire",
"version": "2.2.2",
"version": "2.2.3",
"description": "Spire allows you to interact with Tezos dApps that support the Beacon SDK.",
"icons": {
"16": "assets/icon/spire-logo-16px.png",
Expand Down

0 comments on commit 4963641

Please sign in to comment.