labscommunity / arweavekit Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://docs.arweavekit.com
License: MIT License
Home Page: https://docs.arweavekit.com
License: MIT License
Ran into an issue when using writeContract
from an arConnect wallet in the browser.
"Uncaught (in promise) Error: Signer not set correctly. If you connect wallet through 'use_wallet', please remember that it only works when bundling is disabled."
Would be fantastic to support the injectedArweaveSigner plugin with arweavekit so transactions could be bundled and sequenced by warp.
❤️
options.bundler
specifies if it should go to a bundler other than the current gatewayinterface Inputs {
data: string | Uint8Array | ArrayBuffer;
options: {
chunk: boolean;
bundler: boolean;
};
key: JWKInterface
}
type transaction = Transaction
The getTransaction from the get transaction utility tries to fetch data from arweave.net/tx/id
instead of arweave.net/id
. This results in a failed request.
options.seedPhrase
is passed in as trueinterface options {
seedPhrase: boolean
}
interface ReturnProps {
key: JWKInterface;
walletAddress: string;
seedPhrase?: string;
}
OR
transaction data OR
transaction data and tagsOR
transaction data OR
transaction data and tagsinterface Inputs {
transactionId: string;
options?: {
data?: boolean;
tags?: boolean;
};
}
interface options {
address: boolean
}
####return type
interface ReturnProps {
balance: string;
}
type Key = JWKInterface
interface ReturnProps {
walletAddress: string;
}
Lines 1 to 6 in 11ec226
type transaction = Transaction
type key = JWKInterface
interface Transaction {
id: string,
format: number;
last_tx: string;
owner: string;
tags: Tag[];
target: string;
....
}
If so, how do you set it to true?
add permawebjs tag to all transactions made through the library
options.uploadLargeBatch = true
options.target
andoptions.quantity
are providedoptions.quantity && options.target
|| data
params must be providedtype data = string | Uint8Array | ArrayBuffer;
interface Options {
tags: Tag[];
quantity?: string;
target?: string;
uploadLargeBatch?: boolean
}
interface Transaction {
id: string,
format: number;
last_tx: string;
owner: string;
tags: Tag[];
.....
}
Create a getData
function that returns the core data associated with a transaction id for mainnet, bundled and arlocal transactions.
Here's how the function will be used:
import { getData } from 'arweavekit/transaction'
const data = await getData({
transactionId: string,
environment: string,
});
getData
function should fetch the core data for bundled transaction ids as well).Hey folks!
Looks like the docs are just a tad bit behind; GraphQL and CLI support is now implemented, if I'm correct? See link, and keep on rockin'
type seedPhrase = string
type key = JWKInterface
fund wallets used in testing to be able to run the tests
This is a feature request to upgrade the contract utilities of arweavekit by adding support for custom warp configs :
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.