MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / newTransfer

Function newTransfer

blockproducer/chain_test.go:40–54  ·  view source on GitHub ↗
(
	nonce pi.AccountNonce, signer *asymmetric.PrivateKey,
	sender, receiver proto.AccountAddress, amount uint64,
)

Source from the content-addressed store, hash-verified

38)
39
40func newTransfer(
41 nonce pi.AccountNonce, signer *asymmetric.PrivateKey,
42 sender, receiver proto.AccountAddress, amount uint64,
43) (
44 t *types.Transfer, err error,
45) {
46 t = types.NewTransfer(&types.TransferHeader{
47 Sender: sender,
48 Receiver: receiver,
49 Nonce: nonce,
50 Amount: amount,
51 })
52 err = t.Sign(signer)
53 return
54}
55
56func newCreateDatabase(
57 nonce pi.AccountNonce, signer *asymmetric.PrivateKey,

Callers 1

TestChainFunction · 0.85

Calls 2

NewTransferFunction · 0.92
SignMethod · 0.65

Tested by

no test coverage detected