Skip to content

Commit

Permalink
Merge pull request #152 from fedellen/feat/arweave-uploader
Browse files Browse the repository at this point in the history
feat: init arweave uploader using turbo sdk and ar.io bundling infrastructure
  • Loading branch information
blockiosaurus authored Jan 6, 2025
2 parents dd3ad7b + 4ab10fc commit 3cf2f1b
Show file tree
Hide file tree
Showing 14 changed files with 1,887 additions and 234 deletions.
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.20.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 <contact@metaplex.com>",
"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

0 comments on commit 3cf2f1b

Please sign in to comment.