Skip to content

Commit

Permalink
chore: change domain (#548)
Browse files Browse the repository at this point in the history
  • Loading branch information
EnoF authored Oct 22, 2024
2 parents f9f0ae3 + aa435c7 commit 9ca8923
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 9 deletions.
6 changes: 6 additions & 0 deletions sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @kadena/spirekey-sdk

## 0.0.1-dev-16

### Patch Changes

- change the domain name to chainweaver [#548]

## 0.0.1-dev-15

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kadena/spirekey-sdk",
"version": "0.0.1-dev-15",
"version": "0.0.1-dev-16",
"description": "",
"keywords": [],
"license": "ISC",
Expand Down
2 changes: 1 addition & 1 deletion sdk/src/embed-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export class EmbedManager {
static getInstance(baseUrl?: string): EmbedManager {
if (!EmbedManager.manager)
EmbedManager.manager = new EmbedManager(
baseUrl || 'https://spirekey.kadena.io',
baseUrl || 'https://chainweaver.kadena.io',
);
if (baseUrl) EmbedManager.manager.updateBaseUrl(baseUrl);
return EmbedManager.manager;
Expand Down
2 changes: 1 addition & 1 deletion sdk/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type SpireKeySDK = {
sign: typeof sign;
};
const initSpireKey = (
options: { hostUrl?: string } = { hostUrl: 'https://spirekey.kadena.io' },
options: { hostUrl?: string } = { hostUrl: 'https://chainweaver.kadena.io' },
): SpireKeySDK => {
EmbedManager.getInstance(options.hostUrl);
return { connect, sign };
Expand Down
4 changes: 2 additions & 2 deletions spirekey/src/utils/__tests__/connect.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe('connect', () => {
keys: ['WEBAUTHN-123'],
},
color: '#893DE7',
domain: 'https://spirekey.kadena.io',
domain: 'https://chainweaver.kadena.io',
'credential-id': 'skeletor',
deviceType: 'desktop',
},
Expand All @@ -27,7 +27,7 @@ describe('connect', () => {
keys: ['WEBAUTHN-890'],
},
color: '#893DE7',
domain: 'https://spirekey.kadena.io',
domain: 'https://chainweaver.kadena.io',
'credential-id': 'cringer',
deviceType: 'desktop',
},
Expand Down
2 changes: 1 addition & 1 deletion spirekey/src/utils/__tests__/consent.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const addMockDevices = (account: Account, pubKeys: string[]): Account => ({
pred: 'keys-any',
},
color: '#000',
domain: 'https://spirekey.kadena.io',
domain: 'https://chainweaver.kadena.io',
deviceType: 'phone',
'credential-id': 'credid',
};
Expand Down
6 changes: 3 additions & 3 deletions spirekey/src/utils/__tests__/countAccounts.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const accounts = [
pred: 'keys-any' as const,
keys: ['WEBAUTHN-key'],
},
domain: 'https://spirekey.kadena.io',
domain: 'https://chainweaver.kadena.io',
'credential-id': 'credential-id',
name: 'security-key_#893DE7',
color: '',
Expand All @@ -58,7 +58,7 @@ describe('countAccounts', () => {
countWithPrefixOnDomain(
accounts,
'SpireKey Account',
'https://spirekey.kadena.io',
'https://chainweaver.kadena.io',
),
).toBe(1);
});
Expand All @@ -68,7 +68,7 @@ describe('countAccounts', () => {
countWithPrefixOnDomain(
accounts,
'SpireKey Account',
'https://spirekey.kadena.io',
'https://chainweaver.kadena.io',
'SpireKey Account',
),
).toBe(0);
Expand Down

0 comments on commit 9ca8923

Please sign in to comment.