-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathopensea_api.aqua
34 lines (28 loc) · 1.43 KB
/
opensea_api.aqua
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
import "@fluencelabs/aqua-lib/builtin.aqua"
const OPENSEA_API_NODE_PEER_ID ?= "12D3KooWDUszU2NeWyUVjCXhGEt1MoZrhvdmaQQwtZUriuGN1jTr"
const OPENSEA_API_SERVICE_ID ?= "abddf344-0348-4849-b3c3-eb1975d5db25"
service OpenseaTestnetApi:
download(url: string) -> string
get_all_assets(offset: string, limit: string, order: string) -> string
get_owned_assets_by_collection(collection_addr: string, offset: string, limit: string) -> string
get_owned_collections(owner_address: string, offset: string, limit: string) -> string
func download(url: string) -> string :
on OPENSEA_API_NODE_PEER_ID:
OpenseaTestnetApi OPENSEA_API_SERVICE_ID
res <- OpenseaTestnetApi.download(url)
<- res
func get_all_assets(offset: string, limit: string, order: string) -> string :
on OPENSEA_API_NODE_PEER_ID:
OpenseaTestnetApi OPENSEA_API_SERVICE_ID
res <- OpenseaTestnetApi.get_all_assets(offset, limit, order)
<- res
func get_owned_collections(owner_address: string, offset: string, limit: string) -> string :
on OPENSEA_API_NODE_PEER_ID:
OpenseaTestnetApi OPENSEA_API_SERVICE_ID
res <- OpenseaTestnetApi.get_owned_collections(owner_address, offset, limit)
<- res
func get_owned_assets_by_collection(collection_addr: string, offset: string, limit: string) -> string :
on OPENSEA_API_NODE_PEER_ID:
OpenseaTestnetApi OPENSEA_API_SERVICE_ID
res <- OpenseaTestnetApi.get_owned_assets_by_collection(collection_addr, offset, limit)
<- res