12
12
13
13
from py_nillion_client import NodeKey , UserKey
14
14
from dotenv import load_dotenv
15
- from nillion_python_helpers import pay , create_nillion_client , create_payments_config
15
+ from nillion_python_helpers import get_quote_and_pay , create_nillion_client , create_payments_config
16
16
17
17
from cosmpy .aerial .client import LedgerClient
18
18
from cosmpy .aerial .wallet import LocalWallet
@@ -53,7 +53,7 @@ async def main():
53
53
)
54
54
55
55
# Pay to store the program and obtain a receipt of the payment
56
- receipt_store_program = await pay (
56
+ receipt_store_program = await get_quote_and_pay (
57
57
client ,
58
58
nillion .Operation .store_program (program_mir_path ),
59
59
payments_wallet ,
@@ -88,7 +88,7 @@ async def main():
88
88
permissions .add_compute_permissions ({client .user_id : {program_id }})
89
89
90
90
# Pay for and store the secret in the network and print the returned store_id
91
- receipt_store = await pay (
91
+ receipt_store = await get_quote_and_pay (
92
92
client ,
93
93
nillion .Operation .store_values (new_secret , ttl_days = 5 ),
94
94
payments_wallet ,
@@ -111,7 +111,7 @@ async def main():
111
111
computation_time_secrets = nillion .NadaValues ({"my_int2" : nillion .SecretInteger (10 )})
112
112
113
113
# Pay for the compute
114
- receipt_compute = await pay (
114
+ receipt_compute = await get_quote_and_pay (
115
115
client ,
116
116
nillion .Operation .compute (program_id , computation_time_secrets ),
117
117
payments_wallet ,
0 commit comments