@campnetwork/origin 1.4.0-alpha.7 → 1.4.0-alpha.9
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/dist/core.cjs +45 -32
- package/dist/core.d.ts +12 -2
- package/dist/core.esm.d.ts +12 -2
- package/dist/core.esm.js +54 -41
- package/dist/react/index.esm.d.ts +12 -2
- package/dist/react/index.esm.js +66 -5
- package/package.json +1 -1
package/dist/core.d.ts
CHANGED
|
@@ -253,9 +253,9 @@ interface TokenInfo {
|
|
|
253
253
|
declare const createLicenseTerms: (price: bigint, duration: number, royaltyBps: number, paymentToken: Address, licenseType?: LicenseType) => LicenseTerms;
|
|
254
254
|
/**
|
|
255
255
|
* Represents the source of an IpNFT.
|
|
256
|
-
* This can be one of the supported social media platforms or a
|
|
256
|
+
* This can be one of the supported social media platforms, a file upload, or a GitHub repository.
|
|
257
257
|
*/
|
|
258
|
-
type IpNFTSource = "spotify" | "twitter" | "tiktok" | "file" | "api";
|
|
258
|
+
type IpNFTSource = "spotify" | "twitter" | "tiktok" | "file" | "api" | "repo";
|
|
259
259
|
|
|
260
260
|
/**
|
|
261
261
|
* Mints a Data NFT with a signature.
|
|
@@ -1251,6 +1251,16 @@ declare class Origin {
|
|
|
1251
1251
|
* @return The token ID of the minted IpNFT as a string, or null if minting failed.
|
|
1252
1252
|
*/
|
|
1253
1253
|
mintAPI(endpointURL: string, metadata: Record<string, unknown>, license: LicenseTerms, parents?: bigint[]): Promise<string | null>;
|
|
1254
|
+
/**
|
|
1255
|
+
* Mints a GitHub repository as an IpNFT.
|
|
1256
|
+
* @param githubOwner The GitHub owner (user or organization).
|
|
1257
|
+
* @param githubRepo The GitHub repository name.
|
|
1258
|
+
* @param metadata The metadata associated with the repository.
|
|
1259
|
+
* @param license The license terms for the IpNFT.
|
|
1260
|
+
* @param parents Optional parent token IDs for lineage tracking.
|
|
1261
|
+
* @return The token ID of the minted IpNFT as a string, or null if minting failed.
|
|
1262
|
+
*/
|
|
1263
|
+
mintRepo(githubOwner: string, githubRepo: string, metadata: Record<string, unknown>, license: LicenseTerms, parents?: bigint[]): Promise<string | null>;
|
|
1254
1264
|
/**
|
|
1255
1265
|
* Call a contract method.
|
|
1256
1266
|
* @param {string} contractAddress The contract address.
|
package/dist/core.esm.d.ts
CHANGED
|
@@ -253,9 +253,9 @@ interface TokenInfo {
|
|
|
253
253
|
declare const createLicenseTerms: (price: bigint, duration: number, royaltyBps: number, paymentToken: Address, licenseType?: LicenseType) => LicenseTerms;
|
|
254
254
|
/**
|
|
255
255
|
* Represents the source of an IpNFT.
|
|
256
|
-
* This can be one of the supported social media platforms or a
|
|
256
|
+
* This can be one of the supported social media platforms, a file upload, or a GitHub repository.
|
|
257
257
|
*/
|
|
258
|
-
type IpNFTSource = "spotify" | "twitter" | "tiktok" | "file" | "api";
|
|
258
|
+
type IpNFTSource = "spotify" | "twitter" | "tiktok" | "file" | "api" | "repo";
|
|
259
259
|
|
|
260
260
|
/**
|
|
261
261
|
* Mints a Data NFT with a signature.
|
|
@@ -1251,6 +1251,16 @@ declare class Origin {
|
|
|
1251
1251
|
* @return The token ID of the minted IpNFT as a string, or null if minting failed.
|
|
1252
1252
|
*/
|
|
1253
1253
|
mintAPI(endpointURL: string, metadata: Record<string, unknown>, license: LicenseTerms, parents?: bigint[]): Promise<string | null>;
|
|
1254
|
+
/**
|
|
1255
|
+
* Mints a GitHub repository as an IpNFT.
|
|
1256
|
+
* @param githubOwner The GitHub owner (user or organization).
|
|
1257
|
+
* @param githubRepo The GitHub repository name.
|
|
1258
|
+
* @param metadata The metadata associated with the repository.
|
|
1259
|
+
* @param license The license terms for the IpNFT.
|
|
1260
|
+
* @param parents Optional parent token IDs for lineage tracking.
|
|
1261
|
+
* @return The token ID of the minted IpNFT as a string, or null if minting failed.
|
|
1262
|
+
*/
|
|
1263
|
+
mintRepo(githubOwner: string, githubRepo: string, metadata: Record<string, unknown>, license: LicenseTerms, parents?: bigint[]): Promise<string | null>;
|
|
1254
1264
|
/**
|
|
1255
1265
|
* Call a contract method.
|
|
1256
1266
|
* @param {string} contractAddress The contract address.
|