Skip to content

Commit

Permalink
Auto stash before merge of "main" and "origin/main"
Browse files Browse the repository at this point in the history
deploy 2.11.2
  • Loading branch information
arietrouw committed Nov 30, 2023
1 parent 463153b commit 73ffe45
Show file tree
Hide file tree
Showing 7 changed files with 218 additions and 291 deletions.
1 change: 0 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
},
"cSpell.words": [
"bignumber",
"ethersproject",
"mapbox",
"quadkey",
"typechain",
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xyo-network/sdk-xyo-js",
"version": "2.11.1",
"version": "2.11.2",
"homepage": "https://xyo.network",
"bugs": {
"url": "https://github.com/XYOracleNetwork/sdk-xyo-js/issues",
Expand Down Expand Up @@ -52,12 +52,12 @@
"@xyo-network/sdk-geo": "workspace:~"
},
"devDependencies": {
"@types/jest": "^29.5.8",
"@types/mocha": "^10.0.4",
"@xylabs/eslint-config": "^3.2.7",
"@xylabs/ts-scripts-yarn3": "^3.2.7",
"@xylabs/tsconfig": "^3.2.7",
"@xylabs/tsconfig-jest": "^3.2.7",
"@types/jest": "^29.5.10",
"@types/mocha": "^10.0.6",
"@xylabs/eslint-config": "^3.2.10",
"@xylabs/ts-scripts-yarn3": "^3.2.10",
"@xylabs/tsconfig": "^3.2.10",
"@xylabs/tsconfig-jest": "^3.2.10",
"dotenv": "^16.3.1",
"eslint": "^8.54.0",
"jest": "^29.7.0",
Expand Down
15 changes: 7 additions & 8 deletions packages/ethers-wrappers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xyo-network/ethers-wrappers",
"version": "2.11.1",
"version": "2.11.2",
"homepage": "https://xyo.network",
"bugs": {
"url": "https://github.com/XYOracleNetwork/sdk-xyo-js/issues",
Expand Down Expand Up @@ -45,16 +45,15 @@
"types": "dist/node/index.d.ts",
"license": "LGPL-3.0-only",
"dependencies": {
"@xylabs/assert": "^2.13.9",
"@xylabs/bignumber": "^2.13.9",
"@xylabs/eth-address": "^2.13.9",
"@xylabs/assert": "^2.13.20",
"@xylabs/eth-address": "^2.13.20",
"@xyo-network/typechain": "^3.0.5",
"ethers": "^6.8.1"
"ethers": "^6.9.0"
},
"devDependencies": {
"@xylabs/ts-scripts-yarn3": "^3.2.7",
"@xylabs/tsconfig": "^3.2.7",
"ethers": "^6.8.1",
"@xylabs/ts-scripts-yarn3": "^3.2.10",
"@xylabs/tsconfig": "^3.2.10",
"ethers": "^6.9.0",
"typescript": "^5.3.2"
},
"sideEffects": false,
Expand Down
9 changes: 4 additions & 5 deletions packages/ethers-wrappers/src/Erc20.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { assertEx } from '@xylabs/assert'
import { BigNumber } from '@xylabs/bignumber'
import { EthAddress } from '@xylabs/eth-address'
import { BurnableErc20, BurnableErc20__factory as BurnableErc20Factory } from '@xyo-network/typechain'
import { Provider, Signer } from 'ethers'
Expand All @@ -15,8 +14,8 @@ export class XyoErc20Wrapper extends XyoEthersWrapperBase {
this.contract = BurnableErc20Factory.connect(address.toString(), this.signer ?? this.provider)
}

public async approve(spender: EthAddress, amount: BigNumber) {
return await this.contract.approve(spender.toString(), amount.toString(10))
public async approve(spender: EthAddress, amount: bigint) {
return await this.contract.approve(spender.toString(), amount)
}

public async getAddress() {
Expand All @@ -28,10 +27,10 @@ export class XyoErc20Wrapper extends XyoEthersWrapperBase {
}

public async getBalance(address: EthAddress) {
return new BigNumber((await this.contract.balanceOf(address.toString())).toString())
return await this.contract.balanceOf(address.toString())
}

public async getMaxBalance(address: EthAddress) {
return new BigNumber((await this.contract.balanceOf(address.toString())).toString())
return await this.contract.balanceOf(address.toString())
}
}
10 changes: 5 additions & 5 deletions packages/geo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xyo-network/sdk-geo",
"version": "2.11.1",
"version": "2.11.2",
"homepage": "https://xyo.network",
"bugs": {
"url": "https://github.com/XYOracleNetwork/sdk-xyo-js/issues",
Expand Down Expand Up @@ -45,12 +45,12 @@
"license": "LGPL-3.0-only",
"dependencies": {
"geojson": "^0.5.0",
"mapbox-gl": "^2.15.0"
"mapbox-gl": "^3.0.0"
},
"devDependencies": {
"@types/mapbox-gl": "^2.7.18",
"@xylabs/ts-scripts-yarn3": "^3.2.7",
"@xylabs/tsconfig": "^3.2.7",
"@types/mapbox-gl": "^2.7.19",
"@xylabs/ts-scripts-yarn3": "^3.2.10",
"@xylabs/tsconfig": "^3.2.10",
"typescript": "^5.3.2"
},
"sideEffects": false,
Expand Down
6 changes: 3 additions & 3 deletions packages/meta/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xyo-network/sdk-meta",
"version": "2.11.1",
"version": "2.11.2",
"homepage": "https://xyo.network",
"bugs": {
"url": "https://github.com/XYOracleNetwork/sdk-xyo-js/issues",
Expand Down Expand Up @@ -47,8 +47,8 @@
"cheerio": "^1.0.0-rc.12"
},
"devDependencies": {
"@xylabs/ts-scripts-yarn3": "^3.2.7",
"@xylabs/tsconfig": "^3.2.7",
"@xylabs/ts-scripts-yarn3": "^3.2.10",
"@xylabs/tsconfig": "^3.2.10",
"jest-serializer-html": "^7.1.0",
"typescript": "^5.3.2"
},
Expand Down
Loading

0 comments on commit 73ffe45

Please sign in to comment.