Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V2 #55

Merged
merged 36 commits into from
Aug 11, 2023
Merged

V2 #55

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
1ba5f50
new basic setup. tests?
10xSebastian Jun 17, 2023
0d704b4
hardhat configs for all supported chains for v2
10xSebastian Jun 17, 2023
0af4339
workflows for missing blockchains
10xSebastian Jun 17, 2023
bb3eafd
run basic tests for all blockchains
10xSebastian Jun 18, 2023
2fbab53
adds pay with token
10xSebastian Jun 19, 2023
a8ff319
adds polyfil event for internal transfers
10xSebastian Jun 19, 2023
fbc06f9
adds approve (exchange) and pay with wrapped conversion
10xSebastian Jun 19, 2023
2425612
upgrade dependencies
10xSebastian Aug 7, 2023
cccb26f
fix tests
10xSebastian Aug 7, 2023
e6a92ca
fix tests
10xSebastian Aug 7, 2023
25e93bb
exchange conversion
10xSebastian Aug 7, 2023
e8834bb
fix tests
10xSebastian Aug 7, 2023
941de1f
fix tests
10xSebastian Aug 7, 2023
317721a
insufficient balanceOut spec
10xSebastian Aug 7, 2023
1ab9fce
add all contract exchange variations and enable bsc for testing
10xSebastian Aug 9, 2023
322d9a0
enable avalanche
10xSebastian Aug 9, 2023
3b85544
upgrade dependencies
10xSebastian Aug 9, 2023
d6ae6d1
add fantom exchange test
10xSebastian Aug 9, 2023
3b44ac5
try to fix tests with dependency update
10xSebastian Aug 10, 2023
61728ca
try different node version
10xSebastian Aug 10, 2023
5c3d53a
fix bsc tests
10xSebastian Aug 10, 2023
e21cf4f
add gnosis exchange payment tests
10xSebastian Aug 10, 2023
86e67f8
tests for conversion payments on arbitrum + optimsm
10xSebastian Aug 10, 2023
c9b4204
refactoring to enable payment forwarding
10xSebastian Aug 10, 2023
3b6630e
pay to receiver contract
10xSebastian Aug 10, 2023
8500850
enable/disable exchanges
10xSebastian Aug 10, 2023
9b6f69b
adds withdraw
10xSebastian Aug 10, 2023
2d8d4a4
refactoring
10xSebastian Aug 10, 2023
c203a81
adds permit2
10xSebastian Aug 11, 2023
e0a0e3e
estimates
10xSebastian Aug 11, 2023
6eb9a73
fix tests
10xSebastian Aug 11, 2023
7c556c8
flattened files
10xSebastian Aug 11, 2023
9c9c515
refactor
10xSebastian Aug 11, 2023
a84e461
fix
10xSebastian Aug 11, 2023
a9beace
only test on PRs
10xSebastian Aug 11, 2023
a81111c
only test on branches
10xSebastian Aug 11, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/test-on-arbitrum.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# This is a basic workflow to help you get started with Actions

name: Test on Arbitrum

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches-ignore:
- master

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
test-on-arbitrum:
# The type of runner that the job will run on
runs-on: ubuntu-latest

env:
MNEMONIC: ${{secrets.MNEMONIC}}
ARBITRUM_ONE_RPC_URL: ${{secrets.ARBITRUM_ONE_RPC_URL}}

# Steps represent a sequence of tasks that will be executed as part of the job
steps:

# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- uses: actions/setup-node@v2
with:
node-version: '16'

# Runs a single command using the runners shell
- name: Install packages
run: yarn install

- name: Compile
run: yarn compile

- name: Run test
run: yarn test:arbitrum
44 changes: 44 additions & 0 deletions .github/workflows/test-on-avalanche.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# This is a basic workflow to help you get started with Actions

name: Test on Avalanche

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches-ignore:
- master

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
test-on-avalanche:
# The type of runner that the job will run on
runs-on: ubuntu-latest

env:
MNEMONIC: ${{secrets.MNEMONIC}}
AVALANCHE_RPC_URL: ${{secrets.AVALANCHE_RPC_URL}}

# Steps represent a sequence of tasks that will be executed as part of the job
steps:

# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- uses: actions/setup-node@v2
with:
node-version: '16'

# Runs a single command using the runners shell
- name: Install packages
run: yarn install

- name: Compile
run: yarn compile

- name: Run test
run: yarn test:avalanche
6 changes: 2 additions & 4 deletions .github/workflows/test-on-bsc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ name: Test on BSC
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [master]
pull_request:
branches: [master]
branches-ignore:
- master

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -23,7 +22,6 @@ jobs:
env:
MNEMONIC: ${{secrets.MNEMONIC}}
BSC_RPC_URL: ${{secrets.BSC_RPC_URL}}
BSC_RPC_API_KEY: ${{secrets.BSC_RPC_API_KEY}}

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/test-on-ethereum.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ name: Test on Ethereum
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [master]
pull_request:
branches: [master]
branches-ignore:
- master

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down
44 changes: 44 additions & 0 deletions .github/workflows/test-on-fantom.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# This is a basic workflow to help you get started with Actions

name: Test on Fantom

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches-ignore:
- master

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
test-on-fantom:
# The type of runner that the job will run on
runs-on: ubuntu-latest

env:
MNEMONIC: ${{secrets.MNEMONIC}}
FANTOM_RPC_URL: ${{secrets.FANTOM_RPC_URL}}

# Steps represent a sequence of tasks that will be executed as part of the job
steps:

# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- uses: actions/setup-node@v2
with:
node-version: '16'

# Runs a single command using the runners shell
- name: Install packages
run: yarn install

- name: Compile
run: yarn compile

- name: Run test
run: yarn test:fantom
44 changes: 44 additions & 0 deletions .github/workflows/test-on-gnosis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# This is a basic workflow to help you get started with Actions

name: Test on Gnosis

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches-ignore:
- master

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
test-on-gnosis:
# The type of runner that the job will run on
runs-on: ubuntu-latest

env:
MNEMONIC: ${{secrets.MNEMONIC}}
GNOSIS_RPC_URL: ${{secrets.GNOSIS_RPC_URL}}

# Steps represent a sequence of tasks that will be executed as part of the job
steps:

# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- uses: actions/setup-node@v2
with:
node-version: '16'

# Runs a single command using the runners shell
- name: Install packages
run: yarn install

- name: Compile
run: yarn compile

- name: Run test
run: yarn test:gnosis
44 changes: 44 additions & 0 deletions .github/workflows/test-on-optimism.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# This is a basic workflow to help you get started with Actions

name: Test on Optimism

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches-ignore:
- master

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
test-on-gnosis:
# The type of runner that the job will run on
runs-on: ubuntu-latest

env:
MNEMONIC: ${{secrets.MNEMONIC}}
OPTIMISM_RPC_URL: ${{secrets.OPTIMISM_RPC_URL}}

# Steps represent a sequence of tasks that will be executed as part of the job
steps:

# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- uses: actions/setup-node@v2
with:
node-version: '16'

# Runs a single command using the runners shell
- name: Install packages
run: yarn install

- name: Compile
run: yarn compile

- name: Run test
run: yarn test:optimism
5 changes: 2 additions & 3 deletions .github/workflows/test-on-polygon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ name: Test on Polygon
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [master]
pull_request:
branches: [master]
branches-ignore:
- master

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down
96 changes: 96 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
Business Source License 1.1

License text copyright (c) 2017 MariaDB Corporation Ab, All Rights Reserved.
"Business Source License" is a trademark of MariaDB Corporation Ab.

-----------------------------------------------------------------------------

Parameters

Licensor: DePay AG, Switzerland

Licensed Work: DePay EVM Payment Router
The Licensed Work is (c) 2023 DePay AG

Change Date: The earlier of 2025-01-01 or a date specified at

Change License: MIT License

-----------------------------------------------------------------------------

Terms

The Licensor hereby grants you the right to copy, modify, create derivative
works, redistribute, and make non-production use of the Licensed Work. The
Licensor may make an Additional Use Grant, above, permitting limited
production use.

Effective on the Change Date, or the fourth anniversary of the first publicly
available distribution of a specific version of the Licensed Work under this
License, whichever comes first, the Licensor hereby grants you rights under
the terms of the Change License, and the rights granted in the paragraph
above terminate.

If your use of the Licensed Work does not comply with the requirements
currently in effect as described in this License, you must purchase a
commercial license from the Licensor, its affiliated entities, or authorized
resellers, or you must refrain from using the Licensed Work.

All copies of the original and modified Licensed Work, and derivative works
of the Licensed Work, are subject to this License. This License applies
separately for each version of the Licensed Work and the Change Date may vary
for each version of the Licensed Work released by Licensor.

You must conspicuously display this License on each original or modified copy
of the Licensed Work. If you receive the Licensed Work in original or
modified form from a third party, the terms and conditions set forth in this
License apply to your use of that work.

Any use of the Licensed Work in violation of this License will automatically
terminate your rights under this License for the current and all other
versions of the Licensed Work.

This License does not grant you any right in any trademark or logo of
Licensor or its affiliates (provided that you may use a trademark or logo of
Licensor as expressly required by this License).

TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
AN "AS IS" BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
TITLE.

MariaDB hereby grants you permission to use this License’s text to license
your works, and to refer to it using the trademark "Business Source License",
as long as you comply with the Covenants of Licensor below.

-----------------------------------------------------------------------------

Covenants of Licensor

In consideration of the right to use this License’s text and the "Business
Source License" name and trademark, Licensor covenants to MariaDB, and to all
other recipients of the licensed work to be provided by Licensor:

1. To specify as the Change License the GPL Version 2.0 or any later version,
or a license that is compatible with GPL Version 2.0 or a later version,
where "compatible" means that software provided under the Change License can
be included in a program with software provided under GPL Version 2.0 or a
later version. Licensor may specify additional Change Licenses without
limitation.

2. To either: (a) specify an additional grant of rights to use that does not
impose any additional restriction on the right granted in this License, as
the Additional Use Grant; or (b) insert the text "None".

3. To specify a Change Date.

4. Not to modify this License in any other way.

-----------------------------------------------------------------------------

Notice

The Business Source License (this document, or the "License") is not an Open
Source license. However, the Licensed Work will eventually be made available
under an Open Source License, as stated in this License.
Loading
Loading