Skip to content

Commit

Permalink
Add a flag for enabling msm API in Move (on only in devnet), and enab…
Browse files Browse the repository at this point in the history
…le EC ops (#16839)

## Description 

Add a flag for enabling msm API in Move (on only in devnet), and also
enable EC ops in all networks.
Cherrypick of #16838 (on top of #16795)

## Test Plan 

How did you test the new or updated feature?

---
If your changes are not user-facing and do not break anything, you can
skip the following section. Otherwise, please briefly describe what has
changed under the Release Notes section.

### Type of Change (Check all that apply)

- [x] protocol change
- [ ] user-visible impact
- [ ] breaking change for a client SDKs
- [x] breaking change for FNs (FN binary must upgrade)
- [x] breaking change for validators or node operators (must upgrade
binaries)
- [ ] breaking change for on-chain data layout
- [ ] necessitate either a data wipe or data migration

### Release notes
Enable EC operations in Move.
  • Loading branch information
benr-ml authored Mar 25, 2024
1 parent 66c18f8 commit 5f2bfb1
Show file tree
Hide file tree
Showing 61 changed files with 2,718 additions and 1,901 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@ Response: {
"data": {
"availableRange": {
"first": {
"digest": "EU3dhdvCxsQsXQBEQrbmL2yfcqCrBzjXGhyydP1VU4Li",
"digest": "JARmT1R4sz6hqtgfgWg7jxwUX9y1BSKQeesmLvSTpqmA",
"sequenceNumber": 0
},
"last": {
"digest": "EU3dhdvCxsQsXQBEQrbmL2yfcqCrBzjXGhyydP1VU4Li",
"digest": "JARmT1R4sz6hqtgfgWg7jxwUX9y1BSKQeesmLvSTpqmA",
"sequenceNumber": 0
}
},
"first": {
"digest": "EU3dhdvCxsQsXQBEQrbmL2yfcqCrBzjXGhyydP1VU4Li",
"digest": "JARmT1R4sz6hqtgfgWg7jxwUX9y1BSKQeesmLvSTpqmA",
"sequenceNumber": 0
},
"last": {
"digest": "EU3dhdvCxsQsXQBEQrbmL2yfcqCrBzjXGhyydP1VU4Li",
"digest": "JARmT1R4sz6hqtgfgWg7jxwUX9y1BSKQeesmLvSTpqmA",
"sequenceNumber": 0
}
}
Expand All @@ -35,20 +35,20 @@ Response: {
"data": {
"availableRange": {
"first": {
"digest": "EU3dhdvCxsQsXQBEQrbmL2yfcqCrBzjXGhyydP1VU4Li",
"digest": "JARmT1R4sz6hqtgfgWg7jxwUX9y1BSKQeesmLvSTpqmA",
"sequenceNumber": 0
},
"last": {
"digest": "H8T58xKkUcAw8SwJbyd8ziVFS2g6tRDy8gW7AKp6yaa",
"digest": "57UU4GJKJYmyfnX8g6mKVkzzcQWy9F7ZMhA7MoegdtXj",
"sequenceNumber": 2
}
},
"first": {
"digest": "EU3dhdvCxsQsXQBEQrbmL2yfcqCrBzjXGhyydP1VU4Li",
"digest": "JARmT1R4sz6hqtgfgWg7jxwUX9y1BSKQeesmLvSTpqmA",
"sequenceNumber": 0
},
"last": {
"digest": "H8T58xKkUcAw8SwJbyd8ziVFS2g6tRDy8gW7AKp6yaa",
"digest": "57UU4GJKJYmyfnX8g6mKVkzzcQWy9F7ZMhA7MoegdtXj",
"sequenceNumber": 2
}
}
Expand Down
100 changes: 50 additions & 50 deletions crates/sui-graphql-e2e-tests/tests/call/dynamic_fields.exp
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ Response: {
{
"name": {
"type": {
"repr": "bool"
"repr": "u64"
},
"data": {
"Bool": false
"Number": "0"
},
"bcs": "AA=="
"bcs": "AAAAAAAAAAA="
},
"value": {
"__typename": "MoveValue"
Expand All @@ -49,40 +49,40 @@ Response: {
{
"name": {
"type": {
"repr": "vector<u8>"
"repr": "u64"
},
"data": {
"Vector": []
"Number": "0"
},
"bcs": "AA=="
"bcs": "AAAAAAAAAAA="
},
"value": {
"__typename": "MoveValue"
"__typename": "MoveObject"
}
},
{
"name": {
"type": {
"repr": "u64"
"repr": "vector<u8>"
},
"data": {
"Number": "0"
"Vector": []
},
"bcs": "AAAAAAAAAAA="
"bcs": "AA=="
},
"value": {
"__typename": "MoveObject"
"__typename": "MoveValue"
}
},
{
"name": {
"type": {
"repr": "u64"
"repr": "bool"
},
"data": {
"Number": "0"
"Bool": false
},
"bcs": "AAAAAAAAAAA="
"bcs": "AA=="
},
"value": {
"__typename": "MoveValue"
Expand Down Expand Up @@ -112,12 +112,12 @@ Response: {
{
"name": {
"type": {
"repr": "bool"
"repr": "u64"
},
"data": {
"Bool": false
"Number": "0"
},
"bcs": "AA=="
"bcs": "AAAAAAAAAAA="
},
"value": {
"__typename": "MoveValue"
Expand All @@ -126,40 +126,40 @@ Response: {
{
"name": {
"type": {
"repr": "vector<u8>"
"repr": "u64"
},
"data": {
"Vector": []
"Number": "0"
},
"bcs": "AA=="
"bcs": "AAAAAAAAAAA="
},
"value": {
"__typename": "MoveValue"
"__typename": "MoveObject"
}
},
{
"name": {
"type": {
"repr": "u64"
"repr": "vector<u8>"
},
"data": {
"Number": "0"
"Vector": []
},
"bcs": "AAAAAAAAAAA="
"bcs": "AA=="
},
"value": {
"__typename": "MoveObject"
"__typename": "MoveValue"
}
},
{
"name": {
"type": {
"repr": "u64"
"repr": "bool"
},
"data": {
"Number": "0"
"Bool": false
},
"bcs": "AAAAAAAAAAA="
"bcs": "AA=="
},
"value": {
"__typename": "MoveValue"
Expand All @@ -180,67 +180,67 @@ Response: {
{
"name": {
"type": {
"repr": "bool"
"repr": "u64"
},
"data": {
"Bool": false
"Number": "0"
},
"bcs": "AA=="
"bcs": "AAAAAAAAAAA="
},
"value": {
"bcs": "AgAAAAAAAAA=",
"bcs": "AAAAAAAAAAA=",
"data": {
"Number": "2"
"Number": "0"
},
"__typename": "MoveValue"
}
},
{
"name": {
"type": {
"repr": "vector<u8>"
"repr": "u64"
},
"data": {
"Vector": []
"Number": "0"
},
"bcs": "AA=="
"bcs": "AAAAAAAAAAA="
},
"value": {
"bcs": "AQAAAAAAAAA=",
"data": {
"Number": "1"
},
"__typename": "MoveValue"
"__typename": "MoveObject"
}
},
{
"name": {
"type": {
"repr": "u64"
"repr": "vector<u8>"
},
"data": {
"Number": "0"
"Vector": []
},
"bcs": "AAAAAAAAAAA="
"bcs": "AA=="
},
"value": {
"__typename": "MoveObject"
"bcs": "AQAAAAAAAAA=",
"data": {
"Number": "1"
},
"__typename": "MoveValue"
}
},
{
"name": {
"type": {
"repr": "u64"
"repr": "bool"
},
"data": {
"Number": "0"
"Bool": false
},
"bcs": "AAAAAAAAAAA="
"bcs": "AA=="
},
"value": {
"bcs": "AAAAAAAAAAA=",
"bcs": "AgAAAAAAAAA=",
"data": {
"Number": "0"
"Number": "2"
},
"__typename": "MoveValue"
}
Expand Down
36 changes: 18 additions & 18 deletions crates/sui-graphql-e2e-tests/tests/call/simple.exp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ gas summary: computation_cost: 1000000, storage_cost: 2302800, storage_rebate:
task 4 'view-object'. lines 34-34:
Owner: Account Address ( validator_0 )
Version: 1
Contents: sui::coin::Coin<sui::sui::SUI> {id: sui::object::UID {id: sui::object::ID {bytes: fake(0,0)}}, balance: sui::balance::Balance<sui::sui::SUI> {value: 300000000000000u64}}
Contents: sui_system::validator_cap::UnverifiedValidatorOperationCap {id: sui::object::UID {id: sui::object::ID {bytes: fake(0,0)}}, authorizer_validator_address: validator_0}

task 5 'view-object'. lines 36-36:
Owner: Account Address ( A )
Expand All @@ -44,7 +44,7 @@ task 9 'advance-epoch'. lines 44-44:
Epoch advanced: 5

task 10 'view-checkpoint'. lines 46-46:
CheckpointSummary { epoch: 5, seq: 10, content_digest: ENfQwavLPwgU3TRHEGgkPicCHCSsRbaWEXedMEh52FTF,
CheckpointSummary { epoch: 5, seq: 10, content_digest: 3HokHbby4j1nXh6YavcJtXmH5csEsHzj1zgk8H3qjDZt,
epoch_rolling_gas_cost_summary: GasCostSummary { computation_cost: 0, storage_cost: 0, storage_rebate: 0, non_refundable_storage_fee: 0 }}

task 11 'run-graphql'. lines 48-53:
Expand Down Expand Up @@ -116,8 +116,8 @@ Response: {
"edges": [
{
"node": {
"address": "0xa3c7c3dfbc44e209da24e51a4d0178790c8a5c0b9eaea7db7633becc230aa451",
"digest": "EhgVazZ8Az1CmvhDrk2rEASghuBkrjVuvjS3ZgTEgyQr",
"address": "0x66916f5bb7fd41da7099a05e1dd16772eabb3884c83cedb059307a20aae74118",
"digest": "67BugYHEUFWdFxnyYHze7Rqbrtte1MWZQJXw9PRZQF5",
"owner": {
"__typename": "AddressOwner"
}
Expand All @@ -142,8 +142,8 @@ Response: {
"edges": [
{
"node": {
"address": "0xa3c7c3dfbc44e209da24e51a4d0178790c8a5c0b9eaea7db7633becc230aa451",
"digest": "EhgVazZ8Az1CmvhDrk2rEASghuBkrjVuvjS3ZgTEgyQr",
"address": "0x66916f5bb7fd41da7099a05e1dd16772eabb3884c83cedb059307a20aae74118",
"digest": "67BugYHEUFWdFxnyYHze7Rqbrtte1MWZQJXw9PRZQF5",
"owner": {
"__typename": "AddressOwner"
}
Expand All @@ -157,53 +157,53 @@ Response: {
"edges": [
{
"node": {
"address": "0x3f6ccde372e62df6de3c652df435b145ef34c815dc8be50a3876c5ab0599c099",
"digest": "7susHeYmYFmsK6YDFNy13t7KVGDkW5SXDEQM1tc9gA6L",
"address": "0x3e3fbd2c7a9ee6d329806b2afaaeb72bceb113ba81ea07d956020a52004fd87e",
"digest": "WSneidrnpzLrR2V4LVRdLXxQSDHwToovoBw51Rr32K7",
"owner": {
"__typename": "AddressOwner"
}
}
},
{
"node": {
"address": "0x5542153b075a3a9b2a05b6a54a26a1cbb131ccd83b24a03c885ed6fef5fa1675",
"digest": "F63NRDiptJYtNQFMnZYJ1mZPcTk8X4QbE124rirj8JT",
"address": "0x61f70e2fa9d9eee53534a4f99834c5b689a992451695c49b59006ed01210454c",
"digest": "7boWXDWN6ywqK8RPog5N9LoY2Zkvf52M7V7ys1rdPhpG",
"owner": {
"__typename": "AddressOwner"
}
}
},
{
"node": {
"address": "0x571a0f3483188e74d2cca9772094e75d055ad0352c8fa61cd27ee4fde4621802",
"digest": "ewBZ2BfFKaZ4GweGQhEzPE8EfC1178KuQTyvFJ8xyNQ",
"address": "0xb6b8d73a76ea6c39ae170ae7af595eb0606423718fe131a498e6b64d72d2261a",
"digest": "AYQjz13onxL7CYfqg1e1PvDw8HBygq3DZwBdursYiPqG",
"owner": {
"__typename": "AddressOwner"
}
}
},
{
"node": {
"address": "0x68580d59bedb9728513dc2bc4a6423e7a9578247c756edf8bee27fab3184c1c4",
"digest": "5D9S6korUnBwnmCiZXH6yQTkCVrbYQfPVWFuGdmjqH2",
"address": "0xcb53530ff6b90d7c17a4149d9b02cc1378cc9b86e25e392a159cbdb8f29f2d86",
"digest": "BKewoz2MGnTaciQmkEiNpzo1BSabUHL2uAKqMo2AJ6QD",
"owner": {
"__typename": "AddressOwner"
}
}
},
{
"node": {
"address": "0xa12246cb77f277b5117883c9b49b27462eab9a7a6799a20bd4c43b6b746c337d",
"digest": "GGFTDRYNRbbk9N9F3ZTmUJ15QfNdegTRaY8k2NLZeBjk",
"address": "0xcd8b546cd18a69864815f84e3f755d8fa5c88c5767e901ccc29294a6b76e3335",
"digest": "4XJNQSoWw5x4RsBXUTWWpBXq6142urzQa4Nv1x8dDsEX",
"owner": {
"__typename": "AddressOwner"
}
}
},
{
"node": {
"address": "0xff5f8a60d9aef74053e72c4205d200780ff0510580aef31379121c8304f2df1e",
"digest": "AExp4Lepi9ca2QrDbyg5V5FdYrV5SroWtsFkubjQXyed",
"address": "0xf6ef3ec2883352efc5e31698a5f972ffc1a6874b9d8e980ddb7d917551a0248c",
"digest": "Gt3DSZmdJBiGiNT7ffe5vj1HKv6AVaBkYxGTQAPZRAiH",
"owner": {
"__typename": "AddressOwner"
}
Expand Down
Loading

0 comments on commit 5f2bfb1

Please sign in to comment.