Skip to content

Commit 14cc054

Browse files
authored
feat: enable batcher fees (#74)
1 parent 5c4c514 commit 14cc054

5 files changed

Lines changed: 1146 additions & 686 deletions

File tree

examples/blockfrost-adapter-example.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
11
import { BlockFrostAPI } from "@blockfrost/blockfrost-js";
22

33
import {
4-
Asset,
54
BlockfrostAdapter,
65
getBackendBlockfrostLucidInstance,
76
NetworkId,
87
} from "../src";
98
import { _swapExactInV2TxExample } from "./build-tx-example";
109

11-
const MIN: Asset = {
12-
policyId: "e16c2dc8ae937e8d3790c7fd7168d7b994621ba14ca11415f39fed72",
13-
tokenName: "4d494e",
14-
};
15-
1610
async function main(): Promise<void> {
1711
const networkId: NetworkId = NetworkId.TESTNET;
1812
const blockfrostProjectId = "<YOUR_BLOCKFROST_API_KEY>";
@@ -34,14 +28,11 @@ async function main(): Promise<void> {
3428
})
3529
);
3630

37-
const utxos = await lucid.utxosAt(address);
38-
3931
// Replace your function in build-tx-example that you want to test here
4032
const txComplete = await _swapExactInV2TxExample(
4133
lucid,
4234
blockfrostAdapter,
43-
address,
44-
utxos
35+
address
4536
);
4637

4738
const signedTx = await txComplete

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,27 +64,27 @@
6464
"devDependencies": {
6565
"@eslint/compat": "^1.1.1",
6666
"@eslint/js": "^9.9.1",
67-
"@jest/globals": "^29.7.0",
67+
"@jest/globals": "^30.2.0",
6868
"@prisma/client": "^6.0.1",
6969
"@types/big.js": "^6.2.2",
7070
"@types/eslint__js": "^8.42.3",
71-
"@types/jest": "^29.5.12",
71+
"@types/jest": "^30.0.0",
7272
"@types/json-bigint": "^1.0.4",
7373
"@types/node": "^20.9.2",
7474
"esbuild": "^0.23.1",
7575
"eslint": "^9.9.1",
7676
"eslint-plugin-simple-import-sort": "^12.1.1",
7777
"eslint-plugin-unicorn": "^55.0.0",
7878
"eslint-plugin-unused-imports": "^4.1.3",
79-
"jest": "^29.7.0",
79+
"jest": "^30.2.0",
8080
"json-bigint": "^1.0.0",
8181
"prettier": "3.3.3",
8282
"prisma": "^6.0.1",
8383
"rimraf": "^6.0.1",
8484
"rollup": "^4.21.2",
8585
"rollup-plugin-dts": "^6.1.1",
8686
"rollup-plugin-esbuild": "^6.1.1",
87-
"ts-jest": "^29.2.5",
87+
"ts-jest": "^29.4.6",
8888
"ts-node": "^10.9.2",
8989
"tsx": "^4.19.2",
9090
"typescript": "^5.5.4",
@@ -97,4 +97,4 @@
9797
"prisma": {
9898
"schema": "./src/syncer/postgres/prisma/schema.prisma"
9999
}
100-
}
100+
}

0 commit comments

Comments
 (0)