@ceramicnetwork/stream-caip10-link 1.2.8 → 2.0.0-alpha.1
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 +10 -2
- package/lib/caip10-link.d.ts +3 -3
- package/lib/caip10-link.d.ts.map +1 -1
- package/lib/caip10-link.js +15 -17
- package/lib/caip10-link.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -13
- package/lib/index.js.map +1 -1
- package/package.json +18 -13
- package/CHANGELOG.md +0 -1365
package/README.md
CHANGED
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
# Ceramic Account Link stream type
|
|
2
|
+

|
|
3
|
+
[](https://lbesson.mit-license.org/)
|
|
4
|
+
[](https://discord.gg/6VRZpGP)
|
|
5
|
+
[](https://twitter.com/ceramicnetwork)
|
|
2
6
|
|
|
3
7
|
> This package contains the Caip-10 Link stream implementation.
|
|
4
8
|
|
|
5
|
-
|
|
9
|
+
## Installation
|
|
6
10
|
```shell
|
|
7
11
|
npm install @ceramicnetwork/stream-caip10-link
|
|
8
12
|
```
|
|
9
13
|
|
|
14
|
+
## Usage
|
|
15
|
+
|
|
16
|
+
See the [ceramic developer site](https://developers.ceramic.network/) for more details about how to use this package.
|
|
17
|
+
|
|
10
18
|
## Contributing
|
|
11
19
|
We are happy to accept small and large contributions. Make sure to check out the [Ceramic specifications](https://github.com/ceramicnetwork/specs) for details of how the protocol works.
|
|
12
20
|
|
|
13
21
|
## License
|
|
14
22
|
|
|
15
|
-
Apache-2.0 or MIT
|
|
23
|
+
Apache-2.0 or MIT
|
package/lib/caip10-link.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { CeramicApi, CreateOpts, Stream, LoadOpts, UpdateOpts, RawCommit, GenesisCommit } from '@ceramicnetwork/common';
|
|
2
2
|
import type { AuthProvider, LinkProof } from '@ceramicnetwork/blockchain-utils-linking';
|
|
3
3
|
import { CommitID, StreamID } from '@ceramicnetwork/streamid';
|
|
4
|
-
import {
|
|
4
|
+
import { AccountId } from 'caip';
|
|
5
5
|
import type { DID } from 'dids';
|
|
6
6
|
export declare class Caip10Link extends Stream {
|
|
7
7
|
static STREAM_TYPE_NAME: string;
|
|
8
8
|
static STREAM_TYPE_ID: number;
|
|
9
9
|
private _isReadOnly;
|
|
10
10
|
get did(): string | null;
|
|
11
|
-
static fromAccount(ceramic: CeramicApi, accountId: string |
|
|
11
|
+
static fromAccount(ceramic: CeramicApi, accountId: string | AccountId, opts?: CreateOpts | LoadOpts): Promise<Caip10Link>;
|
|
12
12
|
static fromGenesis(ceramic: CeramicApi, genesisCommit: GenesisCommit, opts?: CreateOpts | LoadOpts): Promise<Caip10Link>;
|
|
13
13
|
setDid(did: string | DID, authProvider: AuthProvider, opts?: UpdateOpts): Promise<void>;
|
|
14
14
|
setDidProof(proof: LinkProof, opts?: UpdateOpts): Promise<void>;
|
|
15
15
|
clearDid(authProvider: AuthProvider, opts?: UpdateOpts): Promise<void>;
|
|
16
16
|
static load(ceramic: CeramicApi, streamId: StreamID | CommitID | string, opts?: LoadOpts): Promise<Caip10Link>;
|
|
17
|
-
static makeGenesis(accountId:
|
|
17
|
+
static makeGenesis(accountId: AccountId): GenesisCommit;
|
|
18
18
|
makeCommit(proof: LinkProof): RawCommit;
|
|
19
19
|
makeReadOnly(): void;
|
|
20
20
|
get isReadOnly(): boolean;
|
package/lib/caip10-link.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"caip10-link.d.ts","sourceRoot":"","sources":["../src/caip10-link.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,UAAU,EACV,MAAM,EAIN,QAAQ,EACR,UAAU,EACV,SAAS,EACT,aAAa,EACd,MAAM,wBAAwB,CAAA;AAC/B,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAA;AACvF,OAAO,EAAE,Q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O,CAAC,IAAI,CAAC;IAcnE,QAAQ,CAAC,YAAY,EAAE,YAAY,EAAE,IAAI,GAAE,UAAe,GAAG,OAAO,CAAC,IAAI,CAAC;WAYnE,IAAI,CACf,OAAO,EAAE,UAAU,EACnB,QAAQ,EAAE,QAAQ,GAAG,QAAQ,GAAG,MAAM,EACtC,IAAI,GAAE,QAAa,GAClB,OAAO,CAAC,UAAU,CAAC;IAiBtB,MAAM,CAAC,WAAW,CAAC,SAAS,EAAE,SAAS,GAAG,aAAa;IAsBvD,UAAU,CAAC,KAAK,EAAE,SAAS,GAAG,SAAS;IAQvC,YAAY;IAOZ,IAAI,UAAU,IAAI,OAAO,CAExB;CACF"}
|
package/lib/caip10-link.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -6,19 +5,17 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
6
|
};
|
|
8
7
|
var Caip10Link_1;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const caip_1 = require("caip");
|
|
14
|
-
const did_resolver_1 = require("did-resolver");
|
|
8
|
+
import { Stream, StreamStatic, SyncOptions, } from '@ceramicnetwork/common';
|
|
9
|
+
import { StreamRef } from '@ceramicnetwork/streamid';
|
|
10
|
+
import { parse } from 'did-resolver';
|
|
11
|
+
import { normalizeAccountId } from '@ceramicnetwork/common';
|
|
15
12
|
const throwReadOnlyError = () => {
|
|
16
13
|
throw new Error('Historical stream commits cannot be modified. Load the stream without specifying a commit to make updates.');
|
|
17
14
|
};
|
|
18
|
-
const DEFAULT_CREATE_OPTS = { anchor: false, publish: true, sync:
|
|
15
|
+
const DEFAULT_CREATE_OPTS = { anchor: false, publish: true, sync: SyncOptions.PREFER_CACHE };
|
|
19
16
|
const DEFAULT_UPDATE_OPTS = { anchor: true, publish: true, throwOnInvalidCommit: true };
|
|
20
|
-
const DEFAULT_LOAD_OPTS = { sync:
|
|
21
|
-
let Caip10Link = Caip10Link_1 = class Caip10Link extends
|
|
17
|
+
const DEFAULT_LOAD_OPTS = { sync: SyncOptions.PREFER_CACHE };
|
|
18
|
+
let Caip10Link = Caip10Link_1 = class Caip10Link extends Stream {
|
|
22
19
|
constructor() {
|
|
23
20
|
super(...arguments);
|
|
24
21
|
this._isReadOnly = false;
|
|
@@ -28,7 +25,7 @@ let Caip10Link = Caip10Link_1 = class Caip10Link extends common_1.Stream {
|
|
|
28
25
|
}
|
|
29
26
|
static async fromAccount(ceramic, accountId, opts = {}) {
|
|
30
27
|
opts = { ...DEFAULT_CREATE_OPTS, ...opts };
|
|
31
|
-
const normalizedAccountId =
|
|
28
|
+
const normalizedAccountId = normalizeAccountId(accountId);
|
|
32
29
|
const genesisCommit = Caip10Link_1.makeGenesis(normalizedAccountId);
|
|
33
30
|
return Caip10Link_1.fromGenesis(ceramic, genesisCommit, opts);
|
|
34
31
|
}
|
|
@@ -39,8 +36,8 @@ let Caip10Link = Caip10Link_1 = class Caip10Link extends common_1.Stream {
|
|
|
39
36
|
async setDid(did, authProvider, opts = {}) {
|
|
40
37
|
opts = { ...DEFAULT_UPDATE_OPTS, ...opts };
|
|
41
38
|
const didStr = typeof did == 'string' ? did.trim() : did.id;
|
|
42
|
-
const parsedDid =
|
|
43
|
-
if (
|
|
39
|
+
const parsedDid = parse(didStr);
|
|
40
|
+
if (parsedDid?.did !== didStr) {
|
|
44
41
|
throw new Error(`DID is not valid: '${didStr}'`);
|
|
45
42
|
}
|
|
46
43
|
const linkProof = await authProvider.createLink(didStr);
|
|
@@ -59,7 +56,7 @@ let Caip10Link = Caip10Link_1 = class Caip10Link extends common_1.Stream {
|
|
|
59
56
|
}
|
|
60
57
|
static async load(ceramic, streamId, opts = {}) {
|
|
61
58
|
opts = { ...DEFAULT_LOAD_OPTS, ...opts };
|
|
62
|
-
const streamRef =
|
|
59
|
+
const streamRef = StreamRef.from(streamId);
|
|
63
60
|
if (streamRef.type != Caip10Link_1.STREAM_TYPE_ID) {
|
|
64
61
|
throw new Error(`StreamID ${streamRef.toString()} does not refer to a '${Caip10Link_1.STREAM_TYPE_NAME}' stream, but to a ${streamRef.typeName}`);
|
|
65
62
|
}
|
|
@@ -69,9 +66,10 @@ let Caip10Link = Caip10Link_1 = class Caip10Link extends common_1.Stream {
|
|
|
69
66
|
if (accountId.chainId.namespace === 'eip155') {
|
|
70
67
|
accountId.address = accountId.address.toLowerCase();
|
|
71
68
|
}
|
|
69
|
+
const legacyAccountId = `${accountId.address}@${accountId.chainId.toString()}`;
|
|
72
70
|
return {
|
|
73
71
|
header: {
|
|
74
|
-
controllers: [
|
|
72
|
+
controllers: [legacyAccountId],
|
|
75
73
|
family: `caip10-${accountId.chainId.toString()}`,
|
|
76
74
|
},
|
|
77
75
|
};
|
|
@@ -92,7 +90,7 @@ let Caip10Link = Caip10Link_1 = class Caip10Link extends common_1.Stream {
|
|
|
92
90
|
Caip10Link.STREAM_TYPE_NAME = 'caip10-link';
|
|
93
91
|
Caip10Link.STREAM_TYPE_ID = 1;
|
|
94
92
|
Caip10Link = Caip10Link_1 = __decorate([
|
|
95
|
-
|
|
93
|
+
StreamStatic()
|
|
96
94
|
], Caip10Link);
|
|
97
|
-
|
|
95
|
+
export { Caip10Link };
|
|
98
96
|
//# sourceMappingURL=caip10-link.js.map
|
package/lib/caip10-link.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"caip10-link.js","sourceRoot":"","sources":["../src/caip10-link.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"caip10-link.js","sourceRoot":"","sources":["../src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C;IAMD,UAAU,CAAC,KAAgB;QACzB,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,GAAG,EAAE,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,CAAA;IAChE,CAAC;IAMD,YAAY;QACV,IAAI,CAAC,WAAW,GAAG,kBAAkB,CAAA;QACrC,IAAI,CAAC,MAAM,GAAG,kBAAkB,CAAA;QAChC,IAAI,CAAC,IAAI,GAAG,kBAAkB,CAAA;QAC9B,IAAI,CAAC,WAAW,GAAG,IAAI,CAAA;IACzB,CAAC;IAED,IAAI,UAAU;QACZ,OAAO,IAAI,CAAC,WAAW,CAAA;IACzB,CAAC;CACF,CAAA;AA5KQ,2BAAgB,GAAG,aAAa,CAAA;AAChC,yBAAc,GAAG,CAAC,CAAA;AAFd,UAAU;IADtB,YAAY,EAAiC;GACjC,UAAU,CA6KtB;SA7KY,UAAU"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './caip10-link';
|
|
1
|
+
export * from './caip10-link.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA"}
|
package/lib/index.js
CHANGED
|
@@ -1,14 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
-
};
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
__exportStar(require("./caip10-link"), exports);
|
|
1
|
+
export * from './caip10-link.js';
|
|
14
2
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ceramicnetwork/stream-caip10-link",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-alpha.1",
|
|
4
4
|
"description": "Ceramic AccountLink stream type",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ceramic",
|
|
@@ -10,32 +10,37 @@
|
|
|
10
10
|
"author": "Janko Simonovic <simonovic86@gmail.com>",
|
|
11
11
|
"homepage": "",
|
|
12
12
|
"license": "(Apache-2.0 OR MIT)",
|
|
13
|
-
"main": "lib/index.js",
|
|
14
|
-
"types": "lib/index.d.ts",
|
|
13
|
+
"main": "./lib/index.js",
|
|
14
|
+
"types": "./lib/index.d.ts",
|
|
15
|
+
"type": "module",
|
|
15
16
|
"directories": {
|
|
16
|
-
"lib": "lib"
|
|
17
|
+
"lib": "./lib"
|
|
17
18
|
},
|
|
18
19
|
"files": [
|
|
19
20
|
"lib"
|
|
20
21
|
],
|
|
22
|
+
"exports": {
|
|
23
|
+
".": "./lib/index.js"
|
|
24
|
+
},
|
|
25
|
+
"sideEffects": false,
|
|
21
26
|
"scripts": {
|
|
22
27
|
"test": "exit 0",
|
|
23
|
-
"build": "../../node_modules/.bin/tsc
|
|
28
|
+
"build": "../../node_modules/.bin/tsc --project tsconfig.json",
|
|
24
29
|
"prepublishOnly": "npm run build",
|
|
25
30
|
"prebuild": "npm run clean",
|
|
26
31
|
"lint": "../../node_modules/.bin/eslint ./src --ext .js,.jsx,.ts,.tsx",
|
|
27
32
|
"clean": "rm -rf ./lib"
|
|
28
33
|
},
|
|
29
34
|
"dependencies": {
|
|
30
|
-
"@ceramicnetwork/common": "^
|
|
31
|
-
"@ceramicnetwork/streamid": "^
|
|
32
|
-
"caip": "~0.
|
|
33
|
-
"did-resolver": "^3.1.
|
|
35
|
+
"@ceramicnetwork/common": "^2.0.0-alpha.1",
|
|
36
|
+
"@ceramicnetwork/streamid": "^2.0.0-alpha.1",
|
|
37
|
+
"caip": "~1.0.0",
|
|
38
|
+
"did-resolver": "^3.1.5"
|
|
34
39
|
},
|
|
35
40
|
"devDependencies": {
|
|
36
|
-
"@ceramicnetwork/blockchain-utils-linking": "^
|
|
37
|
-
"@types/node": "^
|
|
38
|
-
"dids": "^
|
|
41
|
+
"@ceramicnetwork/blockchain-utils-linking": "^2.0.0-alpha.1",
|
|
42
|
+
"@types/node": "^17.0.5",
|
|
43
|
+
"dids": "^3.0.0-alpha.4"
|
|
39
44
|
},
|
|
40
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "fb9c06e9cdce755eede1a2563ce62f8083e4e06a"
|
|
41
46
|
}
|