@relayprotocol/relay-tron-wallet-adapter 1.0.0

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.
@@ -0,0 +1,10 @@
1
+ import { TronWeb } from 'tronweb';
2
+ import { type AdaptedWallet } from '@relayprotocol/relay-sdk';
3
+ /**
4
+ * Adapts a Tron wallet to work with the Relay SDK
5
+ * @param walletAddress - The public key address of the Tron wallet
6
+ * @param tronWeb - The TronWeb instance for interacting with the Tron network
7
+ * @returns An AdaptedWallet object that conforms to the Relay SDK interface
8
+ */
9
+ export declare const adaptTronWallet: (walletAddress: string, tronWeb: TronWeb) => AdaptedWallet;
10
+ //# sourceMappingURL=adapter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../src/adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACjC,OAAO,EAGL,KAAK,aAAa,EACnB,MAAM,0BAA0B,CAAA;AAGjC;;;;;GAKG;AACH,eAAO,MAAM,eAAe,kBACX,MAAM,WACZ,OAAO,KACf,aAmGF,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './adapter.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
@@ -0,0 +1,40 @@
1
+ export interface TronTriggerTransaction {
2
+ visible?: boolean;
3
+ txID: string;
4
+ raw_data: {
5
+ contract: Array<{
6
+ parameter: {
7
+ type_url: string;
8
+ value: {
9
+ owner_address?: string;
10
+ contract_address?: string;
11
+ data?: string;
12
+ call_value?: number;
13
+ call_token_value?: number;
14
+ token_id?: number;
15
+ };
16
+ };
17
+ type: 'TriggerSmartContract';
18
+ }>;
19
+ ref_block_bytes: string;
20
+ ref_block_hash: string;
21
+ expiration: number;
22
+ fee_limit?: number;
23
+ timestamp?: number;
24
+ };
25
+ raw_data_hex: string;
26
+ signature?: string[];
27
+ }
28
+ export interface TriggerSmartContractResponse {
29
+ result: {
30
+ result: boolean;
31
+ code?: string;
32
+ message?: string;
33
+ };
34
+ transaction?: TronTriggerTransaction;
35
+ energy_used?: number;
36
+ constant_result?: string[];
37
+ logs?: any[];
38
+ txid?: string;
39
+ }
40
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,sBAAsB;IACrC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE;QACR,QAAQ,EAAE,KAAK,CAAC;YACd,SAAS,EAAE;gBACT,QAAQ,EAAE,MAAM,CAAA;gBAChB,KAAK,EAAE;oBACL,aAAa,CAAC,EAAE,MAAM,CAAA;oBACtB,gBAAgB,CAAC,EAAE,MAAM,CAAA;oBACzB,IAAI,CAAC,EAAE,MAAM,CAAA;oBACb,UAAU,CAAC,EAAE,MAAM,CAAA;oBACnB,gBAAgB,CAAC,EAAE,MAAM,CAAA;oBACzB,QAAQ,CAAC,EAAE,MAAM,CAAA;iBAClB,CAAA;aACF,CAAA;YACD,IAAI,EAAE,sBAAsB,CAAA;SAC7B,CAAC,CAAA;QACF,eAAe,EAAE,MAAM,CAAA;QACvB,cAAc,EAAE,MAAM,CAAA;QACtB,UAAU,EAAE,MAAM,CAAA;QAClB,SAAS,CAAC,EAAE,MAAM,CAAA;QAClB,SAAS,CAAC,EAAE,MAAM,CAAA;KACnB,CAAA;IACD,YAAY,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;CACrB;AAED,MAAM,WAAW,4BAA4B;IAC3C,MAAM,EAAE;QACN,MAAM,EAAE,OAAO,CAAA;QACf,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,OAAO,CAAC,EAAE,MAAM,CAAA;KACjB,CAAA;IACD,WAAW,CAAC,EAAE,sBAAsB,CAAA;IACpC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAA;IAC1B,IAAI,CAAC,EAAE,GAAG,EAAE,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;CACd"}