diff --git a/aptos-move/framework/cached-packages/src/aptos_framework_sdk_builder.rs b/aptos-move/framework/cached-packages/src/aptos_framework_sdk_builder.rs index e5c02e02da275f..040e5dfadccb3a 100644 --- a/aptos-move/framework/cached-packages/src/aptos_framework_sdk_builder.rs +++ b/aptos-move/framework/cached-packages/src/aptos_framework_sdk_builder.rs @@ -1121,9 +1121,9 @@ pub enum EntryFunctionCall { VestingWithoutStakingCreateVestingContractWithAmounts { shareholders: Vec, - amounts: Vec, - schedule_numerator: Vec, - schedule_denominator: u64, + shares: Vec, + vesting_numerators: Vec, + vesting_denominator: u64, start_timestamp_secs: u64, period_duration: u64, withdrawal_address: AccountAddress, @@ -1850,18 +1850,18 @@ impl EntryFunctionCall { }, VestingWithoutStakingCreateVestingContractWithAmounts { shareholders, - amounts, - schedule_numerator, - schedule_denominator, + shares, + vesting_numerators, + vesting_denominator, start_timestamp_secs, period_duration, withdrawal_address, contract_creation_seed, } => vesting_without_staking_create_vesting_contract_with_amounts( shareholders, - amounts, - schedule_numerator, - schedule_denominator, + shares, + vesting_numerators, + vesting_denominator, start_timestamp_secs, period_duration, withdrawal_address, @@ -5068,9 +5068,9 @@ pub fn vesting_without_staking_admin_withdraw( pub fn vesting_without_staking_create_vesting_contract_with_amounts( shareholders: Vec, - amounts: Vec, - schedule_numerator: Vec, - schedule_denominator: u64, + shares: Vec, + vesting_numerators: Vec, + vesting_denominator: u64, start_timestamp_secs: u64, period_duration: u64, withdrawal_address: AccountAddress, @@ -5088,9 +5088,9 @@ pub fn vesting_without_staking_create_vesting_contract_with_amounts( vec![], vec![ bcs::to_bytes(&shareholders).unwrap(), - bcs::to_bytes(&amounts).unwrap(), - bcs::to_bytes(&schedule_numerator).unwrap(), - bcs::to_bytes(&schedule_denominator).unwrap(), + bcs::to_bytes(&shares).unwrap(), + bcs::to_bytes(&vesting_numerators).unwrap(), + bcs::to_bytes(&vesting_denominator).unwrap(), bcs::to_bytes(&start_timestamp_secs).unwrap(), bcs::to_bytes(&period_duration).unwrap(), bcs::to_bytes(&withdrawal_address).unwrap(), @@ -7069,9 +7069,9 @@ mod decoder { Some( EntryFunctionCall::VestingWithoutStakingCreateVestingContractWithAmounts { shareholders: bcs::from_bytes(script.args().get(0)?).ok()?, - amounts: bcs::from_bytes(script.args().get(1)?).ok()?, - schedule_numerator: bcs::from_bytes(script.args().get(2)?).ok()?, - schedule_denominator: bcs::from_bytes(script.args().get(3)?).ok()?, + shares: bcs::from_bytes(script.args().get(1)?).ok()?, + vesting_numerators: bcs::from_bytes(script.args().get(2)?).ok()?, + vesting_denominator: bcs::from_bytes(script.args().get(3)?).ok()?, start_timestamp_secs: bcs::from_bytes(script.args().get(4)?).ok()?, period_duration: bcs::from_bytes(script.args().get(5)?).ok()?, withdrawal_address: bcs::from_bytes(script.args().get(6)?).ok()?, diff --git a/aptos-move/framework/supra-framework/doc/vesting_without_staking.md b/aptos-move/framework/supra-framework/doc/vesting_without_staking.md index 6aa2fef1106a08..fd1a383778704a 100644 --- a/aptos-move/framework/supra-framework/doc/vesting_without_staking.md +++ b/aptos-move/framework/supra-framework/doc/vesting_without_staking.md @@ -1114,7 +1114,7 @@ Create a vesting schedule with the given schedule of distributions, a vesting st -
public entry fun create_vesting_contract_with_amounts(admin: &signer, shareholders: vector<address>, amounts: vector<u64>, schedule_numerator: vector<u64>, schedule_denominator: u64, start_timestamp_secs: u64, period_duration: u64, withdrawal_address: address, contract_creation_seed: vector<u8>)
+
public entry fun create_vesting_contract_with_amounts(admin: &signer, shareholders: vector<address>, shares: vector<u64>, vesting_numerators: vector<u64>, vesting_denominator: u64, start_timestamp_secs: u64, period_duration: u64, withdrawal_address: address, contract_creation_seed: vector<u8>)
 
@@ -1126,9 +1126,9 @@ Create a vesting schedule with the given schedule of distributions, a vesting st
public entry fun create_vesting_contract_with_amounts (
     admin: &signer,
     shareholders: vector<address>,
-    amounts: vector<u64>,
-    schedule_numerator: vector<u64>,
-    schedule_denominator: u64,
+    shares: vector<u64>,
+    vesting_numerators: vector<u64>,
+    vesting_denominator: u64,
     start_timestamp_secs: u64,
     period_duration: u64,
     withdrawal_address: address,
@@ -1136,11 +1136,11 @@ Create a vesting schedule with the given schedule of distributions, a vesting st
 ) acquires AdminStore {
     assert!(!system_addresses::is_reserved_address(withdrawal_address),
         error::invalid_argument(EINVALID_WITHDRAWAL_ADDRESS),);
-    assert_account_is_registered_for_apt(withdrawal_address);
+    assert_account_is_registered_for_supra(withdrawal_address);
     assert!(vector::length(&shareholders) > 0,
         error::invalid_argument(ENO_SHAREHOLDERS));
     assert!(
-        vector::length(&shareholders) == vector::length(&amounts),
+        vector::length(&shareholders) == vector::length(&shares),
         error::invalid_argument(ESHARES_LENGTH_MISMATCH),
     );
 
@@ -1160,15 +1160,15 @@ Create a vesting schedule with the given schedule of distributions, a vesting st
     let (contract_signer, contract_signer_cap) = create_vesting_contract_account(admin,
         contract_creation_seed);
     let contract_signer_address = signer::address_of(&contract_signer);
-    let schedule = vector::map_ref(&schedule_numerator, |numerator| {
-        let event = fixed_point32::create_from_rational(*numerator, schedule_denominator);
+    let schedule = vector::map_ref(&vesting_numerators, |numerator| {
+        let event = fixed_point32::create_from_rational(*numerator, vesting_denominator);
         event
     });
 
     let vesting_schedule = create_vesting_schedule(schedule, start_timestamp_secs, period_duration);
     let shareholders_map = simple_map::create<address, VestingRecord>();
     let grant_amount = 0;
-    vector::for_each_reverse(amounts, |amount| {
+    vector::for_each_reverse(shares, |amount| {
         let shareholder = vector::pop_back(&mut shareholders);
         simple_map::add(&mut shareholders_map,
             shareholder,