-
Notifications
You must be signed in to change notification settings - Fork 0
/
polygon_nfts.proto
51 lines (43 loc) · 1.2 KB
/
polygon_nfts.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
syntax = "proto3";
package polygon_nfts.proto;
import "timestamp.proto";
message PolygonNftEventKey {
string id = 1;
string user_id = 2;
string project_id = 3;
}
message PolygonTransaction {
bytes data = 1;
string contract_address = 2;
int32 edition_id = 3;
}
message PermitArgsHash {
bytes data = 1;
string owner = 2;
string spender = 3;
string recipient = 4;
int32 edition_id = 5;
int64 amount = 6;
}
message PolygonTokenTransferTxns {
PolygonTransaction permit_token_transfer_txn = 1;
PolygonTransaction safe_transfer_from_txn = 2;
}
message MintedTokensOwnershipUpdate {
repeated string mint_ids = 1;
string new_owner = 2;
google.protobuf.Timestamp timestamp = 3;
string transaction_hash = 4;
}
message PolygonNftEvents {
oneof event {
PolygonTransaction submit_create_drop_txn = 1;
PolygonTransaction submit_retry_create_drop_txn = 2;
PolygonTransaction submit_mint_drop_txn = 3;
PolygonTransaction submit_update_drop_txn = 4;
PolygonTransaction submit_retry_mint_drop_txn = 5;
PermitArgsHash sign_permit_token_transfer_hash = 6;
PolygonTokenTransferTxns submit_transfer_asset_txns = 7;
MintedTokensOwnershipUpdate update_mints_owner = 8;
}
}