@@ -709,7 +709,7 @@ fn test_cancel_rent_contract_with_active_node_contracts_fails() {
709
709
ext. execute_with ( || {
710
710
prepare_dedicated_farm_and_node ( ) ;
711
711
run_to_block ( 1 , Some ( & mut pool_state) ) ;
712
- TFTPriceModule :: set_prices ( Origin :: signed ( bob ( ) ) , 50 , 101 ) . unwrap ( ) ;
712
+ TFTPriceModule :: set_prices ( Origin :: signed ( alice ( ) ) , 50 , 101 ) . unwrap ( ) ;
713
713
714
714
let node_id = 1 ;
715
715
assert_ok ! ( SmartContractModule :: create_rent_contract(
@@ -743,7 +743,7 @@ fn test_node_contract_billing_details() {
743
743
ext. execute_with ( || {
744
744
prepare_farm_and_node ( ) ;
745
745
run_to_block ( 1 , Some ( & mut pool_state) ) ;
746
- TFTPriceModule :: set_prices ( Origin :: signed ( bob ( ) ) , 50 , 101 ) . unwrap ( ) ;
746
+ TFTPriceModule :: set_prices ( Origin :: signed ( alice ( ) ) , 50 , 101 ) . unwrap ( ) ;
747
747
748
748
let twin = TfgridModule :: twins ( 2 ) . unwrap ( ) ;
749
749
let initial_twin_balance = Balances :: free_balance ( & twin. account_id ) ;
@@ -830,7 +830,7 @@ fn test_node_contract_billing_details_with_solution_provider() {
830
830
prepare_solution_provider ( ) ;
831
831
832
832
run_to_block ( 1 , Some ( & mut pool_state) ) ;
833
- TFTPriceModule :: set_prices ( Origin :: signed ( bob ( ) ) , 50 , 101 ) . unwrap ( ) ;
833
+ TFTPriceModule :: set_prices ( Origin :: signed ( alice ( ) ) , 50 , 101 ) . unwrap ( ) ;
834
834
835
835
let twin = TfgridModule :: twins ( 2 ) . unwrap ( ) ;
836
836
let initial_twin_balance = Balances :: free_balance ( & twin. account_id ) ;
@@ -877,7 +877,7 @@ fn test_multiple_contracts_billing_loop_works() {
877
877
ext. execute_with ( || {
878
878
prepare_farm_and_node ( ) ;
879
879
run_to_block ( 1 , Some ( & mut pool_state) ) ;
880
- TFTPriceModule :: set_prices ( Origin :: signed ( bob ( ) ) , 50 , 101 ) . unwrap ( ) ;
880
+ TFTPriceModule :: set_prices ( Origin :: signed ( alice ( ) ) , 50 , 101 ) . unwrap ( ) ;
881
881
882
882
assert_ok ! ( SmartContractModule :: create_node_contract(
883
883
Origin :: signed( bob( ) ) ,
@@ -921,7 +921,7 @@ fn test_node_contract_billing_cycles() {
921
921
ext. execute_with ( || {
922
922
prepare_farm_and_node ( ) ;
923
923
run_to_block ( 1 , Some ( & mut pool_state) ) ;
924
- TFTPriceModule :: set_prices ( Origin :: signed ( bob ( ) ) , 50 , 101 ) . unwrap ( ) ;
924
+ TFTPriceModule :: set_prices ( Origin :: signed ( alice ( ) ) , 50 , 101 ) . unwrap ( ) ;
925
925
926
926
assert_ok ! ( SmartContractModule :: create_node_contract(
927
927
Origin :: signed( bob( ) ) ,
@@ -985,7 +985,7 @@ fn test_node_multiple_contract_billing_cycles() {
985
985
ext. execute_with ( || {
986
986
prepare_farm_and_node ( ) ;
987
987
run_to_block ( 1 , Some ( & mut pool_state) ) ;
988
- TFTPriceModule :: set_prices ( Origin :: signed ( bob ( ) ) , 50 , 101 ) . unwrap ( ) ;
988
+ TFTPriceModule :: set_prices ( Origin :: signed ( alice ( ) ) , 50 , 101 ) . unwrap ( ) ;
989
989
990
990
assert_ok ! ( SmartContractModule :: create_node_contract(
991
991
Origin :: signed( bob( ) ) ,
@@ -1040,7 +1040,7 @@ fn test_node_contract_billing_cycles_delete_node_cancels_contract() {
1040
1040
ext. execute_with ( || {
1041
1041
prepare_farm_and_node ( ) ;
1042
1042
run_to_block ( 1 , Some ( & mut pool_state) ) ;
1043
- TFTPriceModule :: set_prices ( Origin :: signed ( bob ( ) ) , 50 , 101 ) . unwrap ( ) ;
1043
+ TFTPriceModule :: set_prices ( Origin :: signed ( alice ( ) ) , 50 , 101 ) . unwrap ( ) ;
1044
1044
1045
1045
assert_ok ! ( SmartContractModule :: create_node_contract(
1046
1046
Origin :: signed( bob( ) ) ,
@@ -1133,7 +1133,7 @@ fn test_node_contract_only_public_ip_billing_cycles() {
1133
1133
ext. execute_with ( || {
1134
1134
prepare_farm_and_node ( ) ;
1135
1135
run_to_block ( 1 , Some ( & mut pool_state) ) ;
1136
- TFTPriceModule :: set_prices ( Origin :: signed ( bob ( ) ) , 50 , 101 ) . unwrap ( ) ;
1136
+ TFTPriceModule :: set_prices ( Origin :: signed ( alice ( ) ) , 50 , 101 ) . unwrap ( ) ;
1137
1137
1138
1138
assert_ok ! ( SmartContractModule :: create_node_contract(
1139
1139
Origin :: signed( bob( ) ) ,
@@ -1183,7 +1183,7 @@ fn test_node_contract_billing_cycles_cancel_contract_during_cycle_works() {
1183
1183
ext. execute_with ( || {
1184
1184
prepare_farm_and_node ( ) ;
1185
1185
run_to_block ( 1 , Some ( & mut pool_state) ) ;
1186
- TFTPriceModule :: set_prices ( Origin :: signed ( bob ( ) ) , 50 , 101 ) . unwrap ( ) ;
1186
+ TFTPriceModule :: set_prices ( Origin :: signed ( alice ( ) ) , 50 , 101 ) . unwrap ( ) ;
1187
1187
1188
1188
assert_ok ! ( SmartContractModule :: create_node_contract(
1189
1189
Origin :: signed( bob( ) ) ,
@@ -1280,7 +1280,7 @@ fn test_node_contract_billing_cycles_cancel_contract_during_cycle_without_balanc
1280
1280
ext. execute_with ( || {
1281
1281
prepare_farm_and_node ( ) ;
1282
1282
run_to_block ( 1 , Some ( & mut pool_state) ) ;
1283
- TFTPriceModule :: set_prices ( Origin :: signed ( bob ( ) ) , 50 , 101 ) . unwrap ( ) ;
1283
+ TFTPriceModule :: set_prices ( Origin :: signed ( alice ( ) ) , 50 , 101 ) . unwrap ( ) ;
1284
1284
1285
1285
let twin = TfgridModule :: twins ( 2 ) . unwrap ( ) ;
1286
1286
let initial_twin_balance = Balances :: free_balance ( & twin. account_id ) ;
@@ -1360,7 +1360,7 @@ fn test_node_contract_out_of_funds_should_move_state_to_graceperiod_works() {
1360
1360
ext. execute_with ( || {
1361
1361
prepare_farm_and_node ( ) ;
1362
1362
run_to_block ( 1 , Some ( & mut pool_state) ) ;
1363
- TFTPriceModule :: set_prices ( Origin :: signed ( bob ( ) ) , 50 , 101 ) . unwrap ( ) ;
1363
+ TFTPriceModule :: set_prices ( Origin :: signed ( alice ( ) ) , 50 , 101 ) . unwrap ( ) ;
1364
1364
1365
1365
assert_ok ! ( SmartContractModule :: create_node_contract(
1366
1366
Origin :: signed( charlie( ) ) ,
@@ -1410,7 +1410,7 @@ fn test_restore_node_contract_in_grace_works() {
1410
1410
ext. execute_with ( || {
1411
1411
prepare_farm_and_node ( ) ;
1412
1412
run_to_block ( 1 , Some ( & mut pool_state) ) ;
1413
- TFTPriceModule :: set_prices ( Origin :: signed ( bob ( ) ) , 50 , 101 ) . unwrap ( ) ;
1413
+ TFTPriceModule :: set_prices ( Origin :: signed ( alice ( ) ) , 50 , 101 ) . unwrap ( ) ;
1414
1414
1415
1415
assert_ok ! ( SmartContractModule :: create_node_contract(
1416
1416
Origin :: signed( charlie( ) ) ,
@@ -1469,7 +1469,7 @@ fn test_node_contract_grace_period_cancels_contract_when_grace_period_ends_works
1469
1469
ext. execute_with ( || {
1470
1470
prepare_farm_and_node ( ) ;
1471
1471
run_to_block ( 1 , Some ( & mut pool_state) ) ;
1472
- TFTPriceModule :: set_prices ( Origin :: signed ( bob ( ) ) , 50 , 101 ) . unwrap ( ) ;
1472
+ TFTPriceModule :: set_prices ( Origin :: signed ( alice ( ) ) , 50 , 101 ) . unwrap ( ) ;
1473
1473
let twin = TfgridModule :: twins ( 3 ) . unwrap ( ) ;
1474
1474
let initial_total_issuance = Balances :: total_issuance ( ) ;
1475
1475
let initial_twin_balance = Balances :: free_balance ( & twin. account_id ) ;
@@ -1547,7 +1547,7 @@ fn test_name_contract_billing() {
1547
1547
ext. execute_with ( || {
1548
1548
prepare_farm_and_node ( ) ;
1549
1549
run_to_block ( 1 , Some ( & mut pool_state) ) ;
1550
- TFTPriceModule :: set_prices ( Origin :: signed ( bob ( ) ) , 50 , 101 ) . unwrap ( ) ;
1550
+ TFTPriceModule :: set_prices ( Origin :: signed ( alice ( ) ) , 50 , 101 ) . unwrap ( ) ;
1551
1551
1552
1552
assert_ok ! ( SmartContractModule :: create_name_contract(
1553
1553
Origin :: signed( bob( ) ) ,
@@ -1590,7 +1590,7 @@ fn test_rent_contract_billing() {
1590
1590
ext. execute_with ( || {
1591
1591
prepare_dedicated_farm_and_node ( ) ;
1592
1592
run_to_block ( 1 , Some ( & mut pool_state) ) ;
1593
- TFTPriceModule :: set_prices ( Origin :: signed ( bob ( ) ) , 50 , 101 ) . unwrap ( ) ;
1593
+ TFTPriceModule :: set_prices ( Origin :: signed ( alice ( ) ) , 50 , 101 ) . unwrap ( ) ;
1594
1594
1595
1595
let node_id = 1 ;
1596
1596
assert_ok ! ( SmartContractModule :: create_rent_contract(
@@ -1623,7 +1623,7 @@ fn test_rent_contract_billing_cancel_should_bill_reserved_balance() {
1623
1623
ext. execute_with ( || {
1624
1624
prepare_dedicated_farm_and_node ( ) ;
1625
1625
run_to_block ( 1 , Some ( & mut pool_state) ) ;
1626
- TFTPriceModule :: set_prices ( Origin :: signed ( bob ( ) ) , 50 , 101 ) . unwrap ( ) ;
1626
+ TFTPriceModule :: set_prices ( Origin :: signed ( alice ( ) ) , 50 , 101 ) . unwrap ( ) ;
1627
1627
1628
1628
let node_id = 1 ;
1629
1629
assert_ok ! ( SmartContractModule :: create_rent_contract(
@@ -1693,7 +1693,7 @@ fn test_rent_contract_canceled_mid_cycle_should_bill_for_remainder() {
1693
1693
ext. execute_with ( || {
1694
1694
prepare_dedicated_farm_and_node ( ) ;
1695
1695
run_to_block ( 1 , Some ( & mut pool_state) ) ;
1696
- TFTPriceModule :: set_prices ( Origin :: signed ( bob ( ) ) , 50 , 101 ) . unwrap ( ) ;
1696
+ TFTPriceModule :: set_prices ( Origin :: signed ( alice ( ) ) , 50 , 101 ) . unwrap ( ) ;
1697
1697
1698
1698
let node_id = 1 ;
1699
1699
assert_ok ! ( SmartContractModule :: create_rent_contract(
@@ -1741,7 +1741,7 @@ fn test_create_rent_contract_and_node_contract_excludes_node_contract_from_billi
1741
1741
ext. execute_with ( || {
1742
1742
prepare_dedicated_farm_and_node ( ) ;
1743
1743
run_to_block ( 1 , Some ( & mut pool_state) ) ;
1744
- TFTPriceModule :: set_prices ( Origin :: signed ( bob ( ) ) , 50 , 101 ) . unwrap ( ) ;
1744
+ TFTPriceModule :: set_prices ( Origin :: signed ( alice ( ) ) , 50 , 101 ) . unwrap ( ) ;
1745
1745
1746
1746
let node_id = 1 ;
1747
1747
assert_ok ! ( SmartContractModule :: create_rent_contract(
@@ -1786,7 +1786,7 @@ fn test_rent_contract_canceled_due_to_out_of_funds_should_cancel_node_contracts_
1786
1786
ext. execute_with ( || {
1787
1787
prepare_dedicated_farm_and_node ( ) ;
1788
1788
run_to_block ( 1 , Some ( & mut pool_state) ) ;
1789
- TFTPriceModule :: set_prices ( Origin :: signed ( bob ( ) ) , 50 , 101 ) . unwrap ( ) ;
1789
+ TFTPriceModule :: set_prices ( Origin :: signed ( alice ( ) ) , 50 , 101 ) . unwrap ( ) ;
1790
1790
1791
1791
let node_id = 1 ;
1792
1792
assert_ok ! ( SmartContractModule :: create_rent_contract(
@@ -1875,7 +1875,7 @@ fn test_create_rent_contract_and_node_contract_with_ip_billing_works() {
1875
1875
ext. execute_with ( || {
1876
1876
prepare_dedicated_farm_and_node ( ) ;
1877
1877
run_to_block ( 1 , Some ( & mut pool_state) ) ;
1878
- TFTPriceModule :: set_prices ( Origin :: signed ( bob ( ) ) , 50 , 101 ) . unwrap ( ) ;
1878
+ TFTPriceModule :: set_prices ( Origin :: signed ( alice ( ) ) , 50 , 101 ) . unwrap ( ) ;
1879
1879
1880
1880
let node_id = 1 ;
1881
1881
assert_ok ! ( SmartContractModule :: create_rent_contract(
@@ -1928,7 +1928,7 @@ fn test_rent_contract_out_of_funds_should_move_state_to_graceperiod_works() {
1928
1928
ext. execute_with ( || {
1929
1929
prepare_dedicated_farm_and_node ( ) ;
1930
1930
run_to_block ( 1 , Some ( & mut pool_state) ) ;
1931
- TFTPriceModule :: set_prices ( Origin :: signed ( bob ( ) ) , 50 , 101 ) . unwrap ( ) ;
1931
+ TFTPriceModule :: set_prices ( Origin :: signed ( alice ( ) ) , 50 , 101 ) . unwrap ( ) ;
1932
1932
1933
1933
let node_id = 1 ;
1934
1934
assert_ok ! ( SmartContractModule :: create_rent_contract(
@@ -1968,7 +1968,7 @@ fn test_restore_rent_contract_in_grace_works() {
1968
1968
ext. execute_with ( || {
1969
1969
prepare_dedicated_farm_and_node ( ) ;
1970
1970
run_to_block ( 1 , Some ( & mut pool_state) ) ;
1971
- TFTPriceModule :: set_prices ( Origin :: signed ( bob ( ) ) , 50 , 101 ) . unwrap ( ) ;
1971
+ TFTPriceModule :: set_prices ( Origin :: signed ( alice ( ) ) , 50 , 101 ) . unwrap ( ) ;
1972
1972
1973
1973
let node_id = 1 ;
1974
1974
assert_ok ! ( SmartContractModule :: create_rent_contract(
@@ -2033,7 +2033,7 @@ fn test_restore_rent_contract_and_node_contracts_in_grace_works() {
2033
2033
ext. execute_with ( || {
2034
2034
prepare_dedicated_farm_and_node ( ) ;
2035
2035
run_to_block ( 1 , None ) ;
2036
- TFTPriceModule :: set_prices ( Origin :: signed ( bob ( ) ) , 50 , 101 ) . unwrap ( ) ;
2036
+ TFTPriceModule :: set_prices ( Origin :: signed ( alice ( ) ) , 50 , 101 ) . unwrap ( ) ;
2037
2037
2038
2038
let node_id = 1 ;
2039
2039
assert_ok ! ( SmartContractModule :: create_rent_contract(
@@ -2156,7 +2156,7 @@ fn test_rent_contract_grace_period_cancels_contract_when_grace_period_ends_works
2156
2156
ext. execute_with ( || {
2157
2157
prepare_dedicated_farm_and_node ( ) ;
2158
2158
run_to_block ( 1 , Some ( & mut pool_state) ) ;
2159
- TFTPriceModule :: set_prices ( Origin :: signed ( bob ( ) ) , 50 , 101 ) . unwrap ( ) ;
2159
+ TFTPriceModule :: set_prices ( Origin :: signed ( alice ( ) ) , 50 , 101 ) . unwrap ( ) ;
2160
2160
2161
2161
let node_id = 1 ;
2162
2162
assert_ok ! ( SmartContractModule :: create_rent_contract(
@@ -2209,7 +2209,7 @@ fn test_rent_contract_and_node_contract_canceled_when_node_is_deleted_works() {
2209
2209
ext. execute_with ( || {
2210
2210
prepare_dedicated_farm_and_node ( ) ;
2211
2211
run_to_block ( 1 , Some ( & mut pool_state) ) ;
2212
- TFTPriceModule :: set_prices ( Origin :: signed ( bob ( ) ) , 50 , 101 ) . unwrap ( ) ;
2212
+ TFTPriceModule :: set_prices ( Origin :: signed ( alice ( ) ) , 50 , 101 ) . unwrap ( ) ;
2213
2213
2214
2214
let node_id = 1 ;
2215
2215
assert_ok ! ( SmartContractModule :: create_rent_contract(
@@ -2684,7 +2684,7 @@ pub fn prepare_farm(source: AccountId, dedicated: bool) {
2684
2684
}
2685
2685
2686
2686
pub fn prepare_farm_and_node ( ) {
2687
- TFTPriceModule :: set_prices ( Origin :: signed ( bob ( ) ) , 50 , 101 ) . unwrap ( ) ;
2687
+ TFTPriceModule :: set_prices ( Origin :: signed ( alice ( ) ) , 50 , 101 ) . unwrap ( ) ;
2688
2688
2689
2689
create_farming_policies ( ) ;
2690
2690
prepare_twins ( ) ;
@@ -2719,7 +2719,7 @@ pub fn prepare_farm_and_node() {
2719
2719
}
2720
2720
2721
2721
pub fn prepare_dedicated_farm_and_node ( ) {
2722
- TFTPriceModule :: set_prices ( Origin :: signed ( bob ( ) ) , 50 , 101 ) . unwrap ( ) ;
2722
+ TFTPriceModule :: set_prices ( Origin :: signed ( alice ( ) ) , 50 , 101 ) . unwrap ( ) ;
2723
2723
create_farming_policies ( ) ;
2724
2724
prepare_twins ( ) ;
2725
2725
prepare_farm ( alice ( ) , true ) ;
0 commit comments