anchor-sdk 0.1.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +735 -0
- package/dist/AnchorApiClient.d.ts +203 -0
- package/dist/AnchorApiClient.js +279 -0
- package/dist/AnchorApiClientV2.d.ts +270 -0
- package/dist/AnchorApiClientV2.js +424 -0
- package/dist/AnchorERC1155Client.d.ts +85 -0
- package/dist/AnchorERC1155Client.js +280 -0
- package/dist/AnchorPayClient.d.ts +79 -0
- package/dist/AnchorPayClient.js +217 -0
- package/dist/abi/AnchorERC1155.d.ts +1359 -0
- package/dist/abi/AnchorERC1155.js +1122 -0
- package/dist/abi/AnchorPay.json +452 -0
- package/dist/api/AnchorApiHttpClient.d.ts +210 -0
- package/dist/api/AnchorApiHttpClient.js +411 -0
- package/dist/api/types.d.ts +764 -0
- package/dist/api/types.js +2 -0
- package/dist/constants.d.ts +49 -0
- package/dist/constants.js +221 -0
- package/dist/generated/Api.d.ts +1083 -0
- package/dist/generated/Api.js +571 -0
- package/dist/index.d.ts +341 -0
- package/dist/index.js +1377 -0
- package/dist/react/AnchorReactSDK.d.ts +59 -0
- package/dist/react/AnchorReactSDK.js +181 -0
- package/dist/react/index.d.ts +1 -0
- package/dist/react/index.js +8 -0
- package/dist/typechain/AnchorERC1155.d.ts +999 -0
- package/dist/typechain/AnchorERC1155.js +2 -0
- package/dist/typechain/AnchorPay.d.ts +242 -0
- package/dist/typechain/AnchorPay.js +2 -0
- package/dist/typechain/common.d.ts +50 -0
- package/dist/typechain/common.js +2 -0
- package/dist/typechain/factories/AnchorERC1155__factory.d.ts +1365 -0
- package/dist/typechain/factories/AnchorERC1155__factory.js +1766 -0
- package/dist/typechain/factories/AnchorPay__factory.d.ts +358 -0
- package/dist/typechain/factories/AnchorPay__factory.js +469 -0
- package/dist/typechain/factories/index.d.ts +2 -0
- package/dist/typechain/factories/index.js +10 -0
- package/dist/typechain/index.d.ts +5 -0
- package/dist/typechain/index.js +41 -0
- package/dist/types.d.ts +109 -0
- package/dist/types.js +2 -0
- package/package.json +87 -0
package/package.json
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "anchor-sdk",
|
|
3
|
+
"version": "0.1.36",
|
|
4
|
+
"description": "TypeScript SDK for interacting with Anchor ecosystem - badge minting, payment processing, and ERC1155 token management",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": "./dist/index.js",
|
|
9
|
+
"./react": "./dist/react/index.js"
|
|
10
|
+
},
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "tsc",
|
|
13
|
+
"test": "jest --passWithNoTests",
|
|
14
|
+
"lint": "eslint src --ext .ts",
|
|
15
|
+
"pre-publish-check": "./scripts/pre-publish-check.sh",
|
|
16
|
+
"publish-sdk": "./scripts/publish.sh",
|
|
17
|
+
"publish-internal": "./scripts/publish-internal.sh",
|
|
18
|
+
"publish-npmjs": "./scripts/publish-to-npmjs.sh",
|
|
19
|
+
"publish-gitlab": "./scripts/publish-to-gitlab.sh",
|
|
20
|
+
"typechain": "typechain --target ethers-v6 --out-dir ./src/typechain './src/abi/**/**.json'",
|
|
21
|
+
"generate-api": "npx swagger-typescript-api generate --path ./src/swagger/swagger.json --output ./src/generated",
|
|
22
|
+
"merge-api": "openapi-merge-cli --config merge-config.json"
|
|
23
|
+
},
|
|
24
|
+
"keywords": [
|
|
25
|
+
"blockchain",
|
|
26
|
+
"ethereum",
|
|
27
|
+
"anchor",
|
|
28
|
+
"payment",
|
|
29
|
+
"badge",
|
|
30
|
+
"erc1155",
|
|
31
|
+
"nft",
|
|
32
|
+
"typescript",
|
|
33
|
+
"sdk",
|
|
34
|
+
"viem",
|
|
35
|
+
"ethers",
|
|
36
|
+
"web3",
|
|
37
|
+
"account-abstraction",
|
|
38
|
+
"eoa",
|
|
39
|
+
"multicall",
|
|
40
|
+
"react"
|
|
41
|
+
],
|
|
42
|
+
"author": "AnchorLabs",
|
|
43
|
+
"license": "MIT",
|
|
44
|
+
"homepage": "https://github.com/keccak256-evg/anchor-sdk#readme",
|
|
45
|
+
"repository": {
|
|
46
|
+
"type": "git",
|
|
47
|
+
"url": "git+https://github.com/keccak256-evg/anchor-sdk.git"
|
|
48
|
+
},
|
|
49
|
+
"bugs": {
|
|
50
|
+
"url": "https://github.com/keccak256-evg/anchor-sdk/issues"
|
|
51
|
+
},
|
|
52
|
+
"engines": {
|
|
53
|
+
"node": ">=16.0.0"
|
|
54
|
+
},
|
|
55
|
+
"files": [
|
|
56
|
+
"dist",
|
|
57
|
+
"README.md",
|
|
58
|
+
"LICENSE"
|
|
59
|
+
],
|
|
60
|
+
"publishConfig": {
|
|
61
|
+
"access": "public"
|
|
62
|
+
},
|
|
63
|
+
"dependencies": {
|
|
64
|
+
"abitype": "^0.10.2",
|
|
65
|
+
"ethers": "^6.15.0",
|
|
66
|
+
"viem": "2.23.9"
|
|
67
|
+
},
|
|
68
|
+
"devDependencies": {
|
|
69
|
+
"@typechain/ethers-v6": "^0.5.1",
|
|
70
|
+
"@types/jest": "^29.5.0",
|
|
71
|
+
"@types/node": "^18.15.11",
|
|
72
|
+
"@types/react": "^19.0.10",
|
|
73
|
+
"@types/react-dom": "^19.0.4",
|
|
74
|
+
"@typescript-eslint/eslint-plugin": "^5.57.1",
|
|
75
|
+
"@typescript-eslint/parser": "^5.57.1",
|
|
76
|
+
"dotenv": "^16.4.7",
|
|
77
|
+
"eslint": "^8.37.0",
|
|
78
|
+
"jest": "^29.5.0",
|
|
79
|
+
"openapi-merge-cli": "^1.3.2",
|
|
80
|
+
"react": "^19.0.0",
|
|
81
|
+
"react-dom": "^19.0.0",
|
|
82
|
+
"swagger-typescript-api": "^13.2.9",
|
|
83
|
+
"ts-jest": "^29.1.0",
|
|
84
|
+
"typechain": "^8.3.2",
|
|
85
|
+
"typescript": "^5.0.3"
|
|
86
|
+
}
|
|
87
|
+
}
|