Skip to content

Commit 0601bc7

Browse files
committed
refactor: rename SDK terminology to Connect terminology
- Rename MultichainSDK to MultichainConnect - Rename SDKState to ConnectState - Rename SDKEvents to ConnectEvents - Rename createMetamaskSDK to createMetamaskConnect - Rename SDKVersion to ConnectVersion component - Update sdkVersion to connectVersion properties - Update build configuration global names - Update documentation and comments to use 'MetaMask Connect Module' - Update test files and mock references - Update logger namespaces and package descriptions
1 parent 462a842 commit 0601bc7

File tree

35 files changed

+120
-113
lines changed

35 files changed

+120
-113
lines changed

packages/sdk-multichain-ui/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Install modal web package for multichain, renders and uses the new mobile wallet protocol ConnectionRequest QRCodes.
44

5-
This project includes fully functional InstallModal web used in the Multichain SDK for Trusted flows.
5+
This project includes fully functional InstallModal web used in the MetaMask Connect Module for Trusted flows.
66

77
Untrusted flows use the OTPModal which exists but is not yet fully supported.
88

packages/sdk-multichain-ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@metamask/sdk-multichain-ui",
33
"version": "0.0.0",
4-
"description": "MetaMask SDK Install Modal for Web",
4+
"description": "MetaMask Connect Install Modal for Web",
55
"homepage": "https://github.com/MetaMask/metamask-sdk#readme",
66
"bugs": {
77
"url": "https://github.com/MetaMask/metamask-sdk/issues"

packages/sdk-multichain-ui/rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const config = [
2727
file: packageJson.unpkg,
2828
format: 'umd',
2929
exports: 'named',
30-
name: 'MetaMaskSDKInstallModal',
30+
name: 'MetaMaskConnectInstallModal',
3131
sourcemap: true
3232
},
3333
{
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { h } from "@stencil/core";
2+
3+
export default function ConnectVersion({version}: {version?: string}) {
4+
return (
5+
<div class="version-title">Connect Version {version ? `v${version}`:`unknown`}</div>
6+
)
7+
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { h } from "@stencil/core";
22

3-
export default function SDKVersion({version}: {version?: string}) {
3+
export default function ConnectVersion({version}: {version?: string}) {
44
return (
5-
<div class="version-title">SDK Version {version ? `v${version}`:`unknown`}</div>
5+
<div class="version-title">Connect Version {version ? `v${version}`:`unknown`}</div>
66
)
77
}

packages/sdk-multichain-ui/src/components/mm-install-modal/mm-install-modal.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Component, Prop, h, Event, EventEmitter, State, Element, Watch } from '@stencil/core';
22
import { WidgetWrapper } from '../widget-wrapper/widget-wrapper';
33
import InstallIcon from '../misc/InstallIcon';
4-
import SDKVersion from '../misc/SDKVersion';
4+
import ConnectVersion from '../misc/ConnectVersion';
55
import CloseButton from '../misc/CloseButton';
66

77
import QRCodeStyling, {
@@ -27,7 +27,7 @@ export class InstallModal {
2727

2828
@Prop() expiresIn: number;
2929

30-
@Prop() sdkVersion?: string;
30+
@Prop() connectVersion?: string;
3131

3232
@Prop() preferDesktop: boolean;
3333

@@ -215,7 +215,7 @@ export class InstallModal {
215215
)}
216216
</div>
217217

218-
<SDKVersion version={this.sdkVersion} />
218+
<ConnectVersion version={this.connectVersion} />
219219
</div>
220220
</WidgetWrapper>
221221
)

packages/sdk-multichain-ui/src/components/mm-otp-modal/mm-otp-modal.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Component, Prop, h, Event, EventEmitter, State, Element } from '@stencil/core';
22
import { WidgetWrapper } from '../widget-wrapper/widget-wrapper';
3-
import SDKVersion from '../misc/SDKVersion';
3+
import ConnectVersion from '../misc/ConnectVersion';
44
import CloseButton from '../misc/CloseButton';
55
import { SimpleI18n } from '../misc/simple-i18n';
66
import InstallIcon from '../misc/InstallIcon';
@@ -16,7 +16,7 @@ export class OtpModal {
1616
*/
1717
@Prop() displayOTP?: boolean;
1818

19-
@Prop() sdkVersion?: string;
19+
@Prop() connectVersion?: string;
2020

2121
private i18nInstance: SimpleI18n;
2222

@@ -67,7 +67,7 @@ export class OtpModal {
6767
}
6868

6969
const displayOTP = this.displayOTP ?? true;
70-
const sdkVersion = this.sdkVersion
70+
const connectVersion = this.connectVersion
7171
const t = (key: string) => this.i18nInstance.t(key);
7272

7373
return (
@@ -132,7 +132,7 @@ export class OtpModal {
132132
</button>
133133
</div>
134134
</div>
135-
<SDKVersion version={sdkVersion} />
135+
<ConnectVersion version={connectVersion} />
136136
</div>
137137
</WidgetWrapper>
138138
)

packages/sdk-multichain-ui/src/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0" />
6-
<title>SDK Install Modal Web</title>
6+
<title>MetaMask Connect Install Modal Web</title>
77
<script type="module" src="/build/sdk-install-modal-web.esm.js"></script>
88
<script nomodule src="/build/sdk-install-modal-web.js"></script>
99
<style>
@@ -42,7 +42,7 @@
4242
<h2>Install Modal</h2>
4343
<mm-install-modal
4444
link="https://example.com/install"
45-
sdk-version="1.0.0"
45+
connect-version="1.0.0"
4646
prefer-desktop="true"
4747
></mm-install-modal>
4848
</div>

packages/sdk-multichain/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# MetaMask SDK Multichain
1+
# MetaMask Connect Multichain
22

3-
The MetaMask SDK Multichain is a protocol-based, domain-driven SDK that enables seamless integration with MetaMask wallets across multiple blockchain networks and platforms.
3+
The MetaMask Connect Multichain module is a protocol-based, domain-driven Connect that enables seamless integration with MetaMask wallets across multiple blockchain networks and platforms.
44

55
## Overview
66

7-
The SDK provides a unified interface for dapps to connect with MetaMask Extension or Mobile wallets, regardless of the platform (browser, mobile, or Node.js) or blockchain protocol. It automatically handles connection flows, deeplinks, and QR codes based on the user's environment.
7+
MetaMask Connect Multichain module provides a unified interface for dapps to connect with MetaMask Extension or Mobile wallets, regardless of the platform (browser, mobile, or Node.js) or blockchain protocol. It automatically handles connection flows, deeplinks, and QR codes based on the user's environment.
88

99
## Architecture
1010

1111
### Domain-Driven Design
1212

13-
The SDK follows a clean domain-driven architecture with clear separation of concerns:
13+
MetaMask Connect Multichain module follows a clean domain-driven architecture with clear separation of concerns:
1414

1515
```
1616
src/

packages/sdk-multichain/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@metamask/multichain-sdk",
33
"version": "0.0.0",
4-
"description": "Multichain package for MetaMask SDK",
4+
"description": "Multichain package for MetaMask Connect",
55
"main": "dist/node/cjs/multichain-sdk.js",
66
"module": "dist/browser/es/multichain-sdk.mjs",
77
"browser": "dist/browser/es/multichain-sdk.mjs",

0 commit comments

Comments
 (0)