@manifoldxyz/dropkit 0.2.1 → 0.3.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/README.md +52 -0
- package/dist/cart.cjs +1832 -0
- package/dist/cart.cjs.map +1 -0
- package/dist/cart.d.cts +216 -0
- package/dist/cart.d.ts +216 -0
- package/dist/cart.js +1832 -0
- package/dist/cart.js.map +1 -0
- package/dist/chunk-3PA74M2L.js +1400 -0
- package/dist/chunk-3PA74M2L.js.map +1 -0
- package/dist/chunk-OO6QQT3M.cjs +1400 -0
- package/dist/chunk-OO6QQT3M.cjs.map +1 -0
- package/dist/index.cjs +351 -1621
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -194
- package/dist/index.d.ts +5 -194
- package/dist/index.js +78 -1334
- package/dist/index.js.map +1 -1
- package/dist/types-CFLoS6p4.d.cts +194 -0
- package/dist/types-CFLoS6p4.d.ts +194 -0
- package/package.json +11 -1
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { Address, Abi, Hex } from 'viem';
|
|
2
|
+
|
|
3
|
+
declare const UNSUPPORTED_REASONS: readonly ["UNKNOWN_EXTENSION", "AMBIGUOUS_EXTENSION", "CLAIM_NOT_FOUND", "SIGNATURE_CLAIM", "INVALID_CONFIG", "CONNECT_WIDGET_TOO_OLD"];
|
|
4
|
+
declare const INELIGIBLE_REASONS: readonly ["NOT_ON_ALLOWLIST", "ALLOWLIST_USED", "WALLET_LIMIT", "SIMULATION_REVERTED"];
|
|
5
|
+
declare const ERROR_REASONS: readonly ["USER_REJECTED", "TX_REVERTED", "RATE_LIMITED", "RPC_ERROR", "CHAIN_SWITCH_FAILED", "ALLOWLIST_UNAVAILABLE", "BRIDGE_UNAVAILABLE", "BRIDGE_REFUNDED", "BRIDGE_FAILED", "BRIDGE_TIMEOUT"];
|
|
6
|
+
/** insufficient-funds carries this reason so data-reason is never empty in that state. */
|
|
7
|
+
declare const FUNDS_REASONS: readonly ["INSUFFICIENT_FUNDS"];
|
|
8
|
+
type UnsupportedReason = (typeof UNSUPPORTED_REASONS)[number];
|
|
9
|
+
type IneligibleReason = (typeof INELIGIBLE_REASONS)[number];
|
|
10
|
+
type ErrorReason = (typeof ERROR_REASONS)[number];
|
|
11
|
+
type ReasonCode = UnsupportedReason | IneligibleReason | ErrorReason | (typeof FUNDS_REASONS)[number];
|
|
12
|
+
declare const REASON_CODES: readonly ReasonCode[];
|
|
13
|
+
/**
|
|
14
|
+
* Thrown by adapters, rpc and wallet code; the hook maps it to the matching state.
|
|
15
|
+
* `message` is plain English and, for INVALID_CONFIG, names the exact bad field
|
|
16
|
+
* (e.g. `mint.args[1] "{qty}" is not a known placeholder`).
|
|
17
|
+
*/
|
|
18
|
+
declare class MintError extends Error {
|
|
19
|
+
readonly reason: ReasonCode;
|
|
20
|
+
/** INVALID_CONFIG only: dotted path of the bad field, e.g. "mint.args[1]" or "price". */
|
|
21
|
+
readonly field?: string;
|
|
22
|
+
/** 'relay': the message is Relay's decoded destination revert, shown as-is. */
|
|
23
|
+
readonly domain?: 'relay';
|
|
24
|
+
constructor(reason: ReasonCode, message: string, opts?: {
|
|
25
|
+
field?: string;
|
|
26
|
+
cause?: unknown;
|
|
27
|
+
domain?: 'relay';
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
declare function isMintError(e: unknown): e is MintError;
|
|
31
|
+
|
|
32
|
+
declare const MINT_STATES: readonly ["loading", "unsupported", "upcoming", "ended", "sold-out", "disconnected", "connecting", "live", "ineligible", "insufficient-funds", "switching-chain", "approving", "minting", "confirming", "success", "error"];
|
|
33
|
+
type MintStateName = (typeof MINT_STATES)[number];
|
|
34
|
+
/** States where mint() does something (spec: Clickable column). */
|
|
35
|
+
declare const CLICKABLE_STATES: readonly MintStateName[];
|
|
36
|
+
/** uint16 mintCount cap on Manifold extensions; also the global quantity cap. */
|
|
37
|
+
declare const MAX_QUANTITY = 65535;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Placeholders: {recipient} {payer} {quantity} {unitPrice} {totalPrice}. Integers beyond
|
|
41
|
+
* Number.MAX_SAFE_INTEGER must be bigint or a decimal string (an unsafe number is INVALID_CONFIG).
|
|
42
|
+
*/
|
|
43
|
+
type ArgTemplate = string | number | bigint | boolean | ArgTemplate[];
|
|
44
|
+
type FieldSource = {
|
|
45
|
+
value: bigint;
|
|
46
|
+
} | {
|
|
47
|
+
value: string;
|
|
48
|
+
unit: 'display';
|
|
49
|
+
} | {
|
|
50
|
+
read: {
|
|
51
|
+
functionName: string;
|
|
52
|
+
args?: ArgTemplate[];
|
|
53
|
+
output?: number | string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
type Erc20Ref = {
|
|
57
|
+
address: Address;
|
|
58
|
+
};
|
|
59
|
+
type ManifoldClaimConfig = {
|
|
60
|
+
type: 'manifold-claim';
|
|
61
|
+
chainId: number;
|
|
62
|
+
creatorContract: Address;
|
|
63
|
+
/** Studio instance id == on-chain claim index (V6+ extensions). Decimal string. */
|
|
64
|
+
instanceId: string;
|
|
65
|
+
/** Optional; auto-discovered when omitted. */
|
|
66
|
+
extension?: Address;
|
|
67
|
+
};
|
|
68
|
+
type ContractConfig = {
|
|
69
|
+
type: 'contract';
|
|
70
|
+
chainId: number;
|
|
71
|
+
/** Mint call target. */
|
|
72
|
+
address: Address;
|
|
73
|
+
/** Where Transfer logs come from; defaults to address. */
|
|
74
|
+
tokenContract?: Address;
|
|
75
|
+
abi: Abi;
|
|
76
|
+
mint: {
|
|
77
|
+
functionName: string;
|
|
78
|
+
args: ArgTemplate[];
|
|
79
|
+
};
|
|
80
|
+
price: FieldSource & {
|
|
81
|
+
currency: 'native' | Erc20Ref;
|
|
82
|
+
per?: 'unit' | 'total';
|
|
83
|
+
};
|
|
84
|
+
totalMinted?: FieldSource;
|
|
85
|
+
/** 0 or absent = open edition. */
|
|
86
|
+
maxSupply?: FieldSource;
|
|
87
|
+
walletMinted?: FieldSource;
|
|
88
|
+
walletMax?: FieldSource;
|
|
89
|
+
startTime?: FieldSource;
|
|
90
|
+
endTime?: FieldSource;
|
|
91
|
+
};
|
|
92
|
+
type MintConfig = ManifoldClaimConfig | ContractConfig;
|
|
93
|
+
/** chainId -> JSON-RPC URL (agent's domain-restricted key). */
|
|
94
|
+
type RpcUrls = Record<number, string>;
|
|
95
|
+
type Money = {
|
|
96
|
+
value: bigint;
|
|
97
|
+
decimals: number;
|
|
98
|
+
symbol: string;
|
|
99
|
+
formatted: string;
|
|
100
|
+
};
|
|
101
|
+
type DropInfo = {
|
|
102
|
+
chainId: number;
|
|
103
|
+
unitPrice: Money;
|
|
104
|
+
/** Manifold MINT_FEE / MINT_FEE_MERKLE per unit (native). Zero Money for external contracts. */
|
|
105
|
+
unitFee: Money;
|
|
106
|
+
totalMinted: bigint;
|
|
107
|
+
/** null = open edition. */
|
|
108
|
+
maxSupply: bigint | null;
|
|
109
|
+
startTime: number | null;
|
|
110
|
+
endTime: number | null;
|
|
111
|
+
isAllowlist: boolean;
|
|
112
|
+
/** ERC20 the price is paid in; null = native. */
|
|
113
|
+
paymentToken: Address | null;
|
|
114
|
+
/** External price is per transaction ('total') rather than per unit. */
|
|
115
|
+
pricePer: 'unit' | 'total';
|
|
116
|
+
};
|
|
117
|
+
type WalletInfo = {
|
|
118
|
+
address: Address;
|
|
119
|
+
chainId: number;
|
|
120
|
+
recipient: Address;
|
|
121
|
+
walletMinted: bigint | null;
|
|
122
|
+
walletMax: bigint | null;
|
|
123
|
+
allowlistRemaining: number | null;
|
|
124
|
+
};
|
|
125
|
+
type MintedToken = {
|
|
126
|
+
contract: Address;
|
|
127
|
+
tokenId: bigint;
|
|
128
|
+
amount: bigint;
|
|
129
|
+
};
|
|
130
|
+
type MintResult = {
|
|
131
|
+
txHash: Hex;
|
|
132
|
+
explorerUrl: string | null;
|
|
133
|
+
tokens: MintedToken[];
|
|
134
|
+
/** Set when the mint went through Relay: the deposit on the pay chain and Relay's request id. */
|
|
135
|
+
relay?: {
|
|
136
|
+
requestId: Hex;
|
|
137
|
+
originTxHash: Hex;
|
|
138
|
+
originChainId: number;
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
/** How the mint is paid (spec relay-cross-chain-mint #public-api). */
|
|
142
|
+
type Route = {
|
|
143
|
+
kind: 'direct';
|
|
144
|
+
chainId: number;
|
|
145
|
+
} | {
|
|
146
|
+
kind: 'relay';
|
|
147
|
+
/** The chain the collector pays on. */
|
|
148
|
+
originChainId: number;
|
|
149
|
+
/** What leaves the wallet on the origin chain: mint + Relay fee. */
|
|
150
|
+
amountIn: Money;
|
|
151
|
+
/** Relay's fee (fees.relayer). */
|
|
152
|
+
relayFee: Money;
|
|
153
|
+
/** Origin-chain gas Relay estimates for the deposit (fees.gas). */
|
|
154
|
+
originGas: Money;
|
|
155
|
+
/** Unix seconds. */
|
|
156
|
+
quotedAt: number;
|
|
157
|
+
};
|
|
158
|
+
/** Cross-chain options on useMint / MintButton. */
|
|
159
|
+
type CrossChainOption = boolean | {
|
|
160
|
+
chains?: number[];
|
|
161
|
+
};
|
|
162
|
+
/** Immutable context frozen when mint is clicked (spec #state-management). */
|
|
163
|
+
type Attempt = {
|
|
164
|
+
attemptId: number;
|
|
165
|
+
config: MintConfig;
|
|
166
|
+
payer: Address;
|
|
167
|
+
recipient: Address;
|
|
168
|
+
quantity: number;
|
|
169
|
+
chainId: number;
|
|
170
|
+
tokenContract: Address;
|
|
171
|
+
/** Chain the collector pays on; equals chainId for a direct mint. */
|
|
172
|
+
originChainId: number;
|
|
173
|
+
};
|
|
174
|
+
type MintEventType = 'state' | 'attempt' | 'approve-submitted' | 'tx-submitted' | 'success' | 'error';
|
|
175
|
+
/** onEvent payload. No wallet address is included. */
|
|
176
|
+
type MintEvent = {
|
|
177
|
+
type: MintEventType;
|
|
178
|
+
state: MintStateName;
|
|
179
|
+
reason: ReasonCode | null;
|
|
180
|
+
chainId: number;
|
|
181
|
+
txHash?: Hex;
|
|
182
|
+
quantity: number;
|
|
183
|
+
config: {
|
|
184
|
+
type: MintConfig['type'];
|
|
185
|
+
chainId: number;
|
|
186
|
+
address: Address;
|
|
187
|
+
};
|
|
188
|
+
/** 'relay' when the mint is (or would be) paid on another chain through Relay. */
|
|
189
|
+
route: 'direct' | 'relay';
|
|
190
|
+
/** Chain the collector pays on. chainId stays the drop chain. */
|
|
191
|
+
originChainId: number;
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
export { type ArgTemplate as A, type CrossChainOption as C, type DropInfo as D, type Erc20Ref as E, type FieldSource as F, type IneligibleReason as I, type ManifoldClaimConfig as M, type ReasonCode as R, type UnsupportedReason as U, type WalletInfo as W, type Money as a, type RpcUrls as b, type MintConfig as c, type MintEvent as d, type MintStateName as e, type MintResult as f, type Route as g, type Attempt as h, CLICKABLE_STATES as i, type ContractConfig as j, type ErrorReason as k, MAX_QUANTITY as l, MINT_STATES as m, MintError as n, type MintEventType as o, type MintedToken as p, REASON_CODES as q, isMintError as r };
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { Address, Abi, Hex } from 'viem';
|
|
2
|
+
|
|
3
|
+
declare const UNSUPPORTED_REASONS: readonly ["UNKNOWN_EXTENSION", "AMBIGUOUS_EXTENSION", "CLAIM_NOT_FOUND", "SIGNATURE_CLAIM", "INVALID_CONFIG", "CONNECT_WIDGET_TOO_OLD"];
|
|
4
|
+
declare const INELIGIBLE_REASONS: readonly ["NOT_ON_ALLOWLIST", "ALLOWLIST_USED", "WALLET_LIMIT", "SIMULATION_REVERTED"];
|
|
5
|
+
declare const ERROR_REASONS: readonly ["USER_REJECTED", "TX_REVERTED", "RATE_LIMITED", "RPC_ERROR", "CHAIN_SWITCH_FAILED", "ALLOWLIST_UNAVAILABLE", "BRIDGE_UNAVAILABLE", "BRIDGE_REFUNDED", "BRIDGE_FAILED", "BRIDGE_TIMEOUT"];
|
|
6
|
+
/** insufficient-funds carries this reason so data-reason is never empty in that state. */
|
|
7
|
+
declare const FUNDS_REASONS: readonly ["INSUFFICIENT_FUNDS"];
|
|
8
|
+
type UnsupportedReason = (typeof UNSUPPORTED_REASONS)[number];
|
|
9
|
+
type IneligibleReason = (typeof INELIGIBLE_REASONS)[number];
|
|
10
|
+
type ErrorReason = (typeof ERROR_REASONS)[number];
|
|
11
|
+
type ReasonCode = UnsupportedReason | IneligibleReason | ErrorReason | (typeof FUNDS_REASONS)[number];
|
|
12
|
+
declare const REASON_CODES: readonly ReasonCode[];
|
|
13
|
+
/**
|
|
14
|
+
* Thrown by adapters, rpc and wallet code; the hook maps it to the matching state.
|
|
15
|
+
* `message` is plain English and, for INVALID_CONFIG, names the exact bad field
|
|
16
|
+
* (e.g. `mint.args[1] "{qty}" is not a known placeholder`).
|
|
17
|
+
*/
|
|
18
|
+
declare class MintError extends Error {
|
|
19
|
+
readonly reason: ReasonCode;
|
|
20
|
+
/** INVALID_CONFIG only: dotted path of the bad field, e.g. "mint.args[1]" or "price". */
|
|
21
|
+
readonly field?: string;
|
|
22
|
+
/** 'relay': the message is Relay's decoded destination revert, shown as-is. */
|
|
23
|
+
readonly domain?: 'relay';
|
|
24
|
+
constructor(reason: ReasonCode, message: string, opts?: {
|
|
25
|
+
field?: string;
|
|
26
|
+
cause?: unknown;
|
|
27
|
+
domain?: 'relay';
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
declare function isMintError(e: unknown): e is MintError;
|
|
31
|
+
|
|
32
|
+
declare const MINT_STATES: readonly ["loading", "unsupported", "upcoming", "ended", "sold-out", "disconnected", "connecting", "live", "ineligible", "insufficient-funds", "switching-chain", "approving", "minting", "confirming", "success", "error"];
|
|
33
|
+
type MintStateName = (typeof MINT_STATES)[number];
|
|
34
|
+
/** States where mint() does something (spec: Clickable column). */
|
|
35
|
+
declare const CLICKABLE_STATES: readonly MintStateName[];
|
|
36
|
+
/** uint16 mintCount cap on Manifold extensions; also the global quantity cap. */
|
|
37
|
+
declare const MAX_QUANTITY = 65535;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Placeholders: {recipient} {payer} {quantity} {unitPrice} {totalPrice}. Integers beyond
|
|
41
|
+
* Number.MAX_SAFE_INTEGER must be bigint or a decimal string (an unsafe number is INVALID_CONFIG).
|
|
42
|
+
*/
|
|
43
|
+
type ArgTemplate = string | number | bigint | boolean | ArgTemplate[];
|
|
44
|
+
type FieldSource = {
|
|
45
|
+
value: bigint;
|
|
46
|
+
} | {
|
|
47
|
+
value: string;
|
|
48
|
+
unit: 'display';
|
|
49
|
+
} | {
|
|
50
|
+
read: {
|
|
51
|
+
functionName: string;
|
|
52
|
+
args?: ArgTemplate[];
|
|
53
|
+
output?: number | string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
type Erc20Ref = {
|
|
57
|
+
address: Address;
|
|
58
|
+
};
|
|
59
|
+
type ManifoldClaimConfig = {
|
|
60
|
+
type: 'manifold-claim';
|
|
61
|
+
chainId: number;
|
|
62
|
+
creatorContract: Address;
|
|
63
|
+
/** Studio instance id == on-chain claim index (V6+ extensions). Decimal string. */
|
|
64
|
+
instanceId: string;
|
|
65
|
+
/** Optional; auto-discovered when omitted. */
|
|
66
|
+
extension?: Address;
|
|
67
|
+
};
|
|
68
|
+
type ContractConfig = {
|
|
69
|
+
type: 'contract';
|
|
70
|
+
chainId: number;
|
|
71
|
+
/** Mint call target. */
|
|
72
|
+
address: Address;
|
|
73
|
+
/** Where Transfer logs come from; defaults to address. */
|
|
74
|
+
tokenContract?: Address;
|
|
75
|
+
abi: Abi;
|
|
76
|
+
mint: {
|
|
77
|
+
functionName: string;
|
|
78
|
+
args: ArgTemplate[];
|
|
79
|
+
};
|
|
80
|
+
price: FieldSource & {
|
|
81
|
+
currency: 'native' | Erc20Ref;
|
|
82
|
+
per?: 'unit' | 'total';
|
|
83
|
+
};
|
|
84
|
+
totalMinted?: FieldSource;
|
|
85
|
+
/** 0 or absent = open edition. */
|
|
86
|
+
maxSupply?: FieldSource;
|
|
87
|
+
walletMinted?: FieldSource;
|
|
88
|
+
walletMax?: FieldSource;
|
|
89
|
+
startTime?: FieldSource;
|
|
90
|
+
endTime?: FieldSource;
|
|
91
|
+
};
|
|
92
|
+
type MintConfig = ManifoldClaimConfig | ContractConfig;
|
|
93
|
+
/** chainId -> JSON-RPC URL (agent's domain-restricted key). */
|
|
94
|
+
type RpcUrls = Record<number, string>;
|
|
95
|
+
type Money = {
|
|
96
|
+
value: bigint;
|
|
97
|
+
decimals: number;
|
|
98
|
+
symbol: string;
|
|
99
|
+
formatted: string;
|
|
100
|
+
};
|
|
101
|
+
type DropInfo = {
|
|
102
|
+
chainId: number;
|
|
103
|
+
unitPrice: Money;
|
|
104
|
+
/** Manifold MINT_FEE / MINT_FEE_MERKLE per unit (native). Zero Money for external contracts. */
|
|
105
|
+
unitFee: Money;
|
|
106
|
+
totalMinted: bigint;
|
|
107
|
+
/** null = open edition. */
|
|
108
|
+
maxSupply: bigint | null;
|
|
109
|
+
startTime: number | null;
|
|
110
|
+
endTime: number | null;
|
|
111
|
+
isAllowlist: boolean;
|
|
112
|
+
/** ERC20 the price is paid in; null = native. */
|
|
113
|
+
paymentToken: Address | null;
|
|
114
|
+
/** External price is per transaction ('total') rather than per unit. */
|
|
115
|
+
pricePer: 'unit' | 'total';
|
|
116
|
+
};
|
|
117
|
+
type WalletInfo = {
|
|
118
|
+
address: Address;
|
|
119
|
+
chainId: number;
|
|
120
|
+
recipient: Address;
|
|
121
|
+
walletMinted: bigint | null;
|
|
122
|
+
walletMax: bigint | null;
|
|
123
|
+
allowlistRemaining: number | null;
|
|
124
|
+
};
|
|
125
|
+
type MintedToken = {
|
|
126
|
+
contract: Address;
|
|
127
|
+
tokenId: bigint;
|
|
128
|
+
amount: bigint;
|
|
129
|
+
};
|
|
130
|
+
type MintResult = {
|
|
131
|
+
txHash: Hex;
|
|
132
|
+
explorerUrl: string | null;
|
|
133
|
+
tokens: MintedToken[];
|
|
134
|
+
/** Set when the mint went through Relay: the deposit on the pay chain and Relay's request id. */
|
|
135
|
+
relay?: {
|
|
136
|
+
requestId: Hex;
|
|
137
|
+
originTxHash: Hex;
|
|
138
|
+
originChainId: number;
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
/** How the mint is paid (spec relay-cross-chain-mint #public-api). */
|
|
142
|
+
type Route = {
|
|
143
|
+
kind: 'direct';
|
|
144
|
+
chainId: number;
|
|
145
|
+
} | {
|
|
146
|
+
kind: 'relay';
|
|
147
|
+
/** The chain the collector pays on. */
|
|
148
|
+
originChainId: number;
|
|
149
|
+
/** What leaves the wallet on the origin chain: mint + Relay fee. */
|
|
150
|
+
amountIn: Money;
|
|
151
|
+
/** Relay's fee (fees.relayer). */
|
|
152
|
+
relayFee: Money;
|
|
153
|
+
/** Origin-chain gas Relay estimates for the deposit (fees.gas). */
|
|
154
|
+
originGas: Money;
|
|
155
|
+
/** Unix seconds. */
|
|
156
|
+
quotedAt: number;
|
|
157
|
+
};
|
|
158
|
+
/** Cross-chain options on useMint / MintButton. */
|
|
159
|
+
type CrossChainOption = boolean | {
|
|
160
|
+
chains?: number[];
|
|
161
|
+
};
|
|
162
|
+
/** Immutable context frozen when mint is clicked (spec #state-management). */
|
|
163
|
+
type Attempt = {
|
|
164
|
+
attemptId: number;
|
|
165
|
+
config: MintConfig;
|
|
166
|
+
payer: Address;
|
|
167
|
+
recipient: Address;
|
|
168
|
+
quantity: number;
|
|
169
|
+
chainId: number;
|
|
170
|
+
tokenContract: Address;
|
|
171
|
+
/** Chain the collector pays on; equals chainId for a direct mint. */
|
|
172
|
+
originChainId: number;
|
|
173
|
+
};
|
|
174
|
+
type MintEventType = 'state' | 'attempt' | 'approve-submitted' | 'tx-submitted' | 'success' | 'error';
|
|
175
|
+
/** onEvent payload. No wallet address is included. */
|
|
176
|
+
type MintEvent = {
|
|
177
|
+
type: MintEventType;
|
|
178
|
+
state: MintStateName;
|
|
179
|
+
reason: ReasonCode | null;
|
|
180
|
+
chainId: number;
|
|
181
|
+
txHash?: Hex;
|
|
182
|
+
quantity: number;
|
|
183
|
+
config: {
|
|
184
|
+
type: MintConfig['type'];
|
|
185
|
+
chainId: number;
|
|
186
|
+
address: Address;
|
|
187
|
+
};
|
|
188
|
+
/** 'relay' when the mint is (or would be) paid on another chain through Relay. */
|
|
189
|
+
route: 'direct' | 'relay';
|
|
190
|
+
/** Chain the collector pays on. chainId stays the drop chain. */
|
|
191
|
+
originChainId: number;
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
export { type ArgTemplate as A, type CrossChainOption as C, type DropInfo as D, type Erc20Ref as E, type FieldSource as F, type IneligibleReason as I, type ManifoldClaimConfig as M, type ReasonCode as R, type UnsupportedReason as U, type WalletInfo as W, type Money as a, type RpcUrls as b, type MintConfig as c, type MintEvent as d, type MintStateName as e, type MintResult as f, type Route as g, type Attempt as h, CLICKABLE_STATES as i, type ContractConfig as j, type ErrorReason as k, MAX_QUANTITY as l, MINT_STATES as m, MintError as n, type MintEventType as o, type MintedToken as p, REASON_CODES as q, isMintError as r };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manifoldxyz/dropkit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "React building blocks for Manifold creator drop sites.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -24,6 +24,16 @@
|
|
|
24
24
|
"default": "./dist/index.cjs"
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
|
+
"./cart": {
|
|
28
|
+
"import": {
|
|
29
|
+
"types": "./dist/cart.d.ts",
|
|
30
|
+
"default": "./dist/cart.js"
|
|
31
|
+
},
|
|
32
|
+
"require": {
|
|
33
|
+
"types": "./dist/cart.d.cts",
|
|
34
|
+
"default": "./dist/cart.cjs"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
27
37
|
"./package.json": "./package.json"
|
|
28
38
|
},
|
|
29
39
|
"files": [
|