5
5
6
6
7
7
8
- - [ Struct ` BridgeConfigRelayerUpdated ` ] ( #0x1_native_bridge_BridgeConfigRelayerUpdated )
9
- - [ Struct ` BridgeFeeChangedEvent ` ] ( #0x1_native_bridge_BridgeFeeChangedEvent )
10
- - [ Struct ` BridgeInsuranceBudgetDividerChangedEvent ` ] ( #0x1_native_bridge_BridgeInsuranceBudgetDividerChangedEvent )
11
- - [ Struct ` BridgeInsuranceFundChangedEvent ` ] ( #0x1_native_bridge_BridgeInsuranceFundChangedEvent )
12
- - [ Struct ` BridgeTransferInitiatedEvent ` ] ( #0x1_native_bridge_BridgeTransferInitiatedEvent )
13
- - [ Struct ` BridgeTransferCompletedEvent ` ] ( #0x1_native_bridge_BridgeTransferCompletedEvent )
14
- - [ Resource ` BridgeEvents ` ] ( #0x1_native_bridge_BridgeEvents )
15
8
- [ Resource ` AptosCoinBurnCapability ` ] ( #0x1_native_bridge_AptosCoinBurnCapability )
16
9
- [ Resource ` AptosCoinMintCapability ` ] ( #0x1_native_bridge_AptosCoinMintCapability )
17
10
- [ Resource ` AptosFABurnCapabilities ` ] ( #0x1_native_bridge_AptosFABurnCapabilities )
18
11
- [ Resource ` AptosFAMintCapabilities ` ] ( #0x1_native_bridge_AptosFAMintCapabilities )
12
+ - [ Struct ` BridgeTransferInitiatedEvent ` ] ( #0x1_native_bridge_BridgeTransferInitiatedEvent )
13
+ - [ Struct ` BridgeTransferCompletedEvent ` ] ( #0x1_native_bridge_BridgeTransferCompletedEvent )
14
+ - [ Resource ` BridgeEvents ` ] ( #0x1_native_bridge_BridgeEvents )
19
15
- [ Resource ` Nonce ` ] ( #0x1_native_bridge_Nonce )
20
- - [ Resource ` OutboundRateLimitBudget ` ] ( #0x1_native_bridge_OutboundRateLimitBudget )
21
- - [ Resource ` InboundRateLimitBudget ` ] ( #0x1_native_bridge_InboundRateLimitBudget )
22
16
- [ Resource ` SmartTableWrapper ` ] ( #0x1_native_bridge_SmartTableWrapper )
23
17
- [ Struct ` OutboundTransfer ` ] ( #0x1_native_bridge_OutboundTransfer )
24
18
- [ Resource ` BridgeConfig ` ] ( #0x1_native_bridge_BridgeConfig )
19
+ - [ Struct ` BridgeConfigRelayerUpdated ` ] ( #0x1_native_bridge_BridgeConfigRelayerUpdated )
20
+ - [ Struct ` BridgeFeeChangedEvent ` ] ( #0x1_native_bridge_BridgeFeeChangedEvent )
25
21
- [ Constants] ( #@Constants_0 )
26
- - [ Function ` initialize ` ] ( #0x1_native_bridge_initialize )
27
22
- [ Function ` normalize_u64_to_32_bytes ` ] ( #0x1_native_bridge_normalize_u64_to_32_bytes )
28
23
- [ Function ` is_inbound_nonce_set ` ] ( #0x1_native_bridge_is_inbound_nonce_set )
29
24
- [ Function ` create_details ` ] ( #0x1_native_bridge_create_details )
30
25
- [ Function ` add ` ] ( #0x1_native_bridge_add )
31
26
- [ Function ` set_bridge_transfer_id_to_inbound_nonce ` ] ( #0x1_native_bridge_set_bridge_transfer_id_to_inbound_nonce )
32
27
- [ Function ` assert_valid_bridge_transfer_id ` ] ( #0x1_native_bridge_assert_valid_bridge_transfer_id )
33
28
- [ Function ` bridge_transfer_id ` ] ( #0x1_native_bridge_bridge_transfer_id )
34
- - [ Function ` bridge_relayer ` ] ( #0x1_native_bridge_bridge_relayer )
35
- - [ Function ` insurance_fund ` ] ( #0x1_native_bridge_insurance_fund )
36
- - [ Function ` insurance_budget_divider ` ] ( #0x1_native_bridge_insurance_budget_divider )
37
- - [ Function ` bridge_fee ` ] ( #0x1_native_bridge_bridge_fee )
38
29
- [ Function ` get_bridge_transfer_details_from_nonce ` ] ( #0x1_native_bridge_get_bridge_transfer_details_from_nonce )
39
30
- [ Function ` get_inbound_nonce_from_bridge_transfer_id ` ] ( #0x1_native_bridge_get_inbound_nonce_from_bridge_transfer_id )
40
31
- [ Function ` increment_and_get_nonce ` ] ( #0x1_native_bridge_increment_and_get_nonce )
32
+ - [ Function ` initialize ` ] ( #0x1_native_bridge_initialize )
41
33
- [ Function ` store_aptos_coin_burn_cap ` ] ( #0x1_native_bridge_store_aptos_coin_burn_cap )
42
34
- [ Function ` store_aptos_coin_mint_cap ` ] ( #0x1_native_bridge_store_aptos_coin_mint_cap )
43
35
- [ Function ` mint ` ] ( #0x1_native_bridge_mint )
36
+ - [ Function ` mint_from ` ] ( #0x1_native_bridge_mint_from )
44
37
- [ Function ` burn_from ` ] ( #0x1_native_bridge_burn_from )
45
38
- [ Function ` burn ` ] ( #0x1_native_bridge_burn )
46
39
- [ Function ` burn_internal ` ] ( #0x1_native_bridge_burn_internal )
49
42
- [ Function ` charge_bridge_fee ` ] ( #0x1_native_bridge_charge_bridge_fee )
50
43
- [ Function ` update_bridge_relayer ` ] ( #0x1_native_bridge_update_bridge_relayer )
51
44
- [ Function ` update_bridge_fee ` ] ( #0x1_native_bridge_update_bridge_fee )
52
- - [ Function ` update_insurance_fund ` ] ( #0x1_native_bridge_update_insurance_fund )
53
- - [ Function ` update_insurance_budget_divider ` ] ( #0x1_native_bridge_update_insurance_budget_divider )
45
+ - [ Function ` bridge_relayer ` ] ( #0x1_native_bridge_bridge_relayer )
46
+ - [ Function ` bridge_fee ` ] ( #0x1_native_bridge_bridge_fee )
54
47
- [ Function ` assert_is_caller_relayer ` ] ( #0x1_native_bridge_assert_is_caller_relayer )
55
- - [ Function ` assert_outbound_rate_limit_budget_not_exceeded ` ] ( #0x1_native_bridge_assert_outbound_rate_limit_budget_not_exceeded )
56
- - [ Function ` assert_inbound_rate_limit_budget_not_exceeded ` ] ( #0x1_native_bridge_assert_inbound_rate_limit_budget_not_exceeded )
57
48
- [ Function ` test_normalize_u64_to_32_bytes_helper ` ] ( #0x1_native_bridge_test_normalize_u64_to_32_bytes_helper )
58
49
59
50
@@ -1417,6 +1408,36 @@ Mints a specified amount of AptosCoin to a recipient's address.
1417
1408
1418
1409
1419
1410
1411
+ </details >
1412
+
1413
+ <a id =" 0x1_native_bridge_mint_from " ></a >
1414
+
1415
+ ## Function ` mint_from `
1416
+
1417
+ Mints a specified amount of AptosCoin to a recipient's address.
1418
+
1419
+ @param core_resource The signer representing the core resource account.
1420
+ @param recipient The address of the recipient to mint coins to.
1421
+ @param amount The amount of AptosCoin to mint.
1422
+
1423
+
1424
+ <pre ><code ><b >public</b > <b >fun</b > <a href =" native_bridge.md#0x1_native_bridge_mint_from " >mint_from</a >(aptos_framework: &<a href =" ../../aptos-stdlib/../move-stdlib/doc/signer.md#0x1_signer " >signer</a >, recipient: <b >address</b >, amount: u64)
1425
+ </code ></pre >
1426
+
1427
+
1428
+
1429
+ <details >
1430
+ <summary >Implementation</summary >
1431
+
1432
+
1433
+ <pre ><code ><b >public</b > <b >fun</b > <a href =" native_bridge.md#0x1_native_bridge_mint_from " >mint_from</a >(aptos_framework: &<a href =" ../../aptos-stdlib/../move-stdlib/doc/signer.md#0x1_signer " >signer</a >, recipient: <b >address</b >, amount: u64) <b >acquires</b > <a href =" native_bridge.md#0x1_native_bridge_AptosCoinMintCapability " >AptosCoinMintCapability</a > {
1434
+ <a href =" system_addresses.md#0x1_system_addresses_assert_aptos_framework " >system_addresses::assert_aptos_framework</a >(aptos_framework);
1435
+ <a href =" native_bridge.md#0x1_native_bridge_mint " >mint</a >(recipient, amount);
1436
+ }
1437
+ </code ></pre >
1438
+
1439
+
1440
+
1420
1441
</details >
1421
1442
1422
1443
<a id =" 0x1_native_bridge_burn_from " ></a >
@@ -1431,7 +1452,7 @@ Burns a specified amount of AptosCoin from an address.
1431
1452
@abort If the burn capability is not available.
1432
1453
1433
1454
1434
- <pre ><code ><b >public</b > entry <b >fun</b > <a href =" native_bridge.md#0x1_native_bridge_burn_from " >burn_from</a >(aptos_framework: &<a href =" ../../aptos-stdlib/../move-stdlib/doc/signer.md#0x1_signer " >signer</a >, from: <b >address</b >, amount: u64)
1455
+ <pre ><code ><b >public</b > <b >fun</b > <a href =" native_bridge.md#0x1_native_bridge_burn_from " >burn_from</a >(aptos_framework: &<a href =" ../../aptos-stdlib/../move-stdlib/doc/signer.md#0x1_signer " >signer</a >, from: <b >address</b >, amount: u64)
1435
1456
</code ></pre >
1436
1457
1437
1458
@@ -1440,7 +1461,7 @@ Burns a specified amount of AptosCoin from an address.
1440
1461
<summary >Implementation</summary >
1441
1462
1442
1463
1443
- <pre ><code ><b >public</b > entry <b >fun</b > <a href =" native_bridge.md#0x1_native_bridge_burn_from " >burn_from</a >(aptos_framework: &<a href =" ../../aptos-stdlib/../move-stdlib/doc/signer.md#0x1_signer " >signer</a >, from: <b >address</b >, amount: u64) <b >acquires</b > <a href =" native_bridge.md#0x1_native_bridge_AptosCoinBurnCapability " >AptosCoinBurnCapability</a > {
1464
+ <pre ><code ><b >public</b > <b >fun</b > <a href =" native_bridge.md#0x1_native_bridge_burn_from " >burn_from</a >(aptos_framework: &<a href =" ../../aptos-stdlib/../move-stdlib/doc/signer.md#0x1_signer " >signer</a >, from: <b >address</b >, amount: u64) <b >acquires</b > <a href =" native_bridge.md#0x1_native_bridge_AptosCoinBurnCapability " >AptosCoinBurnCapability</a > {
1444
1465
<a href =" system_addresses.md#0x1_system_addresses_assert_aptos_framework " >system_addresses::assert_aptos_framework</a >(aptos_framework);
1445
1466
<a href =" native_bridge.md#0x1_native_bridge_burn_internal " >burn_internal</a >(from, amount);
1446
1467
}
0 commit comments