@sodax/types 0.0.1-rc.2 → 0.0.1-rc.4
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/dist/cosmos/index.d.ts +78 -0
- package/dist/cosmos/index.d.ts.map +1 -0
- package/dist/cosmos/index.js +17 -0
- package/dist/cosmos/index.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/injective/index.d.ts +45 -0
- package/dist/injective/index.d.ts.map +1 -0
- package/dist/injective/index.js +17 -0
- package/dist/injective/index.js.map +1 -0
- package/dist/sui/index.d.ts +1 -1
- package/dist/sui/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import type { Hex, WalletAddressProvider } from '../common/index.js';
|
|
2
|
+
export type CosmosNetworkEnv = 'TestNet' | 'DevNet' | 'Mainnet';
|
|
3
|
+
export type JsonObject = unknown;
|
|
4
|
+
export interface CWCoin {
|
|
5
|
+
readonly denom: string;
|
|
6
|
+
readonly amount: string;
|
|
7
|
+
}
|
|
8
|
+
export interface CWStdFee {
|
|
9
|
+
readonly amount: readonly CWCoin[];
|
|
10
|
+
readonly gas: string;
|
|
11
|
+
/** The granter address that is used for paying with feegrants */
|
|
12
|
+
readonly granter?: string;
|
|
13
|
+
/** The fee payer address. The payer must have signed the transaction. */
|
|
14
|
+
readonly payer?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface CWExecuteResult {
|
|
17
|
+
readonly logs: readonly unknown[];
|
|
18
|
+
/** Block height in which the transaction is included */
|
|
19
|
+
readonly height: number;
|
|
20
|
+
/** Transaction hash (might be used as transaction ID). Guaranteed to be non-empty upper-case hex */
|
|
21
|
+
readonly transactionHash: string;
|
|
22
|
+
readonly events: readonly unknown[];
|
|
23
|
+
readonly gasWanted: bigint;
|
|
24
|
+
readonly gasUsed: bigint;
|
|
25
|
+
}
|
|
26
|
+
export interface CWTxResponse {
|
|
27
|
+
height: number;
|
|
28
|
+
txHash: string;
|
|
29
|
+
codespace: string;
|
|
30
|
+
code: number;
|
|
31
|
+
data?: string;
|
|
32
|
+
rawLog: string;
|
|
33
|
+
logs?: unknown[];
|
|
34
|
+
info?: string;
|
|
35
|
+
gasWanted: number;
|
|
36
|
+
gasUsed: number;
|
|
37
|
+
timestamp: string;
|
|
38
|
+
events?: unknown[];
|
|
39
|
+
}
|
|
40
|
+
export interface SignDoc {
|
|
41
|
+
/**
|
|
42
|
+
* body_bytes is protobuf serialization of a TxBody that matches the
|
|
43
|
+
* representation in TxRaw.
|
|
44
|
+
*/
|
|
45
|
+
bodyBytes: Uint8Array;
|
|
46
|
+
/**
|
|
47
|
+
* auth_info_bytes is a protobuf serialization of an AuthInfo that matches the
|
|
48
|
+
* representation in TxRaw.
|
|
49
|
+
*/
|
|
50
|
+
authInfoBytes: Uint8Array;
|
|
51
|
+
/**
|
|
52
|
+
* chain_id is the unique identifier of the chain this transaction targets.
|
|
53
|
+
* It prevents signed transactions from being used on another chain by an
|
|
54
|
+
* attacker
|
|
55
|
+
*/
|
|
56
|
+
chainId: string;
|
|
57
|
+
/** account_number is the account number of the account in state */
|
|
58
|
+
accountNumber: bigint;
|
|
59
|
+
}
|
|
60
|
+
export type CWRawTransaction = {
|
|
61
|
+
from: Hex;
|
|
62
|
+
to: Hex;
|
|
63
|
+
signedDoc: SignDoc;
|
|
64
|
+
};
|
|
65
|
+
export declare class CWExecuteResponse {
|
|
66
|
+
height: number | undefined;
|
|
67
|
+
transactionHash: string;
|
|
68
|
+
static fromExecResult(res: CWExecuteResult): CWExecuteResponse;
|
|
69
|
+
static fromTxResponse(res: CWTxResponse): CWExecuteResponse;
|
|
70
|
+
}
|
|
71
|
+
export interface ICWWalletProvider extends WalletAddressProvider {
|
|
72
|
+
getWalletAddress: () => Promise<string>;
|
|
73
|
+
getWalletAddressBytes: () => Promise<Hex>;
|
|
74
|
+
execute(senderAddress: string, contractAddress: string, msg: JsonObject, fee: CWStdFee | 'auto' | number, memo?: string, funds?: CWCoin[]): Promise<CWExecuteResponse>;
|
|
75
|
+
getRawTransaction(chainId: string, prefix: string, senderAddress: string, contractAddress: string, msg: JsonObject, memo?: string): CWRawTransaction;
|
|
76
|
+
queryContractSmart(address: string, queryMsg: JsonObject): Promise<JsonObject>;
|
|
77
|
+
}
|
|
78
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cosmos/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAErE,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEhE,MAAM,MAAM,UAAU,GAAG,OAAO,CAAC;AAEjC,MAAM,WAAW,MAAM;IACrB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;IACnC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,iEAAiE;IACjE,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,yEAAyE;IACzE,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,IAAI,EAAE,SAAS,OAAO,EAAE,CAAC;IAClC,wDAAwD;IACxD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,oGAAoG;IACpG,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,MAAM,EAAE,SAAS,OAAO,EAAE,CAAC;IACpC,QAAQ,CAAC,SAAS,EAAE,MAAM,C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M,EACvB,GAAG,EAAE,UAAU,EACf,GAAG,EAAE,QAAQ,GAAG,MAAM,GAAG,MAAM,EAC/B,IAAI,CAAC,EAAE,MAAM,EACb,KAAK,CAAC,EAAE,MAAM,EAAE,GACf,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAC9B,iBAAiB,CACf,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,MAAM,EACrB,eAAe,EAAE,MAAM,EACvB,GAAG,EAAE,UAAU,EACf,IAAI,CAAC,EAAE,MAAM,GACZ,gBAAgB,CAAC;IACpB,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;CAChF"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export class CWExecuteResponse {
|
|
2
|
+
height;
|
|
3
|
+
transactionHash;
|
|
4
|
+
static fromExecResult(res) {
|
|
5
|
+
const response = new CWExecuteResponse();
|
|
6
|
+
response.height = res.height;
|
|
7
|
+
response.transactionHash = res.transactionHash;
|
|
8
|
+
return response;
|
|
9
|
+
}
|
|
10
|
+
static fromTxResponse(res) {
|
|
11
|
+
const response = new CWExecuteResponse();
|
|
12
|
+
response.height = res.height;
|
|
13
|
+
response.transactionHash = res.txHash;
|
|
14
|
+
return response;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/cosmos/index.ts"],"names":[],"mappings":"AAyEA,MAAM,OAAO,iBAAiB;IACrB,MAAM,CAAqB;IAE3B,eAAe,CAAU;IAEzB,MAAM,CAAC,cAAc,CAAC,GAAoB;QAC/C,MAAM,QAAQ,GAAG,IAAI,iBAAiB,EAAE,CAAC;QACzC,QAAQ,CAAC,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC;QAC7B,QAAQ,CAAC,eAAe,GAAG,GAAG,CAAC,eAAe,CAAC;QAC/C,OAAO,QAAQ,CAAC;IAClB,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,GAAiB;QAC5C,MAAM,QAAQ,GAAG,IAAI,iBAAiB,EAAE,CAAC;QACzC,QAAQ,CAAC,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC;QAC7B,QAAQ,CAAC,eAAe,GAAG,GAAG,CAAC,MAAM,CAAC;QACtC,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC"}
|
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { Hex, WalletAddressProvider } from '../common/index.js';
|
|
2
|
+
import type { JsonObject, CWRawTransaction } from '../cosmos/index.js';
|
|
3
|
+
export type InjectiveEoaAddress = string;
|
|
4
|
+
export interface InjectiveCoin {
|
|
5
|
+
readonly denom: string;
|
|
6
|
+
readonly amount: string;
|
|
7
|
+
}
|
|
8
|
+
export interface InjectiveExecuteResult {
|
|
9
|
+
readonly logs: readonly unknown[];
|
|
10
|
+
/** Block height in which the transaction is included */
|
|
11
|
+
readonly height: number;
|
|
12
|
+
/** Transaction hash (might be used as transaction ID). Guaranteed to be non-empty upper-case hex */
|
|
13
|
+
readonly transactionHash: string;
|
|
14
|
+
readonly events: readonly unknown[];
|
|
15
|
+
readonly gasWanted: bigint;
|
|
16
|
+
readonly gasUsed: bigint;
|
|
17
|
+
}
|
|
18
|
+
export interface InjectiveTxResponse {
|
|
19
|
+
height: number;
|
|
20
|
+
txHash: string;
|
|
21
|
+
codespace: string;
|
|
22
|
+
code: number;
|
|
23
|
+
data?: string;
|
|
24
|
+
rawLog: string;
|
|
25
|
+
logs?: unknown[];
|
|
26
|
+
info?: string;
|
|
27
|
+
gasWanted: number;
|
|
28
|
+
gasUsed: number;
|
|
29
|
+
timestamp: string;
|
|
30
|
+
events?: unknown[];
|
|
31
|
+
}
|
|
32
|
+
export declare class InjectiveExecuteResponse {
|
|
33
|
+
height: number | undefined;
|
|
34
|
+
transactionHash: string;
|
|
35
|
+
static fromExecResult(res: InjectiveExecuteResult): InjectiveExecuteResponse;
|
|
36
|
+
static fromTxResponse(res: InjectiveTxResponse): InjectiveExecuteResponse;
|
|
37
|
+
}
|
|
38
|
+
export interface IInjectiveWalletProvider extends WalletAddressProvider {
|
|
39
|
+
getRawTransaction(chainId: string, _: string, senderAddress: string, contractAddress: string, msg: JsonObject, memo?: string): CWRawTransaction;
|
|
40
|
+
getWalletAddress: () => Promise<InjectiveEoaAddress>;
|
|
41
|
+
getWalletAddressBytes: () => Promise<Hex>;
|
|
42
|
+
execute: (senderAddress: InjectiveEoaAddress, contractAddress: string, msg: JsonObject, fee: 'auto' | number, memo?: string, funds?: InjectiveCoin[]) => Promise<InjectiveExecuteResponse>;
|
|
43
|
+
queryContractSmart: (address: string, queryMsg: JsonObject) => Promise<JsonObject>;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/injective/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEvE,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC;AAEzC,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,IAAI,EAAE,SAAS,OAAO,EAAE,CAAC;IAClC,wDAAwD;IACxD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,oGAAoG;IACpG,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,MAAM,EAAE,SAAS,OAAO,EAAE,CAAC;IACpC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,OAAO,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AAkB,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,KAAK,OAAO,CAAC,UAAU,CAAC,CAAC;CACpF"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export class InjectiveExecuteResponse {
|
|
2
|
+
height;
|
|
3
|
+
transactionHash;
|
|
4
|
+
static fromExecResult(res) {
|
|
5
|
+
const response = new InjectiveExecuteResponse();
|
|
6
|
+
response.height = res.height;
|
|
7
|
+
response.transactionHash = res.transactionHash;
|
|
8
|
+
return response;
|
|
9
|
+
}
|
|
10
|
+
static fromTxResponse(res) {
|
|
11
|
+
const response = new InjectiveExecuteResponse();
|
|
12
|
+
response.height = res.height;
|
|
13
|
+
response.transactionHash = res.txHash;
|
|
14
|
+
return response;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/injective/index.ts"],"names":[],"mappings":"AAoCA,MAAM,OAAO,wBAAwB;IAC5B,MAAM,CAAqB;IAE3B,eAAe,CAAU;IAEzB,MAAM,CAAC,cAAc,CAAC,GAA2B;QACtD,MAAM,QAAQ,GAAG,IAAI,wBAAwB,EAAE,CAAC;QAChD,QAAQ,CAAC,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC;QAC7B,QAAQ,CAAC,eAAe,GAAG,GAAG,CAAC,eAAe,CAAC;QAC/C,OAAO,QAAQ,CAAC;IAClB,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,GAAwB;QACnD,MAAM,QAAQ,GAAG,IAAI,wBAAwB,EAAE,CAAC;QAChD,QAAQ,CAAC,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC;QAC7B,QAAQ,CAAC,eAAe,GAAG,GAAG,CAAC,MAAM,CAAC;QACtC,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF"}
|
package/dist/sui/index.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export interface SuiPaginatedCoins {
|
|
|
27
27
|
export interface ISuiWalletProvider extends WalletAddressProvider {
|
|
28
28
|
getWalletAddress: () => Promise<Address>;
|
|
29
29
|
getWalletAddressBytes: () => Promise<Hex>;
|
|
30
|
-
signAndExecuteTxn: (txn: SuiTransaction) => Promise<
|
|
30
|
+
signAndExecuteTxn: (txn: SuiTransaction) => Promise<string>;
|
|
31
31
|
viewContract(tx: SuiTransaction, packageId: string, module: string, functionName: string, args: unknown[], typeArgs: string[]): Promise<SuiExecutionResult>;
|
|
32
32
|
getCoins: (address: string, token: string) => Promise<SuiPaginatedCoins>;
|
|
33
33
|
}
|
package/dist/sui/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sui/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC;AAE9E,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,WAAW,GACnB,SAAS,GACT;IACE,KAAK,EAAE,MAAM,CAAC;CACf,GACD;IACE,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEN,MAAM,WAAW,kBAAkB;IACjC,uBAAuB,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,EAAE,MAAM,CAAC,EAAE,CAAC;IAC5D,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,EAAE,MAAM,CAAC,EAAE,CAAC;CACrC;AAED,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,mBAAmB,EAAE,MAAM,CAAC;IAC5B,OAAO,EAAE,MAAM,CAAC;C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