Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
466 commits
Select commit Hold shift + click to select a range
2a904dd
updating upgradeable contracts to include minDstGasLookup
sirarthurmoney Jul 11, 2022
e3d2652
Add event for extra partner calls
TRileySchwarz Jul 13, 2022
6b7bbf9
remove lz lib
sirarthurmoney Jul 13, 2022
35587f0
updating name from OFT to OFT20
sirarthurmoney Jul 13, 2022
773c20b
Merge branch 'main' into improve
sirarthurmoney Jul 14, 2022
3d01b19
Merge branch 'audit' of https://github.com/LayerZero-Labs/solidity-ex…
sirarthurmoney Jul 14, 2022
7866110
Merge branch 'improve' into audit
sirarthurmoney Jul 14, 2022
1aafb6e
Merge branch 'upgradeable' into audit
sirarthurmoney Jul 14, 2022
e8dd067
Configure interface for widget swap
TRileySchwarz Jul 19, 2022
ef52e83
Add configs for mainnet widgetSwaps
TRileySchwarz Jul 19, 2022
62cb776
Converting ONFT721 to lock/unlock
sirarthurmoney Jul 21, 2022
ef5786d
change else if to else
sirarthurmoney Jul 21, 2022
c7525a5
changing ONFT721Upgradeable to lock/unlock
sirarthurmoney Jul 21, 2022
0bfc5bf
updating npoft
sirarthurmoney Jul 26, 2022
6f9bf6b
Merge branch 'audit' into NativeProxyOFT20
sirarthurmoney Jul 26, 2022
e86b807
add unit tests update _debitFrom to return messageFee
sirarthurmoney Jul 26, 2022
670e4de
remove spacing
sirarthurmoney Jul 26, 2022
6c99e5a
adding sendFrom logic and additional unit tests
sirarthurmoney Jul 26, 2022
b05819b
running lint
sirarthurmoney Jul 26, 2022
1a55dbc
adding comments
sirarthurmoney Jul 26, 2022
3640cab
update event
sirarthurmoney Jul 26, 2022
3e97d01
fix ordering
sirarthurmoney Jul 26, 2022
f64a7c2
adding SetUseCustomAdapterParams and SetMinDstGasLookup events. Updat…
sirarthurmoney Aug 3, 2022
b0bd359
adding in missing event
sirarthurmoney Aug 3, 2022
69c3dfe
renaming contracts
sirarthurmoney Aug 4, 2022
0bcf634
Add check for approval on token swap, using safeApprove
TRileySchwarz Aug 18, 2022
41d38f1
configs
calebbanister Aug 18, 2022
3d96d50
Merge branch 'riley/widgetSwap' of github.com:LayerZero-Labs/solidity…
calebbanister Aug 18, 2022
d287f4e
Adding in DistributeCore.sol, DistributeONFT721.sol, and ReceiveONFT7…
sirarthurmoney Aug 27, 2022
c297597
updating hardhat version and associated unit tests
sirarthurmoney Sep 2, 2022
0aad02d
revert naming
sirarthurmoney Sep 2, 2022
2a6582b
updating version to ^0.8.2
sirarthurmoney Sep 2, 2022
b444749
Upgradable Contracts
sirarthurmoney Sep 2, 2022
540570b
assign native fee when calling lzSend
HansonYip Sep 4, 2022
8aecbd8
OFT send with payload
HansonYip Sep 5, 2022
db74d7a
use ExcessivelySafeCall instead of try/catch
HansonYip Sep 5, 2022
0e4e64e
add sendAndCall interface
HansonYip Sep 8, 2022
860a4ef
update solidity version of non-upgradable contracts
HansonYip Sep 8, 2022
34abdfd
use calldata instead of memory in LzApp
HansonYip Sep 8, 2022
bd4d097
fix some test cases
HansonYip Sep 8, 2022
a265b0d
revert nonblocking try catch to the old way. remove returndata size 0…
cowboyisaac Sep 8, 2022
5b3e740
use assembly to get packet type and fix test cases
HansonYip Sep 8, 2022
3c6cfe2
Merge remote-tracking branch 'origin/hanson/dev' into hanson/dev
cowboyisaac Sep 8, 2022
ef797c0
add path getter and setter. need tests
cowboyisaac Sep 8, 2022
cc28a23
use byteslib to handle toAddress
cowboyisaac Sep 8, 2022
11f83bf
use byteslib to handle toAddress
cowboyisaac Sep 9, 2022
fb531bf
remove 1 todo
cowboyisaac Sep 9, 2022
bf06d12
separate composable oft module
HansonYip Sep 9, 2022
9c66f03
add tryxx interface. rewrite the nonBlockingReceive in OFTcore
cowboyisaac Sep 9, 2022
75910d4
update error message
HansonYip Sep 9, 2022
792c0cf
update calldata and memroy
HansonYip Sep 9, 2022
960fbfb
Composable based oft
HansonYip Sep 9, 2022
b9b7254
Update README.md
calebbanister Sep 9, 2022
54d4347
Update README.md
calebbanister Sep 9, 2022
3c6a4f5
Merge branch 'main' into hanson/dev
HansonYip Sep 10, 2022
2b7fae3
Merge pull request #32 from LayerZero-Labs/hanson/dev
Sep 10, 2022
79fc7f3
Merge branch 'audit' into audited
HansonYip Sep 10, 2022
f293e48
format
HansonYip Sep 10, 2022
94d5ae3
minor update
HansonYip Sep 10, 2022
09bd6f2
Merge pull request #33 from LayerZero-Labs/improve
Sep 11, 2022
00996b6
Composable oft test case
HansonYip Sep 11, 2022
11c225a
add more test cases
HansonYip Sep 11, 2022
9c6880d
add caller address param for the onOFTReceived()
HansonYip Sep 12, 2022
7d1539f
Merge pull request #34 from LayerZero-Labs/improve
Sep 12, 2022
46662f8
Fix the lz endpoint mock to use path data, not just address
TRileySchwarz Sep 14, 2022
1a3cc9e
Merge branch 'main' into riley/widgetSwap
TRileySchwarz Sep 14, 2022
1afac22
Merge pull request #29 from LayerZero-Labs/riley/widgetSwap
TRileySchwarz Sep 14, 2022
28428cf
Comment typos
TRileySchwarz Sep 14, 2022
395263a
Add updated lz endpoint mock and fix tests
TRileySchwarz Sep 14, 2022
9655437
Lint
TRileySchwarz Sep 14, 2022
c373dc7
Merge branch 'main' into riley/update-lz-endpoint-mock
TRileySchwarz Sep 14, 2022
c84db04
Merge pull request #35 from LayerZero-Labs/riley/update-lz-endpoint-mock
TRileySchwarz Sep 15, 2022
3931c51
Fix tests and add multiple compilers to hardhat config
TRileySchwarz Sep 15, 2022
4bae7c5
use ExcessivelySafeCall in lzApp instead
HansonYip Sep 17, 2022
4fc0dc7
Merge pull request #37 from LayerZero-Labs/improve
HansonYip Sep 17, 2022
1e72b13
updating tasks and readme
sirarthurmoney Sep 20, 2022
e3b6dad
Merge branch 'main' into audit
sirarthurmoney Sep 20, 2022
6df2a0d
audit (#30)
sirarthurmoney Sep 20, 2022
c76e8e7
Add composable proxy oft
TRileySchwarz Sep 20, 2022
461cd79
formatting
TRileySchwarz Sep 20, 2022
2ed3f4f
Merge pull request #38 from LayerZero-Labs/riley/composable-proxy-oft
cowboyisaac Sep 20, 2022
5311bb6
composable proxy OFT
calebbanister Sep 20, 2022
d1ed47c
Merge pull request #39 from LayerZero-Labs/composable-proxy-oft
calebbanister Sep 20, 2022
60c0f7e
add compose_allowance in the composable proxy
cowboyisaac Sep 21, 2022
df56729
Merge pull request #40 from LayerZero-Labs/compose_allowance
cowboyisaac Sep 21, 2022
4c91357
test composable oft
carmenjiawenc Sep 21, 2022
d80d4b9
Merge remote-tracking branch 'origin/compose_allowance'
carmenjiawenc Sep 21, 2022
69df8c5
assert allowance
carmenjiawenc Sep 21, 2022
96c943c
update error message
carmenjiawenc Sep 21, 2022
eec891b
0.0.4 with ComposableProxyOFT update
calebbanister Sep 21, 2022
3b4a97e
update check wire up all
sirarthurmoney Sep 26, 2022
0a15426
Revert "audit (#30)"
sirarthurmoney Sep 27, 2022
2de151d
Merge pull request #41 from LayerZero-Labs/revert-30-audit
sirarthurmoney Sep 27, 2022
8f9b16b
Merge pull request #42 from LayerZero-Labs/audit
sirarthurmoney Sep 27, 2022
d361ebe
adding in ackee audits
sirarthurmoney Oct 6, 2022
3fae7e0
refactoring NativeOFT
sirarthurmoney Oct 17, 2022
11f02a3
updating chains and chains ids
sirarthurmoney Oct 17, 2022
e39af8c
updating hardhat config, tasks, and README
sirarthurmoney Oct 19, 2022
4d52d76
oft v2 mvp
HansonYip Oct 24, 2022
4a5de8c
add base oft v2
HansonYip Oct 24, 2022
11f6e02
PoC for fees on OFT trades
TRileySchwarz Oct 25, 2022
7a76235
merge oft fee into core
HansonYip Oct 25, 2022
7d52721
update payload encoding and pay fee
HansonYip Oct 25, 2022
72ebf1d
optimize sd
HansonYip Oct 25, 2022
d168eae
minor update
HansonYip Oct 25, 2022
163faf7
remove dust
HansonYip Oct 25, 2022
b735ae6
add todo
HansonYip Oct 25, 2022
96cf6a0
update comments
HansonYip Oct 25, 2022
b3e71d3
minor update
HansonYip Oct 25, 2022
e1eba3d
minor update
HansonYip Oct 25, 2022
42c6107
add todo
HansonYip Oct 25, 2022
7a7afcc
refactor pay fee
HansonYip Oct 26, 2022
f1c40dd
configurable shared decimals
HansonYip Oct 26, 2022
a4035fc
verify shared decimals on initialization
HansonYip Oct 26, 2022
d7e3715
allowance for proxy oft when called by contract
carmenjiawenc Oct 26, 2022
eb09a08
remove based oft
HansonYip Oct 27, 2022
3d6ab75
clean up
HansonYip Oct 27, 2022
e7a9534
revert proxy oft to previous
carmenjiawenc Oct 27, 2022
d319480
Merge branch 'riley/oft-v2' into oft
HansonYip Oct 28, 2022
fa51c70
remove allowance from all proxy oft contracts
HansonYip Oct 28, 2022
a344f0b
fix all test cases
HansonYip Oct 28, 2022
d04d8b1
add test cases for oft v2
HansonYip Oct 28, 2022
01f457d
revert comments
HansonYip Oct 29, 2022
e80dabb
fix bug
HansonYip Oct 29, 2022
7ccf856
minor update
HansonYip Oct 29, 2022
f64ee45
minor update
HansonYip Oct 31, 2022
c115dcd
publish beta
carmenjiawenc Nov 2, 2022
579b52b
creditTo() return amount
HansonYip Nov 4, 2022
21f9404
remove the token owner from the sendAndCall payload
HansonYip Nov 4, 2022
7528179
remove the token owner from send payload
HansonYip Nov 4, 2022
36d91ae
ComposableOFTCoreV2
HansonYip Nov 4, 2022
263ac43
add ComposableOFTV2 and ComposableProxyOFTV2
HansonYip Nov 4, 2022
fca2daa
test ComposableOFTV2
HansonYip Nov 4, 2022
c40264a
test ComposableProxyOFTV2
HansonYip Nov 4, 2022
fd0f291
add to address length to oftv2 send payload
carmenjiawenc Nov 4, 2022
db535d8
wip: minAmount added but OFTV2.test.js fails
carmenjiawenc Nov 4, 2022
d64e088
fix oft v2 test cases
HansonYip Nov 5, 2022
72abc4b
merge composable oft core into oft core
HansonYip Nov 6, 2022
dc5c3ff
remove IOFTCoreV2 interface
HansonYip Nov 7, 2022
55f1155
rename fee contract
HansonYip Nov 7, 2022
e45369b
separate oft fee from oft core
HansonYip Nov 7, 2022
a6fdfad
send oft to owner if receiver is invalid
HansonYip Nov 7, 2022
a553b03
fix bug
HansonYip Nov 7, 2022
dce2c2d
Merge branch 'oft' into oft-refactor
HansonYip Nov 7, 2022
6f023fa
fix test cases
HansonYip Nov 7, 2022
4fd17f6
add test case and minor update
HansonYip Nov 7, 2022
c40328a
send to dead address on invalid address size
carmenjiawenc Nov 7, 2022
7b4a79c
atomic send and call
carmenjiawenc Nov 8, 2022
23a2909
minor fix to error message
carmenjiawenc Nov 8, 2022
41c329e
NonblockingLzAppV2 and store failed msg into NonblockingLzAppV2
HansonYip Nov 8, 2022
5dfae6d
wip: remove ICommonOFT from OFTCoreV2
HansonYip Nov 8, 2022
1c83ae9
wip: fix test cases
HansonYip Nov 8, 2022
e121c20
fix test cases
HansonYip Nov 8, 2022
5978096
minor update
HansonYip Nov 8, 2022
2c8e8d0
add comments
HansonYip Nov 8, 2022
ee81560
clean up
HansonYip Nov 8, 2022
b1da75c
add assertions
HansonYip Nov 8, 2022
508bcb4
fix: on sendAck credit to dead address if toAddress is invalid
carmenjiawenc Nov 8, 2022
cb52e6e
fix the calculation of circulatingSupply and add assertion
HansonYip Nov 9, 2022
14c94c4
use uint64 for payload size
HansonYip Nov 9, 2022
3c3545d
use bytes32 for remote address instead of bytes
HansonYip Nov 10, 2022
947ab84
remove payload size from lz payload
HansonYip Nov 10, 2022
b6d1e99
remove the nonblocking lzapp v2 and store the token amount for call i…
HansonYip Nov 11, 2022
58a9617
outbound amount in ld
HansonYip Nov 11, 2022
48a0deb
test: send amount of coin with dust.
zouguangxian Nov 11, 2022
3a321a7
[PRE-RELEASE] 0.0.5-beta.2
carmenjiawenc Nov 14, 2022
d6229ee
store only credited flag
carmenjiawenc Nov 16, 2022
d9555de
Merge pull request #48 from LayerZero-Labs/oft-refactor
carmenjiawenc Nov 16, 2022
9d9bf12
[RELEASE] 0.0.5
carmenjiawenc Nov 16, 2022
fbaac73
Add example of emitting partnerSwap event in stargate composed
TRileySchwarz Nov 25, 2022
2b05557
fixing readme
sirarthurmoney Dec 5, 2022
ae78fef
add a disclaimer to the OFTV2 configuration readme
cowboyisaac Dec 13, 2022
c7a00c4
Replaced memory with calldata in NativeOFT.sendFrom
Dec 14, 2022
5d3a02b
version bump and publish
calebbanister Dec 14, 2022
a4954e5
Update README.md
cowboyisaac Dec 14, 2022
f245faf
Replaced hardcoded value in tasks with quoted Stargate fee
Jan 5, 2023
4604d09
Fixed USDT issue in StargateSwap, updated tasks
Jan 7, 2023
558a4d4
update counter example
HansonYip Jan 9, 2023
b99b20f
First pass at batch onft721 send
TRileySchwarz Jan 12, 2023
ddad4f6
Abstracted and finished first pass at batch send onft721
TRileySchwarz Jan 13, 2023
ac535f0
Refactor credit function
TRileySchwarz Jan 13, 2023
afe4a52
Finish tests
TRileySchwarz Jan 14, 2023
75ce23a
Add comments
TRileySchwarz Jan 16, 2023
4126f21
added setOracle() helper function
calebbanister Jan 17, 2023
5bb50ff
Refactor custom adapter params setting inside of the onft721
TRileySchwarz Jan 17, 2023
dc2d081
Cleanup test value
TRileySchwarz Jan 17, 2023
306a8eb
audit fixes, add requires for clearCredits not trnasfering a single t…
TRileySchwarz Jan 19, 2023
743c3bb
Merge pull request #56 from LayerZero-Labs/riley/onft721-batch
TRileySchwarz Jan 19, 2023
59eb09c
Update README.md
calebbanister Jan 30, 2023
9134640
Update README.md
calebbanister Jan 30, 2023
43161eb
add payload size limit
HansonYip Feb 6, 2023
3ffb369
Fix a bug in PingPong.sol
TheGreatHB Feb 6, 2023
a893344
Merge pull request #58 from LayerZero-Labs/payload
calebbanister Feb 6, 2023
6d463b7
version bump for payload size check in LzApp
calebbanister Feb 6, 2023
7e30368
small updates
TRileySchwarz Mar 20, 2023
7c9b01c
Update upgradeable contracts
sirarthurmoney Mar 22, 2023
da9481e
0.0.9
sirarthurmoney Mar 28, 2023
e96a2f2
renaming folder structure of upgradeable contracts
sirarthurmoney Mar 28, 2023
3d3a09f
version 0.0.10 has most up to date ONFT additions
calebbanister Mar 28, 2023
031739c
Replacing BaseOFT example with OFTV2 example in README.md
sirarthurmoney Mar 29, 2023
2309b45
Merge branch 'main' of https://github.com/LayerZero-Labs/solidity-exa…
sirarthurmoney Mar 29, 2023
fbf5061
metis updates for WidgetSwap
calebbanister Mar 30, 2023
cf47e1d
Merge branch 'main' of github.com:LayerZero-Labs/solidity-examples
calebbanister Mar 30, 2023
6a3fcf6
fixed onftSend task
Apr 5, 2023
821ebfc
Update LzApp.sol
calebbanister Apr 22, 2023
45aec28
ONFT extensions
sirarthurmoney Apr 27, 2023
8e00603
clearCredits reentrancy guard and NativeOFTV2
carmenjiawenc Jul 31, 2023
3753340
rename verifyContract task
sirarthurmoney Aug 17, 2023
b527c3a
clearCredits reentrancy guard for ONFT721CoreUpgradeable
sirarthurmoney Aug 18, 2023
ab1b0db
Remove oft v1 composable
TRileySchwarz Sep 7, 2023
e439084
Merge pull request #101 from LayerZero-Labs/riley/remove-oft-v1-compo…
TRileySchwarz Sep 8, 2023
0614dea
adding in cachedSwapSavedParse task
sirarthurmoney Oct 3, 2023
857b289
Merge branch 'main' of https://github.com/LayerZero-Labs/solidity-exa…
sirarthurmoney Oct 3, 2023
ab56443
Remove and cleanup deprecated standards
TRileySchwarz Sep 7, 2023
2116a67
Merge pull request #102 from LayerZero-Labs/riley/remove-deprecated-o…
TRileySchwarz Oct 5, 2023
360ffb9
Update readme
TRileySchwarz Oct 6, 2023
eec9c49
Merge pull request #109 from LayerZero-Labs/riley/update-readme
TRileySchwarz Oct 6, 2023
e789928
Merge pull request #59 from TheGreatHB/fix/pingpong
TRileySchwarz Oct 6, 2023
f580c76
ahhh im ponging
sirarthurmoney Oct 6, 2023
ca7d4f1
Merge branch 'main' of https://github.com/LayerZero-Labs/solidity-exa…
sirarthurmoney Oct 6, 2023
5cde8cb
Adding in GasDrop.sol to examples folder
sirarthurmoney Oct 12, 2023
f75b441
Comments for GasDrop.sol
St0rmBr3w Oct 12, 2023
14fe776
cleanup deploy scripts
sirarthurmoney Oct 16, 2023
3039a04
fix/rm_npmrc: remove .npmrc as it is NPM_TOKEN is not needed
ryandgoulding Oct 19, 2023
984a487
Merge pull request #115 from ryandgoulding/fix/rm_npmrc
TRileySchwarz Oct 19, 2023
d287ee0
Fix PingPong Unit Test
ryandgoulding Oct 24, 2023
486adbf
Merge pull request #120 from ryandgoulding/fix/ping_pong_unit_test
TRileySchwarz Oct 25, 2023
c0c2fdc
Run unit tests using GitHub Actions on push/pull_request
ryandgoulding Oct 19, 2023
f901000
Decrease Unit Test Time
ryandgoulding Oct 25, 2023
796e176
Merge pull request #123 from ryandgoulding/feat/decrease_unit_test_time
TRileySchwarz Oct 25, 2023
1becd41
Merge pull request #122 from ryandgoulding/feat/github_action_unit_tests
TRileySchwarz Oct 25, 2023
d5fbb2f
README.md formatting updates
ryandgoulding Oct 26, 2023
b68756e
Merge pull request #124 from ryandgoulding/readme
TRileySchwarz Oct 31, 2023
80b89b2
fix OFT and OFTV2 deployment code and corresponding README.md instruc…
ryandgoulding Nov 2, 2023
26b283d
Merge pull request #126 from ryandgoulding/fix/oftv2_code_and_instruc…
TRileySchwarz Nov 2, 2023
706e141
fix ONFT721 example
ryandgoulding Nov 2, 2023
30d6896
fix OmniCounter example
ryandgoulding Nov 3, 2023
9b1a8d5
Adding in update to NativeOFTWithFee (#131)
sirarthurmoney Dec 19, 2023
db9acd2
readme updates
St0rmBr3w Jan 22, 2024
2d68d81
Merge pull request #139 from LayerZero-Labs/README-updates
St0rmBr3w Jan 22, 2024
1401c14
Update README.md to OFTV1.2
St0rmBr3w Feb 19, 2024
6e5d9c0
Update README.md
St0rmBr3w Feb 19, 2024
288abd9
Update README.md
St0rmBr3w Feb 19, 2024
627caff
replace OFT V2 with OFT V1.2
St0rmBr3w Feb 19, 2024
b111cad
Update README.md
St0rmBr3w Mar 27, 2024
c6ade50
Update OFTV2.sol
St0rmBr3w Apr 4, 2024
4fe74fa
Update OFTV2.sol
St0rmBr3w Apr 5, 2024
c04e7d2
Update README.md
St0rmBr3w Apr 5, 2024
c5a6666
fix readme links (#154)
DanL0 Jul 18, 2024
cdc9399
chore: bump version
ryandgoulding Jul 18, 2024
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
21 changes: 21 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: unit tests

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18'

- name: Install dependencies
run: yarn install

- name: Run unit tests
run: yarn test
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,11 @@ dist
# TernJS port file
.tern-port

.DS_Store
package-lock.json
.idea
cache/
artifacts/
deployments/

.openzeppelin/

35 changes: 35 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
module.exports = {
overrides: [
{
files: "*.sol",
options: {
bracketSpacing: false,
printWidth: 145,
tabWidth: 4,
useTabs: false,
singleQuote: false,
explicitTypes: "never",
},
},
{
files: "*.ts",
options: {
printWidth: 145,
semi: false,
tabWidth: 4,
useTabs: false,
trailingComma: "es5",
},
},
{
files: "*.js",
options: {
printWidth: 145,
semi: false,
tabWidth: 4,
useTabs: false,
trailingComma: "es5",
},
},
],
}
8 changes: 8 additions & 0 deletions .solhint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "solhint:default",
"rules": {
"avoid-suicide": "error",
"avoid-sha3": "warn",
"max-line-length": ["warn", 300]
}
}
Loading