Skip to content

Commit 458fb18

Browse files
authored
feat(Luna): CW-5712- Terra (luna) Normal transfer (#300)
* Luna normal transfer * minor correction- removed signedTx
1 parent af7bb85 commit 458fb18

File tree

14 files changed

+1783
-52
lines changed

14 files changed

+1783
-52
lines changed

packages/coin-luna/package-lock.json

Lines changed: 140 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/coin-luna/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
},
3232
"homepage": "https://github.com/CoolBitX-Technology/coolwallet3-sdk#readme",
3333
"dependencies": {
34-
"bech32": "^2.0.0"
34+
"bech32": "^2.0.0",
35+
"protocol-buffers": "^4.2.0",
36+
"protocol-buffers-encodings": "^1.1.1"
3537
}
3638
}
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
syntax = "proto3";
2+
package google.protobuf;
3+
import "gogoproto/gogo.proto";
4+
import "google/protobuf/any.proto";
5+
6+
7+
message MsgSend {
8+
required string from_address = 1;
9+
required string to_address = 2;
10+
repeated Coin amount = 3;
11+
}
12+
13+
message MsgDelegate {
14+
required string delegator_address = 1;
15+
required string validator_address = 2;
16+
Coin amount = 3;
17+
}
18+
19+
message MsgUndelegate {
20+
required string delegator_address = 1;
21+
required string validator_address = 2;
22+
Coin amount = 3;
23+
}
24+
25+
message MsgWithdrawDelegatorReward {
26+
required string delegator_address = 1;
27+
required string validator_address = 2;
28+
}
29+
30+
31+
message Fee {
32+
repeated Coin amount = 1;
33+
uint64 gas_limit = 2;
34+
}
35+
36+
message Coin {
37+
string denom = 1;
38+
string amount = 2;
39+
}
40+
41+
message TxBody {
42+
repeated Any messages = 1;
43+
string memo = 2;
44+
}
45+
46+
message PublicKey {
47+
bytes value = 1;
48+
}
49+
50+
51+
message Any {
52+
string type_url = 1;
53+
bytes value = 2;
54+
}
55+
56+
57+
message AuthInfo {
58+
repeated bytes signer_infos = 1;
59+
bytes fee = 2;
60+
}
61+
62+
message SignerInfo {
63+
bytes public_key = 1;
64+
ModeInfo mode_info = 2;
65+
uint64 sequence = 3;
66+
}
67+
68+
message ModeInfo {
69+
oneof sum {
70+
Single single = 1;
71+
}
72+
message Single {
73+
SignMode mode = 1;
74+
}
75+
}
76+
77+
78+
enum SignMode {
79+
SIGN_MODE_UNSPECIFIED = 0;
80+
SIGN_MODE_DIRECT = 1;
81+
SIGN_MODE_TEXTUAL = 2;
82+
SIGN_MODE_LEGACY_AMINO_JSON = 127;
83+
}
84+
85+
message TxRaw {
86+
bytes body_bytes = 1;
87+
bytes auth_info_bytes = 2;
88+
repeated bytes signatures = 3;
89+
}

0 commit comments

Comments
 (0)