@layerzerolabs/lz-sui-sdk-v2 3.0.133 → 3.0.134-sui.0

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.
Files changed (85) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/deployments/sui-sandbox-local/blocked_message_lib.json +24 -24
  3. package/deployments/sui-sandbox-local/blocked_msglib_ptb_builder.json +26 -26
  4. package/deployments/sui-sandbox-local/counter.json +69 -34
  5. package/deployments/sui-sandbox-local/dvn.json +15 -14
  6. package/deployments/sui-sandbox-local/dvn_call_type.json +28 -28
  7. package/deployments/sui-sandbox-local/dvn_fee_lib.json +27 -27
  8. package/deployments/sui-sandbox-local/dvn_layerzero.json +24 -24
  9. package/deployments/sui-sandbox-local/dvn_ptb_builder.json +21 -21
  10. package/deployments/sui-sandbox-local/endpoint_ptb_builder.json +30 -30
  11. package/deployments/sui-sandbox-local/executor.json +21 -20
  12. package/deployments/sui-sandbox-local/executor_call_type.json +21 -21
  13. package/deployments/sui-sandbox-local/executor_fee_lib.json +32 -32
  14. package/deployments/sui-sandbox-local/executor_layerzero.json +20 -20
  15. package/deployments/sui-sandbox-local/executor_ptb_builder.json +21 -21
  16. package/deployments/sui-sandbox-local/layerzero_views.json +13 -13
  17. package/deployments/sui-sandbox-local/message_lib_common.json +20 -20
  18. package/deployments/sui-sandbox-local/msglib_ptb_builder_call_types.json +20 -20
  19. package/deployments/sui-sandbox-local/oapp.json +23 -21
  20. package/deployments/sui-sandbox-local/object-BlockedMessageLib.json +5 -5
  21. package/deployments/sui-sandbox-local/object-BlockedMsglibPtbBuilder.json +5 -5
  22. package/deployments/sui-sandbox-local/object-Counter.json +5 -5
  23. package/deployments/sui-sandbox-local/object-CounterAdminCap.json +5 -5
  24. package/deployments/sui-sandbox-local/object-CounterOApp.json +5 -5
  25. package/deployments/sui-sandbox-local/object-DVN.json +2 -2
  26. package/deployments/sui-sandbox-local/object-DVNCap.json +4 -4
  27. package/deployments/sui-sandbox-local/object-DVNFeeLib.json +5 -5
  28. package/deployments/sui-sandbox-local/object-EndpointPtbBuilder.json +5 -5
  29. package/deployments/sui-sandbox-local/object-EndpointPtbBuilderAdminCap.json +5 -5
  30. package/deployments/sui-sandbox-local/object-Executor.json +2 -2
  31. package/deployments/sui-sandbox-local/object-ExecutorCap.json +3 -3
  32. package/deployments/sui-sandbox-local/object-ExecutorFeeLib.json +5 -5
  33. package/deployments/sui-sandbox-local/object-ExecutorOwnerCap.json +2 -2
  34. package/deployments/sui-sandbox-local/object-PackageWhitelistValidator.json +5 -5
  35. package/deployments/sui-sandbox-local/object-PriceFeed.json +5 -5
  36. package/deployments/sui-sandbox-local/object-PriceFeedOwnerCap.json +5 -5
  37. package/deployments/sui-sandbox-local/object-SimpleMessageLib.json +5 -5
  38. package/deployments/sui-sandbox-local/object-SimpleMessageLibAdminCap.json +5 -5
  39. package/deployments/sui-sandbox-local/object-SmlPtbBuilder.json +5 -5
  40. package/deployments/sui-sandbox-local/object-Treasury.json +5 -5
  41. package/deployments/sui-sandbox-local/object-TreasuryAdminCap.json +5 -5
  42. package/deployments/sui-sandbox-local/object-ULN302.json +5 -5
  43. package/deployments/sui-sandbox-local/object-ULN302AdminCap.json +5 -5
  44. package/deployments/sui-sandbox-local/object-Uln302PtbBuilder.json +5 -5
  45. package/deployments/sui-sandbox-local/object-Uln302Verification.json +5 -5
  46. package/deployments/sui-sandbox-local/object-WorkerRegistry.json +9 -0
  47. package/deployments/sui-sandbox-local/package_whitelist_validator.json +48 -48
  48. package/deployments/sui-sandbox-local/price_feed.json +40 -40
  49. package/deployments/sui-sandbox-local/price_feed_call_types.json +12 -12
  50. package/deployments/sui-sandbox-local/ptb_move_call.json +12 -12
  51. package/deployments/sui-sandbox-local/simple_message_lib.json +29 -29
  52. package/deployments/sui-sandbox-local/simple_msglib_ptb_builder.json +18 -18
  53. package/deployments/sui-sandbox-local/treasury.json +40 -40
  54. package/deployments/sui-sandbox-local/uln_302.json +50 -50
  55. package/deployments/sui-sandbox-local/uln_302_ptb_builder.json +22 -22
  56. package/deployments/sui-sandbox-local/worker_common.json +15 -14
  57. package/deployments/sui-sandbox-local/worker_registry.json +58 -0
  58. package/dist/index.cjs +834 -294
  59. package/dist/index.cjs.map +1 -1
  60. package/dist/index.d.mts +541 -316
  61. package/dist/index.d.ts +541 -316
  62. package/dist/index.mjs +828 -295
  63. package/dist/index.mjs.map +1 -1
  64. package/package.json +7 -7
  65. package/src/bcs/index.ts +2 -1
  66. package/src/bcs/oapp.ts +14 -0
  67. package/src/generated/addresses.ts +66 -48
  68. package/src/module-manager.ts +15 -3
  69. package/src/modules/endpoint.ts +2 -3
  70. package/src/modules/oapps/counter.ts +30 -47
  71. package/src/modules/oapps/oapp.ts +468 -62
  72. package/src/modules/ptb-builders/ptb-builder.ts +10 -4
  73. package/src/modules/workers/dvn-layerzero.ts +1 -0
  74. package/src/modules/workers/dvn.ts +59 -0
  75. package/src/modules/workers/executor-layerzero.ts +1 -0
  76. package/src/modules/workers/executor.ts +59 -0
  77. package/src/modules/workers/index.ts +1 -0
  78. package/src/modules/workers/worker-registry.ts +109 -0
  79. package/src/resource.ts +3 -0
  80. package/src/sdk.ts +7 -2
  81. package/src/types/endpoint.ts +2 -1
  82. package/src/types/modules.ts +1 -0
  83. package/src/types/oapp.ts +6 -0
  84. package/src/types/options.ts +15 -0
  85. package/src/utils/transaction.ts +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layerzerolabs/lz-sui-sdk-v2",
3
- "version": "3.0.133",
3
+ "version": "3.0.134-sui.0",
4
4
  "license": "BUSL-1.1",
5
5
  "exports": {
6
6
  ".": {
@@ -37,16 +37,16 @@
37
37
  "typecheck": "tsc --noEmit"
38
38
  },
39
39
  "dependencies": {
40
- "@layerzerolabs/lz-definitions": "^3.0.133",
40
+ "@layerzerolabs/lz-definitions": "^3.0.134-sui.0",
41
41
  "@mysten/sui": "^1.33.0",
42
42
  "js-sha3": "0.8.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@layerzerolabs/lz-foundation": "^3.0.133",
46
- "@layerzerolabs/lz-utilities": "^3.0.133",
47
- "@layerzerolabs/lz-v2-utilities": "^3.0.133",
48
- "@layerzerolabs/tsup-config-next": "^3.0.133",
49
- "@layerzerolabs/typescript-config-next": "^3.0.133",
45
+ "@layerzerolabs/lz-foundation": "^3.0.134-sui.0",
46
+ "@layerzerolabs/lz-utilities": "^3.0.134-sui.0",
47
+ "@layerzerolabs/lz-v2-utilities": "^3.0.134-sui.0",
48
+ "@layerzerolabs/tsup-config-next": "^3.0.134-sui.0",
49
+ "@layerzerolabs/typescript-config-next": "^3.0.134-sui.0",
50
50
  "@types/chai": "^4.3.11",
51
51
  "@types/chai-as-promised": "^7.1.0",
52
52
  "@types/mocha": "^10.0.6",
package/src/bcs/index.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  export * from './dvn'
2
+ export * from './endpoint'
2
3
  export * from './executor'
3
4
  export * from './messaging-fee'
4
5
  export * from './move-call'
6
+ export * from './oapp'
5
7
  export * from './price-feed'
6
8
  export * from './uln'
7
- export * from './endpoint'
@@ -0,0 +1,14 @@
1
+ import { bcs } from '@mysten/sui/bcs'
2
+
3
+ // OAppInfoV1 struct BCS definition
4
+ // Corresponds to the Move struct defined in oapp_info_v1.move
5
+ export const OAppInfoV1Bcs = bcs.struct('OAppInfoV1', {
6
+ // Object ID address of the OApp instance
7
+ oapp_object: bcs.Address,
8
+ // Used to populate the MoveCalls to fetch the next nonce that can be executed by an executor
9
+ next_nonce_info: bcs.vector(bcs.u8()),
10
+ // Used to populate the MoveCalls to execute lz_receive by executor
11
+ lz_receive_info: bcs.vector(bcs.u8()),
12
+ // Additional configuration data for custom OApp functionality
13
+ extra_info: bcs.vector(bcs.u8()),
14
+ })
@@ -16,43 +16,43 @@ export const PACKAGE_ENDPOINT_V2_ADDRESS: { [stage in Stage]?: string } = {
16
16
  export const PACKAGE_COUNTER_V2_ADDRESS: { [stage in Stage]?: string } = {
17
17
  [Stage.MAINNET]: '0xfe1e336fdb42fa5ef85ab9a9c932b58c43e0bb58273cecea9d00cb5d05159914',
18
18
  [Stage.TESTNET]: '0xa6a19e84c7df2014e384cdd56f5674e5a0c06b92cc5d33fca89633680a9ebcd7',
19
- [Stage.SANDBOX]: '0x20dad5027c793dcca803582aa6c7914c1ee5e3a02069ada023c6815605ec7094',
19
+ [Stage.SANDBOX]: '0x03bb39118fd4ab6fce5fe4905c65eb464c1b7bb42616ac44ba7b63237fd359e1',
20
20
  }
21
21
 
22
22
  export const PACKAGE_SIMPLE_MESSAGE_LIB_ADDRESS: { [stage in Stage]?: string } = {
23
23
  [Stage.MAINNET]: '0x83651370065f70112b20007137c7235a2a243055d9f59cb5e162c00c4a1680a7',
24
24
  [Stage.TESTNET]: '0xd1fbc2529b4c581c5105031b495866cece446f2123319f6d82a76151b999717e',
25
- [Stage.SANDBOX]: '0x7ffd567ed3a8c9cc8a910780dca7d14fe10326c91e18a5ccc9782d8e5494ff2c',
25
+ [Stage.SANDBOX]: '0xf94d5251498735754cbdca2c0468a462e280de2264809c679296de0122482ba1',
26
26
  }
27
27
 
28
28
  export const PACKAGE_ULN_302_ADDRESS: { [stage in Stage]?: string } = {
29
29
  [Stage.MAINNET]: '0xd73c9d588717c32fa327335d9beaf59b983b808577a382e013d8c7161a323d8e',
30
30
  [Stage.TESTNET]: '0x556bd8fba10ba9e8be88a3ed54b8cbeb8b512b95e5c107cde7d7b10b754069c2',
31
- [Stage.SANDBOX]: '0x819de7b1b0bac7f1f47f3a3f3351ddff63da041b6b4216622f7cb3eed8cf5ad7',
31
+ [Stage.SANDBOX]: '0x25fe851c70c5ad882eac45e7bb8f73445ea3e278a2ce858100b9f85ce98ead73',
32
32
  }
33
33
 
34
34
  export const PACKAGE_ULN_302_PTB_BUILDER_ADDRESS: { [stage in Stage]?: string } = {
35
35
  [Stage.MAINNET]: '0x67b3a43a3aa962e1a6012b04f68e6f358803f5970858f4de22684d6d13fcd747',
36
36
  [Stage.TESTNET]: '0x71a23cdd1cb88b52a40cd2862c4ca607bd27e0f02f136e18f95351050fec9a89',
37
- [Stage.SANDBOX]: '0xd1579308c460cba091418483f8828fab430caada10cefe3bf13f207b3e0e7615',
37
+ [Stage.SANDBOX]: '0x495eda5d0217a2b0ea75526b6fa4e426f8f6573c8bd03abca6e488795f17bc1b',
38
38
  }
39
39
 
40
40
  export const PACKAGE_DVN_PTB_BUILDER_ADDRESS: { [stage in Stage]?: string } = {
41
41
  [Stage.MAINNET]: '0xb3f3a6d39a441a0f41a621d27427cedf624d500b3da5cd7051bc5835b21ac3ba',
42
42
  [Stage.TESTNET]: '0xe7723903288eb1a38fb7166edce4307dfce985c7a9771af579f4f3d003dda2ec',
43
- [Stage.SANDBOX]: '0xb8af54333436b290b53b2f42f0114f218c93c8dcded744dc88dfca69108b8d15',
43
+ [Stage.SANDBOX]: '0xccd0536e9ecd58feda2497cdfa8c5a535d13782b125dc3345fa2d61ffd2a514d',
44
44
  }
45
45
 
46
46
  export const PACKAGE_EXECUTOR_PTB_BUILDER_ADDRESS: { [stage in Stage]?: string } = {
47
47
  [Stage.MAINNET]: '0x9d26806bb023ccd5b79d8ad50bf503e0e91c07b5bbfeb5b20a79e073571a5196',
48
48
  [Stage.TESTNET]: '0xafed5368176963fa0474724a019e4fae6643d31c06b653fa1364b2282d5049dd',
49
- [Stage.SANDBOX]: '0xfae7df5fa627ad9a4747e37ff92a302e3de384b6cb4b2e799895a30666d0ae89',
49
+ [Stage.SANDBOX]: '0x95cb0c629555b19839bb028868e4a8d78d9649b04e975fc9526325120609d84b',
50
50
  }
51
51
 
52
52
  export const PACKAGE_EXECUTOR_ADDRESS: { [stage in Stage]?: string } = {
53
53
  [Stage.MAINNET]: '0x749420cc42b47d3db83fe316eb8accd8126bed9a779c0b7e06fa084c7fa1d76d',
54
54
  [Stage.TESTNET]: '0x5bcded2dfa21094d5ffdd6256a2a73984e901201e84a6783aa8233b187ffdb51',
55
- [Stage.SANDBOX]: '0xe04be1ccf44ae1fbe913a345c042db2b0a472ae2e52bcfd22de9df150c8a4b68',
55
+ [Stage.SANDBOX]: '0x11be423b43baf779cd8797d5a173d57b3d4c0a575690e0602b9dc21c6e9fb910',
56
56
  }
57
57
 
58
58
  export const PACKAGE_ZRO_ADDRESS: { [stage in Stage]?: string } = {
@@ -70,91 +70,103 @@ export const PACKAGE_CALL_ADDRESS: { [stage in Stage]?: string } = {
70
70
  export const PACKAGE_ENDPOINT_PTB_BUILDER_ADDRESS: { [stage in Stage]?: string } = {
71
71
  [Stage.MAINNET]: '0x387af0542c79874a52c3e8812390c0fd02a8e947ce54aea8d80481ac2b5b3acb',
72
72
  [Stage.TESTNET]: '0xe0a904685954e5dc73a720f6dd29c8b5a22d2d4ca0864536b7befaf4cec44676',
73
- [Stage.SANDBOX]: '0x033b899cbefcb257be7b95dc42bd5671f7acf47c95d1fdfb8ba87f0662a3a41b',
73
+ [Stage.SANDBOX]: '0x70de4b2f246f3fcb3ca10c25b5e0c47f76743eaf70c5ab1ab0702e9259d55079',
74
74
  }
75
75
 
76
76
  export const PACKAGE_SIMPLE_MESSAGE_LIB_PTB_BUILDER_ADDRESS: { [stage in Stage]?: string } = {
77
77
  [Stage.MAINNET]: '0xba557037446a5b114205c868db114957945dd21df9770796fea2b558fc4a20fd',
78
78
  [Stage.TESTNET]: '0x4badf1bba6f630905bc413b89f1c22669593b0e7aea60012a14fd42f44e2a7fe',
79
- [Stage.SANDBOX]: '0x5f2403581619cc1c295cb9dbdc256c05964f2c5bab5f457a8b35d226aae07236',
79
+ [Stage.SANDBOX]: '0x264f6017d64797b74e1000ff3a9c6d408d0db7841c5b625eee845ecf3ef182fb',
80
80
  }
81
81
 
82
82
  export const PACKAGE_PTB_MOVE_CALL_ADDRESS: { [stage in Stage]?: string } = {
83
83
  [Stage.MAINNET]: '0x0dd38c96b282271279247c26dba1f51d6e45209396a9e548154881e04549db66',
84
84
  [Stage.TESTNET]: '0x8bdf374fe8576f28d71eecd219601cebafa38e2c79387eea92e2f27a71359197',
85
- [Stage.SANDBOX]: '0x227280f85c4d25068dffa7a5344bdf787380d405109e9f4536ed01276c452027',
85
+ [Stage.SANDBOX]: '0xb6b876f3bf08afd1c3d1278eece29184a42a0ed0e6bcbfd245773f047da60fce',
86
86
  }
87
87
 
88
88
  export const PACKAGE_DVN_ADDRESS: { [stage in Stage]?: string } = {
89
89
  [Stage.MAINNET]: '0x6810f5568936a9a2b5fcb043f59a3cbf681e06f0db61c90bf3ff5530d4f470c0',
90
90
  [Stage.TESTNET]: '0x7c04479b475305685ad24fd3e91437aa3f6e0df95d1417fad1b4640d8363be9b',
91
- [Stage.SANDBOX]: '0x9a94da9d9d7e88415869c61dd4d3ffaba76ddf0bab61cfdef399bbf841012a98',
91
+ [Stage.SANDBOX]: '0xfd7eb85864e2bbb92d7c0b647febc4cef621ad68767ca6a29184ffadae9af66f',
92
92
  }
93
93
 
94
94
  export const PACKAGE_DVN_FEE_LIB_ADDRESS: { [stage in Stage]?: string } = {
95
95
  [Stage.MAINNET]: '0xb94f476ccd37034f4f5fb9c541320b85f86e61ae7f654fa66f3b987e8fb3f825',
96
96
  [Stage.TESTNET]: '0x7f6a8ca6e6f136605be10b502d4e03fda2ee9983f57c10c6199a63744977d951',
97
- [Stage.SANDBOX]: '0x31d37e8be4003989cfb19723d63643682fcfa6bedf127de55f0ecc33b5ada874',
97
+ [Stage.SANDBOX]: '0x23c6868a1e69fe7a968f11d5af5cefe6c72a44285ad8493992d706b16d669dc2',
98
98
  }
99
99
 
100
100
  export const PACKAGE_EXECUTOR_FEE_LIB_ADDRESS: { [stage in Stage]?: string } = {
101
101
  [Stage.MAINNET]: '0x4cdd97cf2dee8387b004915c293d0565577e0194fff4894e604a09db54ac62c7',
102
102
  [Stage.TESTNET]: '0x36a441e73ed70e9fc900d021381a3d833c8b15305b7a116dbd7a2d1a156432e1',
103
- [Stage.SANDBOX]: '0x3fb35e7905c22587cd8af615462d44c6daacfbe615019a2bf3e5d5a648cf7ba5',
103
+ [Stage.SANDBOX]: '0x16af1b65c0af5533ad82973fdc3b2caeec16123e2154f08ab3c96f03c8bae327',
104
104
  }
105
105
 
106
106
  export const PACKAGE_PRICE_FEED_ADDRESS: { [stage in Stage]?: string } = {
107
107
  [Stage.MAINNET]: '0x9f12f79a355fca76492bc1908fc7a9a8518d2a83e65cffc93f134144dfa4e5bb',
108
108
  [Stage.TESTNET]: '0x703efe3215e8249a490b4889d20bff10f09838d200835d53d056bbf30a80fe37',
109
- [Stage.SANDBOX]: '0xa6db98425af6398a485a8dd9f9b21eefcc74aece57de250932b937a2bd7d6108',
109
+ [Stage.SANDBOX]: '0x2dde456fdbdf2a72232388de4872dda51b2bb070ae3b0ffe64d42cfae39ad31f',
110
110
  }
111
111
 
112
112
  export const PACKAGE_TREASURY_ADDRESS: { [stage in Stage]?: string } = {
113
113
  [Stage.MAINNET]: '0xcb8bc76ad2dde43cb83fe4f27a702df0874e99c047317251ee878893c17c83c5',
114
114
  [Stage.TESTNET]: '0x5589cb216e702c9d18c8864b75a233a8f8b4591156fff871c129519e95d5aa3e',
115
- [Stage.SANDBOX]: '0x15414819b8e027f621ff58bd534cdb2a417e28e450c45d9f8b0026f7c02a6142',
115
+ [Stage.SANDBOX]: '0xdbb6f0479e33f8f32e9e4b4f6bde0dc1d8cad6789789aa78276e012f41a480d4',
116
116
  }
117
117
 
118
118
  export const PACKAGE_OAPP_ADDRESS: { [stage in Stage]?: string } = {
119
119
  [Stage.MAINNET]: '0x7c93d6d8288fa0f8df5a595dcde2413b849d8c839fc59fc09243fd5bf44c96ab',
120
120
  [Stage.TESTNET]: '0x50d5a0038394ddff138900335e56315b2aed79475cad3fe3737a50dc12c884d6',
121
- [Stage.SANDBOX]: '0xe5aead258d25145e6670ca7c564087f5d64ec9f7d8a22acc944062b945a63410',
121
+ [Stage.SANDBOX]: '0x5a0546761498df269c5cf84268db3258e04f2b88a258c2c29d9964e0760715bb',
122
122
  }
123
123
 
124
124
  export const PACKAGE_LAYERZERO_VIEWS_ADDRESS: { [stage in Stage]?: string } = {
125
125
  [Stage.MAINNET]: '0x74803ac88036cbd57bf1a46347e22143a47081f7159efb01419f1ed14a17ad67',
126
126
  [Stage.TESTNET]: '0xa4a72308ec518a2103f9f31435d07df740736bc03b778ca1200071805c5414da',
127
- [Stage.SANDBOX]: '0x189583456e301268b4616b411f71a9f43b5e76ec70f78caf25c1859d01d820b3',
127
+ [Stage.SANDBOX]: '0x0f5efe78da0d3bae509c45ef677b112f8723e2f40941fe69c0bfa6bb429548e0',
128
128
  }
129
129
 
130
130
  export const PACKAGE_DVN_LAYERZERO_ADDRESS: { [stage in Stage]?: string } = {
131
131
  [Stage.MAINNET]: '0xc3f25fb140745ca0d4cde0ec382fd76e2f20d5a76a7fd9264340b4af949fd38b',
132
132
  [Stage.TESTNET]: '0x725e5c54d11578942f4b45ebdce1cc91244dae658a667c2186c277b6a5673f9c',
133
- [Stage.SANDBOX]: '0x2d64ac1a8742236d961b2cc5cc5738e43be08ec925dbf7c63199d9cc82706013',
133
+ [Stage.SANDBOX]: '0xcd7d12783f35486422e4cf3c56cbf46fdd26ca5e3ec0da536ea5baaceadb9adb',
134
134
  }
135
135
 
136
136
  export const PACKAGE_EXECUTOR_LAYERZERO_ADDRESS: { [stage in Stage]?: string } = {
137
137
  [Stage.MAINNET]: '0x2111256b15f5d0a20f6352084dac268c737b47c113b4da5eacb316f8a536f9bf',
138
138
  [Stage.TESTNET]: '0xb8db282fff4358b67915bb76eb18bde3406e4e30a1d219c852c7ccf5a121a3ff',
139
- [Stage.SANDBOX]: '0xc035c31a275010f5441996c140c6648bece39d3e1573e4e0e562068f2bedb2f4',
139
+ [Stage.SANDBOX]: '0xe6ee1ecfa811c75d386287dcf25308109c4f872e7680b89857b6ef8c30956391',
140
140
  }
141
141
 
142
142
  export const PACKAGE_PACKAGE_WHITELIST_VALIDATOR_ADDRESS: { [stage in Stage]?: string } = {
143
143
  [Stage.MAINNET]: '0xbdce35f2801192bb218e47bb6e9cf08e136037b271157e8db8fdc9acf0bd225e',
144
144
  [Stage.TESTNET]: '0x5ad1acba7eb1b381ab3f08da17938ffa930375c0904e78ccd6e634957f6b3ef6',
145
- [Stage.SANDBOX]: '0x3f835d714186cc664a9ad2ff2c7606b98fc76f5159c830fc0f71c63cb424aa6c',
145
+ [Stage.SANDBOX]: '0x235c6c8076597311d736fb929ee322792a3da24b4348834d8add4a6204e24bfc',
146
146
  }
147
147
 
148
148
  export const PACKAGE_BLOCKED_MESSAGE_LIB_ADDRESS: { [stage in Stage]?: string } = {
149
149
  [Stage.MAINNET]: '0x9f6107b708d7650b1484ae10cb98340af343f46bd63793ea91c2379bab9a7abb',
150
150
  [Stage.TESTNET]: '0xd3f0cab5eca2cfb870e5390b572e67ce1d0d96bc89d097d089914014bf581e5d',
151
- [Stage.SANDBOX]: '0xacd4a0fe11d7e8e018a0d57ff441336d080fefc3e8c89d2eea43542ab6ef5c43',
151
+ [Stage.SANDBOX]: '0x296cdb6f55b1c0dbc90bc161cd311e99d400cc74931d2d191d2afe1d4553e0b5',
152
152
  }
153
153
 
154
154
  export const PACKAGE_BLOCKED_MESSAGE_LIB_PTB_BUILDER_ADDRESS: { [stage in Stage]?: string } = {
155
155
  [Stage.MAINNET]: '0xd90430a0b1b5bf932586d7d52e67e2242b1276ad7944b41c21acd4f950671335',
156
156
  [Stage.TESTNET]: '0xf2c5b342b99544fbd225ed45a76096f7ed6199624d2f2f4d04b76e2afb84654e',
157
- [Stage.SANDBOX]: '0x85b0f99e5deac3097ed38a62ea13168f52abd5b3077afcf748bb3d5dc0fb3ecb',
157
+ [Stage.SANDBOX]: '0x2159c22966983d2d804d2f4af47010cbdbc18c035ac2a4b858ffb3c87e1b0ad2',
158
+ }
159
+
160
+ export const PACKAGE_WORKER_REGISTRY_ADDRESS: { [stage in Stage]?: string } = {
161
+ [Stage.MAINNET]: '',
162
+ [Stage.TESTNET]: '',
163
+ [Stage.SANDBOX]: '0x64b860fa15369ce57c4f25e4128be18b1844df88d0ac3ca4729730bfb0160c04',
164
+ }
165
+
166
+ export const PACKAGE_WORKER_COMMON_ADDRESS: { [stage in Stage]?: string } = {
167
+ [Stage.MAINNET]: '0x6b29b0abf9da88be53a9ea1dfab8f600930b9ab6961eee65d67c1eecdd8cb695',
168
+ [Stage.TESTNET]: '0xbd1b4591ff06b36113c28ec2f5ce10151b6a2998699e3d8364ec9f77efe950c8',
169
+ [Stage.SANDBOX]: '0x8db3d8beb1a399c22e89c33e5c1161f358ba784c975d0da708fd50f793596b1b',
158
170
  }
159
171
 
160
172
  export const OBJECT_ENDPOINT_V2_ADDRESS: { [stage in Stage]?: string } = {
@@ -166,67 +178,67 @@ export const OBJECT_ENDPOINT_V2_ADDRESS: { [stage in Stage]?: string } = {
166
178
  export const OBJECT_SIMPLE_MESSAGE_LIB_ADDRESS: { [stage in Stage]?: string } = {
167
179
  [Stage.MAINNET]: '0xd18907d32aa9e95fc2eed2d02fec562442877bec8680620c05fa5b3c110ccd81',
168
180
  [Stage.TESTNET]: '0xe893810a3399bf50ec4fd7affa931bcb66dbab21e37aff80b7ce73f25e78ac4f',
169
- [Stage.SANDBOX]: '0xea4468c7d3fdcf63634857ca158cd78357b91fed6986f5f598a1b2269c5f74b1',
181
+ [Stage.SANDBOX]: '0x864826f7adeea86fe8ea106fc84ce1fdead6ac95fc61571b23050693fb265ce0',
170
182
  }
171
183
 
172
184
  export const OBJECT_SIMPLE_MESSAGE_LIB_ADMIN_CAP_ADDRESS: { [stage in Stage]?: string } = {
173
185
  [Stage.MAINNET]: '0x617aceffed0b17cc5b5f5ad4cd1e8b9d965a9ef73a923b474e4763dec7c175f6',
174
186
  [Stage.TESTNET]: '0x3115ca5bf047a17629099b1845db595a42b4e7d5c5916439036c18d0afd7181b',
175
- [Stage.SANDBOX]: '0xf474469de2f59e91fc36e78a51f87f80ac07b37b7a6f7cbe5b52fc7d6e3afd5e',
187
+ [Stage.SANDBOX]: '0xcba6bc54cb111599b88422261428b558d2ac841928121b05d88b79e25e25ea34',
176
188
  }
177
189
 
178
190
  export const OBJECT_SIMPLE_MESSAGE_LIB_PTB_BUILDER_ADDRESS: { [stage in Stage]?: string } = {
179
191
  [Stage.MAINNET]: '0x2a0c8a426823cc7fcb89dd849810b42643fda344286d493d0ce8593d9b2be280',
180
192
  [Stage.TESTNET]: '0xacaa1b7ed87084cea9c593d1df4a76bfa0bce1b214559d79de8a9167705292a3',
181
- [Stage.SANDBOX]: '0x138ae291c77e9b76b20df65e73cd64845e1b8050199d79df942c90b1493190f1',
193
+ [Stage.SANDBOX]: '0x144da379fa9f0ac5345acc44c2f21d7352d16cbd3dc79245f864ef4225fd4c93',
182
194
  }
183
195
 
184
196
  export const OBJECT_ULN_302_ADDRESS: { [stage in Stage]?: string } = {
185
197
  [Stage.MAINNET]: '0x7d140391ed97fcdb3f87aa13a7727b7354cb0a6ca2a3e7156f8b3767dd634266',
186
198
  [Stage.TESTNET]: '0xea27cd132fe6e4cad973f642f1450b0da2490b5350e6104365a7a48a3d97fb1e',
187
- [Stage.SANDBOX]: '0x620f1d9472748cc2f433ff089503bc82ea711997eed892c618c601d674429d6f',
199
+ [Stage.SANDBOX]: '0x63d6e1bb1295d99f7b1fbe464ad4ba63d782b1c64e7c34e410f0eda9340489f7',
188
200
  }
189
201
 
190
202
  export const OBJECT_ULN_302_ADMIN_CAP_ADDRESS: { [stage in Stage]?: string } = {
191
203
  [Stage.MAINNET]: '0xece25d7e8aad8a6295a7821bd4b7f29896714c3fc8472a5e7dbb19d67ff77e00',
192
204
  [Stage.TESTNET]: '0x791622d24d7ec1c33beea371f7d2e1d8cffaaa6596a785f61684227ccd379270',
193
- [Stage.SANDBOX]: '0x4550322004e4ee9b0c89c4a8bfc5055f3395d24aae2cbf82d759b0010e54e02d',
205
+ [Stage.SANDBOX]: '0xd904df9bfe01c30011efd96ccfefcb3abed2945435df1cfc49c4bfa1c4f95adc',
194
206
  }
195
207
 
196
208
  export const OBJECT_ULN_302_VERIFICATION_ADDRESS: { [stage in Stage]?: string } = {
197
209
  [Stage.MAINNET]: '0x2e672e3cb4f4992b3e790ce50c7b3e464a60633ca5f68de3039cc5f20116f6e7',
198
210
  [Stage.TESTNET]: '0xf308d39e3bab9ec37019d955c31abac6b3e7444f915a77be203f92c1d6a9a67e',
199
- [Stage.SANDBOX]: '0x99e8ee82810735830e791c913b08792af76df771d6123b67f74ad03971590f58',
211
+ [Stage.SANDBOX]: '0x3c6b556cec3fda76eabf995e557b752934bda07ddbac3b5060bb9aadb1adf992',
200
212
  }
201
213
 
202
214
  export const OBJECT_ULN_302_PTB_BUILDER_ADDRESS: { [stage in Stage]?: string } = {
203
215
  [Stage.MAINNET]: '0xb41c8c88899debceb5982ff0333a0026bb68159758af8557ee1b12433f539ec8',
204
216
  [Stage.TESTNET]: '0x44c82a3a33294c1ac36f1baf931f57ec0a60bb183b5474211b8397465e3dffac',
205
- [Stage.SANDBOX]: '0x7c6d6ebf29676243c0617cfe81af47b209ac89fd8aba6db037b2db71c304aa05',
217
+ [Stage.SANDBOX]: '0x459700f707abc1b7b60676fa2382cef6dcfc574ff43262286fbed5697c6b3d24',
206
218
  }
207
219
 
208
220
  export const OBJECT_TREASURY_ADDRESS: { [stage in Stage]?: string } = {
209
221
  [Stage.MAINNET]: '0xa6fd139692050fb7fea2a5d924d5cc637b2b617982b1537b98ab51f6074a6335',
210
222
  [Stage.TESTNET]: '0xa082a4eac93a7525738511f7a00816f982545296175e54be355f813eebe20691',
211
- [Stage.SANDBOX]: '0xd7349f1c051631d0d3c0b15e209e5b61bce32232917bc7da18a54d358c6fd482',
223
+ [Stage.SANDBOX]: '0xe99cf16874135917f82fd1efe1a56d1adcfaed260458476717e5f2237b19d653',
212
224
  }
213
225
 
214
226
  export const OBJECT_TREASURY_ADMIN_CAP_ADDRESS: { [stage in Stage]?: string } = {
215
227
  [Stage.MAINNET]: '0x6fafabbb6f8dd963fb926b2075de90ed86e550bc67c900768e6b4c6002bc2b7d',
216
228
  [Stage.TESTNET]: '0x3ec6669b54589abb6d12aa338c4f2962a5d1ab835e6385242698f3efd9ae2582',
217
- [Stage.SANDBOX]: '0x9d05bfa469241242ab411003fe9701eb884910d42fbf8fed406d1c773f9f3b23',
229
+ [Stage.SANDBOX]: '0xeb957d7143a15ed7d919f4b81a1784b886a8f5f6f9a4c82b78c82532aafa460d',
218
230
  }
219
231
 
220
232
  export const OBJECT_BLOCKED_MESSAGE_LIB_ADDRESS: { [stage in Stage]?: string } = {
221
233
  [Stage.MAINNET]: '0x48761f1a6591f4ad761f8ef9ec85ad6d5255805c35d4c9a90c97c40e7820aa85',
222
234
  [Stage.TESTNET]: '0xcc83422f225aef3300596dae1119510cf56d620a686dc1e73c9db15c49d70e31',
223
- [Stage.SANDBOX]: '0x37e25e9e1858d6334759d00fd2e1687fc91184cfcb7466f160a4ad6d2340b763',
235
+ [Stage.SANDBOX]: '0xee5785033a64ec145d7a276a6cc5e1edd3f1ea198e9b64f3cc50390d8ba0e81e',
224
236
  }
225
237
 
226
238
  export const OBJECT_BLOCKED_MESSAGE_LIB_PTB_BUILDER_ADDRESS: { [stage in Stage]?: string } = {
227
239
  [Stage.MAINNET]: '0xba9a66cdc77ae59264b7481e6d0d04426f380169b9afbb5176aaf58718fad6d1',
228
240
  [Stage.TESTNET]: '0x28d0ec1e88734b94e38d2a8305cb89b9e81bdee41f71f4159166e99f058758c5',
229
- [Stage.SANDBOX]: '0x2e042019cbdd824e014337b71e8a1595b2dc00a62b8416cedb86862e089c56dd',
241
+ [Stage.SANDBOX]: '0x6e1999cb4c9d18f9421dc61368cf0dd4209b4339e05453ab64f56686b4428c37',
230
242
  }
231
243
 
232
244
  export const OBJECT_DISCOVERY_ADDRESS: { [stage in Stage]?: string } = {
@@ -238,19 +250,19 @@ export const OBJECT_DISCOVERY_ADDRESS: { [stage in Stage]?: string } = {
238
250
  export const OBJECT_COUNTER_ADDRESS: { [stage in Stage]?: string } = {
239
251
  [Stage.MAINNET]: '0xe44f7b2ff80b8450e0d09ec84198dd22d9e2ad6e9c9688d2db605736b99ae965',
240
252
  [Stage.TESTNET]: '0x85e63925789db09ee8021dfa66cb61a31913861b4abf7d97689061cf113ca61a',
241
- [Stage.SANDBOX]: '0x9868f0aa8c2b7abb154b37983fc68d806a55e9c371c2ba6461924755b92b0d5b',
253
+ [Stage.SANDBOX]: '0xb03d5554da058538f2f1a7dead5bb8ecb0802335b8be4679a5d1cecb62795dcb',
242
254
  }
243
255
 
244
256
  export const OBJECT_COUNTER_OAPP_ADDRESS: { [stage in Stage]?: string } = {
245
257
  [Stage.MAINNET]: '0x84e16eed83a2e9787860bd0324a3a69adc9ec181e5f7f2bfcca11222c113414c',
246
258
  [Stage.TESTNET]: '0xf96322c7067fb9dbd77c7cc62bd35490dc86db507837b4310eacaef3b327ce75',
247
- [Stage.SANDBOX]: '0xc5374916e92417624d2aec0b39ef636188b69cbce42afc7beeab9341ddc8a449',
259
+ [Stage.SANDBOX]: '0xe2c538b0b8b821959a72c527079e007916d1c9682c7c978566db598e72ddfaed',
248
260
  }
249
261
 
250
262
  export const OBJECT_COUNTER_ADMIN_CAP_ADDRESS: { [stage in Stage]?: string } = {
251
263
  [Stage.MAINNET]: '0x7c1250bbfb0e72ff58985112746d361ad729ac6f47a404c76d4e447b93b49984',
252
264
  [Stage.TESTNET]: '0x63350eccf073e3b86ab7dd04566e8b62d4fa184f633ef383998b3230f66cc1de',
253
- [Stage.SANDBOX]: '0xd78bf856406ba40f98a985efbf96effed2b0d007b8ac41703c4e109d50f808db',
265
+ [Stage.SANDBOX]: '0x34645a0e765373545d2f219a64c01b34bc9b55b6f2d725719943a493dc8bd3ce',
254
266
  }
255
267
 
256
268
  export const OBJECT_ENDPOINT_ADMIN_CAP_ADDRESS: { [stage in Stage]?: string } = {
@@ -262,31 +274,31 @@ export const OBJECT_ENDPOINT_ADMIN_CAP_ADDRESS: { [stage in Stage]?: string } =
262
274
  export const OBJECT_ENDPOINT_PTB_BUILDER_ADDRESS: { [stage in Stage]?: string } = {
263
275
  [Stage.MAINNET]: '0x2954f9997631409cf067785477b800ced4a2a9ccc75032076f8129ee07ca2caa',
264
276
  [Stage.TESTNET]: '0x060ba8cc7a0e858c138ff00391bfec71dc863ac7d35cb36b14f4e52987cb9542',
265
- [Stage.SANDBOX]: '0xa663c963cf65ff7f8b8213510ebfc8efcd4ffd4578b44fc009e2d8333571c132',
277
+ [Stage.SANDBOX]: '0xddd0c803ff273b7179c7d7889006cb202fb44fc09ccbc21188892cb90493f2da',
266
278
  }
267
279
 
268
280
  export const OBJECT_ENDPOINT_PTB_BUILDER_ADMIN_CAP_ADDRESS: { [stage in Stage]?: string } = {
269
281
  [Stage.MAINNET]: '0x2a705654d837e75ee88e1f03003cccf3faa9a683cf0434468745532cc55e148f',
270
282
  [Stage.TESTNET]: '0xd5da31144a1a30e4fea6ad9074b04fc732d95ee4f84575ade95ec524ee351abf',
271
- [Stage.SANDBOX]: '0xb42a4f289f13c535ef05139a3521ae4a2ee4049b3ec89793640db3651f1a1155',
283
+ [Stage.SANDBOX]: '0xd86364d1e4370017b9ab7473c3a4fea87b182c75fafac4175fe463ce9c07b29f',
272
284
  }
273
285
 
274
286
  export const OBJECT_DVN_ADDRESS: { [stage in Stage]?: string } = {
275
287
  [Stage.MAINNET]: '0x607471cac2ed025cbb2874cd5a175e6000939747097bbd0ea89664c1fbe9672c',
276
288
  [Stage.TESTNET]: '0xd97457fdd827f0b9d9c35cb9b6a8560364822c57545a10be53106dfc7c26f2b4',
277
- [Stage.SANDBOX]: '0x820eecc983c7734a644ea8c23bcf0158d51d713799518da8ae20441d0d413f53',
289
+ [Stage.SANDBOX]: '0x51ce5f5fd016844276d19118b87d06ee06eb478d4b09732cdedeb6058de222e3',
278
290
  }
279
291
 
280
292
  export const OBJECT_DVN_CAP_ADDRESS: { [stage in Stage]?: string } = {
281
293
  [Stage.MAINNET]: '0x67d3d9e3537fc8ad2efd674bdce3b7f98ba2892971ab91a6f3bb611844dcc2e1',
282
294
  [Stage.TESTNET]: '0x6b29694aaf32600eba62f0f91aed2c31a7c34540a513403f23351a8cd1372d3c',
283
- [Stage.SANDBOX]: '0xb437c295ba8e5187a1a159ca681d30e49e5a4460fc7109a780ac77525a8bc610',
295
+ [Stage.SANDBOX]: '0x688d97f7e0c4d6ff3f9155f70cad96ece1c0e74fc9ac0090fa90ce3ef413792c',
284
296
  }
285
297
 
286
298
  export const OBJECT_DVN_FEE_LIB_ADDRESS: { [stage in Stage]?: string } = {
287
299
  [Stage.MAINNET]: '0x5ff9119265b39b59260a7f1df2b7af5390f39fb33aeaf8b099e1ddc6673da1f0',
288
300
  [Stage.TESTNET]: '0xc0f5802549ca974579ff193affff53a1566fffc1586f83584fc3432f85dc4859',
289
- [Stage.SANDBOX]: '0xa6a15071655295bb5b4796b99cf636b2945026d30dc9884452150470d3c892bb',
301
+ [Stage.SANDBOX]: '0xae4114801fffb48fa6292941abe408abf96fbff5a57c7dba94a156400413da6c',
290
302
  }
291
303
 
292
304
  export const OBJECT_DVN_FEE_LIB_ADMIN_CAP_ADDRESS: { [stage in Stage]?: string } = {
@@ -298,25 +310,25 @@ export const OBJECT_DVN_FEE_LIB_ADMIN_CAP_ADDRESS: { [stage in Stage]?: string }
298
310
  export const OBJECT_EXECUTOR_ADDRESS: { [stage in Stage]?: string } = {
299
311
  [Stage.MAINNET]: '0xf5848ad4863f3594a96b4af26ab8d47414e5d17a9da76db1ab1489f1db3a75ae',
300
312
  [Stage.TESTNET]: '0x69c3cd711b6730e699e2423a15f75c0fc9d96b3f6596bca140452184381a4abe',
301
- [Stage.SANDBOX]: '0x260c641e53b00362fe664f096154a3579d6744ad898f939345c3d9feb3063e1a',
313
+ [Stage.SANDBOX]: '0x5ceaf50a5cd0b9770ba8f78a1374d22043ad3bd00f60a06a5f2d0f34265da3c0',
302
314
  }
303
315
 
304
316
  export const OBJECT_EXECUTOR_CAP_ADDRESS: { [stage in Stage]?: string } = {
305
317
  [Stage.MAINNET]: '0x4f86b866513949acb7728b33dc9334c9b0439c5f368f527b99db3cbf69a0282f',
306
318
  [Stage.TESTNET]: '0x19bf02f900658874be5cb12af901008420c8e09fce73bfd9359dd78914a33eda',
307
- [Stage.SANDBOX]: '0x508006794a8b5ad733e8aefec4e02d5e4c4ceb6216a19444b5bb41fea95806f8',
319
+ [Stage.SANDBOX]: '0x2afea3cb8704594b3074b9b63b13f119f6548932b308cbd6e47d5847ef172d1d',
308
320
  }
309
321
 
310
322
  export const OBJECT_EXECUTOR_OWNER_CAP_ADDRESS: { [stage in Stage]?: string } = {
311
323
  [Stage.MAINNET]: '0x26082897ee964836468287f28e091078257d4fa27a6b309321b3d171cef3850d',
312
324
  [Stage.TESTNET]: '0x6bbd9c69eaa8e52245a7c248c04847b0e1d31ed6945f5e2ada2e4d83c2f4c655',
313
- [Stage.SANDBOX]: '0x8aaf8449827152a104767fa1b877fd5fb7fdc4b6d9f7680f55657e4511fd59c3',
325
+ [Stage.SANDBOX]: '0xce0c4802ffccae464de8611a364e3f2fa22fe767ee2ce5c3b62eecea4d8ee34b',
314
326
  }
315
327
 
316
328
  export const OBJECT_EXECUTOR_FEE_LIB_ADDRESS: { [stage in Stage]?: string } = {
317
329
  [Stage.MAINNET]: '0x1d505d1cfdd0ac8938826269b93c35cec0cd97ba783e073fa3b0206b35ca0378',
318
330
  [Stage.TESTNET]: '0x8826aad865a485ec779b5f08c74c07dbad3063f58f7b66c5f099137af7024519',
319
- [Stage.SANDBOX]: '0x345c3909040f1d8da6b58e19fc5ff13dba8bcf35812796e27d63acf13d659fc1',
331
+ [Stage.SANDBOX]: '0x2c673198b2703cb2676896a97a2332c229487ea2e94ee254a095e2d0524ae376',
320
332
  }
321
333
 
322
334
  export const OBJECT_EXECUTOR_FEE_LIB_ADMIN_CAP_ADDRESS: { [stage in Stage]?: string } = {
@@ -328,17 +340,23 @@ export const OBJECT_EXECUTOR_FEE_LIB_ADMIN_CAP_ADDRESS: { [stage in Stage]?: str
328
340
  export const OBJECT_PRICE_FEED_ADDRESS: { [stage in Stage]?: string } = {
329
341
  [Stage.MAINNET]: '0x17a24b91f720a8f170386d920df3c605fe7a0b96e43424283b30b11ced0f0156',
330
342
  [Stage.TESTNET]: '0x10e0e26966b7eee36e0009e67c0deeb8f7e5ea1a42ecefca53bf2d5d22031ba4',
331
- [Stage.SANDBOX]: '0x58d4c62e24c842ad44eb1d890834de9b6c4c8dbf92c60bdae1ebb10ff655571e',
343
+ [Stage.SANDBOX]: '0x840c8c2aa1277d062ed6c10b4a787f13d18e624d4885baa63e7e5c2f4dba8dac',
332
344
  }
333
345
 
334
346
  export const OBJECT_PRICE_FEED_OWNER_CAP_ADDRESS: { [stage in Stage]?: string } = {
335
347
  [Stage.MAINNET]: '0x809d4b17a59a2b832b9222b09d4d6d805b6b2aaf340b6a52babea814ef5637a4',
336
348
  [Stage.TESTNET]: '0x6d42367426b654045c2c9eccf622caf43e552b3f983bbd293b1ef362e82504bd',
337
- [Stage.SANDBOX]: '0x34a4563571d8bdde8a8158c0ac16b651d1c262f7872f4a90f6d79989d20abbb0',
349
+ [Stage.SANDBOX]: '0xb916acae71a9a586042cb1a9209e31d3e3c3508e8471e4744dc2de0df18ceaf8',
338
350
  }
339
351
 
340
352
  export const OBJECT_PACKAGE_WHITELIST_VALIDATOR_ADDRESS: { [stage in Stage]?: string } = {
341
353
  [Stage.MAINNET]: '0x9d29be17482e050324db3a4b10755e4adc5a1aa062ed80528e0fbe94654055b5',
342
354
  [Stage.TESTNET]: '0xcdbefbceffe2d9f0c0d46733ef4be0145e7af60241962738e98f136bff1557e2',
343
- [Stage.SANDBOX]: '0x900e1fc855603149da6b418b8bdb18fa7aee7681447d6514c792f5c675a1d65b',
355
+ [Stage.SANDBOX]: '0x57da7adb5778eddf6547d29e80c29fb046f64e4854e06788af9ad3ba4810552b',
356
+ }
357
+
358
+ export const OBJECT_WORKER_REGISTRY_ADDRESS: { [stage in Stage]?: string } = {
359
+ [Stage.MAINNET]: '',
360
+ [Stage.TESTNET]: '',
361
+ [Stage.SANDBOX]: '0xfcc518cee8d68bf9872223a1b06359f41b78f94092c0c97cd21bde154ae170db',
344
362
  }
@@ -28,6 +28,7 @@ import {
28
28
  Uln302,
29
29
  Uln302PtbBuilder,
30
30
  Utils,
31
+ WorkerRegistry,
31
32
  Zro,
32
33
  } from './modules'
33
34
  import { ModuleOptions, ObjectOptions, PackageOptions } from './types'
@@ -162,7 +163,6 @@ export class ModuleManager {
162
163
  [Modules.Treasury]: new Treasury(packages.treasury, client, objects, this),
163
164
  [Modules.LayerZeroViews]: new LayerZeroViews(packages.layerzeroViews, client, objects, this),
164
165
  [Modules.PtbBuilder]: new PtbBuilder(packages.ptbMoveCall, client),
165
- [Modules.Oapp]: new OApp(packages.oapp, client, objects, this),
166
166
  })
167
167
  }
168
168
 
@@ -208,8 +208,12 @@ export class ModuleManager {
208
208
  return this.getModule(Modules.PtbBuilder)
209
209
  }
210
210
 
211
- getOApp(): OApp {
212
- return this.getModule(Modules.Oapp)
211
+ getOApp(client: SuiClient, callCapId: string, options?: ModuleOptions): OApp {
212
+ return this.getOrCreateModule(Modules.Oapp + callCapId, options, () => {
213
+ const packageId = options?.packageId ?? this.packages.oapp
214
+ const objects = this.mergeObjectsOptions(options)
215
+ return new OApp(packageId, callCapId, client, objects, this)
216
+ })
213
217
  }
214
218
 
215
219
  // === Non-core Module Getters (created on-demand with caching) ===
@@ -331,6 +335,14 @@ export class ModuleManager {
331
335
  })
332
336
  }
333
337
 
338
+ getWorkerRegistry(client: SuiClient, options?: ModuleOptions): WorkerRegistry {
339
+ return this.getOrCreateModule(Modules.WorkerRegistry, options, () => {
340
+ const packageId = options?.packageId ?? this.packages.workerRegistry
341
+ const objects = this.mergeObjectsOptions(options)
342
+ return new WorkerRegistry(packageId, client, objects, this)
343
+ })
344
+ }
345
+
334
346
  // === Private Utility Methods ===
335
347
 
336
348
  /**
@@ -64,9 +64,8 @@ export const EndpointErrorCode = {
64
64
 
65
65
  // OAppRegistry related errors (with OAppRegistry_ prefix)
66
66
  OAppRegistry_EInvalidLZReceiveInfo: 1,
67
- OAppRegistry_EInvalidOriginalPackage: 2,
68
- OAppRegistry_EOAppNotRegistered: 3,
69
- OAppRegistry_EOAppRegistered: 4,
67
+ OAppRegistry_EOAppNotRegistered: 2,
68
+ OAppRegistry_EOAppRegistered: 3,
70
69
 
71
70
  // Endpoint related errors (with Endpoint_ prefix)
72
71
  Endpoint_EAlreadyInitialized: 1,
@@ -7,11 +7,11 @@ import { EndpointId } from '@layerzerolabs/lz-definitions'
7
7
  import { ModuleManager } from '../../module-manager'
8
8
  import { MessagingFee, ObjectOptions } from '../../types'
9
9
  import {
10
+ IPTBValidator,
10
11
  asAddress,
11
12
  asBool,
12
13
  asBytes,
13
14
  asBytes32,
14
- asObject,
15
15
  asU32,
16
16
  asU64,
17
17
  asU8,
@@ -83,7 +83,8 @@ export class Counter {
83
83
  dstEid: EndpointId | TransactionArgument,
84
84
  msgType: number | TransactionArgument,
85
85
  options: Uint8Array | TransactionArgument,
86
- payInZero: boolean | TransactionArgument
86
+ payInZero: boolean | TransactionArgument,
87
+ validators?: IPTBValidator[]
87
88
  ): Promise<MessagingFee> {
88
89
  const tx = new Transaction()
89
90
  const quoteCall = tx.moveCall({
@@ -97,7 +98,7 @@ export class Counter {
97
98
  asBool(tx, payInZero),
98
99
  ],
99
100
  })
100
- return this.moduleManager.getEndpoint().quote(tx, quoteCall)
101
+ return this.moduleManager.getEndpoint().quote(tx, quoteCall, undefined, validators)
101
102
  }
102
103
 
103
104
  /**
@@ -121,7 +122,8 @@ export class Counter {
121
122
  sendValue: bigint | TransactionArgument,
122
123
  nativeFee: bigint | TransactionArgument,
123
124
  zroFee: bigint | TransactionArgument,
124
- refundAddress: string | TransactionArgument
125
+ refundAddress: string | TransactionArgument,
126
+ validators?: IPTBValidator[]
125
127
  ): Promise<void> {
126
128
  const [nativeToken] = tx.splitCoins(tx.gas, [asU64(tx, nativeFee)])
127
129
  const zroToken = isTransactionArgument(zroFee)
@@ -141,74 +143,55 @@ export class Counter {
141
143
  asAddress(tx, refundAddress),
142
144
  ],
143
145
  })
144
- await this.moduleManager.getEndpoint().populateSendTransaction(tx, incrementCall, sender)
146
+ await this.moduleManager.getEndpoint().populateSendTransaction(tx, incrementCall, sender, validators)
145
147
  }
146
148
 
147
149
  /**
148
- * Set peer counter on another chain
150
+ * Set LayerZero compose information for counter
149
151
  * @param tx - The transaction to add the move call to
150
- * @param messagingChannel - The messaging channel object ID or transaction argument
151
- * @param eid - The peer endpoint ID or transaction argument
152
- * @param peer - The peer counter address as bytes or transaction argument
152
+ * @param lzComposeInfo - LayerZero compose information as bytes
153
153
  */
154
- setPeerMoveCall(
155
- tx: Transaction,
156
- messagingChannel: string | TransactionArgument,
157
- eid: number | TransactionArgument,
158
- peer: Uint8Array | TransactionArgument
159
- ): void {
154
+ setLzComposeInfoMoveCall(tx: Transaction, lzComposeInfo: Uint8Array | TransactionArgument): void {
160
155
  tx.moveCall({
161
- target: this.#target('set_peer'),
156
+ target: this.#target('set_lz_compose_info'),
162
157
  arguments: [
163
158
  tx.object(this.objects.counter),
164
159
  tx.object(this.objects.counterOapp),
165
160
  tx.object(this.objects.counterAdminCap),
166
161
  tx.object(this.objects.endpointV2),
167
- asObject(tx, messagingChannel),
168
- asU32(tx, eid),
169
- asBytes32(tx, peer, this.moduleManager.getUtils()),
162
+ asBytes(tx, lzComposeInfo),
170
163
  ],
171
164
  })
172
165
  }
173
166
 
167
+ // === View Functions ===
168
+
174
169
  /**
175
- * Set delegate for the counter
170
+ * Get counter EID
176
171
  * @param tx - The transaction to add the move call to
177
- * @param newDelegate - The new delegate address or transaction argument
172
+ * @returns Transaction result containing the counter EID
178
173
  */
179
- setDelegateMoveCall(tx: Transaction, newDelegate: string | TransactionArgument): void {
180
- tx.moveCall({
181
- target: this.#target('set_delegate'),
182
- arguments: [
183
- tx.object(this.objects.counter),
184
- tx.object(this.objects.counterOapp),
185
- tx.object(this.objects.counterAdminCap),
186
- tx.object(this.objects.endpointV2),
187
- asAddress(tx, newDelegate),
188
- ],
174
+ getEidMoveCall(tx: Transaction): TransactionResult {
175
+ return tx.moveCall({
176
+ target: this.#target('eid'),
177
+ arguments: [tx.object(this.objects.counter)],
189
178
  })
190
179
  }
191
180
 
192
181
  /**
193
- * Set LayerZero compose information for counter
194
- * @param tx - The transaction to add the move call to
195
- * @param lzComposeInfo - LayerZero compose information as bytes
182
+ * Get counter EID
183
+ * @returns Promise<number> - The counter EID
196
184
  */
197
- setLzComposeInfoMoveCall(tx: Transaction, lzComposeInfo: Uint8Array | TransactionArgument): void {
198
- tx.moveCall({
199
- target: this.#target('set_lz_compose_info'),
200
- arguments: [
201
- tx.object(this.objects.counter),
202
- tx.object(this.objects.counterOapp),
203
- tx.object(this.objects.counterAdminCap),
204
- tx.object(this.objects.endpointV2),
205
- asBytes(tx, lzComposeInfo),
206
- ],
207
- })
185
+ async getEid(): Promise<number> {
186
+ return executeSimulate(
187
+ this.client,
188
+ (tx) => {
189
+ this.getEidMoveCall(tx)
190
+ },
191
+ (result) => bcs.U32.parse(result[0].value)
192
+ )
208
193
  }
209
194
 
210
- // === View Functions ===
211
-
212
195
  /**
213
196
  * Get call capability address for counter
214
197
  * @param tx - The transaction to add the move call to