@layerzerolabs/oft-evm-contracts 0.2.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +68 -0
- package/.turbo/turbo-lint.log +185 -0
- package/.turbo/turbo-test.log +144 -0
- package/LICENSE +23 -0
- package/artifacts/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroEndpointV2.sol/ILayerZeroEndpointV2.dbg.json +4 -0
- package/artifacts/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroEndpointV2.sol/ILayerZeroEndpointV2.json +1899 -0
- package/artifacts/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroReceiver.sol/ILayerZeroReceiver.dbg.json +4 -0
- package/artifacts/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroReceiver.sol/ILayerZeroReceiver.json +121 -0
- package/artifacts/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessageLibManager.sol/IMessageLibManager.dbg.json +4 -0
- package/artifacts/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessageLibManager.sol/IMessageLibManager.json +646 -0
- package/artifacts/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingChannel.sol/IMessagingChannel.dbg.json +4 -0
- package/artifacts/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingChannel.sol/IMessagingChannel.json +373 -0
- package/artifacts/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingComposer.sol/IMessagingComposer.dbg.json +4 -0
- package/artifacts/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingComposer.sol/IMessagingComposer.json +246 -0
- package/artifacts/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingContext.sol/IMessagingContext.dbg.json +4 -0
- package/artifacts/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingContext.sol/IMessagingContext.json +42 -0
- package/artifacts/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppCore.sol/IOAppCore.dbg.json +4 -0
- package/artifacts/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppCore.sol/IOAppCore.json +148 -0
- package/artifacts/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppExtended.sol/IOAppExtended.dbg.json +4 -0
- package/artifacts/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppExtended.sol/IOAppExtended.json +467 -0
- package/artifacts/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppMsgInspection.sol/IOAppMsgInspection.dbg.json +4 -0
- package/artifacts/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppMsgInspection.sol/IOAppMsgInspection.json +50 -0
- package/artifacts/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppOptionsType3.sol/IOAppOptionsType3.dbg.json +4 -0
- package/artifacts/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppOptionsType3.sol/IOAppOptionsType3.json +135 -0
- package/artifacts/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppReceiver.sol/IOAppReceiver.dbg.json +4 -0
- package/artifacts/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppReceiver.sol/IOAppReceiver.json +167 -0
- package/artifacts/@layerzerolabs/utils-evm-contracts/contracts/interfaces/IFeeConfig.sol/IFeeConfig.dbg.json +4 -0
- package/artifacts/@layerzerolabs/utils-evm-contracts/contracts/interfaces/IFeeConfig.sol/IFeeConfig.json +188 -0
- package/artifacts/@layerzerolabs/utils-evm-contracts/contracts/interfaces/IFeeHandler.sol/IFeeHandler.dbg.json +4 -0
- package/artifacts/@layerzerolabs/utils-evm-contracts/contracts/interfaces/IFeeHandler.sol/IFeeHandler.json +55 -0
- package/artifacts/@layerzerolabs/utils-evm-contracts/contracts/interfaces/IPauseByID.sol/IPauseByID.dbg.json +4 -0
- package/artifacts/@layerzerolabs/utils-evm-contracts/contracts/interfaces/IPauseByID.sol/IPauseByID.json +177 -0
- package/artifacts/@layerzerolabs/utils-evm-contracts/contracts/interfaces/IRateLimiter.sol/IRateLimiter.dbg.json +4 -0
- package/artifacts/@layerzerolabs/utils-evm-contracts/contracts/interfaces/IRateLimiter.sol/IRateLimiter.json +532 -0
- package/artifacts/build-info/eba77569fb49f02e67cb445bb3ee5d37.json +1 -0
- package/artifacts/contracts/interfaces/IOFT.sol/IOFT.dbg.json +4 -0
- package/artifacts/contracts/interfaces/IOFT.sol/IOFT.json +467 -0
- package/artifacts/contracts/interfaces/IOFTDecimalUtils.sol/IOFTDecimalUtils.dbg.json +4 -0
- package/artifacts/contracts/interfaces/IOFTDecimalUtils.sol/IOFTDecimalUtils.json +66 -0
- package/artifacts/contracts/interfaces/IOFTExtended.sol/IOFTExtended.dbg.json +4 -0
- package/artifacts/contracts/interfaces/IOFTExtended.sol/IOFTExtended.json +1831 -0
- package/artifacts/contracts/libs/OFTComposeMsgCodec.sol/OFTComposeMsgCodec.dbg.json +4 -0
- package/artifacts/contracts/libs/OFTComposeMsgCodec.sol/OFTComposeMsgCodec.json +10 -0
- package/artifacts/contracts/libs/OFTMsgCodec.sol/OFTMsgCodec.dbg.json +4 -0
- package/artifacts/contracts/libs/OFTMsgCodec.sol/OFTMsgCodec.json +10 -0
- package/artifacts/contracts/utils/OFTDecimalUtils.sol/OFTDecimalUtils.dbg.json +4 -0
- package/artifacts/contracts/utils/OFTDecimalUtils.sol/OFTDecimalUtils.json +66 -0
- package/artifacts-tron/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroEndpointV2.sol/ILayerZeroEndpointV2.dbg.json +4 -0
- package/artifacts-tron/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroEndpointV2.sol/ILayerZeroEndpointV2.json +1899 -0
- package/artifacts-tron/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroReceiver.sol/ILayerZeroReceiver.dbg.json +4 -0
- package/artifacts-tron/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroReceiver.sol/ILayerZeroReceiver.json +121 -0
- package/artifacts-tron/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessageLibManager.sol/IMessageLibManager.dbg.json +4 -0
- package/artifacts-tron/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessageLibManager.sol/IMessageLibManager.json +646 -0
- package/artifacts-tron/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingChannel.sol/IMessagingChannel.dbg.json +4 -0
- package/artifacts-tron/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingChannel.sol/IMessagingChannel.json +373 -0
- package/artifacts-tron/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingComposer.sol/IMessagingComposer.dbg.json +4 -0
- package/artifacts-tron/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingComposer.sol/IMessagingComposer.json +246 -0
- package/artifacts-tron/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingContext.sol/IMessagingContext.dbg.json +4 -0
- package/artifacts-tron/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingContext.sol/IMessagingContext.json +42 -0
- package/artifacts-tron/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppCore.sol/IOAppCore.dbg.json +4 -0
- package/artifacts-tron/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppCore.sol/IOAppCore.json +148 -0
- package/artifacts-tron/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppExtended.sol/IOAppExtended.dbg.json +4 -0
- package/artifacts-tron/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppExtended.sol/IOAppExtended.json +467 -0
- package/artifacts-tron/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppMsgInspection.sol/IOAppMsgInspection.dbg.json +4 -0
- package/artifacts-tron/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppMsgInspection.sol/IOAppMsgInspection.json +50 -0
- package/artifacts-tron/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppOptionsType3.sol/IOAppOptionsType3.dbg.json +4 -0
- package/artifacts-tron/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppOptionsType3.sol/IOAppOptionsType3.json +135 -0
- package/artifacts-tron/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppReceiver.sol/IOAppReceiver.dbg.json +4 -0
- package/artifacts-tron/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppReceiver.sol/IOAppReceiver.json +167 -0
- package/artifacts-tron/@layerzerolabs/utils-evm-contracts/contracts/interfaces/IFeeConfig.sol/IFeeConfig.dbg.json +4 -0
- package/artifacts-tron/@layerzerolabs/utils-evm-contracts/contracts/interfaces/IFeeConfig.sol/IFeeConfig.json +188 -0
- package/artifacts-tron/@layerzerolabs/utils-evm-contracts/contracts/interfaces/IFeeHandler.sol/IFeeHandler.dbg.json +4 -0
- package/artifacts-tron/@layerzerolabs/utils-evm-contracts/contracts/interfaces/IFeeHandler.sol/IFeeHandler.json +55 -0
- package/artifacts-tron/@layerzerolabs/utils-evm-contracts/contracts/interfaces/IPauseByID.sol/IPauseByID.dbg.json +4 -0
- package/artifacts-tron/@layerzerolabs/utils-evm-contracts/contracts/interfaces/IPauseByID.sol/IPauseByID.json +177 -0
- package/artifacts-tron/@layerzerolabs/utils-evm-contracts/contracts/interfaces/IRateLimiter.sol/IRateLimiter.dbg.json +4 -0
- package/artifacts-tron/@layerzerolabs/utils-evm-contracts/contracts/interfaces/IRateLimiter.sol/IRateLimiter.json +532 -0
- package/artifacts-tron/build-info/8846688aca1ca86abc2af4e130f3effa.json +1 -0
- package/artifacts-tron/contracts/interfaces/IOFT.sol/IOFT.dbg.json +4 -0
- package/artifacts-tron/contracts/interfaces/IOFT.sol/IOFT.json +467 -0
- package/artifacts-tron/contracts/interfaces/IOFTDecimalUtils.sol/IOFTDecimalUtils.dbg.json +4 -0
- package/artifacts-tron/contracts/interfaces/IOFTDecimalUtils.sol/IOFTDecimalUtils.json +66 -0
- package/artifacts-tron/contracts/interfaces/IOFTExtended.sol/IOFTExtended.dbg.json +4 -0
- package/artifacts-tron/contracts/interfaces/IOFTExtended.sol/IOFTExtended.json +1831 -0
- package/artifacts-tron/contracts/libs/OFTComposeMsgCodec.sol/OFTComposeMsgCodec.dbg.json +4 -0
- package/artifacts-tron/contracts/libs/OFTComposeMsgCodec.sol/OFTComposeMsgCodec.json +10 -0
- package/artifacts-tron/contracts/libs/OFTMsgCodec.sol/OFTMsgCodec.dbg.json +4 -0
- package/artifacts-tron/contracts/libs/OFTMsgCodec.sol/OFTMsgCodec.json +10 -0
- package/artifacts-tron/contracts/utils/OFTDecimalUtils.sol/OFTDecimalUtils.dbg.json +4 -0
- package/artifacts-tron/contracts/utils/OFTDecimalUtils.sol/OFTDecimalUtils.json +66 -0
- package/artifacts-zk/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroEndpointV2.sol/ILayerZeroEndpointV2.dbg.json +4 -0
- package/artifacts-zk/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroEndpointV2.sol/ILayerZeroEndpointV2.json +1900 -0
- package/artifacts-zk/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroReceiver.sol/ILayerZeroReceiver.dbg.json +4 -0
- package/artifacts-zk/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroReceiver.sol/ILayerZeroReceiver.json +122 -0
- package/artifacts-zk/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessageLibManager.sol/IMessageLibManager.dbg.json +4 -0
- package/artifacts-zk/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessageLibManager.sol/IMessageLibManager.json +647 -0
- package/artifacts-zk/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingChannel.sol/IMessagingChannel.dbg.json +4 -0
- package/artifacts-zk/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingChannel.sol/IMessagingChannel.json +374 -0
- package/artifacts-zk/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingComposer.sol/IMessagingComposer.dbg.json +4 -0
- package/artifacts-zk/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingComposer.sol/IMessagingComposer.json +247 -0
- package/artifacts-zk/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingContext.sol/IMessagingContext.dbg.json +4 -0
- package/artifacts-zk/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingContext.sol/IMessagingContext.json +43 -0
- package/artifacts-zk/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppCore.sol/IOAppCore.dbg.json +4 -0
- package/artifacts-zk/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppCore.sol/IOAppCore.json +149 -0
- package/artifacts-zk/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppExtended.sol/IOAppExtended.dbg.json +4 -0
- package/artifacts-zk/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppExtended.sol/IOAppExtended.json +468 -0
- package/artifacts-zk/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppMsgInspection.sol/IOAppMsgInspection.dbg.json +4 -0
- package/artifacts-zk/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppMsgInspection.sol/IOAppMsgInspection.json +51 -0
- package/artifacts-zk/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppOptionsType3.sol/IOAppOptionsType3.dbg.json +4 -0
- package/artifacts-zk/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppOptionsType3.sol/IOAppOptionsType3.json +136 -0
- package/artifacts-zk/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppReceiver.sol/IOAppReceiver.dbg.json +4 -0
- package/artifacts-zk/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppReceiver.sol/IOAppReceiver.json +168 -0
- package/artifacts-zk/@layerzerolabs/utils-evm-contracts/contracts/interfaces/IFeeConfig.sol/IFeeConfig.dbg.json +4 -0
- package/artifacts-zk/@layerzerolabs/utils-evm-contracts/contracts/interfaces/IFeeConfig.sol/IFeeConfig.json +189 -0
- package/artifacts-zk/@layerzerolabs/utils-evm-contracts/contracts/interfaces/IFeeHandler.sol/IFeeHandler.dbg.json +4 -0
- package/artifacts-zk/@layerzerolabs/utils-evm-contracts/contracts/interfaces/IFeeHandler.sol/IFeeHandler.json +56 -0
- package/artifacts-zk/@layerzerolabs/utils-evm-contracts/contracts/interfaces/IPauseByID.sol/IPauseByID.dbg.json +4 -0
- package/artifacts-zk/@layerzerolabs/utils-evm-contracts/contracts/interfaces/IPauseByID.sol/IPauseByID.json +178 -0
- package/artifacts-zk/@layerzerolabs/utils-evm-contracts/contracts/interfaces/IRateLimiter.sol/IRateLimiter.dbg.json +4 -0
- package/artifacts-zk/@layerzerolabs/utils-evm-contracts/contracts/interfaces/IRateLimiter.sol/IRateLimiter.json +533 -0
- package/artifacts-zk/build-info/be85166c48418856c8b56dff21efc105.json +1 -0
- package/artifacts-zk/contracts/interfaces/IOFT.sol/IOFT.dbg.json +4 -0
- package/artifacts-zk/contracts/interfaces/IOFT.sol/IOFT.json +468 -0
- package/artifacts-zk/contracts/interfaces/IOFTDecimalUtils.sol/IOFTDecimalUtils.dbg.json +4 -0
- package/artifacts-zk/contracts/interfaces/IOFTDecimalUtils.sol/IOFTDecimalUtils.json +67 -0
- package/artifacts-zk/contracts/interfaces/IOFTExtended.sol/IOFTExtended.dbg.json +4 -0
- package/artifacts-zk/contracts/interfaces/IOFTExtended.sol/IOFTExtended.json +1832 -0
- package/artifacts-zk/contracts/libs/OFTComposeMsgCodec.sol/OFTComposeMsgCodec.dbg.json +4 -0
- package/artifacts-zk/contracts/libs/OFTComposeMsgCodec.sol/OFTComposeMsgCodec.json +11 -0
- package/artifacts-zk/contracts/libs/OFTMsgCodec.sol/OFTMsgCodec.dbg.json +4 -0
- package/artifacts-zk/contracts/libs/OFTMsgCodec.sol/OFTMsgCodec.json +11 -0
- package/artifacts-zk/contracts/utils/OFTDecimalUtils.sol/OFTDecimalUtils.dbg.json +4 -0
- package/artifacts-zk/contracts/utils/OFTDecimalUtils.sol/OFTDecimalUtils.json +67 -0
- package/contracts/interfaces/IOFT.sol +158 -0
- package/contracts/interfaces/IOFTDecimalUtils.sol +39 -0
- package/contracts/interfaces/IOFTExtended.sol +17 -0
- package/contracts/libs/OFTComposeMsgCodec.sol +90 -0
- package/contracts/libs/OFTMsgCodec.sol +82 -0
- package/contracts/utils/OFTDecimalUtils.sol +88 -0
- package/foundry.toml +21 -0
- package/package.json +44 -0
- package/solhint.config.js +3 -0
- package/test/OFTDecimalUtils.t.sol +354 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
WARN Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
|
|
2
|
+
|
|
3
|
+
> @layerzerolabs/oft-evm-contracts@0.0.0 build /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/non-upgradeable
|
|
4
|
+
> pnpm compile:evm && pnpm compile:zksync && pnpm compile:tron
|
|
5
|
+
|
|
6
|
+
WARN Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
|
|
7
|
+
|
|
8
|
+
> @layerzerolabs/oft-evm-contracts@0.0.0 compile:evm /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/non-upgradeable
|
|
9
|
+
> pnpm lz-tool hardhat compile --config /hardhat/hardhat.default.config.js
|
|
10
|
+
|
|
11
|
+
WARN Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
|
|
12
|
+
✅ forge-1.3.6-hardhat-2.26.3
|
|
13
|
+
🔧 hardhat version: 2.26.3
|
|
14
|
+
$ docker image inspect --format {{.Id}} 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
|
|
15
|
+
(node:23061) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///home/runner/work/monorepo-internal/monorepo-internal/configs/vm-tooling/values/docker-image-repo.ts is not specified and it doesn't parse as CommonJS.
|
|
16
|
+
Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
|
|
17
|
+
To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
|
|
18
|
+
(Use `node --trace-warnings ...` to show where the warning was created)
|
|
19
|
+
✅ Using cached Docker image: 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
|
|
20
|
+
👤 Running container as UID:GID 1001:1001
|
|
21
|
+
$ docker run --rm --add-host=host.docker.internal:host-gateway -e LOCAL_UID=1001 -e LOCAL_GID=1001 -v /home/runner/work/monorepo-internal/monorepo-internal:/workspace -w /workspace/apps/oft-app/contracts/evm/non-upgradeable 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3 hardhat compile --config /hardhat/hardhat.default.config.js
|
|
22
|
+
Compiling 21 Solidity files
|
|
23
|
+
Successfully compiled 21 Solidity files
|
|
24
|
+
⏳ hardhat compile --config /hardhat/hardhat.default.config.js: 3.059s
|
|
25
|
+
WARN Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
|
|
26
|
+
|
|
27
|
+
> @layerzerolabs/oft-evm-contracts@0.0.0 compile:zksync /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/non-upgradeable
|
|
28
|
+
> pnpm lz-tool hardhat compile --config /hardhat/hardhat.default.config.js --network zksync-mainnet
|
|
29
|
+
|
|
30
|
+
WARN Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
|
|
31
|
+
✅ forge-1.3.6-hardhat-2.26.3
|
|
32
|
+
🔧 hardhat version: 2.26.3
|
|
33
|
+
$ docker image inspect --format {{.Id}} 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
|
|
34
|
+
(node:23621) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///home/runner/work/monorepo-internal/monorepo-internal/configs/vm-tooling/values/docker-image-repo.ts is not specified and it doesn't parse as CommonJS.
|
|
35
|
+
Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
|
|
36
|
+
To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
|
|
37
|
+
(Use `node --trace-warnings ...` to show where the warning was created)
|
|
38
|
+
✅ Using cached Docker image: 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
|
|
39
|
+
👤 Running container as UID:GID 1001:1001
|
|
40
|
+
$ docker run --rm --add-host=host.docker.internal:host-gateway -e LOCAL_UID=1001 -e LOCAL_GID=1001 -v /home/runner/work/monorepo-internal/monorepo-internal:/workspace -w /workspace/apps/oft-app/contracts/evm/non-upgradeable 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3 hardhat compile --config /hardhat/hardhat.default.config.js --network zksync-mainnet
|
|
41
|
+
The solc version 1.3.22 is deprecated and will be removed for security reasons soon. Please update to v1.4.0 or newer.
|
|
42
|
+
The zksolc compiler version in your Hardhat config file (1.3.22) is not the latest. We recommend using the latest version 1.5.15.
|
|
43
|
+
Compiling contracts for ZKsync Era with zksolc v1.3.22 and zkvm-solc v0.8.23-1.0.1
|
|
44
|
+
Compiling 21 Solidity files
|
|
45
|
+
Successfully compiled 21 Solidity files
|
|
46
|
+
⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network zksync-mainnet: 3.770s
|
|
47
|
+
WARN Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
|
|
48
|
+
|
|
49
|
+
> @layerzerolabs/oft-evm-contracts@0.0.0 compile:tron /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/non-upgradeable
|
|
50
|
+
> pnpm lz-tool hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet
|
|
51
|
+
|
|
52
|
+
WARN Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
|
|
53
|
+
✅ forge-1.3.6-hardhat-2.26.3
|
|
54
|
+
🔧 hardhat version: 2.26.3
|
|
55
|
+
$ docker image inspect --format {{.Id}} 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
|
|
56
|
+
(node:24790) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///home/runner/work/monorepo-internal/monorepo-internal/configs/vm-tooling/values/docker-image-repo.ts is not specified and it doesn't parse as CommonJS.
|
|
57
|
+
Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
|
|
58
|
+
To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
|
|
59
|
+
(Use `node --trace-warnings ...` to show where the warning was created)
|
|
60
|
+
✅ Using cached Docker image: 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
|
|
61
|
+
👤 Running container as UID:GID 1001:1001
|
|
62
|
+
$ docker run --rm --add-host=host.docker.internal:host-gateway -e LOCAL_UID=1001 -e LOCAL_GID=1001 -v /home/runner/work/monorepo-internal/monorepo-internal:/workspace -w /workspace/apps/oft-app/contracts/evm/non-upgradeable 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3 hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet
|
|
63
|
+
detected tron network, replacing deployments extension with custom one
|
|
64
|
+
Tron-solc v0.8.23 is unknown version, attempting anyway...
|
|
65
|
+
Compiling contracts with tron solc v0.8.23
|
|
66
|
+
Compiling 21 Solidity files
|
|
67
|
+
Successfully compiled 21 Solidity files
|
|
68
|
+
⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet: 4.357s
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
|
|
2
|
+
> @layerzerolabs/oft-evm-contracts@0.0.0 lint /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/non-upgradeable
|
|
3
|
+
> solhint --config solhint.config.js 'contracts/**/*.sol' 'test/**/*.sol' --fix --noPrompt
|
|
4
|
+
|
|
5
|
+
A new version of Solhint is available: 6.2.1
|
|
6
|
+
Please consider updating your Solhint package.
|
|
7
|
+
|
|
8
|
+
contracts/interfaces/IOFT.sol
|
|
9
|
+
55:1 warning Missing @author tag in contract 'IOFT' use-natspec
|
|
10
|
+
55:1 warning Missing @notice tag in contract 'IOFT' use-natspec
|
|
11
|
+
62:5 warning Missing @notice tag in event 'OFTSent' use-natspec
|
|
12
|
+
62:5 warning Missing @param tag in event 'OFTSent' use-natspec
|
|
13
|
+
62:5 warning Mismatch in @param names for event 'OFTSent'. Expected: [guid, dstEid, fromAddress, amountSentLD, amountReceivedLD], Found: [] use-natspec
|
|
14
|
+
62:5 warning GC: [dstEid] on Event [OFTSent] could be Indexed gas-indexed-events
|
|
15
|
+
62:5 warning GC: [amountSentLD] on Event [OFTSent] could be Indexed gas-indexed-events
|
|
16
|
+
62:5 warning GC: [amountReceivedLD] on Event [OFTSent] could be Indexed gas-indexed-events
|
|
17
|
+
69:5 warning Missing @notice tag in event 'OFTReceived' use-natspec
|
|
18
|
+
69:5 warning Missing @param tag in event 'OFTReceived' use-natspec
|
|
19
|
+
69:5 warning Mismatch in @param names for event 'OFTReceived'. Expected: [guid, srcEid, toAddress, amountReceivedLD], Found: [] use-natspec
|
|
20
|
+
69:5 warning GC: [srcEid] on Event [OFTReceived] could be Indexed gas-indexed-events
|
|
21
|
+
69:5 warning GC: [amountReceivedLD] on Event [OFTReceived] could be Indexed gas-indexed-events
|
|
22
|
+
|
|
23
|
+
contracts/interfaces/IOFTExtended.sol
|
|
24
|
+
17:1 warning Code contains empty blocks no-empty-blocks
|
|
25
|
+
|
|
26
|
+
contracts/libs/OFTComposeMsgCodec.sol
|
|
27
|
+
4:1 warning Missing @title tag in contract 'OFTComposeMsgCodec' use-natspec
|
|
28
|
+
4:1 warning Missing @author tag in contract 'OFTComposeMsgCodec' use-natspec
|
|
29
|
+
4:1 warning Missing @notice tag in contract 'OFTComposeMsgCodec' use-natspec
|
|
30
|
+
19:5 warning Missing @notice tag in function 'encode' use-natspec
|
|
31
|
+
33:5 warning Missing @notice tag in function 'nonce' use-natspec
|
|
32
|
+
42:5 warning Missing @notice tag in function 'srcEid' use-natspec
|
|
33
|
+
51:5 warning Missing @notice tag in function 'amountLD' use-natspec
|
|
34
|
+
60:5 warning Missing @notice tag in function 'composeFrom' use-natspec
|
|
35
|
+
69:5 warning Missing @notice tag in function 'composeMsg' use-natspec
|
|
36
|
+
78:5 warning Missing @notice tag in function 'addressToBytes32' use-natspec
|
|
37
|
+
87:5 warning Missing @notice tag in function 'bytes32ToAddress' use-natspec
|
|
38
|
+
|
|
39
|
+
contracts/libs/OFTMsgCodec.sol
|
|
40
|
+
4:1 warning Missing @title tag in contract 'OFTMsgCodec' use-natspec
|
|
41
|
+
4:1 warning Missing @author tag in contract 'OFTMsgCodec' use-natspec
|
|
42
|
+
4:1 warning Missing @notice tag in contract 'OFTMsgCodec' use-natspec
|
|
43
|
+
17:5 warning Missing @notice tag in function 'encode' use-natspec
|
|
44
|
+
34:5 warning Missing @notice tag in function 'isComposed' use-natspec
|
|
45
|
+
43:5 warning Missing @notice tag in function 'sendTo' use-natspec
|
|
46
|
+
52:5 warning Missing @notice tag in function 'amountSD' use-natspec
|
|
47
|
+
61:5 warning Missing @notice tag in function 'composeMsg' use-natspec
|
|
48
|
+
70:5 warning Missing @notice tag in function 'addressToBytes32' use-natspec
|
|
49
|
+
79:5 warning Missing @notice tag in function 'bytes32ToAddress' use-natspec
|
|
50
|
+
|
|
51
|
+
contracts/utils/OFTDecimalUtils.sol
|
|
52
|
+
29:5 warning Missing @notice tag in function '<anonymous>' use-natspec
|
|
53
|
+
|
|
54
|
+
test/OFTDecimalUtils.t.sol
|
|
55
|
+
2:1 warning Found more than One contract per file. 2 contracts found! one-contract-per-file
|
|
56
|
+
4:1 warning Import in test/OFTDecimalUtils.t.sol doesn't exist in: forge-std/Test.sol import-path-check
|
|
57
|
+
8:1 warning Missing @title tag in contract 'OFTDecimalUtilsHarness' use-natspec
|
|
58
|
+
8:1 warning Missing @author tag in contract 'OFTDecimalUtilsHarness' use-natspec
|
|
59
|
+
8:1 warning Missing @notice tag in contract 'OFTDecimalUtilsHarness' use-natspec
|
|
60
|
+
9:5 warning Missing @notice tag in function '<anonymous>' use-natspec
|
|
61
|
+
9:5 warning Missing @param tag in function '<anonymous>' use-natspec
|
|
62
|
+
9:5 warning Mismatch in @param names for function '<anonymous>'. Expected: [_localDecimals, _sharedDecimals], Found: [] use-natspec
|
|
63
|
+
11:5 warning Missing @notice tag in function 'removeDust' use-natspec
|
|
64
|
+
11:5 warning Missing @param tag in function 'removeDust' use-natspec
|
|
65
|
+
11:5 warning Mismatch in @param names for function 'removeDust'. Expected: [_amountLD], Found: [] use-natspec
|
|
66
|
+
11:5 warning Missing @return tag in function 'removeDust' use-natspec
|
|
67
|
+
11:5 warning Mismatch in @return count for function 'removeDust'. Expected: 1, Found: 0 use-natspec
|
|
68
|
+
15:5 warning Missing @notice tag in function 'toLD' use-natspec
|
|
69
|
+
15:5 warning Missing @param tag in function 'toLD' use-natspec
|
|
70
|
+
15:5 warning Mismatch in @param names for function 'toLD'. Expected: [_amountSD], Found: [] use-natspec
|
|
71
|
+
15:5 warning Missing @return tag in function 'toLD' use-natspec
|
|
72
|
+
15:5 warning Mismatch in @return count for function 'toLD'. Expected: 1, Found: 0 use-natspec
|
|
73
|
+
19:5 warning Missing @notice tag in function 'toSD' use-natspec
|
|
74
|
+
19:5 warning Missing @param tag in function 'toSD' use-natspec
|
|
75
|
+
19:5 warning Mismatch in @param names for function 'toSD'. Expected: [_amountLD], Found: [] use-natspec
|
|
76
|
+
19:5 warning Missing @return tag in function 'toSD' use-natspec
|
|
77
|
+
19:5 warning Mismatch in @return count for function 'toSD'. Expected: 1, Found: 0 use-natspec
|
|
78
|
+
24:1 warning Missing @title tag in contract 'OFTDecimalUtilsTest' use-natspec
|
|
79
|
+
24:1 warning Missing @author tag in contract 'OFTDecimalUtilsTest' use-natspec
|
|
80
|
+
24:1 warning Missing @notice tag in contract 'OFTDecimalUtilsTest' use-natspec
|
|
81
|
+
25:5 warning Explicitly mark visibility of state state-visibility
|
|
82
|
+
25:5 warning Variable name must be in mixedCase harness18_6 var-name-mixedcase
|
|
83
|
+
26:5 warning Explicitly mark visibility of state state-visibility
|
|
84
|
+
26:5 warning Variable name must be in mixedCase harness18_8 var-name-mixedcase
|
|
85
|
+
27:5 warning Explicitly mark visibility of state state-visibility
|
|
86
|
+
27:5 warning Variable name must be in mixedCase harness6_6 var-name-mixedcase
|
|
87
|
+
28:5 warning Explicitly mark visibility of state state-visibility
|
|
88
|
+
28:5 warning Variable name must be in mixedCase harness8_6 var-name-mixedcase
|
|
89
|
+
29:5 warning Explicitly mark visibility of state state-visibility
|
|
90
|
+
29:5 warning Variable name must be in mixedCase harness0_0 var-name-mixedcase
|
|
91
|
+
31:5 warning Missing @notice tag in function 'setUp' use-natspec
|
|
92
|
+
41:5 warning Missing @notice tag in function 'test_constructor_18_6' use-natspec
|
|
93
|
+
47:5 warning Missing @notice tag in function 'test_constructor_18_8' use-natspec
|
|
94
|
+
53:5 warning Missing @notice tag in function 'test_constructor_6_6' use-natspec
|
|
95
|
+
59:5 warning Missing @notice tag in function 'test_constructor_8_6' use-natspec
|
|
96
|
+
65:5 warning Missing @notice tag in function 'test_constructor_0_0' use-natspec
|
|
97
|
+
71:5 warning Missing @notice tag in function 'test_constructor_Fuzz' use-natspec
|
|
98
|
+
71:5 warning Missing @param tag in function 'test_constructor_Fuzz' use-natspec
|
|
99
|
+
71:5 warning Mismatch in @param names for function 'test_constructor_Fuzz'. Expected: [_localDecimals, _sharedDecimals], Found: [] use-natspec
|
|
100
|
+
72:19 warning GC: Non strict inequality found. Try converting to a strict one gas-strict-inequalities
|
|
101
|
+
74:19 warning GC: Non strict inequality found. Try converting to a strict one gas-strict-inequalities
|
|
102
|
+
83:5 warning Missing @notice tag in function 'test_constructor_Revert_SharedGreaterThanLocal' use-natspec
|
|
103
|
+
90:5 warning Missing @notice tag in function 'test_removeDust_18_6_NoDust' use-natspec
|
|
104
|
+
96:5 warning Missing @notice tag in function 'test_removeDust_18_6_WithDust' use-natspec
|
|
105
|
+
102:5 warning Missing @notice tag in function 'test_removeDust_18_6_OnlyDust' use-natspec
|
|
106
|
+
108:5 warning Missing @notice tag in function 'test_removeDust_18_6_Zero' use-natspec
|
|
107
|
+
113:5 warning Missing @notice tag in function 'test_removeDust_6_6' use-natspec
|
|
108
|
+
119:5 warning Missing @notice tag in function 'test_removeDust_8_6_WithDust' use-natspec
|
|
109
|
+
125:5 warning Missing @notice tag in function 'test_removeDust_0_0' use-natspec
|
|
110
|
+
131:5 warning Missing @notice tag in function 'test_removeDust_Fuzz_18_6' use-natspec
|
|
111
|
+
131:5 warning Missing @param tag in function 'test_removeDust_Fuzz_18_6' use-natspec
|
|
112
|
+
131:5 warning Mismatch in @param names for function 'test_removeDust_Fuzz_18_6'. Expected: [amountLD], Found: [] use-natspec
|
|
113
|
+
138:5 warning Missing @notice tag in function 'test_removeDust_Fuzz_6_6' use-natspec
|
|
114
|
+
138:5 warning Missing @param tag in function 'test_removeDust_Fuzz_6_6' use-natspec
|
|
115
|
+
138:5 warning Mismatch in @param names for function 'test_removeDust_Fuzz_6_6'. Expected: [amountLD], Found: [] use-natspec
|
|
116
|
+
145:5 warning Missing @notice tag in function 'test_removeDust_Fuzz_8_6' use-natspec
|
|
117
|
+
145:5 warning Missing @param tag in function 'test_removeDust_Fuzz_8_6' use-natspec
|
|
118
|
+
145:5 warning Mismatch in @param names for function 'test_removeDust_Fuzz_8_6'. Expected: [amountLD], Found: [] use-natspec
|
|
119
|
+
152:5 warning Missing @notice tag in function 'test_removeDust_Fuzz_0_0' use-natspec
|
|
120
|
+
152:5 warning Missing @param tag in function 'test_removeDust_Fuzz_0_0' use-natspec
|
|
121
|
+
152:5 warning Mismatch in @param names for function 'test_removeDust_Fuzz_0_0'. Expected: [amountLD], Found: [] use-natspec
|
|
122
|
+
161:5 warning Missing @notice tag in function 'test_toLD_18_6' use-natspec
|
|
123
|
+
167:5 warning Missing @notice tag in function 'test_toLD_18_6_Zero' use-natspec
|
|
124
|
+
172:5 warning Missing @notice tag in function 'test_toLD_18_6_MaxUint64' use-natspec
|
|
125
|
+
178:5 warning Missing @notice tag in function 'test_toLD_6_6' use-natspec
|
|
126
|
+
184:5 warning Missing @notice tag in function 'test_toLD_8_6' use-natspec
|
|
127
|
+
190:5 warning Missing @notice tag in function 'test_toLD_0_0' use-natspec
|
|
128
|
+
196:5 warning Missing @notice tag in function 'test_toLD_Fuzz_18_6' use-natspec
|
|
129
|
+
196:5 warning Missing @param tag in function 'test_toLD_Fuzz_18_6' use-natspec
|
|
130
|
+
196:5 warning Mismatch in @param names for function 'test_toLD_Fuzz_18_6'. Expected: [_amountSD], Found: [] use-natspec
|
|
131
|
+
201:5 warning Missing @notice tag in function 'test_toLD_Fuzz_6_6' use-natspec
|
|
132
|
+
201:5 warning Missing @param tag in function 'test_toLD_Fuzz_6_6' use-natspec
|
|
133
|
+
201:5 warning Mismatch in @param names for function 'test_toLD_Fuzz_6_6'. Expected: [_amountSD], Found: [] use-natspec
|
|
134
|
+
206:5 warning Missing @notice tag in function 'test_toLD_Fuzz_8_6' use-natspec
|
|
135
|
+
206:5 warning Missing @param tag in function 'test_toLD_Fuzz_8_6' use-natspec
|
|
136
|
+
206:5 warning Mismatch in @param names for function 'test_toLD_Fuzz_8_6'. Expected: [_amountSD], Found: [] use-natspec
|
|
137
|
+
211:5 warning Missing @notice tag in function 'test_toLD_Fuzz_0_0' use-natspec
|
|
138
|
+
211:5 warning Missing @param tag in function 'test_toLD_Fuzz_0_0' use-natspec
|
|
139
|
+
211:5 warning Mismatch in @param names for function 'test_toLD_Fuzz_0_0'. Expected: [_amountSD], Found: [] use-natspec
|
|
140
|
+
218:5 warning Missing @notice tag in function 'test_toSD_18_6' use-natspec
|
|
141
|
+
224:5 warning Missing @notice tag in function 'test_toSD_18_6_Zero' use-natspec
|
|
142
|
+
229:5 warning Missing @notice tag in function 'test_toSD_18_6_Truncates' use-natspec
|
|
143
|
+
235:5 warning Missing @notice tag in function 'test_toSD_18_6_LessThanConversionRate' use-natspec
|
|
144
|
+
241:5 warning Missing @notice tag in function 'test_toSD_6_6' use-natspec
|
|
145
|
+
247:5 warning Missing @notice tag in function 'test_toSD_8_6' use-natspec
|
|
146
|
+
253:5 warning Missing @notice tag in function 'test_toSD_0_0' use-natspec
|
|
147
|
+
259:5 warning Missing @notice tag in function 'test_toSD_Fuzz_18_6' use-natspec
|
|
148
|
+
259:5 warning Missing @param tag in function 'test_toSD_Fuzz_18_6' use-natspec
|
|
149
|
+
259:5 warning Mismatch in @param names for function 'test_toSD_Fuzz_18_6'. Expected: [_amountLD], Found: [] use-natspec
|
|
150
|
+
261:19 warning GC: Non strict inequality found. Try converting to a strict one gas-strict-inequalities
|
|
151
|
+
266:5 warning Missing @notice tag in function 'test_toSD_Fuzz_6_6' use-natspec
|
|
152
|
+
266:5 warning Missing @param tag in function 'test_toSD_Fuzz_6_6' use-natspec
|
|
153
|
+
266:5 warning Mismatch in @param names for function 'test_toSD_Fuzz_6_6'. Expected: [_amountLD], Found: [] use-natspec
|
|
154
|
+
272:5 warning Missing @notice tag in function 'test_toSD_Fuzz_8_6' use-natspec
|
|
155
|
+
272:5 warning Missing @param tag in function 'test_toSD_Fuzz_8_6' use-natspec
|
|
156
|
+
272:5 warning Mismatch in @param names for function 'test_toSD_Fuzz_8_6'. Expected: [_amountLD], Found: [] use-natspec
|
|
157
|
+
274:19 warning GC: Non strict inequality found. Try converting to a strict one gas-strict-inequalities
|
|
158
|
+
279:5 warning Missing @notice tag in function 'test_toSD_Fuzz_0_0' use-natspec
|
|
159
|
+
279:5 warning Missing @param tag in function 'test_toSD_Fuzz_0_0' use-natspec
|
|
160
|
+
279:5 warning Mismatch in @param names for function 'test_toSD_Fuzz_0_0'. Expected: [_amountLD], Found: [] use-natspec
|
|
161
|
+
285:5 warning Missing @notice tag in function 'test_toSD_Revert_AmountSDOverflowed_18_6' use-natspec
|
|
162
|
+
293:5 warning Missing @notice tag in function 'test_toSD_Revert_AmountSDOverflowed_6_6' use-natspec
|
|
163
|
+
300:5 warning Missing @notice tag in function 'test_toSD_Revert_AmountSDOverflowed_0_0' use-natspec
|
|
164
|
+
307:5 warning Missing @notice tag in function 'test_toSD_Fuzz_Revert_AmountSDOverflowed_18_6' use-natspec
|
|
165
|
+
307:5 warning Missing @param tag in function 'test_toSD_Fuzz_Revert_AmountSDOverflowed_18_6' use-natspec
|
|
166
|
+
307:5 warning Mismatch in @param names for function 'test_toSD_Fuzz_Revert_AmountSDOverflowed_18_6'. Expected: [_amountLD], Found: [] use-natspec
|
|
167
|
+
316:5 warning Missing @notice tag in function 'test_toSD_Fuzz_Revert_AmountSDOverflowed_6_6' use-natspec
|
|
168
|
+
316:5 warning Missing @param tag in function 'test_toSD_Fuzz_Revert_AmountSDOverflowed_6_6' use-natspec
|
|
169
|
+
316:5 warning Mismatch in @param names for function 'test_toSD_Fuzz_Revert_AmountSDOverflowed_6_6'. Expected: [_amountLD], Found: [] use-natspec
|
|
170
|
+
325:5 warning Missing @notice tag in function 'test_Roundtrip_toSD_toLD_18_6' use-natspec
|
|
171
|
+
333:5 warning Missing @notice tag in function 'test_Roundtrip_toLD_toSD_18_6' use-natspec
|
|
172
|
+
340:5 warning Missing @notice tag in function 'test_Roundtrip_Fuzz_toSD_toLD_18_6' use-natspec
|
|
173
|
+
340:5 warning Missing @param tag in function 'test_Roundtrip_Fuzz_toSD_toLD_18_6' use-natspec
|
|
174
|
+
340:5 warning Mismatch in @param names for function 'test_Roundtrip_Fuzz_toSD_toLD_18_6'. Expected: [_amountLD], Found: [] use-natspec
|
|
175
|
+
342:19 warning GC: Non strict inequality found. Try converting to a strict one gas-strict-inequalities
|
|
176
|
+
349:5 warning Missing @notice tag in function 'test_Roundtrip_Fuzz_toLD_toSD_18_6' use-natspec
|
|
177
|
+
349:5 warning Missing @param tag in function 'test_Roundtrip_Fuzz_toLD_toSD_18_6' use-natspec
|
|
178
|
+
349:5 warning Mismatch in @param names for function 'test_Roundtrip_Fuzz_toLD_toSD_18_6'. Expected: [_amountSD], Found: [] use-natspec
|
|
179
|
+
|
|
180
|
+
✖ 160 problems (0 errors, 160 warnings)
|
|
181
|
+
|
|
182
|
+
--------------------------------------------------------------------------
|
|
183
|
+
===> Join SOLHINT Community at: https://discord.com/invite/4TYGq3zpjs <===
|
|
184
|
+
--------------------------------------------------------------------------
|
|
185
|
+
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
|
|
2
|
+
> @layerzerolabs/oft-evm-contracts@0.0.0 test /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/non-upgradeable
|
|
3
|
+
> pnpm lz-tool forge test
|
|
4
|
+
|
|
5
|
+
✅ forge-1.3.6-hardhat-2.26.3
|
|
6
|
+
🔧 forge version: 1.3.6
|
|
7
|
+
$ docker image inspect --format {{.Id}} 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
|
|
8
|
+
(node:66922) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///home/runner/work/monorepo-internal/monorepo-internal/configs/vm-tooling/values/docker-image-repo.ts is not specified and it doesn't parse as CommonJS.
|
|
9
|
+
Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
|
|
10
|
+
To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
|
|
11
|
+
(Use `node --trace-warnings ...` to show where the warning was created)
|
|
12
|
+
Error response from daemon: No such image: 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
|
|
13
|
+
📥 Pulling Docker image from: 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
|
|
14
|
+
$ docker pull 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
|
|
15
|
+
forge-1.3.6-hardhat-2.26.3-patch-3: Pulling from layerzerolabs/evm-tooling
|
|
16
|
+
86ec798129ac: Pulling fs layer
|
|
17
|
+
eef7c391911c: Pulling fs layer
|
|
18
|
+
cc2ecf4065b7: Pulling fs layer
|
|
19
|
+
5760fdd70374: Pulling fs layer
|
|
20
|
+
c70db14240a1: Pulling fs layer
|
|
21
|
+
0cb2c6965bde: Pulling fs layer
|
|
22
|
+
885bca26f927: Pulling fs layer
|
|
23
|
+
8e167e77288f: Pulling fs layer
|
|
24
|
+
45d43cc973ba: Pulling fs layer
|
|
25
|
+
44c09156221f: Pulling fs layer
|
|
26
|
+
f2fb700979ad: Pulling fs layer
|
|
27
|
+
2a1ced882ba9: Pulling fs layer
|
|
28
|
+
597168d5c38e: Pulling fs layer
|
|
29
|
+
e431adaf232f: Pulling fs layer
|
|
30
|
+
36e15e3f2788: Pulling fs layer
|
|
31
|
+
36e15e3f2788: Waiting
|
|
32
|
+
8e167e77288f: Waiting
|
|
33
|
+
45d43cc973ba: Waiting
|
|
34
|
+
44c09156221f: Waiting
|
|
35
|
+
eef7c391911c: Download complete
|
|
36
|
+
f2fb700979ad: Waiting
|
|
37
|
+
2a1ced882ba9: Waiting
|
|
38
|
+
5760fdd70374: Download complete
|
|
39
|
+
597168d5c38e: Waiting
|
|
40
|
+
e431adaf232f: Waiting
|
|
41
|
+
c70db14240a1: Waiting
|
|
42
|
+
0cb2c6965bde: Waiting
|
|
43
|
+
885bca26f927: Waiting
|
|
44
|
+
c70db14240a1: Download complete
|
|
45
|
+
cc2ecf4065b7: Verifying Checksum
|
|
46
|
+
cc2ecf4065b7: Download complete
|
|
47
|
+
86ec798129ac: Verifying Checksum
|
|
48
|
+
86ec798129ac: Download complete
|
|
49
|
+
8e167e77288f: Verifying Checksum
|
|
50
|
+
8e167e77288f: Download complete
|
|
51
|
+
45d43cc973ba: Verifying Checksum
|
|
52
|
+
45d43cc973ba: Download complete
|
|
53
|
+
44c09156221f: Verifying Checksum
|
|
54
|
+
44c09156221f: Download complete
|
|
55
|
+
f2fb700979ad: Verifying Checksum
|
|
56
|
+
f2fb700979ad: Download complete
|
|
57
|
+
0cb2c6965bde: Verifying Checksum
|
|
58
|
+
0cb2c6965bde: Download complete
|
|
59
|
+
597168d5c38e: Verifying Checksum
|
|
60
|
+
597168d5c38e: Download complete
|
|
61
|
+
86ec798129ac: Pull complete
|
|
62
|
+
eef7c391911c: Pull complete
|
|
63
|
+
cc2ecf4065b7: Pull complete
|
|
64
|
+
5760fdd70374: Pull complete
|
|
65
|
+
c70db14240a1: Pull complete
|
|
66
|
+
2a1ced882ba9: Verifying Checksum
|
|
67
|
+
2a1ced882ba9: Download complete
|
|
68
|
+
36e15e3f2788: Download complete
|
|
69
|
+
0cb2c6965bde: Pull complete
|
|
70
|
+
e431adaf232f: Verifying Checksum
|
|
71
|
+
e431adaf232f: Download complete
|
|
72
|
+
885bca26f927: Download complete
|
|
73
|
+
885bca26f927: Pull complete
|
|
74
|
+
8e167e77288f: Pull complete
|
|
75
|
+
45d43cc973ba: Pull complete
|
|
76
|
+
44c09156221f: Pull complete
|
|
77
|
+
f2fb700979ad: Pull complete
|
|
78
|
+
2a1ced882ba9: Pull complete
|
|
79
|
+
597168d5c38e: Pull complete
|
|
80
|
+
e431adaf232f: Pull complete
|
|
81
|
+
36e15e3f2788: Pull complete
|
|
82
|
+
Digest: sha256:08b858b586759ec59f4df44c0bc5eac9f856a1eb32b6ce37f79f31a20a89ed52
|
|
83
|
+
Status: Image is up to date for 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
|
|
84
|
+
438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
|
|
85
|
+
✅ Successfully pulled: 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
|
|
86
|
+
👤 Running container as UID:GID 1001:1001
|
|
87
|
+
$ docker run --rm --add-host=host.docker.internal:host-gateway -e LOCAL_UID=1001 -e LOCAL_GID=1001 -v /home/runner/work/monorepo-internal/monorepo-internal:/workspace -w /workspace/apps/oft-app/contracts/evm/non-upgradeable 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3 forge test
|
|
88
|
+
Compiling 41 files with Solc 0.8.22
|
|
89
|
+
Solc 0.8.22 finished in 1.39s
|
|
90
|
+
Compiler run successful!
|
|
91
|
+
|
|
92
|
+
Ran 48 tests for test/OFTDecimalUtils.t.sol:OFTDecimalUtilsTest
|
|
93
|
+
[PASS] test_Roundtrip_Fuzz_toLD_toSD_18_6(uint64) (runs: 1000, μ: 9883, ~: 9883)
|
|
94
|
+
[PASS] test_Roundtrip_Fuzz_toSD_toLD_18_6(uint104) (runs: 1000, μ: 11371, ~: 11371)
|
|
95
|
+
[PASS] test_Roundtrip_toLD_toSD_18_6() (gas: 9716)
|
|
96
|
+
[PASS] test_Roundtrip_toSD_toLD_18_6() (gas: 10666)
|
|
97
|
+
[PASS] test_constructor_0_0() (gas: 10767)
|
|
98
|
+
[PASS] test_constructor_18_6() (gas: 10982)
|
|
99
|
+
[PASS] test_constructor_18_8() (gas: 10747)
|
|
100
|
+
[PASS] test_constructor_6_6() (gas: 10747)
|
|
101
|
+
[PASS] test_constructor_8_6() (gas: 10791)
|
|
102
|
+
[PASS] test_constructor_Fuzz(uint8,uint8) (runs: 1000, μ: 191122, ~: 191177)
|
|
103
|
+
[PASS] test_constructor_Revert_SharedGreaterThanLocal() (gas: 36043)
|
|
104
|
+
[PASS] test_removeDust_0_0() (gas: 8695)
|
|
105
|
+
[PASS] test_removeDust_18_6_NoDust() (gas: 8704)
|
|
106
|
+
[PASS] test_removeDust_18_6_OnlyDust() (gas: 8690)
|
|
107
|
+
[PASS] test_removeDust_18_6_WithDust() (gas: 8737)
|
|
108
|
+
[PASS] test_removeDust_18_6_Zero() (gas: 8705)
|
|
109
|
+
[PASS] test_removeDust_6_6() (gas: 8752)
|
|
110
|
+
[PASS] test_removeDust_8_6_WithDust() (gas: 8706)
|
|
111
|
+
[PASS] test_removeDust_Fuzz_0_0(uint256) (runs: 1000, μ: 10280, ~: 10280)
|
|
112
|
+
[PASS] test_removeDust_Fuzz_18_6(uint256) (runs: 1000, μ: 11862, ~: 11862)
|
|
113
|
+
[PASS] test_removeDust_Fuzz_6_6(uint256) (runs: 1000, μ: 10226, ~: 10226)
|
|
114
|
+
[PASS] test_removeDust_Fuzz_8_6(uint256) (runs: 1000, μ: 10374, ~: 10374)
|
|
115
|
+
[PASS] test_toLD_0_0() (gas: 8735)
|
|
116
|
+
[PASS] test_toLD_18_6() (gas: 8704)
|
|
117
|
+
[PASS] test_toLD_18_6_MaxUint64() (gas: 8782)
|
|
118
|
+
[PASS] test_toLD_18_6_Zero() (gas: 8713)
|
|
119
|
+
[PASS] test_toLD_6_6() (gas: 8735)
|
|
120
|
+
[PASS] test_toLD_8_6() (gas: 8662)
|
|
121
|
+
[PASS] test_toLD_Fuzz_0_0(uint64) (runs: 1000, μ: 8823, ~: 8823)
|
|
122
|
+
[PASS] test_toLD_Fuzz_18_6(uint64) (runs: 1000, μ: 8977, ~: 8977)
|
|
123
|
+
[PASS] test_toLD_Fuzz_6_6(uint64) (runs: 1000, μ: 8835, ~: 8835)
|
|
124
|
+
[PASS] test_toLD_Fuzz_8_6(uint64) (runs: 1000, μ: 8900, ~: 8900)
|
|
125
|
+
[PASS] test_toSD_0_0() (gas: 8650)
|
|
126
|
+
[PASS] test_toSD_18_6() (gas: 8647)
|
|
127
|
+
[PASS] test_toSD_18_6_LessThanConversionRate() (gas: 8635)
|
|
128
|
+
[PASS] test_toSD_18_6_Truncates() (gas: 8690)
|
|
129
|
+
[PASS] test_toSD_18_6_Zero() (gas: 8666)
|
|
130
|
+
[PASS] test_toSD_6_6() (gas: 8629)
|
|
131
|
+
[PASS] test_toSD_8_6() (gas: 8673)
|
|
132
|
+
[PASS] test_toSD_Fuzz_0_0(uint64) (runs: 1000, μ: 8855, ~: 8855)
|
|
133
|
+
[PASS] test_toSD_Fuzz_18_6(uint104) (runs: 1000, μ: 10099, ~: 10099)
|
|
134
|
+
[PASS] test_toSD_Fuzz_6_6(uint64) (runs: 1000, μ: 8845, ~: 8845)
|
|
135
|
+
[PASS] test_toSD_Fuzz_8_6(uint72) (runs: 1000, μ: 9318, ~: 9318)
|
|
136
|
+
[PASS] test_toSD_Fuzz_Revert_AmountSDOverflowed_18_6(uint256) (runs: 1000, μ: 9748, ~: 9748)
|
|
137
|
+
[PASS] test_toSD_Fuzz_Revert_AmountSDOverflowed_6_6(uint256) (runs: 1000, μ: 9586, ~: 9586)
|
|
138
|
+
[PASS] test_toSD_Revert_AmountSDOverflowed_0_0() (gas: 9119)
|
|
139
|
+
[PASS] test_toSD_Revert_AmountSDOverflowed_18_6() (gas: 9264)
|
|
140
|
+
[PASS] test_toSD_Revert_AmountSDOverflowed_6_6() (gas: 9186)
|
|
141
|
+
Suite result: ok. 48 passed; 0 failed; 0 skipped; finished in 102.09ms (1.04s CPU time)
|
|
142
|
+
|
|
143
|
+
Ran 1 test suite in 113.07ms (102.09ms CPU time): 48 tests passed, 0 failed, 0 skipped (48 total tests)
|
|
144
|
+
⏳ forge test: 2.975s
|
package/LICENSE
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
Copyright (c) 2026 - LayerZero Labs Ltd.
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any
|
|
4
|
+
person obtaining a copy of this software and associated
|
|
5
|
+
documentation files (the "Software"), to deal in the
|
|
6
|
+
Software without restriction, including without
|
|
7
|
+
limitation the rights to use, copy, modify, merge,
|
|
8
|
+
publish, distribute, sublicense, and/or sell copies of
|
|
9
|
+
the Software, and to permit persons to whom the Software
|
|
10
|
+
is furnished to do so, subject to the following
|
|
11
|
+
conditions:
|
|
12
|
+
The above copyright notice and this permission notice
|
|
13
|
+
shall be included in all copies or substantial portions
|
|
14
|
+
of the Software.
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
|
|
16
|
+
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
|
|
17
|
+
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
|
|
18
|
+
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
|
|
19
|
+
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
20
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
|
|
22
|
+
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
23
|
+
DEALINGS IN THE SOFTWARE.
|