Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
f339346
feat: add support for Polygon (POL) network
manishdex25 Jun 4, 2026
b83869e
feat: add W3C Transferable Record fixture for Polygon mainnet
manishdex25 Jun 5, 2026
aaf1665
test: update Polygon network tests to conditionally skip live-network…
manishdex25 Jun 5, 2026
74088e1
refactor: update Polygon network references
manishdex25 Jun 5, 2026
7079568
test: enhance Polygon network tests with new fixtures and error handling
manishdex25 Jun 8, 2026
bfc06d6
chore: update dependencies and enhance CI configuration
manishdex25 Jun 9, 2026
c07749f
Update src/__tests__/fixtures/pol-w3c-verifiable-document.json
manishdex25 Jun 9, 2026
9e5c411
test: enhance Polygon network tests for credential status handling
manishdex25 Jun 9, 2026
c953a4f
test: update Polygon network tests to conditionally skip based on min…
manishdex25 Jun 9, 2026
64a9655
test: refine Polygon network tests for improved validation and error …
manishdex25 Jun 9, 2026
19b1f1b
test: update transfer tests to use dynamic gas transaction options an…
manishdex25 Jun 9, 2026
3e01b32
fix: refactor Polygon network tests to utilize helper functions for i…
manishdex25 Jun 9, 2026
a946d6b
Merge branch 'main' of github.com:TrustVC/trustvc into feat/matic-pol
manishdex25 Jun 10, 2026
7d86a40
fix: update explorer API URL for amoy chain to use Etherscan v2
manishdex25 Jun 10, 2026
e2059a5
chore(release): bump version to 2.14.1
manishdex25 Jun 10, 2026
c37f85a
fix: replace deprecated Polygon Amoy explorer API with Etherscan v2
manishdex25 Jun 10, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@trustvc/trustvc",
"version": "2.14.0",
"version": "2.14.1",
"description": "TrustVC library",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/utils/supportedChains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export const SUPPORTED_CHAINS: supportedChains = {
currency: 'POL',
iconImage: iconPolygon,
explorerUrl: 'https://amoy.polygonscan.com',
explorerApiUrl: `https://api-amoy.polygonscan.com/api?apikey=${process.env.POLYGONSCAN_API_KEY}`,
explorerApiUrl: `https://api.etherscan.io/v2/api?apikey=${process.env.POLYGONSCAN_API_KEY}&chainid=80002`,
rpcUrl: `https://polygon-amoy.infura.io/v3/${process.env.INFURA_API_KEY}`,
gasStation: gasStation('https://gasstation.polygon.technology/amoy'),
nativeCurrency: {
Expand Down
5 changes: 3 additions & 2 deletions src/utils/supportedChains/supportedChains.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,12 @@ describe('supportedChains', () => {
expect(rpcUrl).toContain('https://polygon-amoy.infura.io/v3/');
});

it('should use PolygonScan as the explorer API for amoy', () => {
it('should use Etherscan v2 as the explorer API for amoy', () => {
const { explorerApiUrl } = SUPPORTED_CHAINS[CHAIN_ID.amoy];

expect(explorerApiUrl).toContain('https://api-amoy.polygonscan.com/api');
expect(explorerApiUrl).toContain('https://api.etherscan.io/v2/api');
expect(explorerApiUrl).toContain('apikey=');
expect(explorerApiUrl).toContain('chainid=80002');
});

it('should sepolia chain info correctly', () => {
Expand Down
Loading