* feat(economy): Master Bank delegated payout policy and opt-in configuration * feat(economy): verify bank script instance and pay from prefunded master ledger account * feat(lsl): require operator debit grant and exact script delegation for bank payouts * test(economy): Master Bank permission, payout and HG wallet regressions with LSL sample
18 lines
659 B
C#
18 lines
659 B
C#
// SPDX-License-Identifier: MPL-2.0
|
|
using OpenMetaverse;
|
|
|
|
namespace OpenSim.Region.Framework.Interfaces
|
|
{
|
|
/// <summary>
|
|
/// Only the server-side script engine can invoke delegated NV$ Master Bank
|
|
/// payments. Never expose a capability that accepts object/script IDs from
|
|
/// an untrusted viewer or in-world HTTP client.
|
|
/// </summary>
|
|
public interface INexMasterBankPayoutModule
|
|
{
|
|
bool IsAuthorizedBankScript(UUID objectId, UUID scriptItemId, UUID ownerId);
|
|
bool TryBankPayout(UUID objectId, UUID scriptItemId, UUID ownerId,
|
|
UUID residentId, int amount, UUID transactionId, out string reason);
|
|
}
|
|
}
|