add file id constructors for address book, fee schedule, and exchange rate
@@ -11,6 +11,21 @@ type FileID struct {
File uint64
}
+// The public node address book for the current network
+func FileIDForAddressBook() FileID {
+ return FileID{ File: 102 }
+}
+
+// The current fee schedule for the network
+func FileIDForFeeSchedule() FileID {
+ return FileID{ File: 111 }
+}
+
+// The current exchange rates of HBAR to USD
+func FileIDForExchangeRate() FileID {
+ return FileID{ File: 112 }
+}
+
func FileIDFromString(s string) (FileID, error) {
shard, realm, num, err := idFromString(s)
if err != nil {
