Merge pull request #3 from codex/coin-consume

# Conflicts:
#	packages/shared/src/contracts/runtime.ts
#	server-rs/crates/module-runtime/src/lib.rs
#	server-rs/crates/shared-contracts/src/runtime.rs
#	server-rs/crates/spacetime-client/src/module_bindings/runtime_profile_wallet_ledger_source_type_type.rs
#	src/components/rpg-entry/RpgEntryHomeView.tsx
This commit is contained in:
2026-04-28 15:43:48 +08:00
16 changed files with 779 additions and 684 deletions

View File

@@ -281,7 +281,7 @@ pub fn consume_profile_wallet_points_and_return(
apply_profile_wallet_adjustment(
tx,
input.clone(),
RuntimeProfileWalletLedgerSourceType::AssetGenerationConsume,
RuntimeProfileWalletLedgerSourceType::AssetOperationConsume,
true,
)
}) {
@@ -308,7 +308,7 @@ pub fn refund_profile_wallet_points_and_return(
apply_profile_wallet_adjustment(
tx,
input.clone(),
RuntimeProfileWalletLedgerSourceType::AssetGenerationRefund,
RuntimeProfileWalletLedgerSourceType::AssetOperationRefund,
false,
)
}) {