Skip to content

Commit

Permalink
feat: updated protobufs, added token pause functionality
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei Kuzmiankov <andrei@launchbadge.com>
  • Loading branch information
andrix10 committed Oct 14, 2021
1 parent d4723d5 commit 07a4158
Show file tree
Hide file tree
Showing 200 changed files with 14,736 additions and 4,533 deletions.
2 changes: 1 addition & 1 deletion account_create_transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func (transaction *AccountCreateTransaction) _Build() *proto.TransactionBody {
ReceiveRecordThreshold: transaction.sendRecordThreshold,
ReceiverSigRequired: transaction.receiverSignatureRequired,
Memo: transaction.memo,
MaxAutomaticTokenAssociations: transaction.maxAutomaticTokenAssociations,
MaxAutomaticTokenAssociations: int32(transaction.maxAutomaticTokenAssociations),
}

if transaction.key != nil {
Expand Down
4 changes: 2 additions & 2 deletions account_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func _AccountInfoFromProtobuf(pb *proto.CryptoGetInfoResponse_AccountInfo) (Acco
AutoRenewPeriod: _DurationFromProtobuf(pb.AutoRenewPeriod),
LiveHashes: liveHashes,
OwnedNfts: pb.OwnedNfts,
MaxAutomaticTokenAssociations: pb.MaxAutomaticTokenAssociations,
MaxAutomaticTokenAssociations: uint32(pb.MaxAutomaticTokenAssociations),
}, nil
}

Expand Down Expand Up @@ -122,7 +122,7 @@ func (info AccountInfo) _ToProtobuf() *proto.CryptoGetInfoResponse_AccountInfo {
TokenRelationships: tokenRelationship,
Memo: info.AccountMemo,
OwnedNfts: info.OwnedNfts,
MaxAutomaticTokenAssociations: info.MaxAutomaticTokenAssociations,
MaxAutomaticTokenAssociations: int32(info.MaxAutomaticTokenAssociations),
}
}

Expand Down
4 changes: 2 additions & 2 deletions account_update_transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ func (transaction *AccountUpdateTransaction) _Build() *proto.TransactionBody {
ReceiverSigRequiredWrapper: &wrapperspb.BoolValue{Value: transaction.receiverSignatureRequired},
},
Memo: &wrapperspb.StringValue{Value: transaction.memo},
MaxAutomaticTokenAssociations: &wrapperspb.UInt32Value{Value: transaction.maxAutomaticTokenAssociations},
MaxAutomaticTokenAssociations: &wrapperspb.Int32Value{Value: int32(transaction.maxAutomaticTokenAssociations)},
}

if transaction.autoRenewPeriod != nil {
Expand Down Expand Up @@ -242,7 +242,7 @@ func (transaction *AccountUpdateTransaction) _Build() *proto.TransactionBody {
},
}

body.MaxAutomaticTokenAssociations = &wrapperspb.UInt32Value{Value: transaction.maxAutomaticTokenAssociations}
body.MaxAutomaticTokenAssociations = &wrapperspb.Int32Value{Value: int32(transaction.maxAutomaticTokenAssociations)}

return &pb
}
Expand Down
1,456 changes: 1,027 additions & 429 deletions proto/basic_types.pb.go

Large diffs are not rendered by default.

Loading

0 comments on commit 07a4158

Please sign in to comment.