-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path_template.nex
56 lines (53 loc) · 1.19 KB
/
_template.nex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
pragma nexscript >= 0.2.0;
/*******************************************************************************
* Copyright (c) 2024 Ava's DAO
* Released under the MIT License.
*
* Blank
*
* Empty contract template.
*
* NOTES
* --------------------
* TBD..
*
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Version : 01
* Script Hash : 0x0000000000000000000000000000000000000000
* Namespace : BLANK01
*
* owner : Party whom will receive the payouts.
* param : A very useful parameter.
*
* For more information, please visit the following resources:
* - https://domain.tld
* - https://avasdao.org
*
* @param owner
* @param key
* @param value
*
*/
contract Blank(
pubkey owner,
bytes32 visible key,
int visible unused value,
) {
/**
* Method Name
*
* TBD..
*
* @param authorized
* @param signature
*/
function transfer(pubkey authorized, sig signature) {
/* Set dust value. */
int DUST_VALUE = 546;
/* Verify parameter. */
require(param >= DUST_VALUE);
/* Verify transaction is signed by the owner. */
require(checkSig(signature, owner));
}
}