|
| 1 | +// License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. |
| 2 | +// "Business Source License" is a trademark of MariaDB Corporation Ab. |
| 3 | + |
| 4 | +// Parameters |
| 5 | + |
| 6 | +// Licensor: Union.fi, Labs Inc. |
| 7 | +// Licensed Work: All files under https://github.com/unionlabs/union's sui subdirectory |
| 8 | +// The Licensed Work is (c) 2024 Union.fi, Labs Inc. |
| 9 | +// Change Date: Four years from the date the Licensed Work is published. |
| 10 | +// Change License: Apache-2.0 |
| 11 | +// |
| 12 | + |
| 13 | +// For information about alternative licensing arrangements for the Licensed Work, |
| 14 | +// please contact [email protected]. |
| 15 | + |
| 16 | +// Notice |
| 17 | + |
| 18 | +// Business Source License 1.1 |
| 19 | + |
| 20 | +// Terms |
| 21 | + |
| 22 | +// The Licensor hereby grants you the right to copy, modify, create derivative |
| 23 | +// works, redistribute, and make non-production use of the Licensed Work. The |
| 24 | +// Licensor may make an Additional Use Grant, above, permitting limited production use. |
| 25 | + |
| 26 | +// Effective on the Change Date, or the fourth anniversary of the first publicly |
| 27 | +// available distribution of a specific version of the Licensed Work under this |
| 28 | +// License, whichever comes first, the Licensor hereby grants you rights under |
| 29 | +// the terms of the Change License, and the rights granted in the paragraph |
| 30 | +// above terminate. |
| 31 | + |
| 32 | +// If your use of the Licensed Work does not comply with the requirements |
| 33 | +// currently in effect as described in this License, you must purchase a |
| 34 | +// commercial license from the Licensor, its affiliated entities, or authorized |
| 35 | +// resellers, or you must refrain from using the Licensed Work. |
| 36 | + |
| 37 | +// All copies of the original and modified Licensed Work, and derivative works |
| 38 | +// of the Licensed Work, are subject to this License. This License applies |
| 39 | +// separately for each version of the Licensed Work and the Change Date may vary |
| 40 | +// for each version of the Licensed Work released by Licensor. |
| 41 | + |
| 42 | +// You must conspicuously display this License on each original or modified copy |
| 43 | +// of the Licensed Work. If you receive the Licensed Work in original or |
| 44 | +// modified form from a third party, the terms and conditions set forth in this |
| 45 | +// License apply to your use of that work. |
| 46 | + |
| 47 | +// Any use of the Licensed Work in violation of this License will automatically |
| 48 | +// terminate your rights under this License for the current and all other |
| 49 | +// versions of the Licensed Work. |
| 50 | + |
| 51 | +// This License does not grant you any right in any trademark or logo of |
| 52 | +// Licensor or its affiliates (provided that you may use a trademark or logo of |
| 53 | +// Licensor as expressly required by this License). |
| 54 | + |
| 55 | +// TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON |
| 56 | +// AN "AS IS" BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, |
| 57 | +// EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF |
| 58 | +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND |
| 59 | +// TITLE. |
| 60 | + |
| 61 | +module muno::muno { |
| 62 | + use sui::coin::{Self}; |
| 63 | + |
| 64 | + // one time witness |
| 65 | + public struct MUNO has drop {} |
| 66 | + |
| 67 | + fun init(witness: MUNO, ctx: &mut TxContext) { |
| 68 | + let (treasury_cap, metadata) = |
| 69 | + coin::create_currency<MUNO>( |
| 70 | + witness, |
| 71 | + 6, |
| 72 | + b"muno", |
| 73 | + b"muno", |
| 74 | + b"U", |
| 75 | + option::none(), |
| 76 | + ctx |
| 77 | + ); |
| 78 | + |
| 79 | + transfer::public_share_object(metadata); |
| 80 | + transfer::public_transfer(treasury_cap, tx_context::sender(ctx)) |
| 81 | + } |
| 82 | +} |
0 commit comments