Skip to content

Commit 52a5abd

Browse files
authored
Merge pull request #67 from labscommunity/kranthi/bundlr-patch
fix: use bundlr patch dependency
2 parents 21f8a21 + 8b05d99 commit 52a5abd

5 files changed

Lines changed: 13 additions & 14 deletions

File tree

bundlr-patch.tgz

3.69 MB
Binary file not shown.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "arweavekit",
3-
"version": "1.4.1",
3+
"version": "1.4.2",
44
"description": "Utility library to build full stack permaweb applications",
55
"type": "module",
66
"main": "dist/index.js",
@@ -47,7 +47,7 @@
4747
"typescript": "^4.9.5"
4848
},
4949
"dependencies": {
50-
"@bundlr-network/client": "0.11.9",
50+
"@bundlr-network/client": "file:bundlr-patch.tgz",
5151
"arweave": "^1.13.5",
5252
"arweave-mnemonic-keys": "^0.0.9",
5353
"graphql": "^16.7.1",

src/lib/contract.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export async function writeContract(params: Types.WriteContractProps) {
7979
.connect(params.wallet ? params.wallet : 'use_wallet');
8080

8181
const writeContract = await contract.writeInteraction(params.options, {
82-
tags: [{ name: 'ArweaveKit', value: '1.4.1' }],
82+
tags: [{ name: 'ArweaveKit', value: '1.4.2' }],
8383
});
8484

8585
const readState = await contract.readState();
@@ -164,7 +164,7 @@ export async function writeContractWOthent(
164164
const signedTransaction = await othentInstance.signTransactionWarp({
165165
othentFunction: params.othentFunction,
166166
data: params.data,
167-
tags: [{ name: 'ArweaveKit', value: '1.4.1' }],
167+
tags: [{ name: 'ArweaveKit', value: '1.4.2' }],
168168
});
169169

170170
const postedTransaction = await othentInstance.sendTransactionWarp(

src/lib/transaction.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,15 @@ export async function createTransaction<
7575
const allTags = params?.options.tags && [
7676
{
7777
name: 'ArweaveKit',
78-
value: '1.4.1',
78+
value: '1.4.2',
7979
},
8080
...params?.options.tags,
8181
];
8282

8383
const transaction = bundlr.createTransaction(
8484
JSON.stringify(params?.data),
8585
{
86-
tags: allTags ? allTags : [{ name: 'ArweaveKit', value: '1.4.1' }],
86+
tags: allTags ? allTags : [{ name: 'ArweaveKit', value: '1.4.2' }],
8787
}
8888
);
8989

@@ -128,7 +128,7 @@ export async function createTransaction<
128128
);
129129

130130
// tags
131-
transaction.addTag('ArweaveKit', '1.4.1');
131+
transaction.addTag('ArweaveKit', '1.4.2');
132132
if (params?.options?.tags) {
133133
params?.options?.tags?.map((k, i) =>
134134
transaction.addTag(k.name, k.value)
@@ -179,7 +179,7 @@ export async function createTransaction<
179179
);
180180

181181
// add tags
182-
transaction.addTag('ArweaveKit', '1.4.1');
182+
transaction.addTag('ArweaveKit', '1.4.2');
183183
if (params?.options?.tags) {
184184
params?.options?.tags?.map((k, i) =>
185185
transaction.addTag(k.name, k.value)
@@ -296,7 +296,7 @@ export async function createAndPostTransactionWOthent(
296296
const allTags = params?.tags && [
297297
{
298298
name: 'ArweaveKit',
299-
value: '1.4.1',
299+
value: '1.4.2',
300300
},
301301
...params?.tags,
302302
];
@@ -307,7 +307,7 @@ export async function createAndPostTransactionWOthent(
307307
const signedTransaction = await othentInstance.signTransactionBundlr({
308308
othentFunction: params.othentFunction,
309309
data: params.data,
310-
tags: allTags ? allTags : [{ name: 'ArweaveKit', value: '1.4.1' }],
310+
tags: allTags ? allTags : [{ name: 'ArweaveKit', value: '1.4.2' }],
311311
});
312312

313313
postedTransaction = await othentInstance.sendTransactionBundlr(
@@ -317,7 +317,7 @@ export async function createAndPostTransactionWOthent(
317317
const signedTransaction = await othentInstance.signTransactionArweave({
318318
othentFunction: params.othentFunction,
319319
data: params.data,
320-
tags: allTags ? allTags : [{ name: 'ArweaveKit', value: '1.4.1' }],
320+
tags: allTags ? allTags : [{ name: 'ArweaveKit', value: '1.4.2' }],
321321
});
322322

323323
postedTransaction = await othentInstance.sendTransactionArweave(

yarn.lock

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -427,10 +427,9 @@
427427
resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"
428428
integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==
429429

430-
"@bundlr-network/client@0.11.9":
430+
"@bundlr-network/client@file:bundlr-patch.tgz":
431431
version "0.11.9"
432-
resolved "https://registry.yarnpkg.com/@bundlr-network/client/-/client-0.11.9.tgz#c6d170e1ff74661af78547ed8bd8d84e09824f4a"
433-
integrity sha512-0lZAB0kx+GZsIGPT+nN2tMLseAzg98hS1HEupRoZcuE9OoMOa4+H+SOTNEbmxp7kuDKoMC3TXN9GOJBXFcPe7Q==
432+
resolved "file:bundlr-patch.tgz#06bf4386e59a7f2cea84f0af8fca6b5b316bbbf2"
434433
dependencies:
435434
"@ethersproject/bignumber" "^5.7.0"
436435
"@ethersproject/contracts" "^5.7.0"

0 commit comments

Comments
 (0)