@story-protocol/core-sdk 0.1.0-rc.1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +0 -0
- package/dist/declarations/src/abi/generated/CollectModule.d.ts +70 -0
- package/dist/declarations/src/abi/generated/CollectModule.d.ts.map +1 -0
- package/dist/declarations/src/abi/generated/FranchiseRegistry.d.ts +73 -0
- package/dist/declarations/src/abi/generated/FranchiseRegistry.d.ts.map +1 -0
- package/dist/declarations/src/abi/generated/IpAssetRegistry.d.ts +94 -0
- package/dist/declarations/src/abi/generated/IpAssetRegistry.d.ts.map +1 -0
- package/dist/declarations/src/abi/generated/LicensingModule.d.ts +97 -0
- package/dist/declarations/src/abi/generated/LicensingModule.d.ts.map +1 -0
- package/dist/declarations/src/abi/generated/RelationshipModule.d.ts +116 -0
- package/dist/declarations/src/abi/generated/RelationshipModule.d.ts.map +1 -0
- package/dist/declarations/src/abi/generated/common.d.ts +22 -0
- package/dist/declarations/src/abi/generated/common.d.ts.map +1 -0
- package/dist/declarations/src/abi/generated/factories/CollectModule__factory.d.ts +52 -0
- package/dist/declarations/src/abi/generated/factories/CollectModule__factory.d.ts.map +1 -0
- package/dist/declarations/src/abi/generated/factories/FranchiseRegistry__factory.d.ts +58 -0
- package/dist/declarations/src/abi/generated/factories/FranchiseRegistry__factory.d.ts.map +1 -0
- package/dist/declarations/src/abi/generated/factories/IpAssetRegistry__factory.d.ts +112 -0
- package/dist/declarations/src/abi/generated/factories/IpAssetRegistry__factory.d.ts.map +1 -0
- package/dist/declarations/src/abi/generated/factories/LicensingModule__factory.d.ts +88 -0
- package/dist/declarations/src/abi/generated/factories/LicensingModule__factory.d.ts.map +1 -0
- package/dist/declarations/src/abi/generated/factories/RelationshipModule__factory.d.ts +175 -0
- package/dist/declarations/src/abi/generated/factories/RelationshipModule__factory.d.ts.map +1 -0
- package/dist/declarations/src/abi/generated/factories/index.d.ts +6 -0
- package/dist/declarations/src/abi/generated/factories/index.d.ts.map +1 -0
- package/dist/declarations/src/abi/generated/index.d.ts +12 -0
- package/dist/declarations/src/abi/generated/index.d.ts.map +1 -0
- package/dist/declarations/src/client.d.ts +67 -0
- package/dist/declarations/src/client.d.ts.map +1 -0
- package/dist/declarations/src/enums/environment.d.ts +8 -0
- package/dist/declarations/src/enums/environment.d.ts.map +1 -0
- package/dist/declarations/src/enums/ipAssetType.d.ts +13 -0
- package/dist/declarations/src/enums/ipAssetType.d.ts.map +1 -0
- package/dist/declarations/src/index.d.ts +5 -0
- package/dist/declarations/src/index.d.ts.map +1 -0
- package/dist/declarations/src/interfaces/config.d.ts +12 -0
- package/dist/declarations/src/interfaces/config.d.ts.map +1 -0
- package/dist/declarations/src/interfaces/resources/collect.d.ts +45 -0
- package/dist/declarations/src/interfaces/resources/collect.d.ts.map +1 -0
- package/dist/declarations/src/interfaces/resources/franchise.d.ts +70 -0
- package/dist/declarations/src/interfaces/resources/franchise.d.ts.map +1 -0
- package/dist/declarations/src/interfaces/resources/ipAsset.d.ts +70 -0
- package/dist/declarations/src/interfaces/resources/ipAsset.d.ts.map +1 -0
- package/dist/declarations/src/interfaces/resources/license.d.ts +78 -0
- package/dist/declarations/src/interfaces/resources/license.d.ts.map +1 -0
- package/dist/declarations/src/interfaces/resources/relationship.d.ts +83 -0
- package/dist/declarations/src/interfaces/resources/relationship.d.ts.map +1 -0
- package/dist/declarations/src/interfaces/resources/transaction.d.ts +46 -0
- package/dist/declarations/src/interfaces/resources/transaction.d.ts.map +1 -0
- package/dist/declarations/src/resources/collect.d.ts +24 -0
- package/dist/declarations/src/resources/collect.d.ts.map +1 -0
- package/dist/declarations/src/resources/franchise.d.ts +41 -0
- package/dist/declarations/src/resources/franchise.d.ts.map +1 -0
- package/dist/declarations/src/resources/ipAsset.d.ts +40 -0
- package/dist/declarations/src/resources/ipAsset.d.ts.map +1 -0
- package/dist/declarations/src/resources/license.d.ts +36 -0
- package/dist/declarations/src/resources/license.d.ts.map +1 -0
- package/dist/declarations/src/resources/relationship.d.ts +48 -0
- package/dist/declarations/src/resources/relationship.d.ts.map +1 -0
- package/dist/declarations/src/resources/transaction.d.ts +25 -0
- package/dist/declarations/src/resources/transaction.d.ts.map +1 -0
- package/dist/story-protocol-core-sdk.cjs.d.ts +2 -0
- package/dist/story-protocol-core-sdk.cjs.d.ts.map +1 -0
- package/dist/story-protocol-core-sdk.cjs.dev.js +2101 -0
- package/dist/story-protocol-core-sdk.cjs.js +7 -0
- package/dist/story-protocol-core-sdk.cjs.prod.js +2101 -0
- package/dist/story-protocol-core-sdk.esm.js +2073 -0
- package/package.json +88 -0
@@ -0,0 +1,58 @@
|
|
1
|
+
import { Signer } from "ethers";
|
2
|
+
import type { Provider } from "@ethersproject/providers";
|
3
|
+
import type { FranchiseRegistry, FranchiseRegistryInterface } from "../FranchiseRegistry.js";
|
4
|
+
export declare class FranchiseRegistry__factory {
|
5
|
+
static readonly abi: readonly [{
|
6
|
+
readonly inputs: readonly [{
|
7
|
+
readonly components: readonly [{
|
8
|
+
readonly internalType: "string";
|
9
|
+
readonly name: "name";
|
10
|
+
readonly type: "string";
|
11
|
+
}, {
|
12
|
+
readonly internalType: "string";
|
13
|
+
readonly name: "symbol";
|
14
|
+
readonly type: "string";
|
15
|
+
}, {
|
16
|
+
readonly internalType: "string";
|
17
|
+
readonly name: "description";
|
18
|
+
readonly type: "string";
|
19
|
+
}, {
|
20
|
+
readonly internalType: "string";
|
21
|
+
readonly name: "tokenURI";
|
22
|
+
readonly type: "string";
|
23
|
+
}];
|
24
|
+
readonly internalType: "struct FranchiseRegistry.FranchiseCreationParams";
|
25
|
+
readonly name: "params";
|
26
|
+
readonly type: "tuple";
|
27
|
+
}];
|
28
|
+
readonly name: "registerFranchise";
|
29
|
+
readonly outputs: readonly [{
|
30
|
+
readonly internalType: "uint256";
|
31
|
+
readonly name: "";
|
32
|
+
readonly type: "uint256";
|
33
|
+
}, {
|
34
|
+
readonly internalType: "address";
|
35
|
+
readonly name: "";
|
36
|
+
readonly type: "address";
|
37
|
+
}];
|
38
|
+
readonly stateMutability: "nonpayable";
|
39
|
+
readonly type: "function";
|
40
|
+
}, {
|
41
|
+
readonly inputs: readonly [{
|
42
|
+
readonly internalType: "uint256";
|
43
|
+
readonly name: "franchiseId";
|
44
|
+
readonly type: "uint256";
|
45
|
+
}];
|
46
|
+
readonly name: "ipAssetRegistryForId";
|
47
|
+
readonly outputs: readonly [{
|
48
|
+
readonly internalType: "address";
|
49
|
+
readonly name: "";
|
50
|
+
readonly type: "address";
|
51
|
+
}];
|
52
|
+
readonly stateMutability: "view";
|
53
|
+
readonly type: "function";
|
54
|
+
}];
|
55
|
+
static createInterface(): FranchiseRegistryInterface;
|
56
|
+
static connect(address: string, signerOrProvider: Signer | Provider): FranchiseRegistry;
|
57
|
+
}
|
58
|
+
//# sourceMappingURL=FranchiseRegistry__factory.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"FranchiseRegistry__factory.d.ts","sourceRoot":"../../../../../../src/abi/generated/factories","sources":["FranchiseRegistry__factory.ts"],"names":[],"mappings":"AAIA,OAAO,EAAY,MAAM,EAAS,MAAM,QAAQ,CAAC;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,0BAA0B,EAAE,gCAA6B;AAsE1F,qBAAa,0BAA0B;IACrC,MAAM,CAAC,QAAQ,CAAC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAQ;IAC3B,MAAM,CAAC,eAAe,IAAI,0BAA0B;IAGpD,MAAM,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,GAAG,QAAQ,GAAG,iBAAiB;CAGxF"}
|
@@ -0,0 +1,112 @@
|
|
1
|
+
import { Signer } from "ethers";
|
2
|
+
import type { Provider } from "@ethersproject/providers";
|
3
|
+
import type { IpAssetRegistry, IpAssetRegistryInterface } from "../IpAssetRegistry.js";
|
4
|
+
export declare class IpAssetRegistry__factory {
|
5
|
+
static readonly abi: readonly [{
|
6
|
+
readonly inputs: readonly [{
|
7
|
+
readonly internalType: "enum IPAsset";
|
8
|
+
readonly name: "ipAssetType";
|
9
|
+
readonly type: "uint8";
|
10
|
+
}, {
|
11
|
+
readonly internalType: "string";
|
12
|
+
readonly name: "name";
|
13
|
+
readonly type: "string";
|
14
|
+
}, {
|
15
|
+
readonly internalType: "string";
|
16
|
+
readonly name: "_description";
|
17
|
+
readonly type: "string";
|
18
|
+
}, {
|
19
|
+
readonly internalType: "string";
|
20
|
+
readonly name: "mediaUrl";
|
21
|
+
readonly type: "string";
|
22
|
+
}, {
|
23
|
+
readonly internalType: "address";
|
24
|
+
readonly name: "to";
|
25
|
+
readonly type: "address";
|
26
|
+
}, {
|
27
|
+
readonly internalType: "uint256";
|
28
|
+
readonly name: "parentIpAssetId";
|
29
|
+
readonly type: "uint256";
|
30
|
+
}];
|
31
|
+
readonly name: "createIPAsset";
|
32
|
+
readonly outputs: readonly [{
|
33
|
+
readonly internalType: "uint256";
|
34
|
+
readonly name: "";
|
35
|
+
readonly type: "uint256";
|
36
|
+
}];
|
37
|
+
readonly stateMutability: "nonpayable";
|
38
|
+
readonly type: "function";
|
39
|
+
}, {
|
40
|
+
readonly inputs: readonly [{
|
41
|
+
readonly internalType: "uint256";
|
42
|
+
readonly name: "_tokenId";
|
43
|
+
readonly type: "uint256";
|
44
|
+
}, {
|
45
|
+
readonly internalType: "uint256";
|
46
|
+
readonly name: "_parentLicenseId";
|
47
|
+
readonly type: "uint256";
|
48
|
+
}, {
|
49
|
+
readonly internalType: "address";
|
50
|
+
readonly name: "_licenseHolder";
|
51
|
+
readonly type: "address";
|
52
|
+
}, {
|
53
|
+
readonly internalType: "string";
|
54
|
+
readonly name: "_uri";
|
55
|
+
readonly type: "string";
|
56
|
+
}, {
|
57
|
+
readonly internalType: "address";
|
58
|
+
readonly name: "_revoker";
|
59
|
+
readonly type: "address";
|
60
|
+
}, {
|
61
|
+
readonly internalType: "bool";
|
62
|
+
readonly name: "_commercial";
|
63
|
+
readonly type: "bool";
|
64
|
+
}, {
|
65
|
+
readonly internalType: "bool";
|
66
|
+
readonly name: "_canSublicense";
|
67
|
+
readonly type: "bool";
|
68
|
+
}, {
|
69
|
+
readonly components: readonly [{
|
70
|
+
readonly internalType: "contract ITermsProcessor";
|
71
|
+
readonly name: "processor";
|
72
|
+
readonly type: "address";
|
73
|
+
}, {
|
74
|
+
readonly internalType: "bytes";
|
75
|
+
readonly name: "data";
|
76
|
+
readonly type: "bytes";
|
77
|
+
}];
|
78
|
+
readonly internalType: "struct IERC5218.TermsProcessorConfig";
|
79
|
+
readonly name: "_terms";
|
80
|
+
readonly type: "tuple";
|
81
|
+
}];
|
82
|
+
readonly name: "createLicense";
|
83
|
+
readonly outputs: readonly [{
|
84
|
+
readonly internalType: "uint256";
|
85
|
+
readonly name: "";
|
86
|
+
readonly type: "uint256";
|
87
|
+
}];
|
88
|
+
readonly stateMutability: "nonpayable";
|
89
|
+
readonly type: "function";
|
90
|
+
}, {
|
91
|
+
readonly inputs: readonly [{
|
92
|
+
readonly internalType: "uint256";
|
93
|
+
readonly name: "_tokenId";
|
94
|
+
readonly type: "uint256";
|
95
|
+
}, {
|
96
|
+
readonly internalType: "bool";
|
97
|
+
readonly name: "_commercial";
|
98
|
+
readonly type: "bool";
|
99
|
+
}];
|
100
|
+
readonly name: "getLicenseIdByTokenId";
|
101
|
+
readonly outputs: readonly [{
|
102
|
+
readonly internalType: "uint256";
|
103
|
+
readonly name: "";
|
104
|
+
readonly type: "uint256";
|
105
|
+
}];
|
106
|
+
readonly stateMutability: "view";
|
107
|
+
readonly type: "function";
|
108
|
+
}];
|
109
|
+
static createInterface(): IpAssetRegistryInterface;
|
110
|
+
static connect(address: string, signerOrProvider: Signer | Provider): IpAssetRegistry;
|
111
|
+
}
|
112
|
+
//# sourceMappingURL=IpAssetRegistry__factory.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"IpAssetRegistry__factory.d.ts","sourceRoot":"../../../../../../src/abi/generated/factories","sources":["IpAssetRegistry__factory.ts"],"names":[],"mappings":"AAIA,OAAO,EAAY,MAAM,EAAS,MAAM,QAAQ,CAAC;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,EAAE,eAAe,EAAE,wBAAwB,EAAE,8BAA2B;AA2IpF,qBAAa,wBAAwB;IACnC,MAAM,CAAC,QAAQ,CAAC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAQ;IAC3B,MAAM,CAAC,eAAe,IAAI,wBAAwB;IAGlD,MAAM,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,GAAG,QAAQ,GAAG,eAAe;CAGtF"}
|
@@ -0,0 +1,88 @@
|
|
1
|
+
import { Signer } from "ethers";
|
2
|
+
import type { Provider } from "@ethersproject/providers";
|
3
|
+
import type { LicensingModule, LicensingModuleInterface } from "../LicensingModule.js";
|
4
|
+
export declare class LicensingModule__factory {
|
5
|
+
static readonly abi: readonly [{
|
6
|
+
readonly inputs: readonly [{
|
7
|
+
readonly internalType: "uint256";
|
8
|
+
readonly name: "franchiseId";
|
9
|
+
readonly type: "uint256";
|
10
|
+
}, {
|
11
|
+
readonly components: readonly [{
|
12
|
+
readonly components: readonly [{
|
13
|
+
readonly internalType: "bool";
|
14
|
+
readonly name: "canSublicense";
|
15
|
+
readonly type: "bool";
|
16
|
+
}, {
|
17
|
+
readonly internalType: "uint256";
|
18
|
+
readonly name: "franchiseRootLicenseId";
|
19
|
+
readonly type: "uint256";
|
20
|
+
}];
|
21
|
+
readonly internalType: "struct ILicensingModule.IpAssetConfig";
|
22
|
+
readonly name: "nonCommercialConfig";
|
23
|
+
readonly type: "tuple";
|
24
|
+
}, {
|
25
|
+
readonly components: readonly [{
|
26
|
+
readonly internalType: "contract ITermsProcessor";
|
27
|
+
readonly name: "processor";
|
28
|
+
readonly type: "address";
|
29
|
+
}, {
|
30
|
+
readonly internalType: "bytes";
|
31
|
+
readonly name: "data";
|
32
|
+
readonly type: "bytes";
|
33
|
+
}];
|
34
|
+
readonly internalType: "struct IERC5218.TermsProcessorConfig";
|
35
|
+
readonly name: "nonCommercialTerms";
|
36
|
+
readonly type: "tuple";
|
37
|
+
}, {
|
38
|
+
readonly components: readonly [{
|
39
|
+
readonly internalType: "bool";
|
40
|
+
readonly name: "canSublicense";
|
41
|
+
readonly type: "bool";
|
42
|
+
}, {
|
43
|
+
readonly internalType: "uint256";
|
44
|
+
readonly name: "franchiseRootLicenseId";
|
45
|
+
readonly type: "uint256";
|
46
|
+
}];
|
47
|
+
readonly internalType: "struct ILicensingModule.IpAssetConfig";
|
48
|
+
readonly name: "commercialConfig";
|
49
|
+
readonly type: "tuple";
|
50
|
+
}, {
|
51
|
+
readonly components: readonly [{
|
52
|
+
readonly internalType: "contract ITermsProcessor";
|
53
|
+
readonly name: "processor";
|
54
|
+
readonly type: "address";
|
55
|
+
}, {
|
56
|
+
readonly internalType: "bytes";
|
57
|
+
readonly name: "data";
|
58
|
+
readonly type: "bytes";
|
59
|
+
}];
|
60
|
+
readonly internalType: "struct IERC5218.TermsProcessorConfig";
|
61
|
+
readonly name: "commercialTerms";
|
62
|
+
readonly type: "tuple";
|
63
|
+
}, {
|
64
|
+
readonly internalType: "bool";
|
65
|
+
readonly name: "rootIpAssetHasCommercialRights";
|
66
|
+
readonly type: "bool";
|
67
|
+
}, {
|
68
|
+
readonly internalType: "address";
|
69
|
+
readonly name: "revoker";
|
70
|
+
readonly type: "address";
|
71
|
+
}, {
|
72
|
+
readonly internalType: "string";
|
73
|
+
readonly name: "commercialLicenseUri";
|
74
|
+
readonly type: "string";
|
75
|
+
}];
|
76
|
+
readonly internalType: "struct ILicensingModule.FranchiseConfig";
|
77
|
+
readonly name: "config";
|
78
|
+
readonly type: "tuple";
|
79
|
+
}];
|
80
|
+
readonly name: "configureFranchiseLicensing";
|
81
|
+
readonly outputs: readonly [];
|
82
|
+
readonly stateMutability: "nonpayable";
|
83
|
+
readonly type: "function";
|
84
|
+
}];
|
85
|
+
static createInterface(): LicensingModuleInterface;
|
86
|
+
static connect(address: string, signerOrProvider: Signer | Provider): LicensingModule;
|
87
|
+
}
|
88
|
+
//# sourceMappingURL=LicensingModule__factory.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"LicensingModule__factory.d.ts","sourceRoot":"../../../../../../src/abi/generated/factories","sources":["LicensingModule__factory.ts"],"names":[],"mappings":"AAIA,OAAO,EAAY,MAAM,EAAS,MAAM,QAAQ,CAAC;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,EACV,eAAe,EACf,wBAAwB,EACzB,8BAA2B;AA4G5B,qBAAa,wBAAwB;IACnC,MAAM,CAAC,QAAQ,CAAC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAQ;IAC3B,MAAM,CAAC,eAAe,IAAI,wBAAwB;IAGlD,MAAM,CAAC,OAAO,CACZ,OAAO,EAAE,MAAM,EACf,gBAAgB,EAAE,MAAM,GAAG,QAAQ,GAClC,eAAe;CAGnB"}
|
@@ -0,0 +1,175 @@
|
|
1
|
+
import { Signer } from "ethers";
|
2
|
+
import type { Provider } from "@ethersproject/providers";
|
3
|
+
import type { RelationshipModule, RelationshipModuleInterface } from "../RelationshipModule.js";
|
4
|
+
export declare class RelationshipModule__factory {
|
5
|
+
static readonly abi: readonly [{
|
6
|
+
readonly inputs: readonly [{
|
7
|
+
readonly components: readonly [{
|
8
|
+
readonly internalType: "address";
|
9
|
+
readonly name: "sourceContract";
|
10
|
+
readonly type: "address";
|
11
|
+
}, {
|
12
|
+
readonly internalType: "uint256";
|
13
|
+
readonly name: "sourceId";
|
14
|
+
readonly type: "uint256";
|
15
|
+
}, {
|
16
|
+
readonly internalType: "address";
|
17
|
+
readonly name: "destContract";
|
18
|
+
readonly type: "address";
|
19
|
+
}, {
|
20
|
+
readonly internalType: "uint256";
|
21
|
+
readonly name: "destId";
|
22
|
+
readonly type: "uint256";
|
23
|
+
}, {
|
24
|
+
readonly internalType: "bytes32";
|
25
|
+
readonly name: "relationshipId";
|
26
|
+
readonly type: "bytes32";
|
27
|
+
}, {
|
28
|
+
readonly internalType: "uint256";
|
29
|
+
readonly name: "ttl";
|
30
|
+
readonly type: "uint256";
|
31
|
+
}];
|
32
|
+
readonly internalType: "struct IRelationshipModule.RelationshipParams";
|
33
|
+
readonly name: "params";
|
34
|
+
readonly type: "tuple";
|
35
|
+
}, {
|
36
|
+
readonly internalType: "bytes";
|
37
|
+
readonly name: "data";
|
38
|
+
readonly type: "bytes";
|
39
|
+
}];
|
40
|
+
readonly name: "relate";
|
41
|
+
readonly outputs: readonly [];
|
42
|
+
readonly stateMutability: "nonpayable";
|
43
|
+
readonly type: "function";
|
44
|
+
}, {
|
45
|
+
readonly inputs: readonly [{
|
46
|
+
readonly components: readonly [{
|
47
|
+
readonly internalType: "address";
|
48
|
+
readonly name: "sourceContract";
|
49
|
+
readonly type: "address";
|
50
|
+
}, {
|
51
|
+
readonly internalType: "uint256";
|
52
|
+
readonly name: "sourceId";
|
53
|
+
readonly type: "uint256";
|
54
|
+
}, {
|
55
|
+
readonly internalType: "address";
|
56
|
+
readonly name: "destContract";
|
57
|
+
readonly type: "address";
|
58
|
+
}, {
|
59
|
+
readonly internalType: "uint256";
|
60
|
+
readonly name: "destId";
|
61
|
+
readonly type: "uint256";
|
62
|
+
}, {
|
63
|
+
readonly internalType: "bytes32";
|
64
|
+
readonly name: "relationshipId";
|
65
|
+
readonly type: "bytes32";
|
66
|
+
}, {
|
67
|
+
readonly internalType: "uint256";
|
68
|
+
readonly name: "ttl";
|
69
|
+
readonly type: "uint256";
|
70
|
+
}];
|
71
|
+
readonly internalType: "struct IRelationshipModule.RelationshipParams";
|
72
|
+
readonly name: "params";
|
73
|
+
readonly type: "tuple";
|
74
|
+
}];
|
75
|
+
readonly name: "unrelate";
|
76
|
+
readonly outputs: readonly [];
|
77
|
+
readonly stateMutability: "nonpayable";
|
78
|
+
readonly type: "function";
|
79
|
+
}, {
|
80
|
+
readonly inputs: readonly [{
|
81
|
+
readonly components: readonly [{
|
82
|
+
readonly internalType: "address";
|
83
|
+
readonly name: "sourceContract";
|
84
|
+
readonly type: "address";
|
85
|
+
}, {
|
86
|
+
readonly internalType: "uint256";
|
87
|
+
readonly name: "sourceId";
|
88
|
+
readonly type: "uint256";
|
89
|
+
}, {
|
90
|
+
readonly internalType: "address";
|
91
|
+
readonly name: "destContract";
|
92
|
+
readonly type: "address";
|
93
|
+
}, {
|
94
|
+
readonly internalType: "uint256";
|
95
|
+
readonly name: "destId";
|
96
|
+
readonly type: "uint256";
|
97
|
+
}, {
|
98
|
+
readonly internalType: "bytes32";
|
99
|
+
readonly name: "relationshipId";
|
100
|
+
readonly type: "bytes32";
|
101
|
+
}, {
|
102
|
+
readonly internalType: "uint256";
|
103
|
+
readonly name: "ttl";
|
104
|
+
readonly type: "uint256";
|
105
|
+
}];
|
106
|
+
readonly internalType: "struct IRelationshipModule.RelationshipParams";
|
107
|
+
readonly name: "params";
|
108
|
+
readonly type: "tuple";
|
109
|
+
}];
|
110
|
+
readonly name: "isRelationshipExpired";
|
111
|
+
readonly outputs: readonly [{
|
112
|
+
readonly internalType: "bool";
|
113
|
+
readonly name: "";
|
114
|
+
readonly type: "bool";
|
115
|
+
}];
|
116
|
+
readonly stateMutability: "view";
|
117
|
+
readonly type: "function";
|
118
|
+
}, {
|
119
|
+
readonly inputs: readonly [{
|
120
|
+
readonly components: readonly [{
|
121
|
+
readonly internalType: "address";
|
122
|
+
readonly name: "sourceContract";
|
123
|
+
readonly type: "address";
|
124
|
+
}, {
|
125
|
+
readonly internalType: "uint256";
|
126
|
+
readonly name: "sourceId";
|
127
|
+
readonly type: "uint256";
|
128
|
+
}, {
|
129
|
+
readonly internalType: "address";
|
130
|
+
readonly name: "destContract";
|
131
|
+
readonly type: "address";
|
132
|
+
}, {
|
133
|
+
readonly internalType: "uint256";
|
134
|
+
readonly name: "destId";
|
135
|
+
readonly type: "uint256";
|
136
|
+
}, {
|
137
|
+
readonly internalType: "bytes32";
|
138
|
+
readonly name: "relationshipId";
|
139
|
+
readonly type: "bytes32";
|
140
|
+
}, {
|
141
|
+
readonly internalType: "uint256";
|
142
|
+
readonly name: "ttl";
|
143
|
+
readonly type: "uint256";
|
144
|
+
}];
|
145
|
+
readonly internalType: "struct IRelationshipModule.RelationshipParams";
|
146
|
+
readonly name: "params";
|
147
|
+
readonly type: "tuple";
|
148
|
+
}];
|
149
|
+
readonly name: "areTheyRelated";
|
150
|
+
readonly outputs: readonly [{
|
151
|
+
readonly internalType: "bool";
|
152
|
+
readonly name: "";
|
153
|
+
readonly type: "bool";
|
154
|
+
}];
|
155
|
+
readonly stateMutability: "view";
|
156
|
+
readonly type: "function";
|
157
|
+
}, {
|
158
|
+
readonly inputs: readonly [{
|
159
|
+
readonly internalType: "string";
|
160
|
+
readonly name: "name";
|
161
|
+
readonly type: "string";
|
162
|
+
}];
|
163
|
+
readonly name: "getRelationshipId";
|
164
|
+
readonly outputs: readonly [{
|
165
|
+
readonly internalType: "bytes32";
|
166
|
+
readonly name: "";
|
167
|
+
readonly type: "bytes32";
|
168
|
+
}];
|
169
|
+
readonly stateMutability: "pure";
|
170
|
+
readonly type: "function";
|
171
|
+
}];
|
172
|
+
static createInterface(): RelationshipModuleInterface;
|
173
|
+
static connect(address: string, signerOrProvider: Signer | Provider): RelationshipModule;
|
174
|
+
}
|
175
|
+
//# sourceMappingURL=RelationshipModule__factory.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"RelationshipModule__factory.d.ts","sourceRoot":"../../../../../../src/abi/generated/factories","sources":["RelationshipModule__factory.ts"],"names":[],"mappings":"AAIA,OAAO,EAAY,MAAM,EAAS,MAAM,QAAQ,CAAC;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,EACV,kBAAkB,EAClB,2BAA2B,EAC5B,iCAA8B;AA6N/B,qBAAa,2BAA2B;IACtC,MAAM,CAAC,QAAQ,CAAC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAQ;IAC3B,MAAM,CAAC,eAAe,IAAI,2BAA2B;IAGrD,MAAM,CAAC,OAAO,CACZ,OAAO,EAAE,MAAM,EACf,gBAAgB,EAAE,MAAM,GAAG,QAAQ,GAClC,kBAAkB;CAGtB"}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
export { LicensingModule__factory } from "./LicensingModule__factory.js";
|
2
|
+
export { FranchiseRegistry__factory } from "./FranchiseRegistry__factory.js";
|
3
|
+
export { CollectModule__factory } from "./CollectModule__factory.js";
|
4
|
+
export { IpAssetRegistry__factory } from "./IpAssetRegistry__factory.js";
|
5
|
+
export { RelationshipModule__factory } from "./RelationshipModule__factory.js";
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"../../../../../../src/abi/generated/factories","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,wBAAwB,EAAE,sCAAmC;AACtE,OAAO,EAAE,0BAA0B,EAAE,wCAAqC;AAC1E,OAAO,EAAE,sBAAsB,EAAE,oCAAiC;AAClE,OAAO,EAAE,wBAAwB,EAAE,sCAAmC;AACtE,OAAO,EAAE,2BAA2B,EAAE,yCAAsC"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
export type { LicensingModule } from "./LicensingModule.js";
|
2
|
+
export type { CollectModule } from "./CollectModule.js";
|
3
|
+
export type { FranchiseRegistry } from "./FranchiseRegistry.js";
|
4
|
+
export type { IpAssetRegistry } from "./IpAssetRegistry.js";
|
5
|
+
export type { RelationshipModule } from "./RelationshipModule.js";
|
6
|
+
export * as factories from "./factories/index.js";
|
7
|
+
export { CollectModule__factory } from "./factories/CollectModule__factory.js";
|
8
|
+
export { FranchiseRegistry__factory } from "./factories/FranchiseRegistry__factory.js";
|
9
|
+
export { IpAssetRegistry__factory } from "./factories/IpAssetRegistry__factory.js";
|
10
|
+
export { LicensingModule__factory } from "./factories/LicensingModule__factory.js";
|
11
|
+
export { RelationshipModule__factory } from "./factories/RelationshipModule__factory.js";
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"../../../../../src/abi/generated","sources":["index.ts"],"names":[],"mappings":"AAGA,YAAY,EAAE,eAAe,EAAE,6BAA0B;AACzD,YAAY,EAAE,aAAa,EAAE,2BAAwB;AACrD,YAAY,EAAE,iBAAiB,EAAE,+BAA4B;AAC7D,YAAY,EAAE,eAAe,EAAE,6BAA0B;AACzD,YAAY,EAAE,kBAAkB,EAAE,gCAA6B;AAC/D,OAAO,KAAK,SAAS,6BAAoB;AACzC,OAAO,EAAE,sBAAsB,EAAE,8CAA2C;AAC5E,OAAO,EAAE,0BAA0B,EAAE,kDAA+C;AACpF,OAAO,EAAE,wBAAwB,EAAE,gDAA6C;AAChF,OAAO,EAAE,wBAAwB,EAAE,gDAA6C;AAChF,OAAO,EAAE,2BAA2B,EAAE,mDAAgD"}
|
@@ -0,0 +1,67 @@
|
|
1
|
+
import { StoryConfig } from "./interfaces/config.js";
|
2
|
+
import { FranchiseClient } from "./resources/franchise.js";
|
3
|
+
import { LicenseClient } from "./resources/license.js";
|
4
|
+
import { TransactionClient } from "./resources/transaction.js";
|
5
|
+
import { RelationshipClient } from "./resources/relationship.js";
|
6
|
+
import { IpAssetClient } from "./resources/ipAsset.js";
|
7
|
+
import { CollectClient } from "./resources/collect.js";
|
8
|
+
/**
|
9
|
+
* The StoryClient is the main entry point for the SDK.
|
10
|
+
*/
|
11
|
+
export declare class StoryClient {
|
12
|
+
private readonly config;
|
13
|
+
private readonly httpClient;
|
14
|
+
private _franchise;
|
15
|
+
private _relationship;
|
16
|
+
private _ipAsset;
|
17
|
+
private _license;
|
18
|
+
private _transaction;
|
19
|
+
private _collect;
|
20
|
+
/**
|
21
|
+
* @param config - the configuration for the SDK client
|
22
|
+
*/
|
23
|
+
constructor(config: StoryConfig);
|
24
|
+
/**
|
25
|
+
* Getter for the franchise client. The client is lazily created when
|
26
|
+
* this method is called.
|
27
|
+
*
|
28
|
+
* @returns the FranchiseClient instance
|
29
|
+
*/
|
30
|
+
get franchise(): FranchiseClient;
|
31
|
+
/**
|
32
|
+
* Getter for the relationship client. The client is lazily created when
|
33
|
+
* this method is called.
|
34
|
+
*
|
35
|
+
* @returns the RelationshipClient instance
|
36
|
+
*/
|
37
|
+
get relationship(): RelationshipClient;
|
38
|
+
/**
|
39
|
+
* Getter for the IP Asset client. The client is lazily created when
|
40
|
+
* this method is called.
|
41
|
+
*
|
42
|
+
* @returns the IpAssetClient instance
|
43
|
+
*/
|
44
|
+
get ipAsset(): IpAssetClient;
|
45
|
+
/**
|
46
|
+
* Getter for the license client. The client is lazily created when
|
47
|
+
* this method is called.
|
48
|
+
*
|
49
|
+
* @returns the FranchiseClient instance
|
50
|
+
*/
|
51
|
+
get license(): LicenseClient;
|
52
|
+
/**
|
53
|
+
* Getter for the transaction client. The client is lazily created when
|
54
|
+
* this method is called.
|
55
|
+
*
|
56
|
+
* @returns the TransactionClient instance
|
57
|
+
*/
|
58
|
+
get transaction(): TransactionClient;
|
59
|
+
/**
|
60
|
+
* Getter for the collect module client. The client is lazily created when
|
61
|
+
* this method is called.
|
62
|
+
*
|
63
|
+
* @returns the CollectClient instance
|
64
|
+
*/
|
65
|
+
get collect(): CollectClient;
|
66
|
+
}
|
67
|
+
//# sourceMappingURL=client.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"../../../src","sources":["client.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAElD,OAAO,EAAE,eAAe,EAAE,iCAA8B;AACxD,OAAO,EAAE,aAAa,EAAE,+BAA4B;AACpD,OAAO,EAAE,iBAAiB,EAAE,mCAAgC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,oCAAiC;AAC9D,OAAO,EAAE,aAAa,EAAE,+BAA4B;AAEpD,OAAO,EAAE,aAAa,EAAE,+BAA4B;AAOpD;;GAEG;AACH,qBAAa,WAAW;IACtB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAc;IACrC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAgB;IAC3C,OAAO,CAAC,UAAU,CAAgC;IAClD,OAAO,CAAC,aAAa,CAAmC;IACxD,OAAO,CAAC,QAAQ,CAA8B;IAC9C,OAAO,CAAC,QAAQ,CAA8B;IAC9C,OAAO,CAAC,YAAY,CAAkC;IACtD,OAAO,CAAC,QAAQ,CAA8B;IAE9C;;OAEG;gBACS,MAAM,EAAE,WAAW;IAW/B;;;;;OAKG;IACH,IAAW,SAAS,IAAI,eAAe,CAatC;IAED;;;;;OAKG;IACH,IAAW,YAAY,IAAI,kBAAkB,CAe5C;IAED;;;;;OAKG;IACH,IAAW,OAAO,IAAI,aAAa,CASlC;IAED;;;;;OAKG;IACH,IAAW,OAAO,IAAI,aAAa,CASlC;IAED;;;;;OAKG;IACH,IAAW,WAAW,IAAI,iBAAiB,CAK1C;IAED;;;;;OAKG;IACH,IAAW,OAAO,IAAI,aAAa,CASlC;CACF"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"environment.d.ts","sourceRoot":"../../../../src/enums","sources":["environment.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,WAAW;IACrB,IAAI,SAAS;IACb,IAAI,SAAS;CACd"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ipAssetType.d.ts","sourceRoot":"../../../../src/enums","sources":["ipAssetType.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,oBAAY,WAAW;IACrB,KAAK,IAAI;IACT,SAAS,IAAI;IACb,GAAG,IAAI;IACP,KAAK,IAAI;IACT,QAAQ,IAAI;IACZ,IAAI,IAAI;CACT"}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
export { StoryClient } from "./client.js";
|
2
|
+
export { Environment } from "./enums/environment.js";
|
3
|
+
export type { StoryConfig } from "./interfaces/config.js";
|
4
|
+
export type { Franchise, GetFranchiseRequest, GetFranchiseResponse, CreateFranchiseRequest, CreateFranchiseResponse, } from "./interfaces/resources/franchise.js";
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"../../../src","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,oBAAiB;AACvC,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,YAAY,EAAE,WAAW,EAAE,+BAA4B;AACvD,YAAY,EACV,SAAS,EACT,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACtB,uBAAuB,GACxB,4CAAyC"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { Signer } from "ethers";
|
2
|
+
import { Environment } from "../enums/environment.js";
|
3
|
+
/**
|
4
|
+
* Configuration for the SDK Client.
|
5
|
+
*
|
6
|
+
* @public
|
7
|
+
*/
|
8
|
+
export interface StoryConfig {
|
9
|
+
readonly environment: Environment;
|
10
|
+
readonly signer: Signer;
|
11
|
+
}
|
12
|
+
//# sourceMappingURL=config.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"../../../../src/interfaces","sources":["config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,EAAE,WAAW,EAAE,gCAA6B;AAEnD;;;;GAIG;AACH,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAClC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB"}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
/**
|
2
|
+
* Core data model for Collect.
|
3
|
+
*
|
4
|
+
* @public
|
5
|
+
*/
|
6
|
+
export interface Collection {
|
7
|
+
franchiseId: string;
|
8
|
+
ipAssetId: string;
|
9
|
+
totalCollected: number;
|
10
|
+
}
|
11
|
+
/**
|
12
|
+
* Request interface for collect.collect method.
|
13
|
+
*
|
14
|
+
* @public
|
15
|
+
*/
|
16
|
+
export interface CollectIPAssetRequest {
|
17
|
+
franchiseId: string;
|
18
|
+
ipAssetId: string;
|
19
|
+
collector: string;
|
20
|
+
}
|
21
|
+
/**
|
22
|
+
* Response interface for collect.collect method.
|
23
|
+
*
|
24
|
+
* @public
|
25
|
+
*/
|
26
|
+
export interface CollectIPAssetResponse {
|
27
|
+
txHash: string;
|
28
|
+
}
|
29
|
+
/**
|
30
|
+
* Request interface for collect.list method.
|
31
|
+
*
|
32
|
+
* @public
|
33
|
+
*/
|
34
|
+
export interface ListCollectionsRequest {
|
35
|
+
franchiseId: string;
|
36
|
+
}
|
37
|
+
/**
|
38
|
+
* Response interface for collect.list method.
|
39
|
+
*
|
40
|
+
* @public
|
41
|
+
*/
|
42
|
+
export interface ListCollectionsResponse {
|
43
|
+
data: Collection[];
|
44
|
+
}
|
45
|
+
//# sourceMappingURL=collect.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"collect.d.ts","sourceRoot":"../../../../../src/interfaces/resources","sources":["collect.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACpC,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,UAAU,EAAE,CAAC;CACpB"}
|