Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
8f347f7c
Commit
8f347f7c
authored
Apr 26, 2023
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
better stubs
parent
5ac76526
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
25 additions
and
29 deletions
+25
-29
account.ts
stubs/account.ts
+1
-1
address.ts
stubs/address.ts
+1
-14
addressParams.ts
stubs/addressParams.ts
+14
-0
block.ts
stubs/block.ts
+1
-0
token.ts
stubs/token.ts
+7
-14
tx.ts
stubs/tx.ts
+1
-0
No files found.
stubs/account.ts
View file @
8f347f7c
import
{
ADDRESS_PARAMS
,
ADDRESS_HASH
}
from
'
./address
'
;
import
{
ADDRESS_PARAMS
,
ADDRESS_HASH
}
from
'
./address
Params
'
;
export
const
PRIVATE_TAG_ADDRESS
=
{
address
:
ADDRESS_PARAMS
,
...
...
stubs/address.ts
View file @
8f347f7c
import
type
{
Address
}
from
'
types/api/address
'
;
import
type
{
AddressParam
}
from
'
types/api/addressParams
'
;
import
{
ADDRESS_HASH
}
from
'
./addressParams
'
;
import
{
TOKEN_INFO_ERC_20
}
from
'
./token
'
;
export
const
ADDRESS_HASH
=
'
0x2B51Ae4412F79c3c1cB12AA40Ea4ECEb4e80511a
'
;
export
const
ADDRESS_PARAMS
:
AddressParam
=
{
hash
:
ADDRESS_HASH
,
implementation_name
:
null
,
is_contract
:
false
,
is_verified
:
null
,
name
:
null
,
private_tags
:
[],
public_tags
:
[],
watchlist_names
:
[],
};
export
const
ADDRESS_INFO
:
Address
=
{
block_number_balance_updated_at
:
8774377
,
coin_balance
:
'
0
'
,
...
...
stubs/addressParams.ts
0 → 100644
View file @
8f347f7c
import
type
{
AddressParam
}
from
'
types/api/addressParams
'
;
export
const
ADDRESS_HASH
=
'
0x2B51Ae4412F79c3c1cB12AA40Ea4ECEb4e80511a
'
;
export
const
ADDRESS_PARAMS
:
AddressParam
=
{
hash
:
ADDRESS_HASH
,
implementation_name
:
null
,
is_contract
:
false
,
is_verified
:
null
,
name
:
null
,
private_tags
:
[],
public_tags
:
[],
watchlist_names
:
[],
};
stubs/block.ts
0 → 100644
View file @
8f347f7c
export
const
BLOCK_HASH
=
'
0x8fa7b9e5e5e79deeb62d608db22ba9a5cb45388c7ebb9223ae77331c6080dc70
'
;
stubs/token.ts
View file @
8f347f7c
import
type
{
TokenCounters
,
TokenHolder
,
TokenHolders
,
TokenInfo
,
TokenInstance
,
TokenInventoryResponse
,
TokenType
}
from
'
types/api/token
'
;
import
type
{
TokenTransfer
,
TokenTransferResponse
}
from
'
types/api/tokenTransfer
'
;
const
ADDRESS_PARAMS
=
{
hash
:
'
0x2B51Ae4412F79c3c1cB12AA40Ea4ECEb4e80511a
'
,
implementation_name
:
null
,
is_contract
:
false
,
is_verified
:
null
,
name
:
null
,
private_tags
:
[],
public_tags
:
[],
watchlist_names
:
[],
};
import
{
ADDRESS_PARAMS
,
ADDRESS_HASH
}
from
'
./addressParams
'
;
import
{
BLOCK_HASH
}
from
'
./block
'
;
import
{
TX_HASH
}
from
'
./tx
'
;
export
const
TOKEN_INFO_ERC_20
:
TokenInfo
<
'
ERC-20
'
>
=
{
address
:
'
0x2B51Ae4412F79c3c1cB12AA40Ea4ECEb4e80511a
'
,
address
:
ADDRESS_HASH
,
decimals
:
'
18
'
,
exchange_rate
:
null
,
holders
:
'
16026
'
,
...
...
@@ -46,7 +39,7 @@ export const TOKEN_HOLDER: TokenHolder = {
export
const
TOKEN_HOLDERS
:
TokenHolders
=
{
items
:
Array
(
50
).
fill
(
TOKEN_HOLDER
),
next_page_params
:
null
};
export
const
TOKEN_TRANSFER_ERC_20
:
TokenTransfer
=
{
block_hash
:
'
0x8fa7b9e5e5e79deeb62d608db22ba9a5cb45388c7ebb9223ae77331c6080dc70
'
,
block_hash
:
BLOCK_HASH
,
from
:
ADDRESS_PARAMS
,
log_index
:
'
4
'
,
method
:
'
addLiquidity
'
,
...
...
@@ -57,7 +50,7 @@ export const TOKEN_TRANSFER_ERC_20: TokenTransfer = {
decimals
:
'
18
'
,
value
:
'
9851351626684503
'
,
},
tx_hash
:
'
0x3ed9d81e7c1001bdda1caa1dc62c0acbbe3d2c671cdc20dc1e65efdaa4186967
'
,
tx_hash
:
TX_HASH
,
type
:
'
token_minting
'
,
};
...
...
@@ -105,7 +98,7 @@ export const TOKEN_INSTANCE: TokenInstance = {
},
owner
:
ADDRESS_PARAMS
,
token
:
TOKEN_INFO_ERC_1155
,
holder_address_hash
:
'
0x2B51Ae4412F79c3c1cB12AA40Ea4ECEb4e80511a
'
,
holder_address_hash
:
ADDRESS_HASH
,
};
export
const
TOKEN_INSTANCES
:
TokenInventoryResponse
=
{
...
...
stubs/tx.ts
0 → 100644
View file @
8f347f7c
export
const
TX_HASH
=
'
0x3ed9d81e7c1001bdda1caa1dc62c0acbbe3d2c671cdc20dc1e65efdaa4186967
'
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment