-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* start on cross chain pools with cl functions * initial efforts edge cases identified and will be irioned out tomorrow. but this is most of the structure! * closer pre single chain tests * write out planned tests, rework a bit of the cross chain details starting to look just a bit ugly, hopefully getting pretty close to the end of the edge cases. we see! * add missing file * tests back to normal * add important debt check test * add some tests before I leave for vacation * minor fixes * more minor fixes * Run yarn lint:sol:fix * Run yarn lint:js:fix * Use CrossChain storage lib for cross chain usd transfers * fixes for utils module, allow xchain pools to have its own versioning * v3.2.0-xchain.0 * fix error * Implement burn from sender (#1622) * add burn from sender * call burn with target as caller * Add access check * add tests * fix lint * fix lint * fixes * first successful ccip send of createCrossChainPool next step: pool sync final step: pool config * fixes to load contract from misc source * Add transfer cross chain USD tests (#1634) * add transferCrossChain tests * refund leftover gas and test cleanup * create CrossChainUSDModule * fix lint * update transferCrossChain (#1650) * fix sol lint and revert deps change * fixes * run yarn * Use EVMTokenAmount amount * decouple from xchain-pools branch * revert unnecessary changes * remove more unnecessary files * Update storage dump * fix lint * fix deps * fix lint: use safe cast in utils module * implement feedback * update comment * revert version changes --------- Co-authored-by: Daniel Beal <git@danb.email> Co-authored-by: Daniel Beal <git@dbeal.dev>
- Loading branch information
1 parent
00fbcda
commit 202cf92
Showing
305 changed files
with
1,780 additions
and
932 deletions.
There are no files selected for viewing
Binary file removed
BIN
-20.5 KB
.yarn/cache/@ampproject-remapping-npm-2.2.0-114878fa50-d74d170d06.zip
Binary file not shown.
Binary file added
BIN
+26.7 KB
.yarn/cache/@ampproject-remapping-npm-2.2.1-3da3d624be-03c04fd526.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-9.04 KB
.yarn/cache/@babel-compat-data-npm-7.21.0-8983856f86-dbf632c532.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-21.3 KB
.yarn/cache/@babel-helper-compilation-targets-npm-7.20.7-fbd2fdfc71-8c32c873ba.zip
Binary file not shown.
Binary file added
BIN
+21.6 KB
.yarn/cache/@babel-helper-compilation-targets-npm-7.22.5-5e6d9af186-a479460615.zip
Binary file not shown.
Binary file removed
BIN
-2.89 KB
.yarn/cache/@babel-helper-environment-visitor-npm-7.18.9-9f5b3635a1-b25101f616.zip
Binary file not shown.
Binary file added
BIN
+4.34 KB
.yarn/cache/@babel-helper-environment-visitor-npm-7.22.5-7bc52eec61-248532077d.zip
Binary file not shown.
Binary file removed
BIN
-8.7 KB
.yarn/cache/@babel-helper-function-name-npm-7.21.0-a17ce5a05a-d63e63c3e0.zip
Binary file not shown.
Binary file added
BIN
+8.75 KB
.yarn/cache/@babel-helper-function-name-npm-7.22.5-8a1a69b63d-6b1f6ce1b1.zip
Binary file not shown.
Binary file removed
BIN
-2.99 KB
.yarn/cache/@babel-helper-hoist-variables-npm-7.18.6-6eb061f405-fd9c35bb43.zip
Binary file not shown.
Binary file added
BIN
+4.5 KB
.yarn/cache/@babel-helper-hoist-variables-npm-7.22.5-6db3192347-394ca191b4.zip
Binary file not shown.
Binary file removed
BIN
-6.07 KB
.yarn/cache/@babel-helper-module-imports-npm-7.18.6-1031faa864-f393f8a3b3.zip
Binary file not shown.
Binary file added
BIN
+16 KB
.yarn/cache/@babel-helper-module-imports-npm-7.22.5-399b6063db-9ac2b0404f.zip
Binary file not shown.
Binary file removed
BIN
-41.1 KB
.yarn/cache/@babel-helper-module-transforms-npm-7.21.2-c33f2d2d0e-8a1c129a4f.zip
Binary file not shown.
Binary file added
BIN
+41.9 KB
.yarn/cache/@babel-helper-module-transforms-npm-7.22.5-c31751930e-8985dc0d97.zip
Binary file not shown.
Binary file removed
BIN
-6.15 KB
.yarn/cache/@babel-helper-plugin-utils-npm-7.20.2-63f605bb73-f6cae53b7f.zip
Binary file not shown.
Binary file added
BIN
+6.18 KB
.yarn/cache/@babel-helper-plugin-utils-npm-7.22.5-192e38e1de-c0fc722707.zip
Binary file not shown.
Binary file removed
BIN
-5.79 KB
.yarn/cache/@babel-helper-simple-access-npm-7.20.2-842ec98fbb-ad1e96ee2e.zip
Binary file not shown.
Binary file added
BIN
+5.9 KB
.yarn/cache/@babel-helper-simple-access-npm-7.22.5-0a3f578780-fe9686714c.zip
Binary file not shown.
Binary file removed
BIN
-3.17 KB
.yarn/cache/@babel-helper-split-export-declaration-npm-7.18.6-53ebf8ad4c-c6d3dede53.zip
Binary file not shown.
Binary file added
BIN
+5.14 KB
.yarn/cache/@babel-helper-split-export-declaration-npm-7.22.5-5e708abd3e-d10e05a02f.zip
Binary file not shown.
Binary file removed
BIN
-10.4 KB
.yarn/cache/@babel-helper-string-parser-npm-7.19.4-0db110dc3a-b2f8a3920b.zip
Binary file not shown.
Binary file added
BIN
+9.82 KB
.yarn/cache/@babel-helper-string-parser-npm-7.22.5-448ff0e489-836851ca5e.zip
Binary file not shown.
Binary file removed
BIN
-20.8 KB
.yarn/cache/@babel-helper-validator-identifier-npm-7.19.1-d84f19e1dc-0eca5e86a7.zip
Binary file not shown.
Binary file added
BIN
+17.5 KB
.yarn/cache/@babel-helper-validator-identifier-npm-7.22.5-4536624779-7f0f301134.zip
Binary file not shown.
Binary file removed
BIN
-7.08 KB
.yarn/cache/@babel-helper-validator-option-npm-7.21.0-fbe86866e3-8ece4c78ff.zip
Binary file not shown.
Binary file added
BIN
+7.14 KB
.yarn/cache/@babel-helper-validator-option-npm-7.22.5-eaf22b24ab-bbeca8a85e.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-2.68 KB
.yarn/cache/@babel-plugin-syntax-jsx-npm-7.18.6-3e378d5f11-6d37ea9729.zip
Binary file not shown.
Binary file added
BIN
+3.52 KB
.yarn/cache/@babel-plugin-syntax-jsx-npm-7.22.5-2cbf8e7e68-8829d30c26.zip
Binary file not shown.
Binary file removed
BIN
-4.44 KB
.yarn/cache/@babel-plugin-syntax-typescript-npm-7.20.0-21fa6329fe-6189c0b5c3.zip
Binary file not shown.
Binary file added
BIN
+4.53 KB
.yarn/cache/@babel-plugin-syntax-typescript-npm-7.22.5-e17157d73d-8ab7718fbb.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+16.5 KB
.yarn/cache/@humanwhocodes-config-array-npm-0.11.10-7b63df9e7f-1b1302e240.zip
Binary file not shown.
Binary file removed
BIN
-18.8 KB
.yarn/cache/@humanwhocodes-config-array-npm-0.11.8-7955bfecc2-0fd6b3c54f.zip
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-16.3 KB
.yarn/cache/@jridgewell-gen-mapping-npm-0.1.1-3bad172ac6-3bcc21fe78.zip
Binary file not shown.
Binary file renamed
BIN
+26.5 KB
...pping-npm-0.3.2-c64eeb4a4e-1832707a1c.zip → ...pping-npm-0.3.3-1815eba94c-4a74944bd3.zip
Binary file not shown.
Binary file added
BIN
+17.9 KB
.yarn/cache/@jridgewell-resolve-uri-npm-3.1.1-aa2de3f210-f5b441fe79.zip
Binary file not shown.
Binary file added
BIN
+14.7 KB
.yarn/cache/@jridgewell-sourcemap-codec-npm-1.4.15-a055fb62cf-b881c7e503.zip
Binary file not shown.
Binary file renamed
BIN
+44.4 KB
...ping-npm-0.3.17-57578fd48c-9d703b859c.zip → ...ping-npm-0.3.18-cd96571385-0572669f85.zip
Binary file not shown.
Binary file removed
BIN
-60.5 KB
.yarn/cache/@morgan-stanley-ts-mocking-bird-npm-0.6.4-446ce84df7-7d788007c8.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+12.1 KB
...i-git-npm-4.0.4-58b0cf13b7-fd8ad33113.zip → ...i-git-npm-4.1.0-f7322fced9-37efb92659.zip
Binary file not shown.
Binary file removed
BIN
-4.85 KB
.yarn/cache/@npmcli-map-workspaces-npm-3.0.3-1789b2adb3-d61d152b5c.zip
Binary file not shown.
Binary file added
BIN
+4.85 KB
.yarn/cache/@npmcli-map-workspaces-npm-3.0.4-b07359726d-99607dbc50.zip
Binary file not shown.
Binary file renamed
BIN
+11.8 KB
...lator-npm-5.0.0-f18b257067-82a64c055b.zip → ...lator-npm-5.0.1-b28e316793-cd08ad9cc4.zip
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-6.5 KB
.yarn/cache/@npmcli-package-json-npm-3.0.0-917589a7ff-d7603ec771.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-13.2 KB
.yarn/cache/@octokit-auth-token-npm-3.0.3-6fba099166-9b3f569cec.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-398 KB
.yarn/cache/@octokit-openapi-types-npm-16.0.0-2fe91e346e-844f30a545.zip
Binary file not shown.
Binary file added
BIN
+402 KB
.yarn/cache/@octokit-openapi-types-npm-18.0.0-1586e405d6-d487d6c6c1.zip
Binary file not shown.
Binary file removed
BIN
-39.4 KB
.yarn/cache/@octokit-plugin-paginate-rest-npm-6.0.0-ccfed9f0b1-4ad89568d8.zip
Binary file not shown.
Binary file added
BIN
+35 KB
.yarn/cache/@octokit-plugin-paginate-rest-npm-6.1.2-3b2443d1e8-a7b3e686c7.zip
Binary file not shown.
Binary file removed
BIN
-162 KB
.yarn/cache/@octokit-plugin-rest-endpoint-methods-npm-7.0.1-6524223f9b-cdb8734ec9.zip
Binary file not shown.
Binary file added
BIN
+164 KB
.yarn/cache/@octokit-plugin-rest-endpoint-methods-npm-7.2.3-c54ecf5d8d-21dfb98514.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-19.1 KB
.yarn/cache/@sinonjs-fake-timers-npm-10.0.2-c5fa80f1cc-c62aa98e7c.zip
Binary file not shown.
Binary file added
BIN
+19.3 KB
.yarn/cache/@sinonjs-fake-timers-npm-10.3.0-7417f876b4-614d30cb4d.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+3.98 KB
.yarn/cache/@tufjs-canonical-json-npm-1.0.0-66d27d850f-9ff3bcd129.zip
Binary file not shown.
Binary file renamed
BIN
+33.5 KB
...odels-npm-1.0.1-eb0579d672-2f8ebc8e8e.zip → ...odels-npm-1.0.4-a1dddaf561-b489baa854.zip
Binary file not shown.
Binary file removed
BIN
-10.6 KB
.yarn/cache/@types-babel__core-npm-7.20.0-cf2ab39970-49b601a0a7.zip
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-12.2 KB
.yarn/cache/@types-babel__traverse-npm-7.18.3-db279a0ed0-d20953338b.zip
Binary file not shown.
Binary file added
BIN
+16.1 KB
.yarn/cache/@types-babel__traverse-npm-7.20.1-e1e93d4b3f-58341e23c6.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+19.3 KB
...mver-npm-7.3.13-56212b60da-00c0724d54.zip → ...emver-npm-7.5.0-4823ff34be-0a64b9b9c7.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-9.47 KB
.yarn/cache/@vue-reactivity-transform-npm-3.2.47-89701a53ab-6fe54374aa.zip
Binary file not shown.
Binary file added
BIN
+8.71 KB
.yarn/cache/@vue-reactivity-transform-npm-3.3.4-bfbf394bf7-b425e78b20.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-76.5 KB
.yarn/cache/bigint-crypto-utils-npm-3.1.8-1691be213a-deb004aacf.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+248 KB
...borg-npm-1.10.0-0ef06f2c73-e93ce1135e.zip → ...borg-npm-1.10.2-0c859907fc-7743a8f125.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-30.6 KB
.yarn/cache/electron-to-chromium-npm-1.4.328-d04c6a1acc-82c1617a77.zip
Binary file not shown.
Binary file added
BIN
+32.8 KB
.yarn/cache/electron-to-chromium-npm-1.4.438-8996671fde-53d9292ca6.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-11.8 KB
.yarn/cache/eslint-visitor-keys-npm-3.3.0-d329af7c8c-d59e68a7c5.zip
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+23.8 KB
...spree-npm-9.5.0-ec4786604f-a7f110aefb.zip → ...spree-npm-9.5.2-5fc9506cda-6506289d6e.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+17 KB
...gauge-npm-5.0.0-d7f55b3a17-663c3e9418.zip → ...gauge-npm-5.0.1-69ab73de36-09b1eb8d8c.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+417 KB
...phql-npm-16.6.0-301c470966-bf1d9e3c19.zip → ...phql-npm-16.7.1-0f9416280c-c924d8428d.zip
Binary file not shown.
Binary file renamed
BIN
+5.37 KB
...-walk-npm-6.0.2-535a635101-99dda4d697.zip → ...-walk-npm-6.0.3-ebca6b06c4-d8ba534beb.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+21.8 KB
...ipass-npm-4.2.5-25860eb433-4f9c19af23.zip → ...ipass-npm-4.2.8-f05abfe254-7f4914d529.zip
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+13.8 KB
...anoid-npm-3.3.4-3d250377d6-2fddd6dee9.zip → ...anoid-npm-3.3.6-e6d6ae7e71-7d0eda6570.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+504 KB
...e-gyp-npm-9.3.1-43540bab9c-b860e9976f.zip → ...e-gyp-npm-9.4.0-ebf5f5573e-78b404e2e0.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+3.59 KB
...hecks-npm-6.1.0-09624c5823-efbb4deac4.zip → ...hecks-npm-6.1.1-e05db36ccf-8fb3ed05cf.zip
Binary file not shown.
Binary file removed
BIN
-2.81 KB
.yarn/cache/npm-normalize-package-bin-npm-3.0.0-66c99675c5-6a34886c15.zip
Binary file not shown.
Binary file added
BIN
+2.83 KB
.yarn/cache/npm-normalize-package-bin-npm-3.0.1-6c120b50f7-de416d720a.zip
Binary file not shown.
Binary file removed
BIN
-15.1 KB
.yarn/cache/npm-registry-fetch-npm-14.0.3-c361ea3695-451224e727.zip
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+11.2 KB
...ptors-npm-2.1.5-4cfa1d83ab-7883e1aac1.zip → ...ptors-npm-2.1.6-6cf48de07f-7757ce0ef6.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-58.6 KB
.yarn/cache/postcss-selector-parser-npm-6.0.11-b2f8bf39d3-0b01aa9c2d.zip
Binary file not shown.
Binary file added
BIN
+58.8 KB
.yarn/cache/postcss-selector-parser-npm-6.0.13-f732d92326-f89163338a.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+35.2 KB
...-rand-npm-6.0.1-f90861c00f-4bb5653999.zip → ...-rand-npm-6.0.2-5d375bc0a6-79de33876a.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+65 KB
...tream-npm-4.3.0-11c60fc281-5f8d5fc1eb.zip → ...tream-npm-4.4.0-780b78fcb6-cc1630c2de.zip
Binary file not shown.
Binary file removed
BIN
-15.3 KB
.yarn/cache/regexp.prototype.flags-npm-1.4.3-df1c08b65d-51228bae73.zip
Binary file not shown.
Binary file added
BIN
+15.8 KB
.yarn/cache/regexp.prototype.flags-npm-1.5.0-5623b9e07f-c541687cdb.zip
Binary file not shown.
Binary file renamed
BIN
+59.1 KB
...olve-npm-1.22.1-3980488690-07af5fc1e8.zip → ...olve-npm-1.22.3-f7dee15274-fb834b8134.zip
Binary file not shown.
Binary file renamed
BIN
+60.3 KB
...e/resolve-patch-0c52e0e4f7-5656f4d0be.zip → ...e/resolve-patch-bb62d3c3c5-ad59734723.zip
Binary file not shown.
Binary file renamed
BIN
+9.53 KB
...ports-npm-2.0.1-d12c60ed37-03be177026.zip → ...ports-npm-2.0.2-f59b42bbe5-1c7778ca1b.zip
Binary file not shown.
Binary file renamed
BIN
+1.71 MB
.../rxjs-npm-7.8.0-722f1c7172-61b4d4fd32.zip → .../rxjs-npm-7.8.1-41c443a75b-de4b53db10.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+12 KB
...ssri-npm-10.0.1-29d9a840bb-f35b147e5e.zip → ...ssri-npm-10.0.4-f583dafaf3-fb14da9f8a.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+165 KB
...-args-npm-2.4.2-87034a2566-87670c554e.zip → ...-args-npm-2.5.1-9de033aad1-7c0a7582e9.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-6.5 KB
.yarn/cache/update-browserslist-db-npm-1.0.10-676baf0b9f-12db73b4f6.zip
Binary file not shown.
Binary file added
BIN
+6.56 KB
.yarn/cache/update-browserslist-db-npm-1.0.11-2c8e64258f-b98327518f.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+85.8 KB
...args-npm-17.7.1-0758ec0e50-3d8a43c336.zip → ...args-npm-17.7.2-80b62638e1-73b572e863.zip
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,8 @@ | |
"version": { | ||
"allowBranch": [ | ||
"main", | ||
"lerna" | ||
"lerna", | ||
"teleporters" | ||
] | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
protocol/synthetix/contracts/interfaces/ICrossChainUSDModule.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
//SPDX-License-Identifier: MIT | ||
pragma solidity >=0.8.11 <0.9.0; | ||
|
||
/** | ||
* @title Module for the cross-chain transfers of stablecoins. | ||
*/ | ||
interface ICrossChainUSDModule { | ||
event TransferCrossChainInitiated( | ||
uint64 indexed destChainId, | ||
uint256 indexed amount, | ||
address sender | ||
); | ||
|
||
/** | ||
* @notice Allows users to transfer tokens cross-chain using CCIP. | ||
* @param destChainId The id of the chain where tokens are to be transferred to. | ||
* @param amount The amount of tokens to be transferred, denominated with 18 decimals of precision. | ||
* @return gasTokenUsed The amount of fees paid in the cross-chain transfer, denominated with 18 decimals of precision. | ||
*/ | ||
function transferCrossChain( | ||
uint64 destChainId, | ||
uint256 amount | ||
) external payable returns (uint256 gasTokenUsed); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
protocol/synthetix/contracts/interfaces/external/IAny2EVMMessageReceiver.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.4; | ||
|
||
import "../../utils/CcipClient.sol"; | ||
|
||
/// @notice Application contracts that intend to receive messages from | ||
/// the router should implement this interface. | ||
interface IAny2EVMMessageReceiver { | ||
/// @notice Router calls this to deliver a message. | ||
/// If this reverts, any token transfers also revert. The message | ||
/// will move to a FAILED state and become available for manual execution | ||
/// as a retry. Fees already paid are NOT currently refunded (may change). | ||
/// @param message CCIP Message | ||
/// @dev Note ensure you check the msg.sender is the router | ||
function ccipReceive(CcipClient.Any2EVMMessage calldata message) external; | ||
} |
25 changes: 0 additions & 25 deletions
25
protocol/synthetix/contracts/interfaces/external/IAny2EVMMessageReceiverInterface.sol
This file was deleted.
Oops, something went wrong.
45 changes: 45 additions & 0 deletions
45
protocol/synthetix/contracts/interfaces/external/ICcipRouterClient.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.4; | ||
|
||
import "../../utils/CcipClient.sol"; | ||
|
||
interface ICcipRouterClient { | ||
error UnsupportedDestinationChain(uint64 destinationChainId); | ||
/// @dev Sender is not whitelisted | ||
error SenderNotAllowed(address sender); | ||
error InsufficientFeeTokenAmount(); | ||
/// @dev Sent msg.value with a non-empty feeToken | ||
error InvalidMsgValue(); | ||
|
||
/// @notice Checks if the given chain ID is supported for sending/receiving. | ||
/// @param chainId The chain to check | ||
/// @return supported is true if it is supported, false if not | ||
function isChainSupported(uint64 chainId) external view returns (bool supported); | ||
|
||
/// @notice Gets a list of all supported tokens which can be sent or received | ||
/// to/from a given chain id. | ||
/// @param chainId The chainId. | ||
/// @return tokens The addresses of all tokens that are supported. | ||
function getSupportedTokens(uint64 chainId) external view returns (address[] memory tokens); | ||
|
||
/// @param destinationChainId The destination chain ID | ||
/// @param message The cross-chain CCIP message including data and/or tokens | ||
/// @return fee returns execution fee for the specified message | ||
/// delivery to destination chain | ||
/// @dev returns 0 fee on invalid message. | ||
function getFee( | ||
uint64 destinationChainId, | ||
CcipClient.EVM2AnyMessage memory message | ||
) external view returns (uint256 fee); | ||
|
||
/// @notice Request a message to be sent to the destination chain | ||
/// @param destinationChainId The destination chain ID | ||
/// @param message The cross-chain CCIP message including data and/or tokens | ||
/// @return messageId The message ID | ||
/// @dev Note if msg.value is larger than the required fee (from getFee) we accept | ||
/// the overpayment with no refund. | ||
function ccipSend( | ||
uint64 destinationChainId, | ||
CcipClient.EVM2AnyMessage calldata message | ||
) external payable returns (bytes32 messageId); | ||
} |
25 changes: 0 additions & 25 deletions
25
...col/synthetix/contracts/interfaces/external/IEVM2AnySubscriptionOnRampRouterInterface.sol
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
//SPDX-License-Identifier: MIT | ||
pragma solidity >=0.8.4; | ||
|
||
import "../interfaces/external/ICcipRouterClient.sol"; | ||
|
||
contract CcipRouterMock { | ||
function ccipSend( | ||
uint64 destinationChainId, | ||
CcipClient.EVM2AnyMessage calldata message | ||
) external payable virtual returns (bytes32 messageId) {} | ||
|
||
function getFee( | ||
uint64 destinationChainId, | ||
CcipClient.EVM2AnyMessage memory message | ||
) external view virtual returns (uint256 fee) {} | ||
} |
Oops, something went wrong.