@story-protocol/core-sdk 1.0.0-rc.1 → 1.0.0-rc.2
Sign up to get free protection for your applications and to get access to all the features.
- 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 +14 -2
- package/dist/declarations/src/client.d.ts.map +1 -1
- package/dist/declarations/src/resources/dispute.d.ts +4 -1083
- package/dist/declarations/src/resources/dispute.d.ts.map +1 -1
- package/dist/declarations/src/resources/ipAccount.d.ts +3 -1003
- package/dist/declarations/src/resources/ipAccount.d.ts.map +1 -1
- package/dist/declarations/src/resources/ipAsset.d.ts +6 -2322
- package/dist/declarations/src/resources/ipAsset.d.ts.map +1 -1
- package/dist/declarations/src/resources/license.d.ts +11 -4284
- package/dist/declarations/src/resources/license.d.ts.map +1 -1
- package/dist/declarations/src/resources/permission.d.ts +4 -2051
- package/dist/declarations/src/resources/permission.d.ts.map +1 -1
- package/dist/declarations/src/resources/royalty.d.ts +6 -2991
- package/dist/declarations/src/resources/royalty.d.ts.map +1 -1
- package/dist/declarations/src/types/config.d.ts +15 -4
- package/dist/declarations/src/types/config.d.ts.map +1 -1
- package/dist/declarations/src/types/options.d.ts +4 -0
- package/dist/declarations/src/types/options.d.ts.map +1 -1
- package/dist/story-protocol-core-sdk.cjs.dev.js +9170 -1902
- package/dist/story-protocol-core-sdk.cjs.prod.js +9170 -1902
- package/dist/story-protocol-core-sdk.esm.js +9176 -1908
- package/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"royalty.d.ts","sourceRoot":"../../../../src/resources","sources":["royalty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,YAAY,EAAE,
|
1
|
+
{"version":3,"file":"royalty.d.ts","sourceRoot":"../../../../src/resources","sources":["royalty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,YAAY,EAAE,MAAM,MAAM,CAAC;AAGzC,OAAO,EACL,2BAA2B,EAC3B,4BAA4B,EAC5B,yBAAyB,EACzB,0BAA0B,EAC3B,sCAAmC;AACpC,OAAO,EACL,wBAAwB,EACxB,mBAAmB,EACnB,sBAAsB,EACtB,kBAAkB,EACnB,4BAAyB;AAE1B,qBAAa,aAAa;IACxB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqB;IAC5C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAe;IAClC,sBAAsB,EAAE,wBAAwB,CAAC;IACjD,sBAAsB,EAAE,sBAAsB,CAAC;IAC/C,mBAAmB,EAAE,mBAAmB,CAAC;gBAEpC,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,kBAAkB;IAQ/D;;;;;;;OAOG;IACU,oBAAoB,CAC/B,OAAO,EAAE,2BAA2B,GACnC,OAAO,CAAC,4BAA4B,CAAC;YAe1B,eAAe;IAS7B;;;;;;;;;;OAUG;IACU,kBAAkB,CAC7B,OAAO,EAAE,yBAAyB,GACjC,OAAO,CAAC,0BAA0B,CAAC;CAgBvC"}
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { Account, Transport, Address
|
1
|
+
import { Account, Transport, Address } from "viem";
|
2
|
+
import { SimpleWalletClient } from "../abi/generated.js";
|
2
3
|
/**
|
3
4
|
* Supported chains. For convenience, both name or chain ID are supported.
|
4
5
|
*
|
@@ -10,12 +11,22 @@ export type SupportedChainIds = "11155111" | "sepolia" | "1513" | "storyTestnet"
|
|
10
11
|
*
|
11
12
|
* @public
|
12
13
|
*/
|
13
|
-
export
|
14
|
+
export type UseAccountStoryConfig = {
|
14
15
|
readonly account: Account | Address;
|
15
16
|
readonly chainId?: SupportedChainIds;
|
16
17
|
readonly transport: Transport;
|
17
|
-
|
18
|
-
|
18
|
+
};
|
19
|
+
export type UseWalletStoryConfig = {
|
20
|
+
readonly chainId?: SupportedChainIds;
|
21
|
+
readonly transport: Transport;
|
22
|
+
readonly wallet: SimpleWalletClient;
|
23
|
+
};
|
24
|
+
export type StoryConfig = {
|
25
|
+
readonly chainId?: SupportedChainIds;
|
26
|
+
readonly transport: Transport;
|
27
|
+
readonly wallet?: SimpleWalletClient;
|
28
|
+
readonly account?: Account | Address;
|
29
|
+
};
|
19
30
|
export type ContractAddress = {
|
20
31
|
[key in SupportedChainIds]: Record<string, string>;
|
21
32
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"../../../../src/types","sources":["config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"../../../../src/types","sources":["config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAEnD,OAAO,EAAE,kBAAkB,EAAE,4BAAyB;AAEtD;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,SAAS,GAAG,MAAM,GAAG,cAAc,CAAC;AAEjF;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC;IACpC,QAAQ,CAAC,OAAO,CAAC,EAAE,iBAAiB,CAAC;IACrC,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,CAAC,OAAO,CAAC,EAAE,iBAAiB,CAAC;IACrC,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IAC9B,QAAQ,CAAC,MAAM,EAAE,kBAAkB,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,CAAC,OAAO,CAAC,EAAE,iBAAiB,CAAC;IACrC,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IAC9B,QAAQ,CAAC,MAAM,CAAC,EAAE,kBAAkB,CAAC;IACrC,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;KAAG,GAAG,IAAI,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAAE,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"options.d.ts","sourceRoot":"../../../../src/types","sources":["options.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG;IACtB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC,CAAC"}
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"../../../../src/types","sources":["options.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG;IACtB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI,CAAC,GAAG;IACjC,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC"}
|