Skip to content

Commit

Permalink
revert: "chore(main): release 1.0.1" (#53)
Browse files Browse the repository at this point in the history
* Revert "chore(main): release 1.0.1 (#52)"

This reverts commit 310152d.

* update release.yml file

Co-authored-by: Nicolas Riquelme <[email protected]>
  • Loading branch information
MakMuftic and wainola authored Sep 7, 2022
1 parent 310152d commit e9ad66b
Show file tree
Hide file tree
Showing 12 changed files with 263 additions and 56 deletions.
30 changes: 0 additions & 30 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,35 +1,5 @@
# Changelog

## [1.0.1](https://github.com/sygmaprotocol/sygma-sdk/compare/v1.0.1...v1.0.1) (2022-09-07)


### Miscellaneous

* fix package.json ([#16](https://github.com/sygmaprotocol/sygma-sdk/issues/16)) ([e731966](https://github.com/sygmaprotocol/sygma-sdk/commit/e73196621f78582b83fab77fa182e74f4e7100c7))
* fix release job definition ([#13](https://github.com/sygmaprotocol/sygma-sdk/issues/13)) ([0460431](https://github.com/sygmaprotocol/sygma-sdk/commit/046043136a1aa915d9908ab9928fa72c48ed7692))
* fix release workflow definition ([#12](https://github.com/sygmaprotocol/sygma-sdk/issues/12)) ([87755aa](https://github.com/sygmaprotocol/sygma-sdk/commit/87755aa390cafacca8ce63ae8f90e507937ffc76))
* **main:** release 1.0.0 ([#14](https://github.com/sygmaprotocol/sygma-sdk/issues/14)) ([d2ff549](https://github.com/sygmaprotocol/sygma-sdk/commit/d2ff549d78db85114db0157d8ecc2c8becbaf258))
* **main:** release 1.0.0 ([#15](https://github.com/sygmaprotocol/sygma-sdk/issues/15)) ([9ef9fad](https://github.com/sygmaprotocol/sygma-sdk/commit/9ef9fadd8b4edd80a8e065623b0f114562cb0804))
* **main:** release 1.0.0 ([#18](https://github.com/sygmaprotocol/sygma-sdk/issues/18)) ([03e45ff](https://github.com/sygmaprotocol/sygma-sdk/commit/03e45ffad3890f71e3a5dbe629918d28f8b9debf))
* **main:** release 1.0.0 ([#20](https://github.com/sygmaprotocol/sygma-sdk/issues/20)) ([c3fc5a0](https://github.com/sygmaprotocol/sygma-sdk/commit/c3fc5a0e17cfb1cb15b30cacdccf94de1975452b))
* **main:** release 1.0.0 ([#22](https://github.com/sygmaprotocol/sygma-sdk/issues/22)) ([55ca02a](https://github.com/sygmaprotocol/sygma-sdk/commit/55ca02a1dbe2f9387e499efb2cd09018c1aaaa05))
* **main:** release 1.0.0 ([#24](https://github.com/sygmaprotocol/sygma-sdk/issues/24)) ([888ca1a](https://github.com/sygmaprotocol/sygma-sdk/commit/888ca1a61537ab41c986571873950d75df474848))
* **main:** release 1.0.0 ([#26](https://github.com/sygmaprotocol/sygma-sdk/issues/26)) ([2f00d3f](https://github.com/sygmaprotocol/sygma-sdk/commit/2f00d3fef110129b6bfb72d474856d0b4dde37cc))
* **main:** release 1.0.0 ([#28](https://github.com/sygmaprotocol/sygma-sdk/issues/28)) ([1a9d446](https://github.com/sygmaprotocol/sygma-sdk/commit/1a9d4463084b68dd39a0c58a43f7539d81c89623))
* **main:** release 1.0.0 ([#30](https://github.com/sygmaprotocol/sygma-sdk/issues/30)) ([083ca74](https://github.com/sygmaprotocol/sygma-sdk/commit/083ca745e8517df5a07db620416166aba8c267a7))
* **main:** release 1.0.0 ([#32](https://github.com/sygmaprotocol/sygma-sdk/issues/32)) ([57644ce](https://github.com/sygmaprotocol/sygma-sdk/commit/57644cedb7eb2430559d33d7a3a22266131c0b84))
* **main:** release 1.0.0 ([#34](https://github.com/sygmaprotocol/sygma-sdk/issues/34)) ([47c7011](https://github.com/sygmaprotocol/sygma-sdk/commit/47c701139e30a95d286038cda41825ae76a9ccb0))
* **main:** release 1.0.1 ([#37](https://github.com/sygmaprotocol/sygma-sdk/issues/37)) ([b39f07f](https://github.com/sygmaprotocol/sygma-sdk/commit/b39f07fd65510705f167ba5d539d6c419b2add2a))
* **main:** release 1.0.1 ([#39](https://github.com/sygmaprotocol/sygma-sdk/issues/39)) ([6bbe978](https://github.com/sygmaprotocol/sygma-sdk/commit/6bbe97881e603bae227ae09205f26d1340f8b862))
* **main:** release 1.0.1 ([#41](https://github.com/sygmaprotocol/sygma-sdk/issues/41)) ([454866b](https://github.com/sygmaprotocol/sygma-sdk/commit/454866b1fd195e0c97188c4b0accfc9652ead02a))
* **main:** release 1.0.1 ([#43](https://github.com/sygmaprotocol/sygma-sdk/issues/43)) ([e557d46](https://github.com/sygmaprotocol/sygma-sdk/commit/e557d46df18cbea834ce366fd7097c031ca109b8))
* **main:** release 1.0.1 ([#46](https://github.com/sygmaprotocol/sygma-sdk/issues/46)) ([b5682b0](https://github.com/sygmaprotocol/sygma-sdk/commit/b5682b079b4968dc95658ac4c3c51543fb1ae64b))
* **main:** release 1.0.1 ([#48](https://github.com/sygmaprotocol/sygma-sdk/issues/48)) ([d6460af](https://github.com/sygmaprotocol/sygma-sdk/commit/d6460af72801e98d9b075eaea0d99381d31762ac))
* **main:** release 1.0.1 ([#50](https://github.com/sygmaprotocol/sygma-sdk/issues/50)) ([817da50](https://github.com/sygmaprotocol/sygma-sdk/commit/817da50eb54e534e9869e882f7f7042c025575cc))
* release 1.0.0 ([bb6a505](https://github.com/sygmaprotocol/sygma-sdk/commit/bb6a5053d843960f445f0dacebe101745f4d908f))
* Release trigger fix ([#11](https://github.com/sygmaprotocol/sygma-sdk/issues/11)) ([627ee12](https://github.com/sygmaprotocol/sygma-sdk/commit/627ee121c9c35d562e27388e9257dc944e19d68a))
* updating package to sygma-contracts ([#36](https://github.com/sygmaprotocol/sygma-sdk/issues/36)) ([e3af317](https://github.com/sygmaprotocol/sygma-sdk/commit/e3af31750a12564ff8c4df01fef453053b02c8d9))

## [1.0.0](https://github.com/sygmaprotocol/sygma-sdk/compare/v1.0.0...v1.0.0) (2022-09-02)


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sygmaprotocol/sygma-sdk",
"version": "1.0.1",
"version": "1.0.0",
"description": "Sygma SDK",
"main": "index.js",
"repository": {
Expand Down
1 change: 1 addition & 0 deletions packages/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
],
"dependencies": {
"@sygmaprotocol/sygma-contracts": "1.0.0",
"eth-crypto": "2.3.0",
"ganache": "^7.1.0",
"node-fetch": "2.6.1",
"react-hook-form": "^7.30.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/sdk/src/Sygma.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { BigNumber, ethers, utils, Event } from 'ethers';
import { Bridge__factory as BridgeFactory, Bridge } from '@chainsafe/chainbridge-contracts';
import { DepositEvent} from "@chainsafe/chainbridge-contracts/dist/ethers/Bridge"
import { Bridge__factory as BridgeFactory, Bridge } from '@sygmaprotocol/sygma-contracts';
import { DepositEvent} from "@sygmaprotocol/sygma-contracts/dist/ethers/Bridge"
import { Erc20DetailedFactory } from './Contracts/Erc20DetailedFactory';
import { Erc20Detailed } from './Contracts/Erc20Detailed';

Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/chains/EVM/ERC20Bridge/ERC20Bridge.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Bridge, ERC20Handler__factory as Erc20HandlerFactory, FeeHandlerRouter__factory } from '@chainsafe/chainbridge-contracts'
import { Bridge, ERC20Handler__factory as Erc20HandlerFactory, FeeHandlerRouter__factory } from '@sygmaprotocol/sygma-contracts'
import { utils, BigNumber, ContractReceipt } from 'ethers'
import { Directions, Provider, FeeDataResult } from "../../../types";
import { processAmountForERC20Transfer, processLenRecipientAddress } from "../../../utils";
Expand Down
6 changes: 3 additions & 3 deletions packages/sdk/src/fee/__test__/basicFee.test.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { calculateBasicfee } from '../basicFee'
import { BasicFeeHandler__factory } from '@chainsafe/chainbridge-contracts'
import { BasicFeeHandler__factory } from '@sygmaprotocol/sygma-contracts'
import { BigNumber, ethers } from 'ethers'
import { FeeDataResult } from 'types'

jest.mock('@chainsafe/chainbridge-contracts', () => ({
...jest.requireActual('@chainsafe/chainbridge-contracts'),
jest.mock('@sygmaprotocol/sygma-contracts', () => ({
...jest.requireActual('@sygmaprotocol/sygma-contracts'),
BasicFeeHandler__factory: {
connect: () => {
console.log('connect')
Expand Down
6 changes: 3 additions & 3 deletions packages/sdk/src/fee/__test__/feeOracle.test.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { utils, BigNumber, ethers } from 'ethers';
import { requestFeeFromFeeOracle, createOracleFeeData, calculateFeeData } from '../feeOracle';
import fetch from 'node-fetch';
import {FeeHandlerWithOracle__factory} from '@chainsafe/chainbridge-contracts';
import {FeeHandlerWithOracle__factory} from '@sygmaprotocol/sygma-contracts';

jest.mock('node-fetch');
const { Response } = jest.requireActual('node-fetch');

jest.mock('@chainsafe/chainbridge-contracts', () => ({
...jest.requireActual('@chainsafe/chainbridge-contracts'),
jest.mock('@sygmaprotocol/sygma-contracts', () => ({
...jest.requireActual('@sygmaprotocol/sygma-contracts'),
FeeHandlerWithOracle__factory: {
connect: (args: any)=> {
return {
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/fee/basicFee.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BasicFeeHandler__factory as BasicFeeHandler } from '@chainsafe/chainbridge-contracts'
import { BasicFeeHandler__factory as BasicFeeHandler } from '@sygmaprotocol/sygma-contracts'
import { ethers } from 'ethers'
import { FeeDataResult } from 'types'
import { createERCDepositData } from '../utils/helpers'
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/fee/feeOracle.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {
FeeHandlerWithOracle__factory,
} from '@chainsafe/chainbridge-contracts';
} from '@sygmaprotocol/sygma-contracts';
import { utils, BigNumber, ethers } from 'ethers';
import fetch from 'node-fetch';
import EthCrypto from 'eth-crypto';
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/types/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Erc20Detailed } from '../Contracts/Erc20Detailed';
import { Bridge } from '@chainsafe/chainbridge-contracts';
import { Bridge } from '@sygmaprotocol/sygma-contracts';
import { ethers } from 'ethers';

export interface SygmaSDK {}
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/utils/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Bridge } from '@chainsafe/chainbridge-contracts';
import { Bridge } from '@sygmaprotocol/sygma-contracts';
import { utils, BigNumber } from 'ethers';
import { Connector } from '../connectors';

Expand Down
Loading

0 comments on commit e9ad66b

Please sign in to comment.