Comparing version 3.4.0 to 3.5.0
# bitski | ||
## 3.5.0 | ||
### Minor Changes | ||
- [#385](https://github.com/BitskiCo/bitski-js/pull/385) [`cccf708`](https://github.com/BitskiCo/bitski-js/commit/cccf708b035138d7cc356bf3ea458dc1d354bef3) Thanks [@chronicIntrovert](https://github.com/chronicIntrovert)! - Add Base and Base Goerli to networks list | ||
### Patch Changes | ||
- Updated dependencies [[`14d28a4`](https://github.com/BitskiCo/bitski-js/commit/14d28a4653a45ac6677c3f75954458121c12b54d), [`cccf708`](https://github.com/BitskiCo/bitski-js/commit/cccf708b035138d7cc356bf3ea458dc1d354bef3)]: | ||
- bitski-provider@3.2.0 | ||
## 3.4.0 | ||
@@ -4,0 +15,0 @@ |
@@ -6,3 +6,2 @@ // SDK | ||
export const BITSKI_TRANSACTION_API_BASE_URL = 'https://api.bitski.com/v1'; | ||
export const BITSKI_RPC_BASE_URL = 'https://api.bitski.com/v1/web3'; | ||
export const BITSKI_WEB_BASE_URL = 'https://sign.bitski.com'; | ||
@@ -9,0 +8,0 @@ export const IFRAME_MESSAGE_ORIGIN_INCLUDES = '.bitski.com'; |
@@ -9,2 +9,14 @@ export const Mainnet = { | ||
}; | ||
export const Sepolia = { | ||
chainId: 5, | ||
rpcUrl: 'https://api.bitski.com/v1/web3/sepolia', | ||
}; | ||
export const Base = { | ||
chainId: 8453, | ||
rpcUrl: 'https://api.bitski.com/v1/web3/base', | ||
}; | ||
export const BaseGoerli = { | ||
chainId: 84531, | ||
rpcUrl: 'https://api.bitski.com/v1/web3/basegor', | ||
}; | ||
export const Polygon = { | ||
@@ -11,0 +23,0 @@ chainId: 137, |
@@ -139,3 +139,3 @@ import { createBitskiProvider, LocalStorageStore, } from 'bitski-provider'; | ||
createProvider(options = {}) { | ||
return createBitskiProvider(Object.assign(Object.assign({ clientId: this.clientId, getAccessToken: this.getCurrentAccessToken.bind(this), clearAccessToken: this.signOut.bind(this), getUser: async () => this.authProvider.getUserFromCache(), signerBaseUrl: options.webBaseUrl, transactionCallbackUrl: options.callbackURL }, options), { additionalHeaders: Object.assign({ 'X-CLIENT-VERSION': "bitski-sdk-v3.4.0" }, options.additionalHeaders), prependMiddleware: undefined, signerMethod: 'iframe' })); | ||
return createBitskiProvider(Object.assign(Object.assign({ clientId: this.clientId, getAccessToken: this.getCurrentAccessToken.bind(this), clearAccessToken: this.signOut.bind(this), getUser: async () => this.authProvider.getUserFromCache(), signerBaseUrl: options.webBaseUrl, transactionCallbackUrl: options.callbackURL }, options), { additionalHeaders: Object.assign({ 'X-CLIENT-VERSION': "bitski-sdk-v3.5.0" }, options.additionalHeaders), prependMiddleware: undefined, signerMethod: 'iframe' })); | ||
} | ||
@@ -142,0 +142,0 @@ onSignOut() { |
@@ -7,3 +7,3 @@ import { processCallback } from './-private/utils/callback'; | ||
// Import these directly so we don't load the whole provider bundle | ||
import { BinanceSmartChain, BinanceSmartChainTestnet, Goerli, Mainnet, Mumbai, Polygon, } from './-private/network'; | ||
import { BinanceSmartChain, BinanceSmartChainTestnet, Goerli, Mainnet, Mumbai, Polygon, Sepolia, } from './-private/network'; | ||
export { BinanceSmartChain, BinanceSmartChainTestnet, Mainnet, Goerli, Polygon, Mumbai, AuthenticationStatus, OAuthSignInMethod, }; | ||
@@ -215,2 +215,4 @@ export class Bitski { | ||
return Goerli; | ||
case 'sepolia': | ||
return Sepolia; | ||
case 'polygon': | ||
@@ -217,0 +219,0 @@ return Polygon; |
export declare const SDK_VERSION = "0.14.1"; | ||
export declare const BITSKI_USER_API_HOST = "https://www.bitski.com/v1"; | ||
export declare const BITSKI_TRANSACTION_API_BASE_URL = "https://api.bitski.com/v1"; | ||
export declare const BITSKI_RPC_BASE_URL = "https://api.bitski.com/v1/web3"; | ||
export declare const BITSKI_WEB_BASE_URL = "https://sign.bitski.com"; | ||
@@ -6,0 +5,0 @@ export declare const IFRAME_MESSAGE_ORIGIN_INCLUDES = ".bitski.com"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.AuthenticationStatus = exports.OAuthSignInMethod = exports.DEFAULT_AUTHORIZED_METHODS = exports.CACHED_METHODS = exports.USER_KEY = exports.ID_TOKEN_KEY = exports.ACCESS_TOKEN_KEY = exports.REFRESH_TOKEN_KEY = exports.DEFAULT_POPUP_FEATURES = exports.CHECK_FOR_POPUP_CLOSE_INTERVAL = exports.DEFAULT_OPTIONAL_SCOPES = exports.DEFAULT_SCOPES = exports.DEFAULT_OAUTH_CONFIGURATION = exports.IFRAME_MESSAGE_ORIGIN_INCLUDES = exports.BITSKI_WEB_BASE_URL = exports.BITSKI_RPC_BASE_URL = exports.BITSKI_TRANSACTION_API_BASE_URL = exports.BITSKI_USER_API_HOST = exports.SDK_VERSION = void 0; | ||
exports.AuthenticationStatus = exports.OAuthSignInMethod = exports.DEFAULT_AUTHORIZED_METHODS = exports.CACHED_METHODS = exports.USER_KEY = exports.ID_TOKEN_KEY = exports.ACCESS_TOKEN_KEY = exports.REFRESH_TOKEN_KEY = exports.DEFAULT_POPUP_FEATURES = exports.CHECK_FOR_POPUP_CLOSE_INTERVAL = exports.DEFAULT_OPTIONAL_SCOPES = exports.DEFAULT_SCOPES = exports.DEFAULT_OAUTH_CONFIGURATION = exports.IFRAME_MESSAGE_ORIGIN_INCLUDES = exports.BITSKI_WEB_BASE_URL = exports.BITSKI_TRANSACTION_API_BASE_URL = exports.BITSKI_USER_API_HOST = exports.SDK_VERSION = void 0; | ||
// SDK | ||
@@ -9,3 +9,2 @@ exports.SDK_VERSION = '0.14.1'; | ||
exports.BITSKI_TRANSACTION_API_BASE_URL = 'https://api.bitski.com/v1'; | ||
exports.BITSKI_RPC_BASE_URL = 'https://api.bitski.com/v1/web3'; | ||
exports.BITSKI_WEB_BASE_URL = 'https://sign.bitski.com'; | ||
@@ -12,0 +11,0 @@ exports.IFRAME_MESSAGE_ORIGIN_INCLUDES = '.bitski.com'; |
@@ -7,2 +7,5 @@ export interface Network { | ||
export declare const Goerli: Network; | ||
export declare const Sepolia: Network; | ||
export declare const Base: Network; | ||
export declare const BaseGoerli: Network; | ||
export declare const Polygon: Network; | ||
@@ -9,0 +12,0 @@ export declare const Mumbai: Network; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.BinanceSmartChainTestnet = exports.BinanceSmartChain = exports.Mumbai = exports.Polygon = exports.Goerli = exports.Mainnet = void 0; | ||
exports.BinanceSmartChainTestnet = exports.BinanceSmartChain = exports.Mumbai = exports.Polygon = exports.BaseGoerli = exports.Base = exports.Sepolia = exports.Goerli = exports.Mainnet = void 0; | ||
exports.Mainnet = { | ||
@@ -12,2 +12,14 @@ chainId: 1, | ||
}; | ||
exports.Sepolia = { | ||
chainId: 5, | ||
rpcUrl: 'https://api.bitski.com/v1/web3/sepolia', | ||
}; | ||
exports.Base = { | ||
chainId: 8453, | ||
rpcUrl: 'https://api.bitski.com/v1/web3/base', | ||
}; | ||
exports.BaseGoerli = { | ||
chainId: 84531, | ||
rpcUrl: 'https://api.bitski.com/v1/web3/basegor', | ||
}; | ||
exports.Polygon = { | ||
@@ -14,0 +26,0 @@ chainId: 137, |
@@ -145,3 +145,3 @@ "use strict"; | ||
createProvider(options = {}) { | ||
return (0, bitski_provider_1.createBitskiProvider)(Object.assign(Object.assign({ clientId: this.clientId, getAccessToken: this.getCurrentAccessToken.bind(this), clearAccessToken: this.signOut.bind(this), getUser: async () => this.authProvider.getUserFromCache(), signerBaseUrl: options.webBaseUrl, transactionCallbackUrl: options.callbackURL }, options), { additionalHeaders: Object.assign({ 'X-CLIENT-VERSION': "bitski-sdk-v3.4.0" }, options.additionalHeaders), prependMiddleware: undefined, signerMethod: 'iframe' })); | ||
return (0, bitski_provider_1.createBitskiProvider)(Object.assign(Object.assign({ clientId: this.clientId, getAccessToken: this.getCurrentAccessToken.bind(this), clearAccessToken: this.signOut.bind(this), getUser: async () => this.authProvider.getUserFromCache(), signerBaseUrl: options.webBaseUrl, transactionCallbackUrl: options.callbackURL }, options), { additionalHeaders: Object.assign({ 'X-CLIENT-VERSION': "bitski-sdk-v3.5.0" }, options.additionalHeaders), prependMiddleware: undefined, signerMethod: 'iframe' })); | ||
} | ||
@@ -148,0 +148,0 @@ onSignOut() { |
@@ -225,2 +225,4 @@ "use strict"; | ||
return network_1.Goerli; | ||
case 'sepolia': | ||
return network_1.Sepolia; | ||
case 'polygon': | ||
@@ -227,0 +229,0 @@ return network_1.Polygon; |
@@ -12,3 +12,3 @@ { | ||
}, | ||
"version": "3.4.0", | ||
"version": "3.5.0", | ||
"scripts": { | ||
@@ -26,3 +26,3 @@ "lint": "eslint . --cache", | ||
"@openid/appauth": "^1.2.6", | ||
"bitski-provider": "^3.0.0", | ||
"bitski-provider": "^3.2.0", | ||
"eth-provider-types": "^0.2.0", | ||
@@ -29,0 +29,0 @@ "decoders": "^2.0.1" |
@@ -7,3 +7,2 @@ // SDK | ||
export const BITSKI_TRANSACTION_API_BASE_URL = 'https://api.bitski.com/v1'; | ||
export const BITSKI_RPC_BASE_URL = 'https://api.bitski.com/v1/web3'; | ||
export const BITSKI_WEB_BASE_URL = 'https://sign.bitski.com'; | ||
@@ -10,0 +9,0 @@ export const IFRAME_MESSAGE_ORIGIN_INCLUDES = '.bitski.com'; |
@@ -16,2 +16,17 @@ export interface Network { | ||
export const Sepolia: Network = { | ||
chainId: 5, | ||
rpcUrl: 'https://api.bitski.com/v1/web3/sepolia', | ||
}; | ||
export const Base: Network = { | ||
chainId: 8453, | ||
rpcUrl: 'https://api.bitski.com/v1/web3/base', | ||
}; | ||
export const BaseGoerli: Network = { | ||
chainId: 84531, | ||
rpcUrl: 'https://api.bitski.com/v1/web3/basegor', | ||
}; | ||
export const Polygon: Network = { | ||
@@ -18,0 +33,0 @@ chainId: 137, |
@@ -20,2 +20,3 @@ import { processCallback } from './-private/utils/callback'; | ||
Polygon, | ||
Sepolia, | ||
} from './-private/network'; | ||
@@ -290,2 +291,4 @@ | ||
return Goerli; | ||
case 'sepolia': | ||
return Sepolia; | ||
case 'polygon': | ||
@@ -292,0 +295,0 @@ return Polygon; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1070335
21416
236
Updatedbitski-provider@^3.2.0