Skip to content

Commit

Permalink
ALL-6466: polygon amoy (v2) (#1096)
Browse files Browse the repository at this point in the history
* ALL-6466: polygon amoy

* ALL-6466: bignumber fix

* ALL-6466: ethers revert, openapi schema build

* ALL-6466: increased cardano test timeout

* ALL-6466: data-api amoy docs fix

* ALL-6466: skip avalanche tests

* ALL-6466: skip avalanche tests
  • Loading branch information
rostislavjadavan authored May 9, 2024
1 parent b2cf321 commit 0bb16d6
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"base-58": "^0.0.1",
"base32.js": "^0.1.0",
"bchaddrjs": "^0.5.2",
"bignumber.js": "^9.0.2",
"bignumber.js": "^9.1.2",
"bip32": "^2.0.5",
"bip39": "^3.0.2",
"bitcoinjs-lib": "^5.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/api-client/src/api_schema.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/api-client/src/generated/services/DataApiService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class DataApiService {
* <li>Celo - celo / celo-testnet</li>
* <li>Ethereum - ethereum / ethereum-sepolia / ethereum-holesky</li>
* <li>BNB (Binance) Smart Chain - bsc / bsc-testnet</li>
* <li>Polygon - polygon / polygon-amoy</li>
* <li>Polygon - polygon</li>
* <li>Horizen EON - eon-mainnet</li>
* <li>Chiliz - chiliz-mainnet</li>
* <li>Tezos - tezos-mainnet</li>
Expand Down Expand Up @@ -801,4 +801,4 @@ export class DataApiService {
});
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { BlockchainUtilsService, CallSmartContractMethod, AvalancheEstimateGas }
jest.mock('@tatumio/api-client')
const mockedApi = jest.mocked(apiClient.ApiServices, true)

describe('AvalancheSDK - blockchain', () => {
describe.skip('AvalancheSDK - blockchain', () => {
const sdk = TatumAvalancheSDK({ apiKey: REPLACE_ME_WITH_TATUM_API_KEY })

afterEach(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Blockchain } from '@tatumio/shared-core'
import { REPLACE_ME_WITH_TATUM_API_KEY, TEST_DATA, walletTestFactory } from '@tatumio/shared-testing-common'
import { TatumAvalancheSDK } from './avalanche.sdk'

describe('TatumAvalancheSDK', () => {
describe.skip('TatumAvalancheSDK', () => {
const sdk = TatumAvalancheSDK({ apiKey: REPLACE_ME_WITH_TATUM_API_KEY })

describe('Wallet', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
import { TatumCardanoSDK } from '@tatumio/cardano'

describe('CARDANO transactions', () => {
jest.setTimeout(60000)

afterEach(() => {
jest.resetAllMocks()
Expand Down
4 changes: 2 additions & 2 deletions packages/blockchain/polygon/src/lib/services/polygon.kms.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { EvmBasedKMSServiceArgs, EvmBasedSdkError, evmBasedUtils } from '@tatumio/shared-blockchain-evm-based'
import { Currency, PendingTransaction } from '@tatumio/api-client'
import { abstractBlockchainKms } from '@tatumio/shared-blockchain-abstract'
import { BigNumber } from 'ethers'
import { SdkErrorCode } from '@tatumio/shared-abstract-sdk'
import BigNumber from 'bignumber.js'

export const polygonKmsService = (args: EvmBasedKMSServiceArgs) => {
return {
Expand All @@ -25,7 +25,7 @@ export const polygonKmsService = (args: EvmBasedKMSServiceArgs) => {
})
}

if (!transactionConfig.gasPrice || BigNumber.from(transactionConfig.gasPrice).isZero()) {
if (!transactionConfig.gasPrice || BigNumber(transactionConfig.gasPrice).isZero()) {
transactionConfig.gasPrice = await args.web3.getGasPriceInWei()
}

Expand Down
7 changes: 6 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4689,7 +4689,7 @@ bigint-buffer@^1.1.5:
dependencies:
bindings "^1.3.0"

bignumber.js@*, bignumber.js@^9.0.0, bignumber.js@^9.0.1, bignumber.js@^9.0.2:
bignumber.js@*, bignumber.js@^9.0.0, bignumber.js@^9.0.1:
version "9.1.0"
resolved "https://registry.yarnpkg.com/bignumber.js/-/bignumber.js-9.1.0.tgz#8d340146107fe3a6cb8d40699643c302e8773b62"
integrity sha512-4LwHK4nfDOraBCtst+wOWIHbu1vhvAPJK8g8nROd4iuc3PSEjWif/qwbkh8jwCJz6yDBvtU4KPynETgrfh7y3A==
Expand All @@ -4714,6 +4714,11 @@ bignumber.js@^9.1.0, bignumber.js@^9.1.1:
resolved "https://registry.yarnpkg.com/bignumber.js/-/bignumber.js-9.1.1.tgz#c4df7dc496bd849d4c9464344c1aa74228b4dac6"
integrity sha512-pHm4LsMJ6lzgNGVfZHjMoO8sdoRhOzOH4MLmY65Jg70bpxCKu5iOHNJyfF6OyvYw7t8Fpf35RuzUyqnQsj8Vig==

bignumber.js@^9.1.2:
version "9.1.2"
resolved "https://registry.yarnpkg.com/bignumber.js/-/bignumber.js-9.1.2.tgz#b7c4242259c008903b13707983b5f4bbd31eda0c"
integrity sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug==

bin-links@^4.0.1:
version "4.0.1"
resolved "https://registry.yarnpkg.com/bin-links/-/bin-links-4.0.1.tgz#afeb0549e642f61ff889b58ea2f8dca78fb9d8d3"
Expand Down

0 comments on commit 0bb16d6

Please sign in to comment.