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

feat: init arweave uploader using turbo sdk and ar.io bundling infrastructure #152

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
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
5 changes: 5 additions & 0 deletions .changeset/silent-keys-love.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@metaplex-foundation/umi-uploader-arweave-via-turbo': minor
---

Added Arweave uploader support via Turbo SDK
Empty file.
9 changes: 9 additions & 0 deletions packages/umi-uploader-arweave-via-turbo/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# umi-uploader-arweave-via-turbo

An uploader implementation relying on Arweave. Takes advantage of the Turbo SDK and AR.IO bundling infrastructure to provide seamless upload to Arweave

## Installation

```sh
npm install @metaplex-foundation/umi-uploader-arweave-via-turbo
```
3 changes: 3 additions & 0 deletions packages/umi-uploader-arweave-via-turbo/babel.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "../../babel.config.json"
}
72 changes: 72 additions & 0 deletions packages/umi-uploader-arweave-via-turbo/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"name": "@metaplex-foundation/umi-uploader-arweave-via-turbo",
"version": "0.9.2",
"description": "An uploader implementation relying on Arweave",
"license": "MIT",
"sideEffects": false,
"module": "dist/esm/index.mjs",
"main": "dist/cjs/index.cjs",
"types": "dist/types/index.d.ts",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/esm/index.mjs",
"require": "./dist/cjs/index.cjs"
}
},
"files": [
"/dist/cjs",
"/dist/esm",
"/dist/types",
"/src"
],
"scripts": {
"lint": "eslint --ext js,ts,tsx src",
"lint:fix": "eslint --fix --ext js,ts,tsx src",
"clean": "rimraf dist",
"build": "pnpm clean && tsc && tsc -p test/tsconfig.json && rollup -c",
"test": "ava"
},
"dependencies": {
"@ardrive/turbo-sdk": "^1.19.0",
"@metaplex-foundation/umi-web3js-adapters": "workspace:^",
"bignumber.js": "^9.1.2",
"buffer": "^6.0.3"
},
"peerDependencies": {
"@metaplex-foundation/umi": "workspace:^",
"@solana/web3.js": "^1.72.0"
},
"devDependencies": {
"@ava/typescript": "^3.0.1",
"@metaplex-foundation/umi": "workspace:^",
"@metaplex-foundation/umi-downloader-http": "workspace:^",
"@metaplex-foundation/umi-eddsa-web3js": "workspace:^",
"@metaplex-foundation/umi-http-fetch": "workspace:^",
"@metaplex-foundation/umi-rpc-web3js": "workspace:^",
"@solana/web3.js": "^1.72.0",
"ava": "^5.1.0"
},
"publishConfig": {
"access": "public"
},
"author": "Metaplex Maintainers <[email protected]>",
"homepage": "https://metaplex.com",
"repository": {
"url": "https://github.com/metaplex-foundation/umi.git"
},
"typedoc": {
"entryPoint": "./src/index.ts",
"readmeFile": "./README.md",
"displayName": "umi-uploader-arweave-via-turbo"
},
"ava": {
"typescript": {
"compile": false,
"rewritePaths": {
"src/": "dist/test/src/",
"test/": "dist/test/test/"
}
}
}
}
16 changes: 16 additions & 0 deletions packages/umi-uploader-arweave-via-turbo/rollup.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { createConfigs } from '../../rollup.config';
import pkg from './package.json';

export default createConfigs({
pkg,
builds: [
{
dir: 'dist/esm',
format: 'es',
},
{
dir: 'dist/cjs',
format: 'cjs',
},
],
});
Loading
Loading