@koralabs/kora-labs-common 4.0.21 → 4.1.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.
@@ -159,6 +159,13 @@ export interface IHandleMetadata {
159
159
  handle_type: HandleType;
160
160
  }
161
161
  export interface IPzDatum {
162
+ virtual?: {
163
+ expires_slot: number;
164
+ public_mint: BoolInt;
165
+ };
166
+ resolved_addresses?: {
167
+ [key: string]: string;
168
+ };
162
169
  standard_image: string;
163
170
  image_hash: HexStringOrEmpty;
164
171
  standard_image_hash: HexStringOrEmpty;
@@ -178,33 +185,35 @@ export interface IPzDatum {
178
185
  svg_version: string;
179
186
  agreed_terms: string;
180
187
  migrate_sig_required: BoolInt;
181
- resolved_addresses?: {
182
- [key: string]: string;
183
- };
184
- expires_slot?: number;
185
- is_private?: BoolInt;
186
188
  }
187
189
  export interface ISubHandleSettingsCreatorDefaults extends ICreatorDefaults {
188
190
  bg_image?: string;
191
+ expires_slot?: number;
189
192
  }
190
- export interface ISubHandleAdminSettings {
191
- valid_contracts: HexString[];
192
- admin_creds: HexString[];
193
- base_price: number;
194
- buy_down_prices: [number, number][];
195
- }
193
+ export type ISubHandleAdminSettings = [
194
+ HexString[],
195
+ HexString[],
196
+ number,
197
+ number,
198
+ [
199
+ number,
200
+ number
201
+ ][],
202
+ HexString,
203
+ number
204
+ ];
196
205
  export interface ISubHandleTypeSettings {
197
206
  public_minting_enabled?: boolean;
198
207
  pz_enabled?: boolean;
199
208
  tier_pricing?: [number, number][];
200
209
  creator_defaults?: ISubHandleSettingsCreatorDefaults;
201
- expires_slot?: number;
202
210
  }
203
211
  export interface ISubHandleSettings {
204
212
  nft?: ISubHandleTypeSettings;
205
213
  virtual?: ISubHandleTypeSettings;
206
214
  buy_down_paid?: number;
207
215
  buy_down_price?: number;
216
+ buy_down_percent?: number;
208
217
  agreed_terms?: string;
209
218
  payment_address?: string;
210
219
  migrate_sig_required?: boolean;
@@ -216,17 +225,17 @@ export type ISubHandleSettingsItemDatumStruct = [
216
225
  number,
217
226
  number
218
227
  ][],
219
- ISubHandleSettingsCreatorDefaults,
220
- number
228
+ ISubHandleSettingsCreatorDefaults
221
229
  ];
222
230
  export type ISubHandleSettingsDatumStruct = [
223
231
  ISubHandleSettingsItemDatumStruct,
224
232
  ISubHandleSettingsItemDatumStruct,
225
233
  number,
226
234
  number,
235
+ number,
227
236
  string,
228
- string,
229
- BoolInt
237
+ BoolInt,
238
+ string
230
239
  ];
231
240
  export interface IHandleFileContent {
232
241
  slot: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@koralabs/kora-labs-common",
3
- "version": "4.0.21",
3
+ "version": "4.1.0",
4
4
  "description": "Kora Labs Common Utilities",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -8,6 +8,9 @@ export declare const handleDatumSchema: {
8
8
  rarity: string;
9
9
  characters: string;
10
10
  numeric_modifiers: string;
11
+ sub_rarity: string;
12
+ sub_characters: string;
13
+ sub_numeric_modifiers: string;
11
14
  };
12
15
  '[2]': {
13
16
  standard_image: string;
@@ -10,7 +10,10 @@ exports.handleDatumSchema = {
10
10
  og: 'bool',
11
11
  rarity: 'string',
12
12
  characters: 'string',
13
- numeric_modifiers: 'string'
13
+ numeric_modifiers: 'string',
14
+ sub_rarity: 'string',
15
+ sub_characters: 'string',
16
+ sub_numeric_modifiers: 'string'
14
17
  },
15
18
  '[2]': {
16
19
  standard_image: 'string',