@kimafinance/kima-transaction-api 1.0.20-beta.1 → 1.0.22-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/dev_auto_publish_npm.yml +5 -1
- package/build/index.d.ts +28 -0
- package/build/index.js +67 -0
- package/build/kima/common.d.ts +14 -0
- package/build/kima/common.js +36 -0
- package/build/kima/tx.d.ts +426 -0
- package/build/kima/tx.js +1271 -0
- package/package.json +2 -1
- package/src/kima/common.ts +4 -4
- package/src/kima/tx.ts +411 -3133
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kimafinance/kima-transaction-api",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.22-beta.1",
|
|
4
4
|
"description": "A wrapper around Kima's API, enabling sending and monitoring transactions (Beta version)",
|
|
5
|
+
"repository": "https://github.com/kima-finance/kima-transaction-api",
|
|
5
6
|
"author": "",
|
|
6
7
|
"license": "MIT",
|
|
7
8
|
"main": "build/index.js",
|
package/src/kima/common.ts
CHANGED
|
@@ -16,8 +16,8 @@ interface SignAndBroadcastOptions {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
const types = [
|
|
19
|
-
["/kimablockchain.
|
|
20
|
-
["/kimablockchain.
|
|
19
|
+
["/kimablockchain.transaction.MsgRequestTransaction", MsgRequestTransaction],
|
|
20
|
+
["/kimablockchain.transaction.MsgSetTxHash", MsgSetTxHash],
|
|
21
21
|
];
|
|
22
22
|
|
|
23
23
|
export const registry = new Registry(<any>types);
|
|
@@ -36,11 +36,11 @@ export const TxClient = async (wallet: OfflineSigner) => {
|
|
|
36
36
|
{ fee, memo }: SignAndBroadcastOptions = { fee: defaultFee, memo: "" }
|
|
37
37
|
) => client.signAndBroadcast(address, msgs, fee, memo),
|
|
38
38
|
msgRequestTransaction: (data: MsgRequestTransaction): EncodeObject => ({
|
|
39
|
-
typeUrl: "/kimablockchain.
|
|
39
|
+
typeUrl: "/kimablockchain.transaction.MsgRequestTransaction",
|
|
40
40
|
value: MsgRequestTransaction.fromPartial(data),
|
|
41
41
|
}),
|
|
42
42
|
msgSetTxHash: (data: MsgSetTxHash): EncodeObject => ({
|
|
43
|
-
typeUrl: "/kimablockchain.
|
|
43
|
+
typeUrl: "/kimablockchain.transaction.MsgSetTxHash",
|
|
44
44
|
value: MsgSetTxHash.fromPartial(data),
|
|
45
45
|
}),
|
|
46
46
|
};
|