@arkade-os/sdk Documentation - v0.3.11
Preparing search index...
ContractRepositoryImpl
Class ContractRepositoryImpl
Implements
ContractRepository
Index
Constructors
constructor
Methods
clear
Contract
Data
delete
Contract
Data
get
Contract
Collection
get
Contract
Data
remove
From
Contract
Collection
save
To
Contract
Collection
set
Contract
Data
Constructors
constructor
new
ContractRepositoryImpl
(
storage
:
StorageAdapter
)
:
ContractRepositoryImpl
Parameters
storage
:
StorageAdapter
Returns
ContractRepositoryImpl
Methods
clear
Contract
Data
clearContractData
()
:
Promise
<
void
>
Returns
Promise
<
void
>
delete
Contract
Data
deleteContractData
(
contractId
:
string
,
key
:
string
)
:
Promise
<
void
>
Parameters
contractId
:
string
key
:
string
Returns
Promise
<
void
>
get
Contract
Collection
getContractCollection
<
T
>
(
contractType
:
string
)
:
Promise
<
readonly
T
[]
>
Type Parameters
T
Parameters
contractType
:
string
Returns
Promise
<
readonly
T
[]
>
get
Contract
Data
getContractData
<
T
>
(
contractId
:
string
,
key
:
string
)
:
Promise
<
T
|
null
>
Type Parameters
T
Parameters
contractId
:
string
key
:
string
Returns
Promise
<
T
|
null
>
remove
From
Contract
Collection
removeFromContractCollection
<
T
,
K
extends
string
|
number
|
symbol
>
(
contractType
:
string
,
id
:
T
[
K
]
,
idField
:
K
,
)
:
Promise
<
void
>
Type Parameters
T
K
extends
string
|
number
|
symbol
Parameters
contractType
:
string
id
:
T
[
K
]
idField
:
K
Returns
Promise
<
void
>
save
To
Contract
Collection
saveToContractCollection
<
T
,
K
extends
string
|
number
|
symbol
>
(
contractType
:
string
,
item
:
T
,
idField
:
K
,
)
:
Promise
<
void
>
Type Parameters
T
K
extends
string
|
number
|
symbol
Parameters
contractType
:
string
item
:
T
idField
:
K
Returns
Promise
<
void
>
set
Contract
Data
setContractData
<
T
>
(
contractId
:
string
,
key
:
string
,
data
:
T
)
:
Promise
<
void
>
Type Parameters
T
Parameters
contractId
:
string
key
:
string
data
:
T
Returns
Promise
<
void
>
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
clear
Contract
Data
delete
Contract
Data
get
Contract
Collection
get
Contract
Data
remove
From
Contract
Collection
save
To
Contract
Collection
set
Contract
Data
@arkade-os/sdk Documentation - v0.3.11
Loading...