Skip to content

Commit

Permalink
deploy ethers 6 - 2.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
arietrouw committed Nov 19, 2023
1 parent 031cc00 commit e5de21e
Show file tree
Hide file tree
Showing 11 changed files with 877 additions and 767 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[![codeclimate-badge][]][codeclimate-link]
[![snyk-badge][]][snyk-link]

> The XYO Foundation provides this source code available in our efforts to
> The XYO Foundation provides this source code in our efforts to
> advance the understanding of the XYO Procotol and its possible uses.
> We continue to maintain this software in the interest of developer
> education. Usage of this source code is not intended for production.
Expand Down
22 changes: 11 additions & 11 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.10.1",
"version": "2.11.0",
"homepage": "https://xyo.network",
"bugs": {
"url": "https://github.com/XYOracleNetwork/sdk-xyo-js/issues",
Expand Down Expand Up @@ -48,18 +48,18 @@
"packages/*"
],
"dependencies": {
"@xyo-network/ethers-wrappers": "workspace:^",
"@xyo-network/sdk-geo": "workspace:^"
"@xyo-network/ethers-wrappers": "workspace:~",
"@xyo-network/sdk-geo": "workspace:~"
},
"devDependencies": {
"@types/jest": "^29.5.5",
"@types/mocha": "^10.0.2",
"@xylabs/eslint-config": "^3.1.9",
"@xylabs/ts-scripts-yarn3": "^3.1.9",
"@xylabs/tsconfig": "^3.1.9",
"@xylabs/tsconfig-jest": "^3.1.9",
"@types/jest": "^29.5.8",
"@types/mocha": "^10.0.4",
"@xylabs/eslint-config": "^3.2.2",
"@xylabs/ts-scripts-yarn3": "^3.2.2",
"@xylabs/tsconfig": "^3.2.2",
"@xylabs/tsconfig-jest": "^3.2.2",
"dotenv": "^16.3.1",
"eslint": "^8.51.0",
"eslint": "^8.54.0",
"jest": "^29.7.0",
"typescript": "^5.2.2"
},
Expand All @@ -69,4 +69,4 @@
},
"sideEffects": false,
"type": "module"
}
}
2 changes: 1 addition & 1 deletion packages/ethers-wrappers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[![codeclimate-badge][]][codeclimate-link]
[![snyk-badge][]][snyk-link]

> The XYO Foundation provides this source code available in our efforts to
> The XYO Foundation provides this source code in our efforts to
> advance the understanding of the XYO Procotol and its possible uses.
> We continue to maintain this software in the interest of developer
> education. Usage of this source code is not intended for production.
Expand Down
22 changes: 10 additions & 12 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.10.1",
"version": "2.11.0",
"homepage": "https://xyo.network",
"bugs": {
"url": "https://github.com/XYOracleNetwork/sdk-xyo-js/issues",
Expand Down Expand Up @@ -45,21 +45,19 @@
"types": "dist/node/index.d.ts",
"license": "LGPL-3.0-only",
"dependencies": {
"@ethersproject/abstract-signer": "^5.7.0",
"@ethersproject/bignumber": "^5.7.0",
"@ethersproject/providers": "^5.7.2",
"@xylabs/assert": "^2.12.24",
"@xylabs/bignumber": "^2.12.24",
"@xylabs/eth-address": "^2.12.24",
"@xyo-network/typechain": "^2.2.9"
"@xylabs/assert": "^2.13.9",
"@xylabs/bignumber": "^2.13.9",
"@xylabs/eth-address": "^2.13.9",
"@xyo-network/typechain": "^3.0.0",
"ethers": "^6.8.1"
},
"devDependencies": {
"@xylabs/ts-scripts-yarn3": "^3.1.9",
"@xylabs/tsconfig": "^3.1.9",
"ethers": "^5.7.2",
"@xylabs/ts-scripts-yarn3": "^3.2.2",
"@xylabs/tsconfig": "^3.2.2",
"ethers": "^6.8.1",
"typescript": "^5.2.2"
},
"sideEffects": false,
"packageManager": "[email protected]",
"type": "module"
}
}
7 changes: 3 additions & 4 deletions packages/ethers-wrappers/src/Erc20.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { Signer } from '@ethersproject/abstract-signer'
import { Provider } from '@ethersproject/providers'
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'

import { XyoEthersWrapperBase } from './EthersBase'

Expand All @@ -19,8 +18,8 @@ export class XyoErc20Wrapper extends XyoEthersWrapperBase {
return await this.contract.approve(spender.toString(), amount.toString(10))
}

public getAddress() {
return assertEx(EthAddress.fromString(this.contract.address))
public async getAddress() {
return assertEx(EthAddress.fromString(await this.contract.getAddress()))
}

public async getAllowance(spender: EthAddress, address: EthAddress) {
Expand Down
9 changes: 1 addition & 8 deletions packages/ethers-wrappers/src/EthersBase.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import { Signer } from '@ethersproject/abstract-signer'
import { BigNumber as EthersBigNumber } from '@ethersproject/bignumber'
import { Provider } from '@ethersproject/providers'
import { BigNumber } from '@xylabs/bignumber'
import { Provider, Signer } from 'ethers'

export class XyoEthersWrapperBase {
protected provider: Provider
Expand All @@ -12,8 +9,4 @@ export class XyoEthersWrapperBase {
this.provider = provider
this.signer = signer
}

static toBigNumber(input: EthersBigNumber) {
return new BigNumber(input.toHexString(), 16)
}
}
2 changes: 1 addition & 1 deletion packages/geo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[![codeclimate-badge][]][codeclimate-link]
[![snyk-badge][]][snyk-link]

> The XYO Foundation provides this source code available in our efforts to
> The XYO Foundation provides this source code in our efforts to
> advance the understanding of the XYO Procotol and its possible uses.
> We continue to maintain this software in the interest of developer
> education. Usage of this source code is not intended for production.
Expand Down
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.10.1",
"version": "2.11.0",
"homepage": "https://xyo.network",
"bugs": {
"url": "https://github.com/XYOracleNetwork/sdk-xyo-js/issues",
Expand Down Expand Up @@ -48,12 +48,12 @@
"mapbox-gl": "^2.15.0"
},
"devDependencies": {
"@types/mapbox-gl": "^2.7.15",
"@xylabs/ts-scripts-yarn3": "^3.1.9",
"@xylabs/tsconfig": "^3.1.9",
"@types/mapbox-gl": "^2.7.18",
"@xylabs/ts-scripts-yarn3": "^3.2.2",
"@xylabs/tsconfig": "^3.2.2",
"typescript": "^5.2.2"
},
"sideEffects": false,
"packageManager": "[email protected]",
"type": "module"
}
}
2 changes: 1 addition & 1 deletion packages/meta/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[![codeclimate-badge][]][codeclimate-link]
[![snyk-badge][]][snyk-link]

> The XYO Foundation provides this source code available in our efforts to
> The XYO Foundation provides this source code in our efforts to
> advance the understanding of the XYO Procotol and its possible uses.
> We continue to maintain this software in the interest of developer
> education. Usage of this source code is not intended for production.
Expand Down
8 changes: 4 additions & 4 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.10.1",
"version": "2.11.0",
"homepage": "https://xyo.network",
"bugs": {
"url": "https://github.com/XYOracleNetwork/sdk-xyo-js/issues",
Expand Down Expand Up @@ -47,12 +47,12 @@
"cheerio": "^1.0.0-rc.12"
},
"devDependencies": {
"@xylabs/ts-scripts-yarn3": "^3.1.9",
"@xylabs/tsconfig": "^3.1.9",
"@xylabs/ts-scripts-yarn3": "^3.2.2",
"@xylabs/tsconfig": "^3.2.2",
"jest-serializer-html": "^7.1.0",
"typescript": "^5.2.2"
},
"sideEffects": false,
"packageManager": "[email protected]",
"type": "module"
}
}
Loading

0 comments on commit e5de21e

Please sign in to comment.