Skip to content

Docs typo #1

New issue

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

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

Already on GitHub? Sign in to your account

Open
wants to merge 471 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
471 commits
Select commit Hold shift + click to select a range
de30569
refactor error
Rubick67 Aug 14, 2023
5d69bf1
Merge branch 'rubick/refactor_error' into 'main'
Rubick67 Aug 14, 2023
e560817
seperate ledger event
Rubick67 Aug 14, 2023
3c8a34d
Merge branch 'rubick/seperate_ledger_event' into 'main'
Rubick67 Aug 14, 2023
d313685
data layout
Rubick67 Aug 14, 2023
214259b
Merge branch 'rubick/data_layout' into 'main'
Rubick67 Aug 14, 2023
f80cb7b
fix vaultManager bug
Rubick67 Aug 16, 2023
c6dd74b
Merge branch 'rubick/bugfix_vaultManager' into 'main'
Rubick67 Aug 16, 2023
e922401
add depositTo function
Aug 16, 2023
7e2e4d4
max withdraw fee
Rubick67 Aug 17, 2023
b8c95e8
update upgrade
Rubick67 Aug 17, 2023
9d753bf
Merge branch 'rubick/refactor_upgrade' into 'main'
Rubick67 Aug 18, 2023
350cb78
refactor data structure
Rubick67 Aug 18, 2023
25ad258
Merge branch 'rubick/refactor_data_structure' into 'main'
Rubick67 Aug 18, 2023
64b2551
refactor to new OP stack
Rubick67 Aug 18, 2023
ebc7af8
Merge branch 'rubick/refactor_op_stack' into 'main'
Rubick67 Aug 18, 2023
5081d8a
update env
Rubick67 Aug 18, 2023
ea8f2e5
Merge branch 'rubick/fix_env' into 'main'
Rubick67 Aug 18, 2023
f3c85f2
Merge branch 'zion/depositTo' into 'main'
zlog-in Aug 18, 2023
ee7c6a9
new deployed vault and usdc on arbitrum
zlog-in Aug 18, 2023
fa7d1a3
Merge branch 'zion/vault-deployment-l2' into 'main'
Rubick67 Aug 18, 2023
3162448
fix operator manager
Rubick67 Aug 21, 2023
9cfdb33
Merge branch 'rubick/fix_operator_manager' into 'main'
Rubick67 Aug 21, 2023
7dfdbb3
fix unused
Rubick67 Aug 22, 2023
f5c9356
Merge branch 'rubick/fix' into 'main'
Rubick67 Aug 22, 2023
142394e
add events
Rubick67 Aug 22, 2023
f8357f6
Merge branch 'rubick/add_event' into 'main'
Rubick67 Aug 22, 2023
07cec7b
add more comment
Rubick67 Aug 24, 2023
09d73c8
Merge branch 'rubick/add_more_comment' into 'main'
Rubick67 Aug 24, 2023
e762636
Lewis/orderlyop crosschain init
lewis-orderly Aug 24, 2023
62c6a99
Merge branch 'lewis/orderlyop-crosschain-init' into 'main'
lewis-orderly Aug 24, 2023
a4f5877
deploy qa
Rubick67 Aug 25, 2023
96c3502
Merge branch 'rubick/qa/deploy' into 'qa'
Rubick67 Aug 25, 2023
cc333ae
Lewis/newscripts
lewis-orderly Aug 25, 2023
050d13b
Merge branch 'lewis/newscripts' into 'qa'
lewis-orderly Aug 25, 2023
c009959
update vaultManager
Rubick67 Aug 25, 2023
49ee55d
Merge branch 'rubick/qa/updateVaultManager' into 'qa'
Rubick67 Aug 25, 2023
13babfd
Lewis/estimate gas
lewis-orderly Aug 28, 2023
94c6038
Merge branch 'lewis/estimate-gas' into 'dev'
lewis-orderly Aug 28, 2023
9fc7804
add payable
Aug 28, 2023
18a62c7
Merge branch 'lewis/payable-deposit' into 'dev'
lewis-orderly Aug 28, 2023
86c7f6a
refactor deploy script
Rubick67 Aug 29, 2023
b081666
Merge branch 'rubick/refactor_deploy_config' into 'dev'
Rubick67 Aug 29, 2023
f57bdc8
refactor vault
Rubick67 Aug 29, 2023
3c8a175
Merge branch 'rubick/refactor_vault' into 'dev'
Rubick67 Aug 29, 2023
861d291
add new interface
Aug 29, 2023
fbeb5b7
Merge branch 'lewis/depositWithFee' into 'dev'
lewis-orderly Aug 29, 2023
8853855
remove unused & add script
Rubick67 Aug 29, 2023
a361633
Merge branch 'rubick/remove_unused' into 'dev'
Rubick67 Aug 29, 2023
95ff662
update readme
Rubick67 Aug 29, 2023
8991ad8
Merge branch 'rubick/readme_add_info' into 'dev'
Rubick67 Aug 29, 2023
061886d
rm cc manager related readme
Aug 29, 2023
b7d6fc9
Merge branch 'lewis/rmCCReadme' into 'dev'
lewis-orderly Aug 29, 2023
4f7d3a1
fix compile
Rubick67 Aug 31, 2023
fa4f358
Merge branch 'rubick/fix_compile' into 'dev'
Rubick67 Aug 31, 2023
bd5e266
prepare for staging
Rubick67 Aug 31, 2023
f76e56d
Merge branch 'rubick/prepare_for_staging' into 'dev'
Rubick67 Aug 31, 2023
13496c9
Zion/staging deploy
zlog-in Sep 1, 2023
70e3279
Merge branch 'zion/staging-deploy' into 'dev'
zlog-in Sep 1, 2023
c953c45
Zion/audit doc
zlog-in Sep 1, 2023
31d0567
Merge branch 'zion/audit-doc' into 'dev'
zlog-in Sep 1, 2023
41fe0b2
fix wrong opeartor address
Rubick67 Sep 2, 2023
c090b05
Merge branch 'rubick/fix_wrong_operator_address' into 'dev'
Rubick67 Sep 2, 2023
32203a0
fix settlement issue in quantity 0
Rubick67 Sep 7, 2023
5015697
Merge branch 'rubick/fix_settlement_qty_0' into 'dev'
Rubick67 Sep 7, 2023
5e9c3be
fix deposit event id
Rubick67 Sep 7, 2023
7e9ec4f
Merge branch 'rubick/fix_deposit_event_id' into 'dev'
Rubick67 Sep 7, 2023
eb686fc
script add done log
Rubick67 Sep 11, 2023
13b6897
Merge branch 'rubick/script_add_done_log' into 'dev'
Rubick67 Sep 11, 2023
1e012d7
add change owner script
Rubick67 Sep 15, 2023
e27436b
Merge branch 'rubick/add_change_owner_script' into 'dev'
Rubick67 Sep 15, 2023
e362386
change the owner of ProxyAdmin to a MultiSig
zlog-in Sep 18, 2023
4da2ec2
Merge branch 'zion/change_owner' into 'dev'
Rubick67 Sep 18, 2023
6ed52d6
add comment & add script
Rubick67 Sep 19, 2023
162007b
Merge branch 'rubick/add_comment' into 'dev'
Rubick67 Sep 19, 2023
64a9b19
add view functions
Rubick67 Sep 19, 2023
d47e4fb
Merge branch 'rubick/add_view_functions' into 'dev'
Rubick67 Sep 19, 2023
2e92ffc
refactor pre audit
Rubick67 Sep 21, 2023
34da350
Merge branch 'rubick/refactor_pre_audit' into 'dev'
Rubick67 Sep 21, 2023
e777d7b
fix return value
Rubick67 Sep 21, 2023
978f895
Merge branch 'rubick/fix_return_value' into 'dev'
Rubick67 Sep 21, 2023
295a645
verify when deploy
Rubick67 Sep 26, 2023
76a68b8
Merge branch 'rubick/verify_when_deploy' into 'dev'
Rubick67 Sep 26, 2023
05dbc81
fix audit 01
Rubick67 Sep 26, 2023
0e23ea9
Merge branch 'rubick/fix_audit_01' into 'dev'
Rubick67 Sep 26, 2023
400c443
fix capital
Rubick67 Sep 26, 2023
817d588
Merge branch 'rubick/fix_capital' into 'dev'
Rubick67 Sep 26, 2023
06c79ca
fix capital 2
Rubick67 Sep 26, 2023
a3fd9ff
Merge branch 'rubick/fix_capital_2' into 'dev'
Rubick67 Sep 26, 2023
9d164c6
fix insurance bug
Rubick67 Oct 6, 2023
ea28d39
Merge branch 'rubick/fix_insurance_bug' into 'dev'
Rubick67 Oct 7, 2023
77863f0
fix Incorrect Decimals
Rubick67 Oct 7, 2023
831776d
Merge branch 'rubick/ATPH-X/fix_incorrect_decimal' into 'dev'
Rubick67 Oct 7, 2023
aa2c3f2
fix half round bug
Rubick67 Oct 7, 2023
76da661
Merge branch 'rubick/ATPH-1/fix_half_round' into 'dev'
Rubick67 Oct 7, 2023
db582b0
Signature Malleability
Rubick67 Oct 7, 2023
afc526a
Merge branch 'rubick/SIG-1/Signature_Malleability' into 'dev'
Rubick67 Oct 7, 2023
71851ce
Incorrect updatedAt Assigned
Rubick67 Oct 8, 2023
311ca8e
Merge branch 'rubick/MKTM-1/Incorrect_updatedAt_Assigned' into 'dev'
Rubick67 Oct 8, 2023
558fed0
fix Unsafe Casting
Rubick67 Oct 8, 2023
d1f4d51
Merge branch 'rubick/ATPH-3/Unsafe_Casting' into 'dev'
Rubick67 Oct 8, 2023
f6db350
Allowed Token Contract Address Added
Rubick67 Oct 8, 2023
8ff9831
Merge branch 'rubick/VAULT-X/Allowed_Token' into 'dev'
Rubick67 Oct 8, 2023
25050fa
Missing Check-Effect-Interact Pattern
Rubick67 Oct 9, 2023
064bd15
Merge branch 'rubick/VAULT-X/Check-Effect-Interact' into 'dev'
Rubick67 Oct 9, 2023
37984e6
Check-Effect-Interact fix2
Rubick67 Oct 10, 2023
e86af76
Merge branch 'rubick/VAULT-X/Check-Effect-Interact-2' into 'dev'
Rubick67 Oct 10, 2023
2669981
Inaccurate Overflow Error
Rubick67 Oct 10, 2023
ef4f670
Merge branch 'rubick/SFCH-1/Inaccurate_Overflow_Error' into 'dev'
Rubick67 Oct 10, 2023
46bedfc
Incorrect updatedAt Assigned fix2
Rubick67 Oct 11, 2023
1559c9b
Merge branch 'rubick/MKTM-1/Incorrect_updatedAt_Assigned-2' into 'dev'
zlog-in Oct 11, 2023
f4e8881
update multiSig address
Rubick67 Oct 11, 2023
bda78c5
Merge branch 'rubick/update_multiSig_address' into 'dev'
zlog-in Oct 11, 2023
ab9ce83
Merge branch 'dev' into 'staging'
Rubick67 Oct 11, 2023
11b8e77
Redundant for-loop
Rubick67 Oct 16, 2023
11f5094
fix Typo
Rubick67 Oct 16, 2023
7c3d51c
Merge branch 'rubick/ATPH-8/Typo' into 'dev'
Rubick67 Oct 17, 2023
bdc4550
Merge branch 'rubick/LGR-11/Redundant_for-loop' into 'dev'
Rubick67 Oct 17, 2023
d1c4e2f
Unused Helper Functions
Rubick67 Oct 17, 2023
5dc96c9
Average Entry Can Be Rounded In User’s Favor
Rubick67 Oct 17, 2023
90cce45
Multiplication On The Result Of Division
Rubick67 Oct 17, 2023
8911eb2
Merge branch 'rubick/ATPH-9/Multiplication_On_The_Result_Of_Division'…
Rubick67 Oct 17, 2023
39a244a
Merge branch 'rubick/LGR-12/Unused_Helper_Functions' into 'dev'
Rubick67 Oct 17, 2023
0be6ac0
Unnecessary Util Functions
Rubick67 Oct 17, 2023
a878b8d
Merge branch 'rubick/UTIL-1/Unnecessary_Util_Functions' into 'dev'
Rubick67 Oct 17, 2023
99207f8
Position Never Cleared
Rubick67 Oct 17, 2023
bbfc27b
Merge branch 'rubick/LGR-14/Position_Never_Cleared' into 'dev'
Rubick67 Oct 17, 2023
b14b5fb
Merge branch 'rubick/ATPH-3/Average_Entry_Can_Be_Rounded_In_Users_Fav…
Rubick67 Oct 17, 2023
31d480d
Unnecessary timestamp emitted
Rubick67 Oct 17, 2023
fcdd661
Merge branch 'rubick/GLOBAL-8/Unnecessary_timestamp_emitted' into 'dev'
Rubick67 Oct 17, 2023
4fc1aa0
remove deprecated events
Rubick67 Oct 18, 2023
4955fd7
Merge branch 'rubick/remove_deprecated_events' into 'dev'
Rubick67 Oct 18, 2023
6ec7c29
prepare mainnet
Rubick67 Oct 19, 2023
3fb5e1d
Merge branch 'rubick/prepare_mainnet' into 'dev'
Rubick67 Oct 19, 2023
270fc24
Merge branch 'dev' into 'staging'
Rubick67 Oct 19, 2023
693f357
Merge branch 'staging' into 'main'
Rubick67 Oct 19, 2023
1099161
Zion/deposit fee
zlog-in Oct 25, 2023
5da1f06
Merge branch 'zion/deposit-fee' into 'dev'
zlog-in Oct 25, 2023
176be46
update mainnet multisig address
Rubick67 Oct 25, 2023
97155a3
Merge branch 'rubick/update_mainnet_multisig' into 'dev'
Rubick67 Oct 25, 2023
84bc437
fix test
Rubick67 Oct 26, 2023
a588358
Merge branch 'rubick/fix_test' into 'dev'
Rubick67 Oct 26, 2023
b9140e5
cicd support
Rubick67 Nov 2, 2023
3c73032
Merge branch 'rubick/cicd' into 'dev'
Rubick67 Nov 2, 2023
b26590f
fix config & script
Rubick67 Nov 3, 2023
339d567
Merge branch 'rubick/fix_config' into 'dev'
Rubick67 Nov 3, 2023
b8b2463
restore depreacted event
Rubick67 Nov 3, 2023
2db6d44
Merge branch 'rubick/add_deprecated_event' into 'dev'
Rubick67 Nov 3, 2023
e8adbe3
fix mapping dependency
Rubick67 Nov 7, 2023
9e87675
Merge branch 'rubick/fix_dependency' into 'dev'
zlog-in Nov 7, 2023
cf1bec0
change to engine
Rubick67 Nov 9, 2023
1d71443
Merge branch 'rubick/change_to_engine' into 'dev'
Rubick67 Nov 9, 2023
db1759f
interface refactor
Nov 10, 2023
ce8fb52
fix signature
Rubick67 Nov 13, 2023
62abe45
Merge branch 'rubick/fix_signature' into 'dev'
Rubick67 Nov 13, 2023
985c819
add futures trade upload event
Rubick67 Nov 13, 2023
c561282
frozenBalance is properly updated
Rubick67 Nov 13, 2023
5f4bab1
Merge branch 'rubick/add_future_trade_upload_event' into 'dev'
Rubick67 Nov 13, 2023
e6557dc
Merge branch 'rubick/fix_finish_frozen' into 'dev'
Rubick67 Nov 13, 2023
c1f763c
add more checks
Rubick67 Nov 14, 2023
08e402b
Merge branch 'rubick/add_checks' into 'dev'
Rubick67 Nov 14, 2023
74ae67b
revert if out of range
Rubick67 Nov 14, 2023
6becad3
Merge branch 'rubick/revert_out_of_range' into 'dev'
Rubick67 Nov 14, 2023
c609315
update readme
Rubick67 Nov 14, 2023
107492e
Merge branch 'rubick/update_readme' into 'dev'
Rubick67 Nov 14, 2023
1123f8e
cctp support
Rubick67 Nov 16, 2023
c469da7
Merge branch 'rubick/cctp' into 'dev'
Rubick67 Nov 16, 2023
6000978
fix rebalance
Rubick67 Nov 16, 2023
dd943f1
Merge branch 'rubick/fix_rebalance' into 'dev'
Rubick67 Nov 16, 2023
e8d4335
rebalance add more checks
Rubick67 Nov 17, 2023
1f21263
Merge branch 'rubick/rebalance_add_check' into 'dev'
Rubick67 Nov 17, 2023
7c5c04a
support operatorManagerZip
Rubick67 Nov 17, 2023
f561695
Merge branch 'rubick/support_operatorManagerZip' into 'dev'
Rubick67 Nov 17, 2023
a24f015
change srcChainId dstChainId to burn&mint
lewis-orderly Nov 17, 2023
db896f3
Merge branch 'fix-key-name-in-rebalance-struct' into 'dev'
Rubick67 Nov 17, 2023
c93754e
fix toBytes32
Rubick67 Nov 17, 2023
5cf6f6b
Merge branch 'rubick/fix_toBytes32' into 'dev'
zlog-in Nov 17, 2023
2de8853
fix utils
Rubick67 Nov 20, 2023
acbec4f
Merge branch 'rubick/fix_utils' into 'dev'
Rubick67 Nov 20, 2023
85f4da7
rebalance add more check
Rubick67 Nov 20, 2023
8d634c3
Merge branch 'rubick/rebalance_more_check' into 'dev'
Rubick67 Nov 20, 2023
86662dc
prepare qa
Rubick67 Nov 21, 2023
2fa93dc
Merge branch 'rubick/prepare_qa' into 'dev'
Rubick67 Nov 21, 2023
ed3b308
add more event
Rubick67 Nov 22, 2023
a9b3ff5
Merge branch 'rubick/add_more_event' into 'dev'
Rubick67 Nov 22, 2023
ccd4413
vault refactor
zlog-in Nov 22, 2023
b5cbb1a
Merge branch 'zion/vault-refactor' into 'dev'
zlog-in Nov 22, 2023
0d3099b
remove dependency
Rubick67 Nov 24, 2023
a106953
Merge branch 'rubick/remove_dependency' into 'dev'
Rubick67 Nov 24, 2023
b8743e7
add more vault check
Rubick67 Nov 25, 2023
cffe501
Merge branch 'rubick/add_vault_check' into 'dev'
Rubick67 Nov 25, 2023
4303e39
Merge branch 'dev' into 'staging'
Rubick67 Nov 27, 2023
f997321
Draft: prepare staging & mainnet
Rubick67 Nov 28, 2023
c619535
Merge branch 'rubick/prepare_staging_mainnet' into 'dev'
Rubick67 Nov 28, 2023
30fed11
Merge branch 'dev' into 'staging'
Rubick67 Nov 28, 2023
a4424fb
Merge branch 'staging' into 'main'
Rubick67 Nov 28, 2023
b7271eb
not calc avg price if insurance fund
Rubick67 Dec 8, 2023
e4f99f5
Merge branch 'rubick/OR-2419' into 'dev'
Rubick67 Dec 8, 2023
18111ff
Block 0 amount deposit
Rubick67 Dec 8, 2023
98f260d
Merge branch 'rubick/OR-2417' into 'dev'
Rubick67 Dec 8, 2023
4645789
zip contract to decompress calldata from operator
zlog-in Dec 8, 2023
9b3650f
Merge branch 'zion/calldata-compression' into 'dev'
Rubick67 Dec 8, 2023
4d0e698
Add LICENSE
Rubick67 Dec 8, 2023
70751de
refactor zip
Rubick67 Dec 12, 2023
69cbef1
Merge branch 'rubick/refactor_zip' into 'dev'
Rubick67 Dec 12, 2023
c42b5dc
zip prepare qa
Rubick67 Dec 12, 2023
f86c5f1
Merge branch 'rubick/zip_prepare_qa' into 'dev'
Rubick67 Dec 12, 2023
4d19142
add errors for ABI
Rubick67 Dec 13, 2023
ceb7363
Merge branch 'rubick/fix_zip_error' into 'dev'
Rubick67 Dec 13, 2023
3568cdf
prepare zip address
Rubick67 Dec 15, 2023
55a21b8
Merge branch 'rubick/prepare_staging_mainnet' into 'dev'
Rubick67 Dec 15, 2023
182bdac
Merge branch 'dev' into 'staging'
Rubick67 Dec 15, 2023
c079b12
Merge branch 'staging' into 'main'
Rubick67 Dec 18, 2023
3e5fb34
sepolia vault
Rubick67 Dec 22, 2023
ebbf6e9
fix withdraw all
Rubick67 Dec 22, 2023
3bb7030
Merge branch 'rubick/fix_withdraw_all' into 'dev'
Rubick67 Dec 22, 2023
97d70b0
Merge branch 'rubick/add_sepolia_vault' into 'dev'
Rubick67 Dec 26, 2023
0af2fbc
Merge branch 'dev' into 'staging'
Rubick67 Dec 26, 2023
5df3911
Merge branch 'staging' into 'main'
Rubick67 Dec 26, 2023
697ce3b
fix solc version
Rubick67 Jan 8, 2024
8a6259f
Merge branch 'rubick/fix_solc_version' into 'dev'
Rubick67 Jan 8, 2024
05ae8c8
split ledger
Rubick67 Jan 9, 2024
c4bbf62
Merge branch 'rubick/split_ledger' into 'dev'
Rubick67 Jan 9, 2024
ccd5bbd
change fee from uint to int
Rubick67 Jan 9, 2024
78eb535
change dev usdc config
Rubick67 Jan 10, 2024
06f9dd3
Merge branch 'rubick/change_dev_usdc' into 'dev'
Rubick67 Jan 10, 2024
eb48930
Merge branch 'rubick/change_fee_uint2int' into 'dev'
Rubick67 Jan 11, 2024
08c13b4
fee distribution
Rubick67 Jan 11, 2024
8eb7a4b
Merge branch 'rubick/fee_distribution' into 'dev'
Rubick67 Jan 11, 2024
d53a129
qa sepolia
Rubick67 Jan 15, 2024
6a7721a
Merge branch 'rubick/qa_sepolia' into 'dev'
Rubick67 Jan 15, 2024
5ee38c2
add fee distribution test
Rubick67 Jan 15, 2024
375af90
Merge branch 'rubick/add_fee_distribution_test' into 'dev'
Rubick67 Jan 15, 2024
936e140
change staging sepolia vault
Rubick67 Jan 16, 2024
6109146
Merge branch 'rubick/change_staging_vault' into 'dev'
Rubick67 Jan 17, 2024
a5ccccd
support mumbai dev/qa
Rubick67 Jan 17, 2024
a2c0e22
refactor fee manager
Rubick67 Jan 22, 2024
3d20b41
Merge branch 'rubick/mumbai' into 'dev'
Rubick67 Jan 22, 2024
66df81e
Merge branch 'rubick/refactor_feeManager' into 'dev'
Rubick67 Jan 22, 2024
ce78acb
Zion/delegate signer
zlog-in Jan 22, 2024
b8dba21
Merge branch 'zion/delegate-signer' into 'dev'
zlog-in Jan 22, 2024
1968ad5
polygon staging
Rubick67 Jan 23, 2024
ffd0c74
Merge branch 'rubick/polygon_staging' into 'dev'
zlog-in Jan 25, 2024
1ad17a4
Zion/delegate signer
zlog-in Jan 25, 2024
7f064cb
Merge branch 'zion/delegate-signer' into 'dev'
zlog-in Jan 25, 2024
8d3ea18
init polygon mainnet
Rubick67 Jan 26, 2024
b4c409d
Merge branch 'rubick/prepare_polygon_mainnet' into 'dev'
Rubick67 Jan 26, 2024
d244f37
Merge branch 'dev' into 'staging'
Rubick67 Jan 29, 2024
40e8037
Merge branch 'staging' into 'main'
Rubick67 Feb 2, 2024
12ad0e7
fix typo
OwtmPatrick Feb 15, 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
50 changes: 50 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
FUJI_CHAIN_ID="43113"
ORDERLY_CHAIN_ID="986532"
ORDERLYOP_CHAIN_ID="4460"
ORDERLYMAIN_CHAIN_ID="291"
ARBITRUMGOERLI_CHAIN_ID="421613"
ARBITRUM_CHAIN_ID="42161"
MUMBAI_CHAIN_ID="80001"

FUJI_LZ_CHAIN_ID="10106"
ORDERLY_LZ_CHAIN_ID="10174"
ORDERLYOP_LZ_CHAIN_ID="10200"
ARBITRUMGOERLI_LZ_CHAIN_ID="10143"

RPC_URL_ETHEREUM="https://rpc.ankr.com/eth"
RPC_URL_GOERLI="https://rpc.ankr.com/eth_goerli"
RPC_URL_HYPERSPACE="https://rpc.ankr.com/filecoin_testnet"
RPC_URL_SEPOLIA="https://rpc.sepolia.org"
RPC_URL_FUJI="https://api.avax-test.network/ext/bc/C/rpc"
RPC_URL_ORDERLY="https://testnet-fuji-rpc-1.orderly.network/ext/bc/fVgSf4ruGhwvEMd8z6dRwsH6XgRaq31wxN4tRhZPN6rWYhjVt/rpc"
RPC_URL_MUMBAI="https://polygon-mumbai.infura.io/v3/eda7ae04091a465eb960308cb44bf0b3"
RPC_URL_BSC="https://bsc-dataseed1.binance.org"
RPC_URL_ARBITRUMGOERLI="https://goerli-rollup.arbitrum.io/rpc"
RPC_URL_ARBITRUM="https://arb1.arbitrum.io/rpc"
RPC_URL_OPGOERLI="https://optimism-goerli.blockpi.network/v1/rpc/public"
RPC_URL_OPTIMISM="https://optimism.publicnode.com"
RPC_URL_ORDERLYOP="https://l2-orderly-l2-4460-sepolia-8tc3sd7dvy.t.conduit.xyz"
RPC_URL_ORDERLYMAIN="https://rpc.orderly.network"

ETHEREUM_ENDPOINT="0x66A71Dcef29A0fFBDBE3c6a460a3B5BC225Cd675"
BSC_ENDPOINT="0x3c2269811836af69497E5F486A85D7316753cf62"
AVALANCHE_ENDPOINT="0x3c2269811836af69497E5F486A85D7316753cf62"
POLYGON_ENDPOINT="0x3c2269811836af69497E5F486A85D7316753cf62"
ARBITRUM_ENDPOINT="0x3c2269811836af69497E5F486A85D7316753cf62"
OPTIMISM_ENDPOINT="0x3c2269811836af69497E5F486A85D7316753cf62"
FANTOM_ENDPOINT="0xb6319cC6c8c27A8F5dAF0dD3DF91EA35C4720dd7"
ORDERLY_ENDPOINT="0xae92d5aD7583AD66E49A0c67BAd18F6ba52dDDc1"
GOERLI_ENDPOINT="0xbfD2135BFfbb0B5378b56643c2Df8a87552Bfa23"
BSC_TESTNET_ENDPOINT="0x6Fcb97553D41516Cb228ac03FdC8B9a0a9df04A1"
FUJI_ENDPOINT="0x93f54D755A063cE7bB9e6Ac47Eccc8e33411d706"
MUMBAI_ENDPOINT="0xf69186dfBa60DdB133E91E9A4B5673624293d8F8"
ARBITRUMGOERLI_ENDPOINT="0x6aB5Ae6822647046626e83ee6dB8187151E1d5ab"
ORDERLYOP_ENDPOINT="0x83c73Da98cf733B03315aFa8758834b36a195b87"

ORDERLY_PRIVATE_KEY="0x1"
VAULT_CROSS_CHAIN_MANAGER_ADDRESS="0x1"
LEDGER_CROSS_CHAIN_MANAGER_ADDRESS="0x1"
ETHERSCAN_KEY="0x1"
ETHERSCAN_API_KEY=""
ARB_ETHERSCAN_API_KEY=""
OP_ETHERSCAN_API_KEY=""
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,10 @@ docs/
node_modules

# artifacts
src/**/artifacts/
src/**/artifacts/

broadcast/

*.zip

.DS_Store
16 changes: 16 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
stages:
- test

test-job:
stage: test
image: ghcr.io/foundry-rs/foundry
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
before_script:
- git config --global url."https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/".insteadOf "git@gitlab.com:"
script:
- echo "Install build essentials"
- apk add --no-cache openssh
- echo "Build with commit $CI_COMMIT_BRANCH!"
- forge install
- forge test
9 changes: 3 additions & 6 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@
path = lib/forge-std
url = https://github.com/foundry-rs/forge-std
branch = v1.5.0
[submodule "lib/solmate"]
path = lib/solmate
url = https://github.com/transmissions11/solmate
[submodule "lib/create3-factory"]
path = lib/create3-factory
url = https://github.com/zeframlou/create3-factory
[submodule "lib/openzeppelin-contracts"]
path = lib/openzeppelin-contracts
url = https://github.com/openzeppelin/openzeppelin-contracts
branch = v4.8.2
[submodule "lib/openzeppelin-contracts-upgradeable"]
path = lib/openzeppelin-contracts-upgradeable
url = https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable
201 changes: 201 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,201 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

1. Definitions.

"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.

"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.

"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.

"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.

"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.

"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.

"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).

"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.

"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."

"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.

2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.

3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.

4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:

(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and

(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and

(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and

(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.

You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.

5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.

6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.

7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.

8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.

9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.

END OF TERMS AND CONDITIONS

APPENDIX: How to apply the Apache License to your work.

To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2023 Xiaohui Zhao

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Loading