@zoralabs/protocol-sdk 0.5.3 → 0.5.4-exports.0
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/CHANGELOG.md +7 -0
- package/package.json +10 -2
- package/src/preminter.ts +1 -1
- package/.turbo/turbo-build.log +0 -16
- package/dist/anvil.d.ts +0 -36
- package/dist/anvil.d.ts.map +0 -1
- package/dist/apis/chain-constants.d.ts +0 -13
- package/dist/apis/chain-constants.d.ts.map +0 -1
- package/dist/apis/client-base.d.ts +0 -15
- package/dist/apis/client-base.d.ts.map +0 -1
- package/dist/apis/generated/premint-api-types.d.ts +0 -460
- package/dist/apis/generated/premint-api-types.d.ts.map +0 -1
- package/dist/apis/http-api-base.d.ts +0 -32
- package/dist/apis/http-api-base.d.ts.map +0 -1
- package/dist/constants.d.ts +0 -36
- package/dist/constants.d.ts.map +0 -1
- package/dist/create/1155-create-helper.d.ts +0 -62
- package/dist/create/1155-create-helper.d.ts.map +0 -1
- package/dist/index.cjs +0 -1694
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.ts +0 -9
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -1664
- package/dist/index.js.map +0 -1
- package/dist/mint/mint-api-client.d.ts +0 -27
- package/dist/mint/mint-api-client.d.ts.map +0 -1
- package/dist/mint/mint-client.d.ts +0 -61
- package/dist/mint/mint-client.d.ts.map +0 -1
- package/dist/premint/contract-types.d.ts +0 -125
- package/dist/premint/contract-types.d.ts.map +0 -1
- package/dist/premint/conversions.d.ts +0 -78
- package/dist/premint/conversions.d.ts.map +0 -1
- package/dist/premint/premint-api-client.d.ts +0 -32
- package/dist/premint/premint-api-client.d.ts.map +0 -1
- package/dist/premint/premint-client.d.ts +0 -203
- package/dist/premint/premint-client.d.ts.map +0 -1
- package/dist/premint/preminter.d.ts +0 -121
- package/dist/premint/preminter.d.ts.map +0 -1
- package/dist/preminter.d.ts +0 -36
- package/dist/preminter.d.ts.map +0 -1
- package/dist/types.d.ts +0 -2
- package/dist/types.d.ts.map +0 -1
package/dist/constants.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export declare const ZORA_API_BASE = "https://api.zora.co/";
|
|
2
|
-
export declare const OPEN_EDITION_MINT_SIZE: bigint;
|
|
3
|
-
export declare function getSubgraph(name: string, version: string): string;
|
|
4
|
-
export declare const zora721Abi: readonly [{
|
|
5
|
-
readonly name: "mintWithRewards";
|
|
6
|
-
readonly type: "function";
|
|
7
|
-
readonly stateMutability: "payable";
|
|
8
|
-
readonly inputs: readonly [{
|
|
9
|
-
readonly type: "address";
|
|
10
|
-
readonly name: "recipient";
|
|
11
|
-
}, {
|
|
12
|
-
readonly type: "uint256";
|
|
13
|
-
readonly name: "quantity";
|
|
14
|
-
}, {
|
|
15
|
-
readonly type: "string";
|
|
16
|
-
readonly name: "comment";
|
|
17
|
-
}, {
|
|
18
|
-
readonly type: "address";
|
|
19
|
-
readonly name: "mintReferral";
|
|
20
|
-
}];
|
|
21
|
-
readonly outputs: readonly [];
|
|
22
|
-
}, {
|
|
23
|
-
readonly name: "zoraFeeForAmount";
|
|
24
|
-
readonly type: "function";
|
|
25
|
-
readonly stateMutability: "view";
|
|
26
|
-
readonly inputs: readonly [{
|
|
27
|
-
readonly type: "uint256";
|
|
28
|
-
readonly name: "amount";
|
|
29
|
-
}];
|
|
30
|
-
readonly outputs: readonly [{
|
|
31
|
-
readonly type: "address";
|
|
32
|
-
}, {
|
|
33
|
-
readonly type: "uint256";
|
|
34
|
-
}];
|
|
35
|
-
}];
|
|
36
|
-
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,yBAAyB,CAAC;AACpD,eAAO,MAAM,sBAAsB,QAAiC,CAAC;AAMrE,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAEjE;AAED,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGZ,CAAC"}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import type { Address, Hex, PublicClient, SimulateContractParameters, TransactionReceipt } from "viem";
|
|
2
|
-
type SalesConfigParamsType = {
|
|
3
|
-
pricePerToken?: bigint;
|
|
4
|
-
saleStart?: bigint;
|
|
5
|
-
saleEnd?: bigint;
|
|
6
|
-
maxTokensPerAddress?: bigint;
|
|
7
|
-
fundsRecipient?: Address;
|
|
8
|
-
};
|
|
9
|
-
export declare const DEFAULT_SALE_SETTINGS: {
|
|
10
|
-
fundsRecipient: "0x0000000000000000000000000000000000000000";
|
|
11
|
-
pricePerToken: bigint;
|
|
12
|
-
saleStart: bigint;
|
|
13
|
-
saleEnd: bigint;
|
|
14
|
-
maxTokensPerAddress: bigint;
|
|
15
|
-
};
|
|
16
|
-
type ContractType = {
|
|
17
|
-
name: string;
|
|
18
|
-
uri: string;
|
|
19
|
-
defaultAdmin?: Address;
|
|
20
|
-
} | Address;
|
|
21
|
-
type RoyaltySettingsType = {
|
|
22
|
-
royaltyBPS: number;
|
|
23
|
-
royaltyRecipient: Address;
|
|
24
|
-
};
|
|
25
|
-
export declare function create1155TokenSetupArgs({ nextTokenId, mintToCreatorCount, tokenMetadataURI, fixedPriceMinterAddress, createReferral, maxSupply, account, salesConfig, royaltySettings, }: {
|
|
26
|
-
maxSupply?: bigint | number;
|
|
27
|
-
createReferral?: Address;
|
|
28
|
-
nextTokenId: bigint;
|
|
29
|
-
mintToCreatorCount: bigint | number;
|
|
30
|
-
account: Address;
|
|
31
|
-
tokenMetadataURI: string;
|
|
32
|
-
fixedPriceMinterAddress: Address;
|
|
33
|
-
salesConfig: SalesConfigParamsType;
|
|
34
|
-
royaltySettings?: RoyaltySettingsType;
|
|
35
|
-
}): `0x${string}`[];
|
|
36
|
-
export declare const getTokenIdFromCreateReceipt: (receipt: TransactionReceipt) => bigint | undefined;
|
|
37
|
-
type CreateNew1155TokenReturn = {
|
|
38
|
-
request: SimulateContractParameters;
|
|
39
|
-
tokenSetupActions: Hex[];
|
|
40
|
-
contractAddress: Address;
|
|
41
|
-
contractExists: boolean;
|
|
42
|
-
};
|
|
43
|
-
export declare function create1155CreatorClient({ publicClient, }: {
|
|
44
|
-
publicClient: PublicClient;
|
|
45
|
-
}): {
|
|
46
|
-
createNew1155Token: ({ contract, tokenMetadataURI, mintToCreatorCount, salesConfig, maxSupply, account, royaltySettings, getAdditionalSetupActions, }: {
|
|
47
|
-
account: Address;
|
|
48
|
-
maxSupply?: number | bigint | undefined;
|
|
49
|
-
royaltySettings?: RoyaltySettingsType | undefined;
|
|
50
|
-
royaltyBPS?: number | undefined;
|
|
51
|
-
contract: ContractType;
|
|
52
|
-
tokenMetadataURI: string;
|
|
53
|
-
mintToCreatorCount?: number | bigint | undefined;
|
|
54
|
-
salesConfig?: SalesConfigParamsType | undefined;
|
|
55
|
-
getAdditionalSetupActions?: ((args: {
|
|
56
|
-
tokenId: bigint;
|
|
57
|
-
contractAddress: Address;
|
|
58
|
-
}) => Hex[]) | undefined;
|
|
59
|
-
}) => Promise<CreateNew1155TokenReturn>;
|
|
60
|
-
};
|
|
61
|
-
export {};
|
|
62
|
-
//# sourceMappingURL=1155-create-helper.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"1155-create-helper.d.ts","sourceRoot":"","sources":["../../src/create/1155-create-helper.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,OAAO,EACP,GAAG,EACH,YAAY,EACZ,0BAA0B,EAC1B,kBAAkB,EACnB,MAAM,MAAM,CAAC;AAUd,KAAK,qBAAqB,GAAG;IAE3B,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,OAAO,CAAC,EAAE,MAAM,CAAC;IA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