github.com/stafiprotocol/go-substrate-rpc-client@v1.4.7/client/sub_model.go (about) 1 package client 2 3 import ( 4 "github.com/stafiprotocol/go-substrate-rpc-client/types" 5 commonTypes "github.com/stafiprotocol/go-substrate-rpc-client/types/common" 6 ) 7 8 type StakingLedger struct { 9 Stash types.AccountID 10 Total types.UCompact 11 Active types.UCompact 12 Unlocking []UnlockChunk 13 ClaimedRewards []uint32 14 } 15 16 type UnlockChunk struct { 17 Value types.UCompact 18 Era types.UCompact 19 } 20 21 // multiaddress account info 22 type AccountInfo struct { 23 Nonce uint32 24 Consumers uint32 25 Providers uint32 26 Data struct { 27 Free types.U128 28 Reserved types.U128 29 MiscFrozen types.U128 30 FreeFrozen types.U128 31 } 32 } 33 34 type Transaction struct { 35 ExtrinsicHash string 36 CallModuleName string 37 CallName string 38 Address interface{} 39 Params []commonTypes.ExtrinsicParam 40 }