-
Notifications
You must be signed in to change notification settings - Fork 0
/
treasury.proto
154 lines (136 loc) · 4.73 KB
/
treasury.proto
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
syntax = "proto3";
package treasury.proto;
message TreasuryEventKey {
string id = 1;
// the user who triggered the event
string user_id = 2;
string project_id = 3;
}
message TreasuryEvents {
enum TransactionStatus {
TRANSACTION_STATUS_UNSPECIFIED = 0;
TRANSACTION_STATUS_SUBMITTED =1 ;
TRANSACTION_STATUS_QUEUED = 2;
TRANSACTION_STATUS_PENDING_AUTHORIZATION = 3;
TRANSACTION_STATUS_PENDING_SIGNATURE = 4;
TRANSACTION_STATUS_BROADCASTING = 5;
TRANSACTION_STATUS_PENDING_3RD_PARTY_MANUAL_APPROVAL = 6;
TRANSACTION_STATUS_PENDING_3RD_PARTY = 7;
TRANSACTION_STATUS_CONFIRMING = 8;
TRANSACTION_STATUS_PARTIALLY_COMPLETED = 9;
TRANSACTION_STATUS_PENDING_AML_SCREENING = 10;
TRANSACTION_STATUS_COMPLETED = 11;
TRANSACTION_STATUS_CANCELLED = 12;
TRANSACTION_STATUS_REJECTED = 13;
TRANSACTION_STATUS_BLOCKED = 14;
TRANSACTION_STATUS_FAILED = 15;
TRANSACTION_STATUS_PENDING = 16;
}
message CustomerTreasury {
string project_id = 2;
string customer_id = 3;
}
enum Blockchain {
BLOCKCHAIN_UNSPECIFIED = 0;
BLOCKCHAIN_SOLANA = 1;
BLOCKCHAIN_POLYGON = 2;
BLOCKCHAIN_ETHEREUM = 3;
}
message CustomerWallet {
string project_id = 2;
string customer_id = 3;
Blockchain blockchain = 4;
string wallet_address = 5;
}
message ProjectWallet {
string project_id = 2;
string wallet_address = 3;
Blockchain blockchain = 4;
}
message DropCreated {
string project_id = 2;
TransactionStatus status = 3;
string tx_signature = 4;
}
message DropMinted {
string project_id = 2;
string drop_id = 3;
TransactionStatus status = 4;
string tx_signature = 5;
}
message DropUpdated {
string project_id = 2;
string drop_id = 3;
TransactionStatus status = 4;
string tx_signature = 5;
}
message MintTransfered {
string sender = 1;
string recipient = 2;
string mint_address = 3;
string tx_signature = 4;
string project_id = 5;
string transfer_id = 6;
}
message SolanaTransactionResult {
optional bytes serialized_message = 1;
repeated string signed_message_signatures = 2;
TransactionStatus status = 3;
}
message ECDSASignature {
bytes r = 1;
bytes s = 2;
int32 v = 3;
}
message PolygonPermitHashSignature {
ECDSASignature signature = 1;
string owner = 2;
string spender = 3;
string recipient = 4;
int32 edition_id = 5;
int64 amount = 6;
}
message PolygonTransactionResult {
optional string hash = 1;
TransactionStatus status = 2;
string contract_address = 3;
int32 edition_id = 4;
}
oneof event {
CustomerTreasury customer_treasury_created = 4;
CustomerWallet customer_wallet_created = 5;
DropCreated drop_created = 6;
DropMinted drop_minted = 7;
ProjectWallet project_wallet_created = 8;
DropUpdated drop_updated = 9;
MintTransfered mint_transfered = 10;
DropMinted mint_retried = 11;
DropCreated drop_retried = 12;
SolanaTransactionResult solana_create_edition_drop_signed = 13;
SolanaTransactionResult solana_retry_create_edition_drop_signed = 14;
SolanaTransactionResult solana_update_edition_drop_signed = 15;
SolanaTransactionResult solana_mint_edition_drop_signed = 16;
SolanaTransactionResult solana_retry_mint_edition_drop_signed = 17;
SolanaTransactionResult solana_transfer_asset_signed = 18;
PolygonTransactionResult polygon_create_drop_txn_submitted = 19;
PolygonPermitHashSignature polygon_permit_transfer_token_hash_signed = 20;
PolygonTransactionResult polygon_retry_create_drop_submitted = 21;
PolygonTransactionResult polygon_update_drop_submitted = 22;
PolygonTransactionResult polygon_mint_drop_submitted = 23;
PolygonTransactionResult polygon_retry_mint_drop_submitted = 24;
PolygonTransactionResult polygon_transfer_asset_submitted = 25;
SolanaTransactionResult solana_create_collection_signed = 26;
SolanaTransactionResult solana_update_collection_signed = 27;
SolanaTransactionResult solana_retry_create_collection_signed = 28;
SolanaTransactionResult solana_mint_to_collection_signed = 29;
SolanaTransactionResult solana_retry_mint_to_collection_signed = 30;
SolanaTransactionResult solana_update_collection_mint_signed = 31;
SolanaTransactionResult solana_retry_update_collection_mint_signed = 32;
SolanaTransactionResult solana_switch_mint_collection_signed = 33;
SolanaTransactionResult solana_create_open_drop_signed = 34;
SolanaTransactionResult solana_retry_create_open_drop_signed = 35;
SolanaTransactionResult solana_update_open_drop_signed = 36;
SolanaTransactionResult solana_mint_open_drop_signed = 37;
SolanaTransactionResult solana_retry_mint_open_drop_signed = 38;
}
}