UNPKG
@szfdiwang/platon-tools
Version:
latest (0.0.4)
0.0.4
0.0.3
0.0.2
0.0.1
PlatON utility library with built-in contract trading parameters
@szfdiwang/platon-tools
/
packages
/
index.d.ts
7 lines
(6 loc)
•
292 B
TypeScript
View Raw
1
2
3
4
5
6
7
import
{
ParamsForCode
,
ParamsForTx
,
CodeType
}
from
"./types"
;
declare
const
Tools
: {
getContractAddress
:
(
code
:
CodeType
) =>
string
|
undefined
;
getParams
: <T
extends
CodeType
>
(
code
: T,
address
:
string
,
params
:
ParamsForCode
<T>
) =>
ParamsForTx
|
undefined
; };
export
default
Tools
;