@tezos-x/octez.connect-blockchain-substrate 5.0.0-beta.5 → 5.0.0-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -14
- package/dist/cjs/blockchain.d.ts +1 -1
- package/dist/cjs/blockchain.js +3 -1
- package/dist/cjs/blockchain.js.map +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/message-type.js.map +1 -1
- package/dist/cjs/types/messages/permission-request.js.map +1 -1
- package/dist/cjs/types/messages/permission-response.js.map +1 -1
- package/dist/cjs/types/messages/sign-payload-request.js.map +1 -1
- package/dist/cjs/types/messages/sign-payload-response.js.map +1 -1
- package/dist/cjs/types/messages/transfer-request.js.map +1 -1
- package/dist/cjs/types/messages/transfer-response.js.map +1 -1
- package/dist/cjs/types/permission-scope.js.map +1 -1
- package/dist/cjs/util/is-kusama-message.js.map +1 -1
- package/dist/esm/blockchain.d.ts +1 -1
- package/dist/esm/blockchain.js +3 -1
- package/dist/esm/blockchain.js.map +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/message-type.js.map +1 -1
- package/dist/esm/types/messages/permission-request.js.map +1 -1
- package/dist/esm/types/messages/permission-response.js.map +1 -1
- package/dist/esm/types/messages/sign-payload-request.js.map +1 -1
- package/dist/esm/types/messages/sign-payload-response.js.map +1 -1
- package/dist/esm/types/messages/transfer-request.js.map +1 -1
- package/dist/esm/types/messages/transfer-response.js.map +1 -1
- package/dist/esm/types/permission-scope.js.map +1 -1
- package/dist/esm/util/is-kusama-message.js.map +1 -1
- package/package.json +4 -5
- package/LICENCE +0 -19
- package/dist/cjs/ui/alert/alert-templates.d.ts +0 -8
- package/dist/cjs/ui/alert/alert-templates.js +0 -5
- package/dist/cjs/ui/alert/alert-templates.js.map +0 -1
- package/dist/cjs/ui/alert/wallet-lists.d.ts +0 -5
- package/dist/cjs/ui/alert/wallet-lists.js +0 -45
- package/dist/cjs/ui/alert/wallet-lists.js.map +0 -1
- package/dist/cjs/ui/toast/toast-templates.d.ts +0 -5
- package/dist/cjs/ui/toast/toast-templates.js +0 -5
- package/dist/cjs/ui/toast/toast-templates.js.map +0 -1
- package/dist/esm/ui/alert/alert-templates.d.ts +0 -8
- package/dist/esm/ui/alert/alert-templates.js +0 -2
- package/dist/esm/ui/alert/alert-templates.js.map +0 -1
- package/dist/esm/ui/alert/wallet-lists.d.ts +0 -5
- package/dist/esm/ui/alert/wallet-lists.js +0 -42
- package/dist/esm/ui/alert/wallet-lists.js.map +0 -1
- package/dist/esm/ui/toast/toast-templates.d.ts +0 -5
- package/dist/esm/ui/toast/toast-templates.js +0 -2
- package/dist/esm/ui/toast/toast-templates.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
# `@tezos-x/octez.connect-blockchain-substrate`
|
|
2
2
|
|
|
3
|
-
This package
|
|
3
|
+
This package adds support for `substrate` based blockchains. It can be used in combination with the `@tezos-x/octez.connect-dapp` or `@tezos-x/octez.connect-wallet` packages.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
This is an add-on package in the Trilitech-maintained octez.connect SDK line. Most consumers get it transitively through higher-level octez.connect packages.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
## Package provenance
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
This package is published from the Trilitech-maintained octez.connect repository:
|
|
10
|
+
[trilitech/octez.connect](https://github.com/trilitech/octez.connect)
|
|
10
11
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
import { SubstrateBlockchain } from '@tezos-x/octez.connect-blockchain-substrate'
|
|
12
|
+
- Original Beacon lineage: [airgap-it/beacon-sdk](https://github.com/airgap-it/beacon-sdk)
|
|
13
|
+
- External maintenance line Trilitech may selectively import from: [ecadlabs/beacon-sdk-taquito-patches](https://github.com/ecadlabs/beacon-sdk-taquito-patches)
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
name: 'Example DApp',
|
|
17
|
-
})
|
|
15
|
+
## Usually install instead
|
|
18
16
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
- `@tezos-x/octez.connect-sdk` for the general octez.connect SDK surface
|
|
18
|
+
- `@tezos-x/octez.connect-dapp` for dApp integrations
|
|
19
|
+
- `@tezos-x/octez.connect-wallet` for wallet integrations
|
|
20
|
+
## Notes
|
|
22
21
|
|
|
23
|
-
|
|
22
|
+
- Trilitech publishes these packages under the `@tezos-x/octez.connect-*` scope
|
|
23
|
+
- Release notes, package policy, and the current package list live in the repository README
|
package/dist/cjs/blockchain.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export declare class SubstrateBlockchain implements Blockchain {
|
|
|
10
10
|
webList: WebApp[];
|
|
11
11
|
iOSList: App[];
|
|
12
12
|
}>;
|
|
13
|
-
getAccountInfosFromPermissionResponse(permissionResponse: SubstratePermissionResponse): Promise<{
|
|
13
|
+
getAccountInfosFromPermissionResponse(permissionResponse: SubstratePermissionResponse, _peerVersion: string): Promise<{
|
|
14
14
|
accountId: string;
|
|
15
15
|
address: string;
|
|
16
16
|
publicKey: string;
|
package/dist/cjs/blockchain.js
CHANGED
|
@@ -46,7 +46,9 @@ class SubstrateBlockchain {
|
|
|
46
46
|
};
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
|
-
getAccountInfosFromPermissionResponse(permissionResponse
|
|
49
|
+
getAccountInfosFromPermissionResponse(permissionResponse,
|
|
50
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars -- required by Blockchain interface; Substrate's wire shape does not vary on peer.version.
|
|
51
|
+
_peerVersion) {
|
|
50
52
|
return __awaiter(this, void 0, void 0, function* () {
|
|
51
53
|
return permissionResponse.blockchainData.accounts.map((account) => ({
|
|
52
54
|
accountId: account.accountId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockchain.js","sourceRoot":"","sources":["../../src/blockchain.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAYA,mGAAoF;AACpF,sEAA8D;AAE9D,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,IAAA,qCAAe,EAAC,wBAAwB,CAAC,CAAA;AAElG,MAAa,mBAAmB;IAAhC;QACkB,eAAU,GAAW,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"blockchain.js","sourceRoot":"","sources":["../../src/blockchain.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAYA,mGAAoF;AACpF,sEAA8D;AAE9D,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,IAAA,qCAAe,EAAC,wBAAwB,CAAC,CAAA;AAElG,MAAa,mBAAmB;IAAhC;QACkB,eAAU,GAAW,WAAW,CAAA;IAgDlD,CAAC;IA9CO,eAAe,CAAC,KAAwB;;YAC5C,mBAAmB;YACnB,IAAI,KAAK,EAAE,CAAC;gBACV,OAAM;YACR,CAAC;QACH,CAAC;KAAA;IACK,cAAc,CAAC,KAAoB;;YACvC,mBAAmB;YACnB,IAAI,KAAK,EAAE,CAAC;gBACV,OAAM;YACR,CAAC;QACH,CAAC;KAAA;IAEK,cAAc;;YAMlB,OAAO;gBACL,aAAa,EAAE,aAAa;gBAC5B,WAAW,EAAE,WAAW;gBACxB,OAAO,EAAE,OAAO;gBAChB,OAAO,EAAE,OAAO;aACjB,CAAA;QACH,CAAC;KAAA;IAEK,qCAAqC,CACzC,kBAA+C;IAC/C,wJAAwJ;IACxJ,YAAoB;;YAQpB,OAAO,kBAAkB,CAAC,cAAc,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;gBAClE,SAAS,EAAE,OAAO,CAAC,SAAS;gBAC5B,OAAO,EAAE,OAAO,CAAC,OAAO;gBACxB,SAAS,EAAE,OAAO,CAAC,SAAS;gBAC5B,OAAO,EAAE,OAAO,CAAC,OAAc;gBAC/B,MAAM,EAAE,kBAAkB,CAAC,cAAc,CAAC,MAAa;aACxD,CAAC,CAAC,CAAA;QACL,CAAC;KAAA;CACF;AAjDD,kDAiDC","sourcesContent":["import {\n Blockchain,\n BlockchainMessage,\n ResponseInput,\n ExtensionApp,\n DesktopApp,\n WebApp,\n App,\n Network,\n PermissionScope\n} from '@tezos-x/octez.connect-types'\nimport { SubstratePermissionResponse } from './types/messages/permission-response'\nimport bundledSubstrateRegistry from '@tezos-x/octez.connect-ui/data/substrate.json'\nimport { loadWalletLists } from '@tezos-x/octez.connect-utils'\n\nconst { desktopList, extensionList, iOSList, webList } = loadWalletLists(bundledSubstrateRegistry)\n\nexport class SubstrateBlockchain implements Blockchain {\n public readonly identifier: string = 'substrate'\n\n async validateRequest(input: BlockchainMessage): Promise<void> {\n // TODO: Validation\n if (input) {\n return\n }\n }\n async handleResponse(input: ResponseInput): Promise<void> {\n // TODO: Validation\n if (input) {\n return\n }\n }\n\n async getWalletLists(): Promise<{\n extensionList: ExtensionApp[]\n desktopList: DesktopApp[]\n webList: WebApp[]\n iOSList: App[]\n }> {\n return {\n extensionList: extensionList,\n desktopList: desktopList,\n webList: webList,\n iOSList: iOSList\n }\n }\n\n async getAccountInfosFromPermissionResponse(\n permissionResponse: SubstratePermissionResponse,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars -- required by Blockchain interface; Substrate's wire shape does not vary on peer.version.\n _peerVersion: string\n ): Promise<{\n accountId: string;\n address: string;\n publicKey: string;\n network?: Network;\n scopes: PermissionScope[];\n }[]> {\n return permissionResponse.blockchainData.accounts.map((account) => ({\n accountId: account.accountId,\n address: account.address,\n publicKey: account.publicKey,\n network: account.network as any,\n scopes: permissionResponse.blockchainData.scopes as any\n }))\n }\n}\n"]}
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,2CAAkD;AAAzC,iHAAA,mBAAmB,OAAA;AAC5B,uDAAoC;AACpC,2DAAwC;AACxC,sEAAmD;AACnD,uEAAoD;AACpD,wEAAqD;AACrD,yEAAsD;AACtD,oEAAiD;AACjD,qEAAkD"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,2CAAkD;AAAzC,iHAAA,mBAAmB,OAAA;AAC5B,uDAAoC;AACpC,2DAAwC;AACxC,sEAAmD;AACnD,uEAAoD;AACpD,wEAAqD;AACrD,yEAAsD;AACtD,oEAAiD;AACjD,qEAAkD","sourcesContent":["export { SubstrateBlockchain } from './blockchain'\nexport * from './types/message-type'\nexport * from './types/permission-scope'\nexport * from './types/messages/permission-request'\nexport * from './types/messages/permission-response'\nexport * from './types/messages/sign-payload-request'\nexport * from './types/messages/sign-payload-response'\nexport * from './types/messages/transfer-request'\nexport * from './types/messages/transfer-response'\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message-type.js","sourceRoot":"","sources":["../../../src/types/message-type.ts"],"names":[],"mappings":";;;AAAA,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC9B,6DAAuC,CAAA;IACvC,qEAA+C,CAAA;AACjD,CAAC,EAHW,oBAAoB,oCAApB,oBAAoB,QAG/B"}
|
|
1
|
+
{"version":3,"file":"message-type.js","sourceRoot":"","sources":["../../../src/types/message-type.ts"],"names":[],"mappings":";;;AAAA,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC9B,6DAAuC,CAAA;IACvC,qEAA+C,CAAA;AACjD,CAAC,EAHW,oBAAoB,oCAApB,oBAAoB,QAG/B","sourcesContent":["export enum SubstrateMessageType {\n 'transfer_request' = 'transfer_request',\n 'sign_payload_request' = 'sign_payload_request'\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permission-request.js","sourceRoot":"","sources":["../../../../src/types/messages/permission-request.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"permission-request.js","sourceRoot":"","sources":["../../../../src/types/messages/permission-request.ts"],"names":[],"mappings":"","sourcesContent":["import { AppMetadata, PermissionRequestV3 } from '@tezos-x/octez.connect-types'\nimport { SubstratePermissionScope } from '../permission-scope'\n\nexport interface SubstratePermissionRequest extends PermissionRequestV3<'substrate'> {\n blockchainData: {\n scopes: SubstratePermissionScope[] // enum\n appMetadata: AppMetadata\n network?: {\n genesisHash: string // Wallet shows only those accounts\n rpc?: string // For development nodes?\n }[] // Array to \"whitelist\" certain networks? (optional)\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permission-response.js","sourceRoot":"","sources":["../../../../src/types/messages/permission-response.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"permission-response.js","sourceRoot":"","sources":["../../../../src/types/messages/permission-response.ts"],"names":[],"mappings":"","sourcesContent":["import { AppMetadata, PermissionResponseV3 } from '@tezos-x/octez.connect-types'\nimport { SubstratePermissionScope } from '../permission-scope'\n\nexport interface SubstratePermissionResponse extends PermissionResponseV3<'substrate'> {\n blockchainData: {\n appMetadata: AppMetadata\n scopes: SubstratePermissionScope[] // enum\n accounts: {\n accountId: string\n network?: {\n genesisHash: string\n rpc?: string\n }\n publicKey: string\n address: string\n }[]\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sign-payload-request.js","sourceRoot":"","sources":["../../../../src/types/messages/sign-payload-request.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"sign-payload-request.js","sourceRoot":"","sources":["../../../../src/types/messages/sign-payload-request.ts"],"names":[],"mappings":"","sourcesContent":["import { BlockchainMessage } from '@tezos-x/octez.connect-types'\nimport { SubstrateMessageType } from '../message-type'\nimport { SubstratePermissionScope } from '../permission-scope'\n\nexport interface SubstrateSignPayloadRequest extends BlockchainMessage<'substrate'> {\n blockchainData: {\n type: SubstrateMessageType.sign_payload_request\n scope: SubstratePermissionScope.sign_payload_json | SubstratePermissionScope.sign_payload_json\n\n // This type is the same as the \"SignerPayloadJSON\" of polkadot.js https://github.com/polkadot-js/api/blob/f169ca08a80ea9c3865dc545e03e921c50f0d284/packages/types/src/types/extrinsic.ts#L32\n payload:\n | {\n type: 'json'\n\n /**\n * @description The checkpoint hash of the block, in hex\n */\n blockHash: string\n\n /**\n * @description The checkpoint block number, in hex\n */\n blockNumber: string\n\n /**\n * @description The era for this transaction, in hex\n */\n era: string\n\n /**\n * @description The genesis hash of the chain, in hex\n */\n genesisHash: string\n\n /**\n * @description The encoded method (with arguments) in hex\n */\n method: string\n\n /**\n * @description The nonce for this transaction, in hex\n */\n nonce: string\n\n /**\n * @description The current spec version for the runtime\n */\n specVersion: string\n\n /**\n * @description The tip for this transaction, in hex\n */\n tip: string\n\n /**\n * @description The current transaction version for the runtime\n */\n transactionVersion: string\n\n /**\n * @description The applicable signed extensions for this runtime\n */\n signedExtensions: string[]\n\n /**\n * @description The version of the extrinsic we are dealing with\n */\n version: number\n }\n | {\n type: 'raw'\n isMutable: boolean\n dataType: 'bytes' | 'payload'\n data: string\n }\n\n mode: 'submit' | 'submit-and-return' | 'return'\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sign-payload-response.js","sourceRoot":"","sources":["../../../../src/types/messages/sign-payload-response.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"sign-payload-response.js","sourceRoot":"","sources":["../../../../src/types/messages/sign-payload-response.ts"],"names":[],"mappings":"","sourcesContent":["export type SubstrateSignPayloadResponse =\n | {\n transactionHash: string\n }\n | {\n transactionHash: string\n signature: string\n payload?: string\n }\n | {\n signature: string\n payload?: string\n }\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transfer-request.js","sourceRoot":"","sources":["../../../../src/types/messages/transfer-request.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"transfer-request.js","sourceRoot":"","sources":["../../../../src/types/messages/transfer-request.ts"],"names":[],"mappings":"","sourcesContent":["import { BlockchainMessage } from '@tezos-x/octez.connect-types'\nimport { SubstrateMessageType } from '../message-type'\nimport { SubstratePermissionScope } from '../permission-scope'\n\nexport interface SubstrateTransferRequest extends BlockchainMessage<'substrate'> {\n blockchainData: {\n type: SubstrateMessageType.transfer_request\n scope: SubstratePermissionScope.transfer\n sourceAddress: string\n amount: string\n recipient: string\n network: {\n genesisHash: string\n rpc?: string\n }\n mode: 'submit' | 'submit-and-return' | 'return' // TODO: Wording\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transfer-response.js","sourceRoot":"","sources":["../../../../src/types/messages/transfer-response.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"transfer-response.js","sourceRoot":"","sources":["../../../../src/types/messages/transfer-response.ts"],"names":[],"mappings":"","sourcesContent":["export type SubstrateTransferResponse =\n | {\n transactionHash: string\n }\n | {\n transactionHash: string\n signature: string\n payload?: string\n }\n | {\n signature: string\n payload?: string\n }\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permission-scope.js","sourceRoot":"","sources":["../../../src/types/permission-scope.ts"],"names":[],"mappings":";;;AAAA,IAAY,wBAIX;AAJD,WAAY,wBAAwB;IAClC,iDAAuB,CAAA;IACvB,mEAAyC,CAAA;IACzC,iEAAuC,CAAA;AACzC,CAAC,EAJW,wBAAwB,wCAAxB,wBAAwB,QAInC"}
|
|
1
|
+
{"version":3,"file":"permission-scope.js","sourceRoot":"","sources":["../../../src/types/permission-scope.ts"],"names":[],"mappings":";;;AAAA,IAAY,wBAIX;AAJD,WAAY,wBAAwB;IAClC,iDAAuB,CAAA;IACvB,mEAAyC,CAAA;IACzC,iEAAuC,CAAA;AACzC,CAAC,EAJW,wBAAwB,wCAAxB,wBAAwB,QAInC","sourcesContent":["export enum SubstratePermissionScope {\n 'transfer' = 'transfer',\n 'sign_payload_json' = 'sign_payload_json',\n 'sign_payload_raw' = 'sign_payload_raw'\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-kusama-message.js","sourceRoot":"","sources":["../../../src/util/is-kusama-message.ts"],"names":[],"mappings":";AAAA,wEAAwE;AAExE,+EAA+E"}
|
|
1
|
+
{"version":3,"file":"is-kusama-message.js","sourceRoot":"","sources":["../../../src/util/is-kusama-message.ts"],"names":[],"mappings":";AAAA,wEAAwE;AAExE,+EAA+E","sourcesContent":["// import { NewPermissionRequest } from 'src/messages/operation-request'\n\n// export const isKusamaMessage = (request: NewPermissionRequest<string>) => {}\n"]}
|
package/dist/esm/blockchain.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export declare class SubstrateBlockchain implements Blockchain {
|
|
|
10
10
|
webList: WebApp[];
|
|
11
11
|
iOSList: App[];
|
|
12
12
|
}>;
|
|
13
|
-
getAccountInfosFromPermissionResponse(permissionResponse: SubstratePermissionResponse): Promise<{
|
|
13
|
+
getAccountInfosFromPermissionResponse(permissionResponse: SubstratePermissionResponse, _peerVersion: string): Promise<{
|
|
14
14
|
accountId: string;
|
|
15
15
|
address: string;
|
|
16
16
|
publicKey: string;
|
package/dist/esm/blockchain.js
CHANGED
|
@@ -23,7 +23,9 @@ export class SubstrateBlockchain {
|
|
|
23
23
|
iOSList: iOSList
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
|
-
async getAccountInfosFromPermissionResponse(permissionResponse
|
|
26
|
+
async getAccountInfosFromPermissionResponse(permissionResponse,
|
|
27
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars -- required by Blockchain interface; Substrate's wire shape does not vary on peer.version.
|
|
28
|
+
_peerVersion) {
|
|
27
29
|
return permissionResponse.blockchainData.accounts.map((account) => ({
|
|
28
30
|
accountId: account.accountId,
|
|
29
31
|
address: account.address,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockchain.js","sourceRoot":"","sources":["../../src/blockchain.ts"],"names":[],"mappings":"AAYA,OAAO,wBAAwB,MAAM,+CAA+C,CAAA;AACpF,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AAE9D,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,eAAe,CAAC,wBAAwB,CAAC,CAAA;AAElG,MAAM,OAAO,mBAAmB;IACd,UAAU,GAAW,WAAW,CAAA;IAEhD,KAAK,CAAC,eAAe,CAAC,KAAwB;QAC5C,mBAAmB;QACnB,IAAI,KAAK,EAAE,CAAC;YACV,OAAM;QACR,CAAC;IACH,CAAC;IACD,KAAK,CAAC,cAAc,CAAC,KAAoB;QACvC,mBAAmB;QACnB,IAAI,KAAK,EAAE,CAAC;YACV,OAAM;QACR,CAAC;IACH,CAAC;IAED,KAAK,CAAC,cAAc;QAMlB,OAAO;YACL,aAAa,EAAE,aAAa;YAC5B,WAAW,EAAE,WAAW;YACxB,OAAO,EAAE,OAAO;YAChB,OAAO,EAAE,OAAO;SACjB,CAAA;IACH,CAAC;IAED,KAAK,CAAC,qCAAqC,CACzC,kBAA+C;
|
|
1
|
+
{"version":3,"file":"blockchain.js","sourceRoot":"","sources":["../../src/blockchain.ts"],"names":[],"mappings":"AAYA,OAAO,wBAAwB,MAAM,+CAA+C,CAAA;AACpF,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AAE9D,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,eAAe,CAAC,wBAAwB,CAAC,CAAA;AAElG,MAAM,OAAO,mBAAmB;IACd,UAAU,GAAW,WAAW,CAAA;IAEhD,KAAK,CAAC,eAAe,CAAC,KAAwB;QAC5C,mBAAmB;QACnB,IAAI,KAAK,EAAE,CAAC;YACV,OAAM;QACR,CAAC;IACH,CAAC;IACD,KAAK,CAAC,cAAc,CAAC,KAAoB;QACvC,mBAAmB;QACnB,IAAI,KAAK,EAAE,CAAC;YACV,OAAM;QACR,CAAC;IACH,CAAC;IAED,KAAK,CAAC,cAAc;QAMlB,OAAO;YACL,aAAa,EAAE,aAAa;YAC5B,WAAW,EAAE,WAAW;YACxB,OAAO,EAAE,OAAO;YAChB,OAAO,EAAE,OAAO;SACjB,CAAA;IACH,CAAC;IAED,KAAK,CAAC,qCAAqC,CACzC,kBAA+C;IAC/C,wJAAwJ;IACxJ,YAAoB;QAQpB,OAAO,kBAAkB,CAAC,cAAc,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;YAClE,SAAS,EAAE,OAAO,CAAC,SAAS;YAC5B,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,SAAS,EAAE,OAAO,CAAC,SAAS;YAC5B,OAAO,EAAE,OAAO,CAAC,OAAc;YAC/B,MAAM,EAAE,kBAAkB,CAAC,cAAc,CAAC,MAAa;SACxD,CAAC,CAAC,CAAA;IACL,CAAC;CACF","sourcesContent":["import {\n Blockchain,\n BlockchainMessage,\n ResponseInput,\n ExtensionApp,\n DesktopApp,\n WebApp,\n App,\n Network,\n PermissionScope\n} from '@tezos-x/octez.connect-types'\nimport { SubstratePermissionResponse } from './types/messages/permission-response'\nimport bundledSubstrateRegistry from '@tezos-x/octez.connect-ui/data/substrate.json'\nimport { loadWalletLists } from '@tezos-x/octez.connect-utils'\n\nconst { desktopList, extensionList, iOSList, webList } = loadWalletLists(bundledSubstrateRegistry)\n\nexport class SubstrateBlockchain implements Blockchain {\n public readonly identifier: string = 'substrate'\n\n async validateRequest(input: BlockchainMessage): Promise<void> {\n // TODO: Validation\n if (input) {\n return\n }\n }\n async handleResponse(input: ResponseInput): Promise<void> {\n // TODO: Validation\n if (input) {\n return\n }\n }\n\n async getWalletLists(): Promise<{\n extensionList: ExtensionApp[]\n desktopList: DesktopApp[]\n webList: WebApp[]\n iOSList: App[]\n }> {\n return {\n extensionList: extensionList,\n desktopList: desktopList,\n webList: webList,\n iOSList: iOSList\n }\n }\n\n async getAccountInfosFromPermissionResponse(\n permissionResponse: SubstratePermissionResponse,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars -- required by Blockchain interface; Substrate's wire shape does not vary on peer.version.\n _peerVersion: string\n ): Promise<{\n accountId: string;\n address: string;\n publicKey: string;\n network?: Network;\n scopes: PermissionScope[];\n }[]> {\n return permissionResponse.blockchainData.accounts.map((account) => ({\n accountId: account.accountId,\n address: account.address,\n publicKey: account.publicKey,\n network: account.network as any,\n scopes: permissionResponse.blockchainData.scopes as any\n }))\n }\n}\n"]}
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAA;AAClD,cAAc,sBAAsB,CAAA;AACpC,cAAc,0BAA0B,CAAA;AACxC,cAAc,qCAAqC,CAAA;AACnD,cAAc,sCAAsC,CAAA;AACpD,cAAc,uCAAuC,CAAA;AACrD,cAAc,wCAAwC,CAAA;AACtD,cAAc,mCAAmC,CAAA;AACjD,cAAc,oCAAoC,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAA;AAClD,cAAc,sBAAsB,CAAA;AACpC,cAAc,0BAA0B,CAAA;AACxC,cAAc,qCAAqC,CAAA;AACnD,cAAc,sCAAsC,CAAA;AACpD,cAAc,uCAAuC,CAAA;AACrD,cAAc,wCAAwC,CAAA;AACtD,cAAc,mCAAmC,CAAA;AACjD,cAAc,oCAAoC,CAAA","sourcesContent":["export { SubstrateBlockchain } from './blockchain'\nexport * from './types/message-type'\nexport * from './types/permission-scope'\nexport * from './types/messages/permission-request'\nexport * from './types/messages/permission-response'\nexport * from './types/messages/sign-payload-request'\nexport * from './types/messages/sign-payload-response'\nexport * from './types/messages/transfer-request'\nexport * from './types/messages/transfer-response'\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message-type.js","sourceRoot":"","sources":["../../../src/types/message-type.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC9B,6DAAuC,CAAA;IACvC,qEAA+C,CAAA;AACjD,CAAC,EAHW,oBAAoB,KAApB,oBAAoB,QAG/B"}
|
|
1
|
+
{"version":3,"file":"message-type.js","sourceRoot":"","sources":["../../../src/types/message-type.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC9B,6DAAuC,CAAA;IACvC,qEAA+C,CAAA;AACjD,CAAC,EAHW,oBAAoB,KAApB,oBAAoB,QAG/B","sourcesContent":["export enum SubstrateMessageType {\n 'transfer_request' = 'transfer_request',\n 'sign_payload_request' = 'sign_payload_request'\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permission-request.js","sourceRoot":"","sources":["../../../../src/types/messages/permission-request.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"permission-request.js","sourceRoot":"","sources":["../../../../src/types/messages/permission-request.ts"],"names":[],"mappings":"","sourcesContent":["import { AppMetadata, PermissionRequestV3 } from '@tezos-x/octez.connect-types'\nimport { SubstratePermissionScope } from '../permission-scope'\n\nexport interface SubstratePermissionRequest extends PermissionRequestV3<'substrate'> {\n blockchainData: {\n scopes: SubstratePermissionScope[] // enum\n appMetadata: AppMetadata\n network?: {\n genesisHash: string // Wallet shows only those accounts\n rpc?: string // For development nodes?\n }[] // Array to \"whitelist\" certain networks? (optional)\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permission-response.js","sourceRoot":"","sources":["../../../../src/types/messages/permission-response.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"permission-response.js","sourceRoot":"","sources":["../../../../src/types/messages/permission-response.ts"],"names":[],"mappings":"","sourcesContent":["import { AppMetadata, PermissionResponseV3 } from '@tezos-x/octez.connect-types'\nimport { SubstratePermissionScope } from '../permission-scope'\n\nexport interface SubstratePermissionResponse extends PermissionResponseV3<'substrate'> {\n blockchainData: {\n appMetadata: AppMetadata\n scopes: SubstratePermissionScope[] // enum\n accounts: {\n accountId: string\n network?: {\n genesisHash: string\n rpc?: string\n }\n publicKey: string\n address: string\n }[]\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sign-payload-request.js","sourceRoot":"","sources":["../../../../src/types/messages/sign-payload-request.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"sign-payload-request.js","sourceRoot":"","sources":["../../../../src/types/messages/sign-payload-request.ts"],"names":[],"mappings":"","sourcesContent":["import { BlockchainMessage } from '@tezos-x/octez.connect-types'\nimport { SubstrateMessageType } from '../message-type'\nimport { SubstratePermissionScope } from '../permission-scope'\n\nexport interface SubstrateSignPayloadRequest extends BlockchainMessage<'substrate'> {\n blockchainData: {\n type: SubstrateMessageType.sign_payload_request\n scope: SubstratePermissionScope.sign_payload_json | SubstratePermissionScope.sign_payload_json\n\n // This type is the same as the \"SignerPayloadJSON\" of polkadot.js https://github.com/polkadot-js/api/blob/f169ca08a80ea9c3865dc545e03e921c50f0d284/packages/types/src/types/extrinsic.ts#L32\n payload:\n | {\n type: 'json'\n\n /**\n * @description The checkpoint hash of the block, in hex\n */\n blockHash: string\n\n /**\n * @description The checkpoint block number, in hex\n */\n blockNumber: string\n\n /**\n * @description The era for this transaction, in hex\n */\n era: string\n\n /**\n * @description The genesis hash of the chain, in hex\n */\n genesisHash: string\n\n /**\n * @description The encoded method (with arguments) in hex\n */\n method: string\n\n /**\n * @description The nonce for this transaction, in hex\n */\n nonce: string\n\n /**\n * @description The current spec version for the runtime\n */\n specVersion: string\n\n /**\n * @description The tip for this transaction, in hex\n */\n tip: string\n\n /**\n * @description The current transaction version for the runtime\n */\n transactionVersion: string\n\n /**\n * @description The applicable signed extensions for this runtime\n */\n signedExtensions: string[]\n\n /**\n * @description The version of the extrinsic we are dealing with\n */\n version: number\n }\n | {\n type: 'raw'\n isMutable: boolean\n dataType: 'bytes' | 'payload'\n data: string\n }\n\n mode: 'submit' | 'submit-and-return' | 'return'\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sign-payload-response.js","sourceRoot":"","sources":["../../../../src/types/messages/sign-payload-response.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"sign-payload-response.js","sourceRoot":"","sources":["../../../../src/types/messages/sign-payload-response.ts"],"names":[],"mappings":"","sourcesContent":["export type SubstrateSignPayloadResponse =\n | {\n transactionHash: string\n }\n | {\n transactionHash: string\n signature: string\n payload?: string\n }\n | {\n signature: string\n payload?: string\n }\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transfer-request.js","sourceRoot":"","sources":["../../../../src/types/messages/transfer-request.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"transfer-request.js","sourceRoot":"","sources":["../../../../src/types/messages/transfer-request.ts"],"names":[],"mappings":"","sourcesContent":["import { BlockchainMessage } from '@tezos-x/octez.connect-types'\nimport { SubstrateMessageType } from '../message-type'\nimport { SubstratePermissionScope } from '../permission-scope'\n\nexport interface SubstrateTransferRequest extends BlockchainMessage<'substrate'> {\n blockchainData: {\n type: SubstrateMessageType.transfer_request\n scope: SubstratePermissionScope.transfer\n sourceAddress: string\n amount: string\n recipient: string\n network: {\n genesisHash: string\n rpc?: string\n }\n mode: 'submit' | 'submit-and-return' | 'return' // TODO: Wording\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transfer-response.js","sourceRoot":"","sources":["../../../../src/types/messages/transfer-response.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"transfer-response.js","sourceRoot":"","sources":["../../../../src/types/messages/transfer-response.ts"],"names":[],"mappings":"","sourcesContent":["export type SubstrateTransferResponse =\n | {\n transactionHash: string\n }\n | {\n transactionHash: string\n signature: string\n payload?: string\n }\n | {\n signature: string\n payload?: string\n }\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permission-scope.js","sourceRoot":"","sources":["../../../src/types/permission-scope.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,wBAIX;AAJD,WAAY,wBAAwB;IAClC,iDAAuB,CAAA;IACvB,mEAAyC,CAAA;IACzC,iEAAuC,CAAA;AACzC,CAAC,EAJW,wBAAwB,KAAxB,wBAAwB,QAInC"}
|
|
1
|
+
{"version":3,"file":"permission-scope.js","sourceRoot":"","sources":["../../../src/types/permission-scope.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,wBAIX;AAJD,WAAY,wBAAwB;IAClC,iDAAuB,CAAA;IACvB,mEAAyC,CAAA;IACzC,iEAAuC,CAAA;AACzC,CAAC,EAJW,wBAAwB,KAAxB,wBAAwB,QAInC","sourcesContent":["export enum SubstratePermissionScope {\n 'transfer' = 'transfer',\n 'sign_payload_json' = 'sign_payload_json',\n 'sign_payload_raw' = 'sign_payload_raw'\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-kusama-message.js","sourceRoot":"","sources":["../../../src/util/is-kusama-message.ts"],"names":[],"mappings":";AAAA,wEAAwE;AAExE,+EAA+E"}
|
|
1
|
+
{"version":3,"file":"is-kusama-message.js","sourceRoot":"","sources":["../../../src/util/is-kusama-message.ts"],"names":[],"mappings":";AAAA,wEAAwE;AAExE,+EAA+E","sourcesContent":["// import { NewPermissionRequest } from 'src/messages/operation-request'\n\n// export const isKusamaMessage = (request: NewPermissionRequest<string>) => {}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tezos-x/octez.connect-blockchain-substrate",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.7",
|
|
4
4
|
"description": "This package adds support for `substrate` based blockchains. It can be used in combination with the `@tezos-x/octez.connect-dapp` or `@tezos-x/octez.connect-wallet` packages.",
|
|
5
5
|
"author": "Blockchain Infra <blockchain.infra@trili.tech>",
|
|
6
6
|
"homepage": "https://octez-connect.tezos.com",
|
|
@@ -33,8 +33,7 @@
|
|
|
33
33
|
"url": "https://github.com/trilitech/octez.connect/issues"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@tezos-x/octez.connect-types": "5.0.0-beta.
|
|
37
|
-
"@tezos-x/octez.connect-ui": "5.0.0-beta.
|
|
38
|
-
}
|
|
39
|
-
"gitHead": "703ee5e3ef152e5e56ac56bce3e0869cd374e31f"
|
|
36
|
+
"@tezos-x/octez.connect-types": "5.0.0-beta.7",
|
|
37
|
+
"@tezos-x/octez.connect-ui": "5.0.0-beta.7"
|
|
38
|
+
}
|
|
40
39
|
}
|
package/LICENCE
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
Copyright (c) 2021 Papers AG
|
|
2
|
-
|
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
5
|
-
in the Software without restriction, including without limitation the rights
|
|
6
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
8
|
-
furnished to do so, subject to the following conditions:
|
|
9
|
-
|
|
10
|
-
The above copyright notice and this permission notice shall be included in all
|
|
11
|
-
copies or substantial portions of the Software.
|
|
12
|
-
|
|
13
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
14
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
15
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
16
|
-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
17
|
-
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
18
|
-
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
|
|
19
|
-
OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.alertTemplates = void 0;
|
|
4
|
-
exports.alertTemplates = { "default": { "css": ":host {\n --animation-duration: 300ms;\n all: initial;\n}\n\n@keyframes fadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n\n@keyframes fadeOut {\n from {\n opacity: 1;\n }\n to {\n opacity: 0;\n }\n}\n\n.animated {\n animation-duration: var(--animation-duration);\n animation-fill-mode: both;\n}\n\n.fadeIn {\n animation-name: fadeIn;\n}\n\n.fadeOut {\n animation-name: fadeOut;\n}\n\n.beacon-modal__wrapper {\n position: relative;\n top: 0;\n display: inline-block;\n z-index: 2147483000;\n max-width: 500px;\n width: 80%;\n padding: 24px;\n}\n\n.theme__light .beacon-modal__base,\n.theme__light .beacon-modal__close__wrapper {\n background: #fff;\n}\n\n.theme__dark .beacon-modal__base,\n.theme__dark .beacon-modal__close__wrapper {\n background: #27334c;\n}\n\n.beacon-modal__base,\n.beacon-modal__close__wrapper {\n box-shadow: 0 12px 24px 0 rgba(0, 0, 0, 0.1);\n}\n\n.beacon-modal__base {\n margin: 0 auto;\n border-radius: 32px;\n overflow: hidden;\n}\n\n.beacon-modal__header {\n padding: 16px 0;\n width: 100%;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n}\n\n.beacon-modal__headerLogo {\n width: 100%;\n max-width: 320px;\n margin: 20px auto;\n height: 100%;\n}\n\na,\nbutton {\n cursor: pointer;\n}\n\n.beacon-modal__close__wrapper {\n position: absolute;\n top: 44px;\n right: 24px;\n z-index: 10000;\n cursor: pointer;\n border-radius: 100%;\n}\n\n.beacon-modal__close__icon {\n width: 16px;\n height: 16px;\n position: relative;\n top: 0;\n right: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n transform: rotate(45deg);\n margin: 8px;\n}\n\n.beacon-modal__close__line1 {\n position: absolute;\n width: 90%;\n}\n\n.beacon-modal__close__line2 {\n position: absolute;\n width: 90%;\n transform: rotate(90deg);\n}\n\n.theme__light .beacon-modal__close__line2,\n.theme__light .beacon-modal__close__line1 {\n border: 1px solid #000;\n}\n\n.theme__dark .beacon-modal__close__line2,\n.theme__dark .beacon-modal__close__line1 {\n border: 1px solid #fff;\n}\n\n.beacon-alert__base {\n position: fixed;\n overflow-y: scroll;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 2147482999;\n background-color: rgb(17 17 17 / 0.84);\n text-align: center;\n -ms-overflow-style: none;\n scrollbar-width: none;\n font-family: Roboto, Helvetica, sans-serif;\n}\n\n.beacon-alert__base::-webkit-scrollbar {\n display: none;\n}\n\n.beacon-alert__title {\n text-align: center;\n}\n\n.beacon-alert__text,\n.beacon-alert__title {\n margin: 0 auto;\n padding: 0 0 24px;\n}\n\n.margin__bottom {\n margin-bottom: 16px;\n}\n\n.beacon-alert__title {\n font-size: 18px;\n}\n\n.theme__light .beacon-alert__title {\n color: #3b3d40;\n}\n\n.theme__dark .beacon-alert__title,\n.theme__dark .beacon-alert__text {\n color: #7c99d6;\n}\n\n.beacon-alert__text {\n color: #000;\n font-size: 14px;\n}\n\n.beacon-modal__button,\n.beacon-modal__button--outline {\n height: 36px;\n font-size: 14px;\n letter-spacing: 0.84px;\n margin-bottom: 4px;\n margin-inline-end: 2px;\n margin-inline-start: 2px;\n margin-left: 2px;\n margin-right: 2px;\n margin-top: 4px;\n padding-inline-end: 15.4px;\n padding-inline-start: 15.4px;\n padding-left: 15.4px;\n padding-right: 15.4px;\n overflow-wrap: break-word;\n pointer-events: auto;\n text-align: center;\n border-radius: 4px;\n border: 2px solid #3880ff;\n}\n\n.beacon-modal__button {\n background: #3880ff;\n color: #fff;\n}\n\n.beacon-modal__button--outline {\n background: #fff;\n color: #444444;\n border: 1px solid #444444;\n}\n\n.beacon-alert__image {\n width: 200px;\n height: 200px;\n box-sizing: border-box;\n box-shadow: 0 10px 20px 0 rgba(17, 17, 17, 0.12);\n border: 1px solid rgba(17, 17, 17, 0.04);\n border-radius: 16px;\n}\n.connect__btn {\n margin: 24px 0;\n width: 100%;\n}\n\n#beacon-modal__content {\n padding: 24px;\n}\n\n#beacon-switch {\n margin-top: 24px;\n}\n\n#beacon-title {\n margin: 0 0 24px;\n}\n\na {\n text-decoration: none;\n}\n\npre {\n white-space: pre-wrap; /* css-3 */\n white-space: -moz-pre-wrap; /* Mozilla, since 1999 */\n white-space: -pre-wrap; /* Opera 4-6 */\n white-space: -o-pre-wrap; /* Opera 7 */\n word-wrap: break-word; /* Internet Explorer 5.5+ */\n padding: 16px;\n background: #ececec;\n line-height: 1.25rem;\n}\n" }, "pair": { "css": "#beacon-main-text {\n display: initial;\n}\n.beacon-selection__container {\n padding: 16px 16px 0;\n}\n.beacon-selection__list {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n text-decoration: none;\n padding-bottom: 12px;\n align-items: center;\n}\n.beacon-list__title {\n text-align: left;\n font-size: 12px;\n}\n.beacon-list__wrapper:nth-child(-n + 3) {\n padding: 0 0 1rem;\n}\n.theme__light .beacon-list__title {\n color: #7c828b;\n}\n.theme__dark .beacon-list__title,\n.theme__dark #beacon--disclaimer {\n color: #7c99d6;\n}\n\n.beacon-selection__name {\n font-size: 1rem;\n font-weight: 600;\n text-align: left;\n}\n.theme__light .beacon-selection__name,\n.theme__light .beacon--selection__name__lg {\n color: #3b3d40;\n}\n.theme__dark .beacon-selection__name,\n.theme__dark .beacon--selection__name__lg {\n color: #6183ff;\n}\n.beacon-selection__img {\n width: 48px;\n height: 48px;\n box-shadow: 0 4px 12px 0 rgba(17, 17, 17, 0.24);\n border-radius: 16px;\n background-color: #fff;\n}\n.beacon--selection__name__lg {\n font-size: 1.5rem;\n font-weight: 600;\n text-align: center;\n padding: 1rem 0;\n}\n.beacon--selected__container {\n padding: 2rem 0 0;\n}\n#beacon--qr__copy__container {\n height: 0;\n}\n#beacon--qr__copy {\n display: none;\n position: relative;\n margin-top: auto;\n margin-left: auto;\n margin-right: auto;\n}\n#beacon--qr__container {\n margin-left: auto;\n margin-right: auto;\n}\n#beacon--qr__container:hover #beacon--qr__copy {\n display: block;\n}\n\n.disabled p {\n text-align: left;\n margin: 0;\n font-size: 10px;\n font-weight: 300;\n opacity: 0.48;\n}\n\n#beacon--disclaimer {\n text-align: left;\n padding-top: 24px;\n font-size: 0.875rem;\n}\n.progress-line,\n.progress-line:before {\n height: 3px;\n width: -webkit-fill-available;\n margin-left: -24px;\n margin-right: -24px;\n}\n.progress-line {\n background-color: #a7c4f7;\n display: -webkit-flex;\n display: flex;\n}\n.progress-line:before {\n background-color: #3880ff;\n content: '';\n -webkit-animation: running-progress 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n animation: running-progress 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n}\n@-webkit-keyframes running-progress {\n 0% {\n margin-left: 0px;\n margin-right: 100%;\n }\n 50% {\n margin-left: 25%;\n margin-right: 0%;\n }\n 100% {\n margin-left: 100%;\n margin-right: 0;\n }\n}\n@keyframes running-progress {\n 0% {\n margin-left: 0px;\n margin-right: 100%;\n }\n 50% {\n margin-left: 25%;\n margin-right: 0%;\n }\n 100% {\n margin-left: 100%;\n margin-right: 0;\n }\n}\n" } };
|
|
5
|
-
//# sourceMappingURL=alert-templates.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"alert-templates.js","sourceRoot":"","sources":["../../../../src/ui/alert/alert-templates.ts"],"names":[],"mappings":";;;AAAa,QAAA,cAAc,GAAG,EAAC,SAAS,EAAC,EAAC,KAAK,EAAC,40IAA40I,EAAC,EAAC,MAAM,EAAC,EAAC,KAAK,EAAC,2mFAA2mF,EAAC,EAAC,CAAA"}
|