Skip to content

Commit

Permalink
Merge branch 'develop' into feat/replace-libsodium
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasGassmann committed Sep 1, 2022
2 parents 2d66e13 + 90bc078 commit 610c695
Show file tree
Hide file tree
Showing 18 changed files with 87 additions and 87 deletions.
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"packages": ["packages/*"],
"version": "3.1.3"
"version": "3.1.4"
}
6 changes: 3 additions & 3 deletions packages/beacon-blockchain-substrate/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@airgap/beacon-blockchain-substrate",
"version": "3.1.3",
"version": "3.1.4",
"description": "> TODO: description",
"author": "Andreas Gassmann <[email protected]>",
"homepage": "https://walletbeacon.io",
Expand Down Expand Up @@ -34,7 +34,7 @@
"url": "https://github.com/airgap-it/beacon-sdk/issues"
},
"dependencies": {
"@airgap/beacon-types": "^3.1.3",
"@airgap/beacon-ui": "^3.1.3"
"@airgap/beacon-types": "^3.1.4",
"@airgap/beacon-ui": "^3.1.4"
}
}
6 changes: 3 additions & 3 deletions packages/beacon-blockchain-tezos-sapling/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@airgap/beacon-blockchain-tezos-sapling",
"version": "3.1.3",
"version": "3.1.4",
"description": "> TODO: description",
"author": "Andreas Gassmann <[email protected]>",
"homepage": "https://walletbeacon.io",
Expand Down Expand Up @@ -34,7 +34,7 @@
"url": "https://github.com/airgap-it/beacon-sdk/issues"
},
"dependencies": {
"@airgap/beacon-types": "^3.1.3",
"@airgap/beacon-ui": "^3.1.3"
"@airgap/beacon-types": "^3.1.4",
"@airgap/beacon-ui": "^3.1.4"
}
}
6 changes: 3 additions & 3 deletions packages/beacon-blockchain-tezos/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@airgap/beacon-blockchain-tezos",
"version": "3.1.3",
"version": "3.1.4",
"description": "> TODO: description",
"author": "Andreas Gassmann <[email protected]>",
"homepage": "https://walletbeacon.io",
Expand Down Expand Up @@ -34,7 +34,7 @@
"url": "https://github.com/airgap-it/beacon-sdk/issues"
},
"dependencies": {
"@airgap/beacon-types": "^3.1.3",
"@airgap/beacon-ui": "^3.1.3"
"@airgap/beacon-types": "^3.1.4",
"@airgap/beacon-ui": "^3.1.4"
}
}
6 changes: 3 additions & 3 deletions packages/beacon-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@airgap/beacon-core",
"version": "3.1.3",
"version": "3.1.4",
"description": "> TODO: description",
"author": "Andreas Gassmann <[email protected]>",
"homepage": "https://walletbeacon.io",
Expand Down Expand Up @@ -34,8 +34,8 @@
"url": "https://github.com/airgap-it/beacon-sdk/issues"
},
"dependencies": {
"@airgap/beacon-types": "^3.1.3",
"@airgap/beacon-utils": "^3.1.2",
"@airgap/beacon-types": "^3.1.4",
"@airgap/beacon-utils": "^3.1.4",
"@stablelib/ed25519": "^1.0.2",
"@stablelib/nacl": "^1.0.3",
"@types/libsodium-wrappers": "0.7.9",
Expand Down
2 changes: 1 addition & 1 deletion packages/beacon-core/src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export const SDK_VERSION: string = '3.1.3'
export const SDK_VERSION: string = '3.1.4'
export const BEACON_VERSION: string = '3'
10 changes: 5 additions & 5 deletions packages/beacon-dapp/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@airgap/beacon-dapp",
"version": "3.1.3",
"version": "3.1.4",
"description": "> TODO: description",
"author": "Andreas Gassmann <[email protected]>",
"homepage": "https://walletbeacon.io",
Expand Down Expand Up @@ -35,10 +35,10 @@
"url": "https://github.com/airgap-it/beacon-sdk/issues"
},
"dependencies": {
"@airgap/beacon-core": "^3.1.3",
"@airgap/beacon-transport-matrix": "^3.1.3",
"@airgap/beacon-transport-postmessage": "^3.1.3",
"@airgap/beacon-ui": "^3.1.3",
"@airgap/beacon-core": "^3.1.4",
"@airgap/beacon-transport-matrix": "^3.1.4",
"@airgap/beacon-transport-postmessage": "^3.1.4",
"@airgap/beacon-ui": "^3.1.4",
"qrcode-generator": "1.4.4"
}
}
4 changes: 2 additions & 2 deletions packages/beacon-dapp/src/dapp-client/DAppClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ import {
import { getAddressFromPublicKey, ExposedPromise, generateGUID } from '@airgap/beacon-utils'
import { messageEvents } from '../beacon-message-events'
import { BlockExplorer } from '../utils/block-explorer'
import { TezblockBlockExplorer } from '../utils/tezblock-blockexplorer'
import { TzktBlockExplorer } from '../utils/tzkt-blockexplorer'

import { DAppClientOptions } from './DAppClientOptions'
import { AlertButton, closeToast } from '@airgap/beacon-ui'
Expand Down Expand Up @@ -162,7 +162,7 @@ export class DAppClient extends Client {
...config
})
this.events = new BeaconEventHandler(config.eventHandlers, config.disableDefaultEvents ?? false)
this.blockExplorer = config.blockExplorer ?? new TezblockBlockExplorer()
this.blockExplorer = config.blockExplorer ?? new TzktBlockExplorer()
this.preferredNetwork = config.preferredNetwork ?? NetworkType.MAINNET
setColorMode(config.colorMode ?? ColorMode.LIGHT)

Expand Down
4 changes: 2 additions & 2 deletions packages/beacon-dapp/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { DAppClient } from './dapp-client/DAppClient'
import { DAppClientOptions } from './dapp-client/DAppClientOptions'
import { BeaconEvent, BeaconEventHandler, defaultEventCallbacks } from './events'
import { BlockExplorer } from './utils/block-explorer'
import { TezblockBlockExplorer } from './utils/tezblock-blockexplorer'
import { TzktBlockExplorer } from './utils/tzkt-blockexplorer'
import { getDAppClientInstance } from './utils/get-instance'

export { DAppClient, DAppClientOptions, getDAppClientInstance }
Expand All @@ -18,4 +18,4 @@ export { DAppClient, DAppClientOptions, getDAppClientInstance }
export { BeaconEvent, BeaconEventHandler, defaultEventCallbacks }

// BlockExplorer
export { BlockExplorer, TezblockBlockExplorer }
export { BlockExplorer, TzktBlockExplorer, TzktBlockExplorer as TezblockBlockExplorer }
35 changes: 0 additions & 35 deletions packages/beacon-dapp/src/utils/tezblock-blockexplorer.ts

This file was deleted.

35 changes: 35 additions & 0 deletions packages/beacon-dapp/src/utils/tzkt-blockexplorer.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import { Network, NetworkType } from '@airgap/beacon-types'
import { BlockExplorer } from './block-explorer'

export class TzktBlockExplorer extends BlockExplorer {
constructor(
public readonly rpcUrls: { [key in NetworkType]: string } = {
[NetworkType.MAINNET]: 'https://tzkt.io',
[NetworkType.GHOSTNET]: 'https://ghostnet.tzkt.io',
[NetworkType.MONDAYNET]: 'https://mondaynet.tzkt.io',
[NetworkType.DAILYNET]: 'https://dailynet.tzkt.io',
[NetworkType.DELPHINET]: 'https://delphinet.tzkt.io',
[NetworkType.EDONET]: 'https://edonet.tzkt.io',
[NetworkType.FLORENCENET]: 'https://florencenet.tzkt.io',
[NetworkType.GRANADANET]: 'https://granadanet.tzkt.io',
[NetworkType.HANGZHOUNET]: 'https://hangzhounet.tzkt.io',
[NetworkType.ITHACANET]: 'https://ithacanet.tzkt.io',
[NetworkType.JAKARTANET]: 'https://jakartanet.tzkt.io',
[NetworkType.KATHMANDUNET]: 'https://kathmandunet.tzkt.io',
[NetworkType.CUSTOM]: 'https://kathmandunet.tzkt.io'
}
) {
super(rpcUrls)
}

public async getAddressLink(address: string, network: Network): Promise<string> {
const blockExplorer = await this.getLinkForNetwork(network)

return `${blockExplorer}/${address}`
}
public async getTransactionLink(transactionId: string, network: Network): Promise<string> {
const blockExplorer = await this.getLinkForNetwork(network)

return `${blockExplorer}/${transactionId}`
}
}
22 changes: 11 additions & 11 deletions packages/beacon-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@airgap/beacon-sdk",
"version": "3.1.3",
"version": "3.1.4",
"description": "> TODO: description",
"author": "Andreas Gassmann <[email protected]>",
"homepage": "https://walletbeacon.io",
Expand Down Expand Up @@ -35,15 +35,15 @@
"url": "https://github.com/airgap-it/beacon-sdk/issues"
},
"dependencies": {
"@airgap/beacon-blockchain-substrate": "^3.1.3",
"@airgap/beacon-blockchain-tezos": "^3.1.3",
"@airgap/beacon-core": "^3.1.3",
"@airgap/beacon-dapp": "^3.1.3",
"@airgap/beacon-transport-matrix": "^3.1.3",
"@airgap/beacon-transport-postmessage": "^3.1.3",
"@airgap/beacon-types": "^3.1.3",
"@airgap/beacon-ui": "^3.1.3",
"@airgap/beacon-utils": "^3.1.2",
"@airgap/beacon-wallet": "^3.1.3"
"@airgap/beacon-blockchain-substrate": "^3.1.4",
"@airgap/beacon-blockchain-tezos": "^3.1.4",
"@airgap/beacon-core": "^3.1.4",
"@airgap/beacon-dapp": "^3.1.4",
"@airgap/beacon-transport-matrix": "^3.1.4",
"@airgap/beacon-transport-postmessage": "^3.1.4",
"@airgap/beacon-types": "^3.1.4",
"@airgap/beacon-ui": "^3.1.4",
"@airgap/beacon-utils": "^3.1.4",
"@airgap/beacon-wallet": "^3.1.4"
}
}
6 changes: 3 additions & 3 deletions packages/beacon-transport-matrix/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@airgap/beacon-transport-matrix",
"version": "3.1.3",
"version": "3.1.4",
"description": "> TODO: description",
"author": "Andreas Gassmann <[email protected]>",
"homepage": "https://walletbeacon.io",
Expand Down Expand Up @@ -34,8 +34,8 @@
"url": "https://github.com/airgap-it/beacon-sdk/issues"
},
"dependencies": {
"@airgap/beacon-core": "^3.1.3",
"@airgap/beacon-utils": "^3.1.2",
"@airgap/beacon-core": "^3.1.4",
"@airgap/beacon-utils": "^3.1.4",
"axios": "0.24.0"
}
}
8 changes: 4 additions & 4 deletions packages/beacon-transport-postmessage/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@airgap/beacon-transport-postmessage",
"version": "3.1.3",
"version": "3.1.4",
"description": "> TODO: description",
"author": "Andreas Gassmann <[email protected]>",
"homepage": "https://walletbeacon.io",
Expand Down Expand Up @@ -34,9 +34,9 @@
"url": "https://github.com/airgap-it/beacon-sdk/issues"
},
"dependencies": {
"@airgap/beacon-core": "^3.1.3",
"@airgap/beacon-types": "^3.1.3",
"@airgap/beacon-utils": "^3.1.2",
"@airgap/beacon-core": "^3.1.4",
"@airgap/beacon-types": "^3.1.4",
"@airgap/beacon-utils": "^3.1.4",
"@types/libsodium-wrappers": "0.7.9",
"libsodium-wrappers": "0.7.9"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/beacon-types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@airgap/beacon-types",
"version": "3.1.3",
"version": "3.1.4",
"description": "> TODO: description",
"author": "Andreas Gassmann <[email protected]>",
"homepage": "https://walletbeacon.io",
Expand Down
10 changes: 5 additions & 5 deletions packages/beacon-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@airgap/beacon-ui",
"version": "3.1.3",
"version": "3.1.4",
"description": "> TODO: description",
"author": "Andreas Gassmann <[email protected]>",
"homepage": "https://walletbeacon.io",
Expand Down Expand Up @@ -34,9 +34,9 @@
"url": "https://github.com/airgap-it/beacon-sdk/issues"
},
"dependencies": {
"@airgap/beacon-core": "^3.1.3",
"@airgap/beacon-transport-postmessage": "^3.1.3",
"@airgap/beacon-types": "^3.1.3",
"@airgap/beacon-utils": "^3.1.2"
"@airgap/beacon-core": "^3.1.4",
"@airgap/beacon-transport-postmessage": "^3.1.4",
"@airgap/beacon-types": "^3.1.4",
"@airgap/beacon-utils": "^3.1.4"
}
}
2 changes: 1 addition & 1 deletion packages/beacon-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@airgap/beacon-utils",
"version": "3.1.2",
"version": "3.1.4",
"description": "> TODO: description",
"author": "Andreas Gassmann <[email protected]>",
"homepage": "https://walletbeacon.io",
Expand Down
8 changes: 4 additions & 4 deletions packages/beacon-wallet/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@airgap/beacon-wallet",
"version": "3.1.3",
"version": "3.1.4",
"description": "> TODO: description",
"author": "Andreas Gassmann <[email protected]>",
"homepage": "https://walletbeacon.io",
Expand Down Expand Up @@ -35,8 +35,8 @@
"url": "https://github.com/airgap-it/beacon-sdk/issues"
},
"dependencies": {
"@airgap/beacon-core": "^3.1.3",
"@airgap/beacon-transport-matrix": "^3.1.3",
"@airgap/beacon-transport-postmessage": "^3.1.3"
"@airgap/beacon-core": "^3.1.4",
"@airgap/beacon-transport-matrix": "^3.1.4",
"@airgap/beacon-transport-postmessage": "^3.1.4"
}
}

0 comments on commit 610c695

Please sign in to comment.