Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/deprecated metaplexfoundation js #193

Merged
merged 6 commits into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion packages/nft/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
"test:all": "mocha -t 300000 --require ts-node/register './test/**/*.test.ts'"
},
"dependencies": {
"@metaplex-foundation/js": "0.19.1",
"@solana-suite/core": "latest",
"@solana-suite/storage": "latest",
"@solana-suite/shared-metaplex": "latest"
Expand Down
1 change: 1 addition & 0 deletions packages/shared/dist/cjs/constants.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@ export declare namespace Constants {
const NFT_STORAGE_API_KEY = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJkaWQ6ZXRocjoweERGMjcyN2VkODZhRGU1RTMyZDZDZEJlODc0YzRFNDlEODY1OWZmOEMiLCJpc3MiOiJuZnQtc3RvcmFnZSIsImlhdCI6MTYyMDI2NDk0MzcwNiwibmFtZSI6ImRlbW8ifQ.d4J70mikxRB8a5vwNu6SO5HDA8JaueuseAj7Q_ytMCE";
const NFT_STORAGE_GATEWAY_URL = "https://ipfs.io/ipfs";
const BUNDLR_NETWORK_URL: string;
const IRYS_GATEWAY_URL = "https://gateway.irys.xyz";
}
//# sourceMappingURL=constants.d.ts.map
2 changes: 1 addition & 1 deletion packages/shared/dist/cjs/constants.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/shared/dist/cjs/constants.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/shared/dist/cjs/constants.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 10 additions & 1 deletion packages/shared/dist/cjs/solana-suite.json
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
{ "cluster": { "type": "localhost-devnet", "customClusterUrl": [] }, "debugging": "false", "nftstorage": { "apikey": "" } }
{
"cluster": {
"type": "localhost-devnet",
"customClusterUrl": []
},
"debugging": "false",
"nftstorage": {
"apikey": ""
}
}
1 change: 1 addition & 0 deletions packages/shared/dist/esm/constants.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@ export declare namespace Constants {
const NFT_STORAGE_API_KEY = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJkaWQ6ZXRocjoweERGMjcyN2VkODZhRGU1RTMyZDZDZEJlODc0YzRFNDlEODY1OWZmOEMiLCJpc3MiOiJuZnQtc3RvcmFnZSIsImlhdCI6MTYyMDI2NDk0MzcwNiwibmFtZSI6ImRlbW8ifQ.d4J70mikxRB8a5vwNu6SO5HDA8JaueuseAj7Q_ytMCE";
const NFT_STORAGE_GATEWAY_URL = "https://ipfs.io/ipfs";
const BUNDLR_NETWORK_URL: string;
const IRYS_GATEWAY_URL = "https://gateway.irys.xyz";
}
//# sourceMappingURL=constants.d.ts.map
2 changes: 1 addition & 1 deletion packages/shared/dist/esm/constants.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/shared/dist/esm/constants.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/shared/dist/esm/constants.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 10 additions & 1 deletion packages/shared/dist/esm/solana-suite.json
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
{ "cluster": { "type": "localhost-devnet", "customClusterUrl": [] }, "debugging": "false", "nftstorage": { "apikey": "" } }
{
"cluster": {
"type": "localhost-devnet",
"customClusterUrl": []
},
"debugging": "false",
"nftstorage": {
"apikey": ""
}
}
1 change: 1 addition & 0 deletions packages/shared/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,5 @@ export namespace Constants {
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJkaWQ6ZXRocjoweERGMjcyN2VkODZhRGU1RTMyZDZDZEJlODc0YzRFNDlEODY1OWZmOEMiLCJpc3MiOiJuZnQtc3RvcmFnZSIsImlhdCI6MTYyMDI2NDk0MzcwNiwibmFtZSI6ImRlbW8ifQ.d4J70mikxRB8a5vwNu6SO5HDA8JaueuseAj7Q_ytMCE';
export const NFT_STORAGE_GATEWAY_URL = 'https://ipfs.io/ipfs';
export const BUNDLR_NETWORK_URL = switchBundlr(Config.cluster.type);
export const IRYS_GATEWAY_URL = 'https://gateway.irys.xyz';
}
11 changes: 10 additions & 1 deletion packages/shared/src/solana-suite.json
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
{"cluster":{"type":"localhost-devnet","customClusterUrl":[]},"debugging":"false","nftstorage":{"apikey":""}}
{
"cluster": {
"type": "localhost-devnet",
"customClusterUrl": []
},
"debugging": "false",
"nftstorage": {
"apikey": ""
}
}
19 changes: 2 additions & 17 deletions packages/storage/dist/cjs/arweave.d.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,7 @@
import { Currency } from '@metaplex-foundation/js';
import { Result, Secret } from '@solana-suite/shared';
import { FileContent, InfraSideInput } from '@solana-suite/shared-metaplex';
export interface MetaplexFileOptions {
readonly displayName: string;
readonly uniqueName: string;
readonly contentType: string | undefined;
readonly extension: string | undefined;
readonly tags: {
name: string;
value: string;
}[];
}
export declare namespace Arweave {
const getUploadPrice: (filePath: FileContent, feePayer: Secret) => Promise<Result<{
price: number;
currency: Currency;
}, Error>>;
const uploadContent: (filePath: FileContent, feePayer: Secret, fileOptions?: MetaplexFileOptions) => Promise<Result<string, Error>>;
const uploadMetadata: (metadata: InfraSideInput.Offchain, feePayer: Secret) => Promise<Result<string, Error>>;
const uploadFile: (filePath: FileContent, feePayer: Secret) => Promise<Result<string, Error>>;
const uploadData: (metadata: InfraSideInput.Offchain, feePayer: Secret) => Promise<Result<string, Error>>;
}
//# sourceMappingURL=arweave.d.ts.map
2 changes: 1 addition & 1 deletion packages/storage/dist/cjs/arweave.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading