@argonprotocol/mainchain 1.4.3 → 1.4.4

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.
Files changed (35) hide show
  1. package/browser/artifacts/contracts/ArgonToken.sol/ArgonToken.json +671 -0
  2. package/browser/artifacts/contracts/ArgonotToken.sol/ArgonotToken.json +671 -0
  3. package/browser/artifacts/contracts/MintingGateway.sol/MintingGateway.json +1688 -0
  4. package/browser/artifacts/contracts/ProxyArtifacts.sol/ProxyAdmin.json +135 -0
  5. package/browser/artifacts/contracts/ProxyArtifacts.sol/TransparentUpgradeableProxy.json +131 -0
  6. package/browser/index.d.ts +2875 -1792
  7. package/browser/index.js +6827 -200
  8. package/browser/index.js.map +1 -1
  9. package/lib/artifacts/contracts/ArgonToken.sol/ArgonToken.json +671 -0
  10. package/lib/artifacts/contracts/ArgonotToken.sol/ArgonotToken.json +671 -0
  11. package/lib/artifacts/contracts/MintingGateway.sol/MintingGateway.json +1688 -0
  12. package/lib/artifacts/contracts/ProxyArtifacts.sol/ProxyAdmin.json +135 -0
  13. package/lib/artifacts/contracts/ProxyArtifacts.sol/TransparentUpgradeableProxy.json +131 -0
  14. package/lib/index.cjs +6915 -266
  15. package/lib/index.cjs.map +1 -1
  16. package/lib/index.d.cts +2875 -1792
  17. package/lib/index.d.ts +2875 -1792
  18. package/lib/index.js +6855 -206
  19. package/lib/index.js.map +1 -1
  20. package/package.json +29 -26
  21. package/src/interfaces/augment-api-consts.ts +656 -0
  22. package/src/interfaces/augment-api-errors.ts +1376 -0
  23. package/src/interfaces/augment-api-events.ts +2098 -0
  24. package/src/interfaces/augment-api-query.ts +1809 -0
  25. package/src/interfaces/augment-api-rpc.ts +1133 -0
  26. package/src/interfaces/augment-api-runtime.ts +306 -0
  27. package/src/interfaces/augment-api-tx.ts +2298 -0
  28. package/src/interfaces/augment-api.ts +10 -0
  29. package/src/interfaces/augment-types.ts +2692 -0
  30. package/src/interfaces/definitions.ts +42 -0
  31. package/src/interfaces/ethereum/index.ts +4 -0
  32. package/src/interfaces/ethereum/types.ts +66 -0
  33. package/src/interfaces/lookup.ts +4167 -0
  34. package/src/interfaces/registry.ts +598 -0
  35. package/src/interfaces/types-lookup.ts +4868 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@argonprotocol/mainchain",
3
- "version": "1.4.3",
3
+ "version": "1.4.4",
4
4
  "description": "A client for accessing the Argon mainchain apis.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,15 +14,17 @@
14
14
  "homepage": "https://github.com/argonprotocol/mainchain#readme",
15
15
  "scripts": {
16
16
  "build": "yarn generate:defs && yarn generate:meta && node clean-build.js && yarn tsc",
17
- "generate:defs": "tsx node_modules/.bin/polkadot-types-from-defs --endpoint metadata.json --input ./src/interfaces --package @argonprotocol/mainchain/interfaces",
18
- "generate:meta": "tsx node_modules/.bin/polkadot-types-from-chain --endpoint metadata.json --output ./src/interfaces --strict",
19
- "tsc": "tsup",
17
+ "generate:defs": "polkadot-types-from-defs --endpoint metadata.json --input ./src/interfaces --package @argonprotocol/mainchain/interfaces",
18
+ "generate:meta": "polkadot-types-from-chain --endpoint metadata.json --output ./src/interfaces --package @argonprotocol/mainchain/interfaces --strict",
19
+ "test": "vitest --run --config vitest.config.ts",
20
+ "tsc": "yarn workspace @argonprotocol/ethereum-contracts build && tsup",
20
21
  "watch": "tsup --watch",
21
- "typecheck": "tsc --noEmit"
22
+ "typecheck": "tsc --noEmit -p tsconfig.test.json"
22
23
  },
23
24
  "files": [
24
25
  "lib/",
25
- "browser/"
26
+ "browser/",
27
+ "src/interfaces/"
26
28
  ],
27
29
  "type": "module",
28
30
  "module": "./lib/index.js",
@@ -40,37 +42,38 @@
40
42
  "default": "./lib/index.cjs"
41
43
  }
42
44
  },
43
- "./clis": {
44
- "types": "./lib/clis/index.d.ts",
45
- "import": "./lib/clis/index.js",
46
- "require": {
47
- "types": "./lib/clis/index.d.cts",
48
- "default": "./lib/clis/index.cjs"
49
- }
45
+ "./interfaces/*": {
46
+ "types": "./src/interfaces/*/index.ts"
50
47
  }
51
48
  },
52
49
  "dependencies": {
53
- "@polkadot/api": "^16.4.4",
54
- "@polkadot/api-base": "^16.4.4",
55
- "@polkadot/keyring": "^13.5.5",
56
- "@polkadot/rpc-core": "^16.4.4",
57
- "@polkadot/rpc-provider": "^16.4.4",
58
- "@polkadot/types": "^16.4.4",
59
- "@polkadot/types-codec": "^16.4.4",
60
- "@polkadot/util": "^13.5.5",
61
- "@polkadot/util-crypto": "^13.5.5",
50
+ "@ethereumjs/block": "^10.1.1",
51
+ "@ethereumjs/mpt": "^10.1.1",
52
+ "@polkadot/api": "^16.5.6",
53
+ "@polkadot/api-base": "^16.5.6",
54
+ "@polkadot/keyring": "^14.0.3",
55
+ "@polkadot/rpc-core": "^16.5.6",
56
+ "@polkadot/rpc-provider": "^16.5.6",
57
+ "@polkadot/types": "^16.5.6",
58
+ "@polkadot/types-codec": "^16.5.6",
59
+ "@polkadot/util": "^14.0.3",
60
+ "@polkadot/util-crypto": "^14.0.3",
62
61
  "bignumber.js": "^9.3.1",
63
- "bs58check": "^4.0.0"
62
+ "bs58check": "^4.0.0",
63
+ "camelcase-keys": "^9.1.3",
64
+ "viem": "^2.38.5"
64
65
  },
65
66
  "devDependencies": {
66
- "@argonprotocol/testing": "1.4.3",
67
- "@polkadot/typegen": "^16.4.4",
67
+ "@argonprotocol/ethereum-contracts": "workspace:*",
68
+ "@argonprotocol/testing": "1.4.4",
69
+ "@polkadot/typegen": "^16.5.6",
68
70
  "@substrate/ss58-registry": "^1.51.0",
69
71
  "@types/node": "^20",
70
72
  "shx": "^0.4.0",
71
73
  "tsup": "^8.5.0",
72
74
  "tsx": "^4.20.4",
73
- "typescript": "^5.9.2"
75
+ "typescript": "^5.9.2",
76
+ "vitest": "^4.0.5"
74
77
  },
75
78
  "packageManager": "yarn@4.1.0"
76
79
  }