near-api-js - v7.0.4
Preparing search index...
accounts/typed_contract
ContractConstructor
Type Alias ContractConstructor
ContractConstructor
:
{
new
<
const
abi
extends
AbiRoot
,
contractId
extends
string
>
(
params
:
ContractParameters
<
abi
,
contractId
>
,
)
:
{
[
K
in
string
|
number
|
symbol
]
:
(
(
IsNever
<
abi
extends
AbiRoot
?
AbiRoot
extends
abi
<
abi
>
?
string
:
ExtractAbiFunctionNames
<
abi
<
abi
>
,
"view"
,
(...)
[
(...)
]
[
"functions"
]
,
>
:
string
,
>
extends
false
?
{
view
:
{
[
functionName
in
_viewFunctionNames
]
:
GetViewFunction
<
abi
,
functionName
,
>
}
;
}
:
{}
)
&
(
IsNever
<
abi
extends
AbiRoot
?
AbiRoot
extends
abi
<
abi
>
?
string
:
ExtractAbiFunctionNames
<
abi
<
abi
>
,
"call"
,
(...)
[
(...)
]
[
"functions"
]
,
>
:
string
,
>
extends
false
?
{
call
:
{
[
functionName
in
_callFunctionNames
]
:
GetCallFunction
<
abi
,
functionName
,
>
}
;
}
:
{}
)
&
{
abi
:
abi
;
contractId
:
contractId
}
)
[
K
]
}
;
new
<
const
abi
extends
AbiRoot
,
contractId
extends
string
>
(
params
:
{
contractId
:
contractId
;
provider
:
Provider
}
,
)
:
{
[
K
in
string
|
number
|
symbol
]
:
Omit
<
{
[
K
in
string
|
number
|
symbol
]
:
(
(
IsNever
<
abi
extends
AbiRoot
?
(...)
extends
(...)
?
(...)
:
(...)
:
string
,
>
extends
false
?
{
view
:
{
[
functionName
in
_viewFunctionNames
]
:
GetViewFunction
<
(...)
,
(...)
,
>
}
;
}
:
{}
)
&
(
IsNever
<
abi
extends
AbiRoot
?
(...)
extends
(...)
?
(...)
:
(...)
:
string
,
>
extends
false
?
{
call
:
{
[
functionName
in
_callFunctionNames
]
:
GetCallFunction
<
(...)
,
(...)
,
>
}
;
}
:
{}
)
&
{
abi
:
abi
;
contractId
:
contractId
}
)
[
K
]
}
,
"abi"
,
>
[
K
]
}
;
}
Type Declaration
new
<
const
abi
extends
AbiRoot
,
contractId
extends
string
>
(
params
:
ContractParameters
<
abi
,
contractId
>
,
)
:
{
[
K
in
string
|
number
|
symbol
]
:
(
(
IsNever
<
abi
extends
AbiRoot
?
AbiRoot
extends
abi
<
abi
>
?
string
:
ExtractAbiFunctionNames
<
abi
<
abi
>
,
"view"
,
(...)
[
(...)
]
[
"functions"
]
>
:
string
,
>
extends
false
?
{
view
:
{
[
functionName
in
_viewFunctionNames
]
:
GetViewFunction
<
abi
,
functionName
,
>
}
;
}
:
{}
)
&
(
IsNever
<
abi
extends
AbiRoot
?
AbiRoot
extends
abi
<
abi
>
?
string
:
ExtractAbiFunctionNames
<
abi
<
abi
>
,
"call"
,
(...)
[
(...)
]
[
"functions"
]
>
:
string
,
>
extends
false
?
{
call
:
{
[
functionName
in
_callFunctionNames
]
:
GetCallFunction
<
abi
,
functionName
,
>
}
;
}
:
{}
)
&
{
abi
:
abi
;
contractId
:
contractId
}
)
[
K
]
}
Type Parameters
const
abi
extends
AbiRoot
contractId
extends
string
Parameters
params
:
ContractParameters
<
abi
,
contractId
>
Returns
{
[
K
in
string
|
number
|
symbol
]
:
(
(
IsNever
<
abi
extends
AbiRoot
?
AbiRoot
extends
abi
<
abi
>
?
string
:
ExtractAbiFunctionNames
<
abi
<
abi
>
,
"view"
,
(...)
[
(...)
]
[
"functions"
]
>
:
string
,
>
extends
false
?
{
view
:
{
[
functionName
in
_viewFunctionNames
]
:
GetViewFunction
<
abi
,
functionName
,
>
}
;
}
:
{}
)
&
(
IsNever
<
abi
extends
AbiRoot
?
AbiRoot
extends
abi
<
abi
>
?
string
:
ExtractAbiFunctionNames
<
abi
<
abi
>
,
"call"
,
(...)
[
(...)
]
[
"functions"
]
>
:
string
,
>
extends
false
?
{
call
:
{
[
functionName
in
_callFunctionNames
]
:
GetCallFunction
<
abi
,
functionName
,
>
}
;
}
:
{}
)
&
{
abi
:
abi
;
contractId
:
contractId
}
)
[
K
]
}
new
<
const
abi
extends
AbiRoot
,
contractId
extends
string
>
(
params
:
{
contractId
:
contractId
;
provider
:
Provider
}
,
)
:
{
[
K
in
string
|
number
|
symbol
]
:
Omit
<
{
[
K
in
string
|
number
|
symbol
]
:
(
(
IsNever
<
abi
extends
AbiRoot
?
(...)
extends
(...)
?
(...)
:
(...)
:
string
,
>
extends
false
?
{
view
:
{
[
functionName
in
_viewFunctionNames
]
:
GetViewFunction
<
(...)
,
(...)
,
>
}
;
}
:
{}
)
&
(
IsNever
<
abi
extends
AbiRoot
?
(...)
extends
(...)
?
(...)
:
(...)
:
string
,
>
extends
false
?
{
call
:
{
[
functionName
in
_callFunctionNames
]
:
GetCallFunction
<
(...)
,
(...)
,
>
}
;
}
:
{}
)
&
{
abi
:
abi
;
contractId
:
contractId
}
)
[
K
]
}
,
"abi"
,
>
[
K
]
}
Type Parameters
const
abi
extends
AbiRoot
contractId
extends
string
Parameters
params
:
{
contractId
:
contractId
;
provider
:
Provider
}
Returns
{
[
K
in
string
|
number
|
symbol
]
:
Omit
<
{
[
K
in
string
|
number
|
symbol
]
:
(
(
IsNever
<
abi
extends
AbiRoot
?
(...)
extends
(...)
?
(...)
:
(...)
:
string
,
>
extends
false
?
{
view
:
{
[
functionName
in
_viewFunctionNames
]
:
GetViewFunction
<
(...)
,
(...)
,
>
}
;
}
:
{}
)
&
(
IsNever
<
abi
extends
AbiRoot
?
(...)
extends
(...)
?
(...)
:
(...)
:
string
,
>
extends
false
?
{
call
:
{
[
functionName
in
_callFunctionNames
]
:
GetCallFunction
<
(...)
,
(...)
,
>
}
;
}
:
{}
)
&
{
abi
:
abi
;
contractId
:
contractId
}
)
[
K
]
}
,
"abi"
,
>
[
K
]
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
near-api-js - v7.0.4
Loading...