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 2 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
3 changes: 3 additions & 0 deletions config/deploy-ledger.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"feeManager": "0x835E970110E4a46BCA21A7551FEaA5F532F72701",
"ledger": "0x8794E7260517B1766fc7b55cAfcd56e6bf08600e",
"marketManager": "0x3ac2Ba11Ca2f9f109d50fb1a46d4C23fCadbbef6",
"multiSig": "0x424fB381abc54cD19345C65eb28D4bBE367ba7ba",
"operatorAddress": "0xDdDd1555A17d3Dad86748B883d2C1ce633A7cd88",
"operatorManager": "0xe34614EB781C5838C78B7f913b89A05e7a5b97e2",
"proxyAdmin": "0x8910A067473C1800b371183124AEdC95684244DE",
Expand All @@ -15,6 +16,7 @@
"feeManager": "0x8A929891DE9a648B6A3D05d21362418f756cf728",
"ledger": "0x50F59504D3623Ad99302835da367676d1f7E3D44",
"marketManager": "0x1AFE8286eD1b365671870A735f7deb4dcc9DB16D",
"multiSig": "",
"operatorAddress": "0x314d042d164BbEF71924f19A3913F65C0aCFb94E",
"operatorManager": "0x7Cd1FBdA284997Be499D3294C9a50352Dd682155",
"proxyAdmin": "0x0EaC556c0C2321BA25b9DC01e4e3c95aD5CDCd2f",
Expand All @@ -26,6 +28,7 @@
"feeManager": "0x0B98ba78DDb29937d895c718ED167DD8f5B2972d",
"ledger": "0x1826B75e2ef249173FC735149AE4B8e9ea10abff",
"marketManager": "0x523Ab490B15803d6Ba60dC95F1579536F95edD4e",
"multiSig": "",
"operatorAddress": "0x2d4e9C592b9f42557DAE7B103F3fCA47448DC0BD",
"operatorManager": "0x1A46be28AB241F5A64F82ddFc384911520E3d557",
"proxyAdmin": "0x24ea35cCD9d8c7aA5D35BDdc140A5f97D89289F8",
Expand Down
3 changes: 3 additions & 0 deletions config/deploy-vault.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
{
"dev": {
"arbitrumgoerli": {
"multiSig": "0x424fB381abc54cD19345C65eb28D4bBE367ba7ba",
"proxyAdmin": "0x93A5486E16553eb112Ec1Fa41f5B8b9E24102B6e",
"tUSDC": "0x004d88aa993fd2100d6c8beb6cdb6bc04f565b44",
"vault": "0x0C554dDb6a9010Ed1FD7e50d92559A06655dA482"
}
},
"qa": {
"arbitrumgoerli": {
"multiSig": "",
"proxyAdmin": "0xCaE33d6D72cd2c01b71d6Be3CE2E62b4B7297961",
"tUSDC": "0x6aAd876244E7A1Ad44Ec4824Ce813729E5B6C291",
"vault": "0x22b10472d3Da206aaA85D3f19E91A8da15E0F56A"
}
},
"staging": {
"arbitrumgoerli": {
"multiSig": "",
"proxyAdmin": "0x3ec2259a0e208867CD812b3b1e7A980Bab5FB38D",
"tUSDC": "0x6aAd876244E7A1Ad44Ec4824Ce813729E5B6C291",
"vault": "0xd64AeB281f3E8cd70e668b6cb24De7e532dC214D"
Expand Down
2 changes: 1 addition & 1 deletion config/tasks/ledger-vault-envs.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"env": "staging",
"env": "dev",
"ledgerNetwork": "orderlyop",
"vaultNetwork": "arbitrumgoerli"
}
74 changes: 74 additions & 0 deletions script/ledgerV2/TransferOwner.s.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.18;

import "forge-std/Script.sol";
import "openzeppelin-contracts/contracts/proxy/transparent/TransparentUpgradeableProxy.sol";
import "openzeppelin-contracts/contracts/proxy/transparent/ProxyAdmin.sol";
import "../../src/OperatorManager.sol";
import "../../src/Ledger.sol";
import "../../src/VaultManager.sol";
import "../../src/FeeManager.sol";
import "../../src/MarketManager.sol";
import "../utils/BaseScript.s.sol";
import "../utils/ConfigHelper.s.sol";

contract TransferOwner is BaseScript, ConfigHelper {
function run() external {
uint256 orderlyPrivateKey = vm.envUint("ORDERLY_PRIVATE_KEY");
Envs memory envs = getEnvs();
string memory env = envs.env;
string memory network = envs.ledgerNetwork;

LedgerDepolyData memory config = getLedgerDeployData(env, network);
address adminAddress = config.proxyAdmin;
address feeManagerAddress = config.feeManager;
address marketManagerAddress = config.marketManager;
address operatorManagerAddress = config.operatorManager;
address vaultManagerAddress = config.vaultManager;
address ledgerAddress = config.ledger;
address multiSigAddress = config.multiSig;
console.log("adminAddress: ", adminAddress);
console.log("feeManagerAddress: ", feeManagerAddress);
console.log("marketManagerAddress: ", marketManagerAddress);
console.log("operatorManagerAddress: ", operatorManagerAddress);
console.log("vaultManagerAddress: ", vaultManagerAddress);
console.log("ledgerAddress: ", ledgerAddress);
console.log("multiSigAddress: ", multiSigAddress);

vm.startBroadcast(orderlyPrivateKey);

{
// first change the owner of the impls
OperatorManager operatorManager = OperatorManager(operatorManagerAddress);
VaultManager vaultManager = VaultManager(vaultManagerAddress);
Ledger ledger = Ledger(ledgerAddress);
FeeManager feeManager = FeeManager(feeManagerAddress);
MarketManager marketManager = MarketManager(marketManagerAddress);

operatorManager.transferOwnership(multiSigAddress);
vaultManager.transferOwnership(multiSigAddress);
ledger.transferOwnership(multiSigAddress);
feeManager.transferOwnership(multiSigAddress);
marketManager.transferOwnership(multiSigAddress);
}

{
// second change the owner of the proxys
ProxyAdmin admin = ProxyAdmin(adminAddress);
ITransparentUpgradeableProxy feeManagerProxy = ITransparentUpgradeableProxy(feeManagerAddress);
ITransparentUpgradeableProxy marketManagerProxy = ITransparentUpgradeableProxy(marketManagerAddress);
ITransparentUpgradeableProxy operatorManagerProxy = ITransparentUpgradeableProxy(operatorManagerAddress);
ITransparentUpgradeableProxy vaultManagerProxy = ITransparentUpgradeableProxy(vaultManagerAddress);
ITransparentUpgradeableProxy ledgerProxy = ITransparentUpgradeableProxy(ledgerAddress);

admin.changeProxyAdmin(feeManagerProxy, multiSigAddress);
admin.changeProxyAdmin(marketManagerProxy, multiSigAddress);
admin.changeProxyAdmin(operatorManagerProxy, multiSigAddress);
admin.changeProxyAdmin(vaultManagerProxy, multiSigAddress);
admin.changeProxyAdmin(ledgerProxy, multiSigAddress);
}

vm.stopBroadcast();
console.log("transfer owner done");
}
}
2 changes: 2 additions & 0 deletions script/utils/ConfigHelper.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ struct LedgerDepolyData {
address feeManager;
address ledger;
address marketManager;
address multiSig;
address operatorAddress;
address operatorManager;
address proxyAdmin;
address vaultManager;
}

struct VaultDepolyData {
address multiSig;
address proxyAdmin;
address tUSDC;
address vault;
Expand Down
44 changes: 44 additions & 0 deletions script/vaultV2/TransferOwner.s.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.18;

import "forge-std/Script.sol";
import "openzeppelin-contracts/contracts/proxy/transparent/TransparentUpgradeableProxy.sol";
import "openzeppelin-contracts/contracts/proxy/transparent/ProxyAdmin.sol";
import "../../src/vaultSide/Vault.sol";
import "../utils/BaseScript.s.sol";
import "../utils/ConfigHelper.s.sol";

contract TransferOwner is BaseScript, ConfigHelper {
function run() external {
uint256 orderlyPrivateKey = vm.envUint("ORDERLY_PRIVATE_KEY");
Envs memory envs = getEnvs();
string memory env = envs.env;
string memory network = envs.vaultNetwork;

VaultDepolyData memory config = getVaultDeployData(env, network);
address adminAddress = config.proxyAdmin;
address vaultAddress = config.vault;
address multiSigAddress = config.multiSig;
console.log("adminAddress: ", adminAddress);
console.log("vaultAddress: ", vaultAddress);
console.log("multiSigAddress: ", multiSigAddress);

vm.startBroadcast(orderlyPrivateKey);

{
// first change the owner of the impls
Vault operatorManager = Vault(vaultAddress);
operatorManager.transferOwnership(multiSigAddress);
}

{
// second change the owner of the proxys
ProxyAdmin admin = ProxyAdmin(adminAddress);
ITransparentUpgradeableProxy vaultProxy = ITransparentUpgradeableProxy(vaultAddress);
admin.changeProxyAdmin(vaultProxy, multiSigAddress);
}

vm.stopBroadcast();
console.log("transfer owner done");
}
}