@story-protocol/core-sdk 0.1.0-rc.7 → 1.0.0-rc.2
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +94 -55
- package/dist/declarations/src/abi/generated.d.ts +14196 -0
- package/dist/declarations/src/abi/generated.d.ts.map +1 -0
- package/dist/declarations/src/client.d.ts +42 -49
- package/dist/declarations/src/client.d.ts.map +1 -1
- package/dist/declarations/src/clients/storyAPI.d.ts +9 -0
- package/dist/declarations/src/clients/storyAPI.d.ts.map +1 -0
- package/dist/declarations/src/constants/common.d.ts +4 -0
- package/dist/declarations/src/constants/common.d.ts.map +1 -0
- package/dist/declarations/src/index.d.ts +13 -10
- package/dist/declarations/src/index.d.ts.map +1 -1
- package/dist/declarations/src/resources/dispute.d.ts +49 -0
- package/dist/declarations/src/resources/dispute.d.ts.map +1 -0
- package/dist/declarations/src/resources/ipAccount.d.ts +28 -0
- package/dist/declarations/src/resources/ipAccount.d.ts.map +1 -0
- package/dist/declarations/src/resources/ipAsset.d.ts +44 -20
- package/dist/declarations/src/resources/ipAsset.d.ts.map +1 -1
- package/dist/declarations/src/resources/license.d.ts +83 -18
- package/dist/declarations/src/resources/license.d.ts.map +1 -1
- package/dist/declarations/src/resources/permission.d.ts +30 -0
- package/dist/declarations/src/resources/permission.d.ts.map +1 -0
- package/dist/declarations/src/resources/royalty.d.ts +34 -0
- package/dist/declarations/src/resources/royalty.d.ts.map +1 -0
- package/dist/declarations/src/types/common.d.ts +6 -0
- package/dist/declarations/src/types/common.d.ts.map +1 -0
- package/dist/declarations/src/types/config.d.ts +27 -12
- package/dist/declarations/src/types/config.d.ts.map +1 -1
- package/dist/declarations/src/types/options.d.ts +10 -0
- package/dist/declarations/src/types/options.d.ts.map +1 -0
- package/dist/declarations/src/types/resources/dispute.d.ts +50 -0
- package/dist/declarations/src/types/resources/dispute.d.ts.map +1 -0
- package/dist/declarations/src/types/resources/ipAccount.d.ts +25 -0
- package/dist/declarations/src/types/resources/ipAccount.d.ts.map +1 -0
- package/dist/declarations/src/types/resources/ipAsset.d.ts +23 -63
- package/dist/declarations/src/types/resources/ipAsset.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/license.d.ts +56 -68
- package/dist/declarations/src/types/resources/license.d.ts.map +1 -1
- package/dist/declarations/src/types/resources/permission.d.ts +14 -0
- package/dist/declarations/src/types/resources/permission.d.ts.map +1 -0
- package/dist/declarations/src/types/resources/royalty.d.ts +58 -0
- package/dist/declarations/src/types/resources/royalty.d.ts.map +1 -0
- package/dist/story-protocol-core-sdk.cjs.d.ts +1 -1
- package/dist/story-protocol-core-sdk.cjs.dev.js +10649 -1617
- package/dist/story-protocol-core-sdk.cjs.prod.js +10649 -1617
- package/dist/story-protocol-core-sdk.esm.js +10645 -1616
- package/package.json +16 -13
- package/dist/declarations/src/abi/generated/CollectModule.d.ts +0 -80
- package/dist/declarations/src/abi/generated/CollectModule.d.ts.map +0 -1
- package/dist/declarations/src/abi/generated/FranchiseRegistry.d.ts +0 -78
- package/dist/declarations/src/abi/generated/FranchiseRegistry.d.ts.map +0 -1
- package/dist/declarations/src/abi/generated/IpAssetRegistry.d.ts +0 -94
- package/dist/declarations/src/abi/generated/IpAssetRegistry.d.ts.map +0 -1
- package/dist/declarations/src/abi/generated/LicensingModule.d.ts +0 -97
- package/dist/declarations/src/abi/generated/LicensingModule.d.ts.map +0 -1
- package/dist/declarations/src/abi/generated/RelationshipModule.d.ts +0 -116
- package/dist/declarations/src/abi/generated/RelationshipModule.d.ts.map +0 -1
- package/dist/declarations/src/abi/generated/common.d.ts +0 -22
- package/dist/declarations/src/abi/generated/common.d.ts.map +0 -1
- package/dist/declarations/src/abi/generated/factories/CollectModule__factory.d.ts +0 -52
- package/dist/declarations/src/abi/generated/factories/CollectModule__factory.d.ts.map +0 -1
- package/dist/declarations/src/abi/generated/factories/FranchiseRegistry__factory.d.ts +0 -58
- package/dist/declarations/src/abi/generated/factories/FranchiseRegistry__factory.d.ts.map +0 -1
- package/dist/declarations/src/abi/generated/factories/IpAssetRegistry__factory.d.ts +0 -112
- package/dist/declarations/src/abi/generated/factories/IpAssetRegistry__factory.d.ts.map +0 -1
- package/dist/declarations/src/abi/generated/factories/LicensingModule__factory.d.ts +0 -88
- package/dist/declarations/src/abi/generated/factories/LicensingModule__factory.d.ts.map +0 -1
- package/dist/declarations/src/abi/generated/factories/RelationshipModule__factory.d.ts +0 -175
- package/dist/declarations/src/abi/generated/factories/RelationshipModule__factory.d.ts.map +0 -1
- package/dist/declarations/src/abi/generated/factories/index.d.ts +0 -6
- package/dist/declarations/src/abi/generated/factories/index.d.ts.map +0 -1
- package/dist/declarations/src/abi/generated/index.d.ts +0 -12
- package/dist/declarations/src/abi/generated/index.d.ts.map +0 -1
- package/dist/declarations/src/enums/Environment.d.ts +0 -8
- package/dist/declarations/src/enums/Environment.d.ts.map +0 -1
- package/dist/declarations/src/enums/IPAssetType.d.ts +0 -12
- package/dist/declarations/src/enums/IPAssetType.d.ts.map +0 -1
- package/dist/declarations/src/enums/ResourceType.d.ts +0 -11
- package/dist/declarations/src/enums/ResourceType.d.ts.map +0 -1
- package/dist/declarations/src/resources/collect.d.ts +0 -17
- package/dist/declarations/src/resources/collect.d.ts.map +0 -1
- package/dist/declarations/src/resources/collectReadOnly.d.ts +0 -15
- package/dist/declarations/src/resources/collectReadOnly.d.ts.map +0 -1
- package/dist/declarations/src/resources/franchise.d.ts +0 -26
- package/dist/declarations/src/resources/franchise.d.ts.map +0 -1
- package/dist/declarations/src/resources/franchiseReadOnly.d.ts +0 -27
- package/dist/declarations/src/resources/franchiseReadOnly.d.ts.map +0 -1
- package/dist/declarations/src/resources/ipAssetReadOnly.d.ts +0 -25
- package/dist/declarations/src/resources/ipAssetReadOnly.d.ts.map +0 -1
- package/dist/declarations/src/resources/licenseReadOnly.d.ts +0 -27
- package/dist/declarations/src/resources/licenseReadOnly.d.ts.map +0 -1
- package/dist/declarations/src/resources/relationship.d.ts +0 -47
- package/dist/declarations/src/resources/relationship.d.ts.map +0 -1
- package/dist/declarations/src/resources/relationshipReadOnly.d.ts +0 -16
- package/dist/declarations/src/resources/relationshipReadOnly.d.ts.map +0 -1
- package/dist/declarations/src/resources/transaction.d.ts +0 -10
- package/dist/declarations/src/resources/transaction.d.ts.map +0 -1
- package/dist/declarations/src/resources/transactionReadOnly.d.ts +0 -25
- package/dist/declarations/src/resources/transactionReadOnly.d.ts.map +0 -1
- package/dist/declarations/src/types/client.d.ts +0 -29
- package/dist/declarations/src/types/client.d.ts.map +0 -1
- package/dist/declarations/src/types/resources/collect.d.ts +0 -45
- package/dist/declarations/src/types/resources/collect.d.ts.map +0 -1
- package/dist/declarations/src/types/resources/franchise.d.ts +0 -71
- package/dist/declarations/src/types/resources/franchise.d.ts.map +0 -1
- package/dist/declarations/src/types/resources/relationship.d.ts +0 -83
- package/dist/declarations/src/types/resources/relationship.d.ts.map +0 -1
- package/dist/declarations/src/types/resources/transaction.d.ts +0 -40
- package/dist/declarations/src/types/resources/transaction.d.ts.map +0 -1
- package/dist/story-protocol-core-sdk.cjs.d.ts.map +0 -1
@@ -1,52 +0,0 @@
|
|
1
|
-
import { Signer } from "ethers";
|
2
|
-
import type { Provider } from "@ethersproject/providers";
|
3
|
-
import type { CollectModule, CollectModuleInterface } from "../CollectModule.js";
|
4
|
-
export declare class CollectModule__factory {
|
5
|
-
static readonly abi: readonly [{
|
6
|
-
readonly inputs: readonly [{
|
7
|
-
readonly components: readonly [{
|
8
|
-
readonly internalType: "uint256";
|
9
|
-
readonly name: "franchiseId";
|
10
|
-
readonly type: "uint256";
|
11
|
-
}, {
|
12
|
-
readonly internalType: "uint256";
|
13
|
-
readonly name: "ipAssetId";
|
14
|
-
readonly type: "uint256";
|
15
|
-
}, {
|
16
|
-
readonly internalType: "address";
|
17
|
-
readonly name: "collector";
|
18
|
-
readonly type: "address";
|
19
|
-
}, {
|
20
|
-
readonly internalType: "bytes";
|
21
|
-
readonly name: "collectData";
|
22
|
-
readonly type: "bytes";
|
23
|
-
}, {
|
24
|
-
readonly internalType: "bytes";
|
25
|
-
readonly name: "collectNFTInitData";
|
26
|
-
readonly type: "bytes";
|
27
|
-
}, {
|
28
|
-
readonly internalType: "bytes";
|
29
|
-
readonly name: "collectNFTData";
|
30
|
-
readonly type: "bytes";
|
31
|
-
}];
|
32
|
-
readonly internalType: "struct CollectParams";
|
33
|
-
readonly name: "collectParams";
|
34
|
-
readonly type: "tuple";
|
35
|
-
}];
|
36
|
-
readonly name: "collect";
|
37
|
-
readonly outputs: readonly [{
|
38
|
-
readonly internalType: "address";
|
39
|
-
readonly name: "collectNFT";
|
40
|
-
readonly type: "address";
|
41
|
-
}, {
|
42
|
-
readonly internalType: "uint256";
|
43
|
-
readonly name: "collectNFTId";
|
44
|
-
readonly type: "uint256";
|
45
|
-
}];
|
46
|
-
readonly stateMutability: "nonpayable";
|
47
|
-
readonly type: "function";
|
48
|
-
}];
|
49
|
-
static createInterface(): CollectModuleInterface;
|
50
|
-
static connect(address: string, signerOrProvider: Signer | Provider): CollectModule;
|
51
|
-
}
|
52
|
-
//# sourceMappingURL=CollectModule__factory.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"CollectModule__factory.d.ts","sourceRoot":"../../../../../../src/abi/generated/factories","sources":["CollectModule__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,aAAa,EAAE,sBAAsB,EAAE,4BAAyB;AA6D9E,qBAAa,sBAAsB;IACjC,MAAM,CAAC,QAAQ,CAAC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAQ;IAC3B,MAAM,CAAC,eAAe,IAAI,sBAAsB;IAGhD,MAAM,CAAC,OAAO,CACZ,OAAO,EAAE,MAAM,EACf,gBAAgB,EAAE,MAAM,GAAG,QAAQ,GAClC,aAAa;CAGjB"}
|
@@ -1,58 +0,0 @@
|
|
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
|
@@ -1 +0,0 @@
|
|
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,EACV,iBAAiB,EACjB,0BAA0B,EAC3B,gCAA6B;AAsE9B,qBAAa,0BAA0B;IACrC,MAAM,CAAC,QAAQ,CAAC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAQ;IAC3B,MAAM,CAAC,eAAe,IAAI,0BAA0B;IAGpD,MAAM,CAAC,OAAO,CACZ,OAAO,EAAE,MAAM,EACf,gBAAgB,EAAE,MAAM,GAAG,QAAQ,GAClC,iBAAiB;CAGrB"}
|
@@ -1,112 +0,0 @@
|
|
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
|
@@ -1 +0,0 @@
|
|
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,EACV,eAAe,EACf,wBAAwB,EACzB,8BAA2B;AA2I5B,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"}
|
@@ -1,88 +0,0 @@
|
|
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
|
@@ -1 +0,0 @@
|
|
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"}
|
@@ -1,175 +0,0 @@
|
|
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
|
@@ -1 +0,0 @@
|
|
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"}
|
@@ -1,6 +0,0 @@
|
|
1
|
-
export { LicensingModule__factory } from "./LicensingModule__factory.js";
|
2
|
-
export { CollectModule__factory } from "./CollectModule__factory.js";
|
3
|
-
export { FranchiseRegistry__factory } from "./FranchiseRegistry__factory.js";
|
4
|
-
export { IpAssetRegistry__factory } from "./IpAssetRegistry__factory.js";
|
5
|
-
export { RelationshipModule__factory } from "./RelationshipModule__factory.js";
|
6
|
-
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +0,0 @@
|
|
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,sBAAsB,EAAE,oCAAiC;AAClE,OAAO,EAAE,0BAA0B,EAAE,wCAAqC;AAC1E,OAAO,EAAE,wBAAwB,EAAE,sCAAmC;AACtE,OAAO,EAAE,2BAA2B,EAAE,yCAAsC"}
|
@@ -1,12 +0,0 @@
|
|
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
|
@@ -1 +0,0 @@
|
|
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"}
|
@@ -1 +0,0 @@
|
|
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"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"IPAssetType.d.ts","sourceRoot":"../../../../src/enums","sources":["IPAssetType.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,WAAW;IACrB,KAAK,IAAI;IACT,SAAS,IAAI;IACb,GAAG,IAAI;IACP,KAAK,IAAI;IACT,QAAQ,IAAI;IACZ,IAAI,IAAI;CACT"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"ResourceType.d.ts","sourceRoot":"../../../../src/enums","sources":["ResourceType.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,YAAY;IACtB,SAAS,IAAA;IACT,QAAQ,IAAA;IACR,OAAO,IAAA;IACP,YAAY,IAAA;IACZ,OAAO,IAAA;CACR"}
|
@@ -1,17 +0,0 @@
|
|
1
|
-
import { AxiosInstance } from "axios";
|
2
|
-
import { Signer } from "ethers";
|
3
|
-
import { CollectIPAssetRequest, CollectIPAssetResponse } from "../types/resources/collect.js";
|
4
|
-
import { CollectModule } from "../abi/generated/index.js";
|
5
|
-
import { CollectReadOnlyClient } from "./collectReadOnly.js";
|
6
|
-
export declare class CollectClient extends CollectReadOnlyClient {
|
7
|
-
private readonly signer;
|
8
|
-
constructor(httpClient: AxiosInstance, signer: Signer, collectModule: CollectModule);
|
9
|
-
/**
|
10
|
-
* Collect an IP Asset on Story Protocol based on the specified input collect data.
|
11
|
-
*
|
12
|
-
* @param request - the request object that contains all data needed to collect an IP Asset
|
13
|
-
* @returns the response object that contains results from the create franchise action
|
14
|
-
*/
|
15
|
-
collect(request: CollectIPAssetRequest): Promise<CollectIPAssetResponse>;
|
16
|
-
}
|
17
|
-
//# sourceMappingURL=collect.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"collect.d.ts","sourceRoot":"../../../../src/resources","sources":["collect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAuB,MAAM,EAAE,MAAM,QAAQ,CAAC;AAErD,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,sCAAmC;AAC3F,OAAO,EAAE,aAAa,EAAE,kCAAyB;AAEjD,OAAO,EAAE,qBAAqB,EAAE,6BAA0B;AAE1D,qBAAa,aAAc,SAAQ,qBAAqB;IACtD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;gBAEpB,UAAU,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa;IAKnF;;;;;OAKG;IACU,OAAO,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,sBAAsB,CAAC;CAkBtF"}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import { AxiosInstance } from "axios";
|
2
|
-
import { ListCollectionsResponse, ListCollectionsRequest } from "../types/resources/collect.js";
|
3
|
-
import { CollectModule } from "../abi/generated/index.js";
|
4
|
-
export declare class CollectReadOnlyClient {
|
5
|
-
protected readonly httpClient: AxiosInstance;
|
6
|
-
protected readonly collectModuleContract: CollectModule;
|
7
|
-
constructor(httpClient: AxiosInstance, collectModule: CollectModule);
|
8
|
-
/**
|
9
|
-
* List all collected IP Assets.
|
10
|
-
*
|
11
|
-
* @returns A Promise that resolves to the ListLicenseResponse.
|
12
|
-
*/
|
13
|
-
list(request: ListCollectionsRequest): Promise<ListCollectionsResponse>;
|
14
|
-
}
|
15
|
-
//# sourceMappingURL=collectReadOnly.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"collectReadOnly.d.ts","sourceRoot":"../../../../src/resources","sources":["collectReadOnly.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAiB,MAAM,OAAO,CAAC;AAErD,OAAO,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,sCAAmC;AAC7F,OAAO,EAAE,aAAa,EAAE,kCAAyB;AAGjD,qBAAa,qBAAqB;IAChC,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC;IAC7C,SAAS,CAAC,QAAQ,CAAC,qBAAqB,EAAE,aAAa,CAAC;gBAE5C,UAAU,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa;IAMnE;;;;OAIG;IACU,IAAI,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,uBAAuB,CAAC;CAUrF"}
|
@@ -1,26 +0,0 @@
|
|
1
|
-
import { AxiosInstance } from "axios";
|
2
|
-
import { CreateFranchiseRequest, CreateFranchiseResponse, ConfigureFranchiseRequest, ConfigureFranchiseResponse } from "../types/resources/franchise.js";
|
3
|
-
import { FranchiseRegistry, LicensingModule } from "../abi/generated/index.js";
|
4
|
-
import { FranchiseReadOnlyClient } from "./franchiseReadOnly.js";
|
5
|
-
/**
|
6
|
-
* FranchiseClient allows you to create, update, view, search franchises on
|
7
|
-
* Story Protocol.
|
8
|
-
*/
|
9
|
-
export declare class FranchiseClient extends FranchiseReadOnlyClient {
|
10
|
-
constructor(httpClient: AxiosInstance, franchiseRegistry: FranchiseRegistry, licenseModule: LicensingModule);
|
11
|
-
/**
|
12
|
-
* Create a franchise on Story Protocol based on the specified input franchise data.
|
13
|
-
*
|
14
|
-
* @param request - the request object that contains all data needed to create a franchise
|
15
|
-
* @returns the response object that contains results from the create franchise action
|
16
|
-
*/
|
17
|
-
create(request: CreateFranchiseRequest): Promise<CreateFranchiseResponse>;
|
18
|
-
/**
|
19
|
-
* Configure a franchise on Story Protocol.
|
20
|
-
*
|
21
|
-
* @param request - the request object that contains all data needed to configure a franchise
|
22
|
-
* @returns the response object that contains results from the configure franchise action
|
23
|
-
*/
|
24
|
-
configure(request: ConfigureFranchiseRequest): Promise<ConfigureFranchiseResponse>;
|
25
|
-
}
|
26
|
-
//# sourceMappingURL=franchise.d.ts.map
|