-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinterfaces.go
31 lines (28 loc) · 960 Bytes
/
interfaces.go
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
package rum
type IProvider interface {
IFetcher
ISubmitter
}
type IFetcher interface {
// FetchAccountInfo(address string) (AccountInfo, error)
// FetchAddressUTxOs(address string, asset *string) ([]UTxO, error)
// FetchAssetAddresses(asset string) ([]struct {
// Address string
// Quantity string
// }, error)
// FetchAssetMetadata(asset string) (AssetMetadata, error)
// FetchBlockInfo(hash string) (BlockInfo, error)
// FetchCollectionAssets(policyId string, cursor *interface{}) (struct {
// Assets Assets
// Next *interface{}
// }, error)
// FetchHandle(handle string) (map[string]interface{}, error)
// FetchHandleAddress(handle string) (string, error)
// FetchProtocolParameters(epoch int) (Protocol, error)
FetchTxInfo(hash string) (TransactionInfo, error)
FetchUTxOs(hash string, index *int) ([]UTxO, error)
// Get(url string) (interface{}, error)
}
type ISubmitter interface {
SubmitTx(txCbor string) (string, error)
}