Skip to content

Commit bc01b6c

Browse files
hankliu418Hank Liu
andauthored
feat(POL): CW-21387 rename matic to pol (#856)
* modiy matic name to pol * remove redundant matic code * update evm version * remove coin-matic publish action * remove config file * update pol signature typo * update console mock condition * fix config file typo --------- Co-authored-by: Hank Liu <[email protected]>
1 parent ba93b6a commit bc01b6c

27 files changed

+26
-19218
lines changed

.github/publish-action/dist/index.js

Lines changed: 18 additions & 3225 deletions
Large diffs are not rendered by default.

.github/publish-action/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ async function run() {
5454
await checkAndPublish(context, 'packages/coin-iotx');
5555
await checkAndPublish(context, 'packages/coin-kas');
5656
await checkAndPublish(context, 'packages/coin-ltc');
57-
await checkAndPublish(context, 'packages/coin-matic');
5857
await checkAndPublish(context, 'packages/coin-sol');
5958
await checkAndPublish(context, 'packages/coin-terra');
6059
await checkAndPublish(context, 'packages/coin-theta');

jest.setup.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ if (process.env.NODE_ENV !== 'development') {
66
global.console = {
77
...console,
88
debug: jest.fn(), // Mock console.debug
9+
log: jest.fn(), // Mock console.log
10+
warn: jest.fn(), // Mock console.warn
911
};
1012
}
1113

packages/coin-evm/jest.config.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

packages/coin-evm/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/coin-evm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@coolwallet/evm",
3-
"version": "1.0.31",
3+
"version": "1.0.32",
44
"description": "Coolwallet EVMOS sdk",
55
"main": "lib/index.js",
66
"scripts": {

packages/coin-evm/src/chain/polygon/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { ChainProps } from '../types';
33

44
class PolygonChain extends ChainProps {
55
id = 137;
6-
symbol = 'MATIC';
6+
symbol = 'POL';
77
signature =
8-
`30450221008d9a2ecb25c6debb817709fe6ac7b83d48e43b93d789d45ba803be59ea15904f022048579648bc83e84c55d127a2b845d3c6f41ea418752a131f179a048e3f26212f`.padStart(
8+
`3044022061fc28a961fc34520960442a878b11f8baf122a4f55e4cd14594045b7424af6102206af31c36928e9fc9b6f9181e2bde2061bf40ace65464f5c0683a3d72a23fed1d`.padStart(
99
144,
1010
'0'
1111
);

packages/coin-evm/tools/token.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,8 @@ console.log('ZKS USDC: ', buildTokenHex(ZKSYNC.tokens.USDC));
1717
console.log('ZKS WETH: ', buildTokenHex(ZKSYNC.tokens.WETH));
1818
console.log('BASE WETH: ', buildTokenHex(BASE.tokens.WETH));
1919
console.log('BASE USDbC: ', buildTokenHex(BASE.tokens.USDbC));
20-
console.log('BASE axlUSDC: ', buildTokenHex(BASE.tokens.axlUSDC))
20+
console.log('BASE axlUSDC: ', buildTokenHex(BASE.tokens.axlUSDC));
2121
console.log('BASE BSWAP: ', buildTokenHex(BASE.tokens.BSWAP));
22-
console.log('BASE BASE: ', buildTokenHex(BASE.tokens.BASE));
23-
2422

2523
const tokenGALA: BuildTokenHexInput = {
2624
symbol: 'GALA',

packages/coin-matic/.babelrc

Lines changed: 0 additions & 9 deletions
This file was deleted.

packages/coin-matic/README.md

Lines changed: 0 additions & 175 deletions
This file was deleted.

0 commit comments

Comments
 (0)