Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
open-runtime-module-library
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Noxim
open-runtime-module-library
Commits
3ac2286c
Unverified
Commit
3ac2286c
authored
5 years ago
by
Xiliang Chen
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
update hasher (#101)
parent
3ec05e62
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
auction/src/lib.rs
+2
-2
2 additions, 2 deletions
auction/src/lib.rs
oracle/src/lib.rs
+3
-3
3 additions, 3 deletions
oracle/src/lib.rs
tokens/src/lib.rs
+2
-2
2 additions, 2 deletions
tokens/src/lib.rs
vesting/src/lib.rs
+1
-1
1 addition, 1 deletion
vesting/src/lib.rs
with
8 additions
and
8 deletions
auction/src/lib.rs
+
2
−
2
View file @
3ac2286c
...
...
@@ -37,9 +37,9 @@ type AuctionIdLinkedItem<T> = LinkedItem<<T as Trait>::AuctionId>;
decl_storage!
{
trait
Store
for
Module
<
T
:
Trait
>
as
Auction
{
pub
Auctions
get
(
fn
auctions
):
map
hasher
(
blake2_256
)
T
::
AuctionId
=>
Option
<
AuctionInfo
<
T
::
AccountId
,
T
::
Balance
,
T
::
BlockNumber
>>
;
pub
Auctions
get
(
fn
auctions
):
map
hasher
(
twox_64_concat
)
T
::
AuctionId
=>
Option
<
AuctionInfo
<
T
::
AccountId
,
T
::
Balance
,
T
::
BlockNumber
>>
;
pub
AuctionsIndex
get
(
fn
auctions_index
):
T
::
AuctionId
;
pub
AuctionEndTime
get
(
fn
auction_end_time
):
map
hasher
(
blake2_256
)
(
T
::
BlockNumber
,
Option
<
T
::
AuctionId
>
)
=>
Option
<
AuctionIdLinkedItem
<
T
>>
;
pub
AuctionEndTime
get
(
fn
auction_end_time
):
map
hasher
(
twox_64_concat
)
(
T
::
BlockNumber
,
Option
<
T
::
AuctionId
>
)
=>
Option
<
AuctionIdLinkedItem
<
T
>>
;
}
}
...
...
This diff is collapsed.
Click to expand it.
oracle/src/lib.rs
+
3
−
3
View file @
3ac2286c
...
...
@@ -49,9 +49,9 @@ pub trait Trait: frame_system::Trait {
decl_storage!
{
trait
Store
for
Module
<
T
:
Trait
>
as
Oracle
{
pub
RawValues
get
(
raw_values
):
double_map
hasher
(
blake2_256
)
T
::
OracleKey
,
hasher
(
blake2_256
)
T
::
AccountId
=>
Option
<
TimestampedValueOf
<
T
>>
;
pub
HasUpdate
get
(
has_update
):
map
hasher
(
blake2_256
)
T
::
OracleKey
=>
bool
;
pub
Values
get
(
values
):
map
hasher
(
blake2_256
)
T
::
OracleKey
=>
Option
<
TimestampedValueOf
<
T
>>
;
pub
RawValues
get
(
raw_values
):
double_map
hasher
(
twox_64_concat
)
T
::
OracleKey
,
hasher
(
twox_64_concat
)
T
::
AccountId
=>
Option
<
TimestampedValueOf
<
T
>>
;
pub
HasUpdate
get
(
has_update
):
map
hasher
(
twox_64_concat
)
T
::
OracleKey
=>
bool
;
pub
Values
get
(
values
):
map
hasher
(
twox_64_concat
)
T
::
OracleKey
=>
Option
<
TimestampedValueOf
<
T
>>
;
HasDispatched
:
Vec
<
T
::
AccountId
>
;
}
}
...
...
This diff is collapsed.
Click to expand it.
tokens/src/lib.rs
+
2
−
2
View file @
3ac2286c
...
...
@@ -57,10 +57,10 @@ decl_storage! {
})
.into_iter
()
.collect
::
<
Vec
<
_
>>
()
}):
map
hasher
(
blake2_256
)
T
::
CurrencyId
=>
T
::
Balance
;
}):
map
hasher
(
twox_64_concat
)
T
::
CurrencyId
=>
T
::
Balance
;
/// The balance of a token type under an account.
pub
Balance
get
(
fn
balance
):
double_map
hasher
(
blake2_256
)
T
::
CurrencyId
,
hasher
(
blake2_
256
)
T
::
AccountId
=>
T
::
Balance
;
pub
Balance
get
(
fn
balance
):
double_map
hasher
(
twox_64_concat
)
T
::
CurrencyId
,
hasher
(
blake2_
128_concat
)
T
::
AccountId
=>
T
::
Balance
;
}
add_extra_genesis
{
config
(
endowed_accounts
):
Vec
<
(
T
::
AccountId
,
T
::
CurrencyId
,
T
::
Balance
)
>
;
...
...
This diff is collapsed.
Click to expand it.
vesting/src/lib.rs
+
1
−
1
View file @
3ac2286c
...
...
@@ -80,7 +80,7 @@ decl_storage! {
(
who
.clone
(),
vec!
[
VestingSchedule
{
start
,
period
,
period_count
,
per_period
}])
)
.collect
::
<
Vec
<
_
>>
()
}):
map
hasher
(
blake2_
256
)
T
::
AccountId
=>
Vec
<
VestingScheduleOf
<
T
>>
;
}):
map
hasher
(
blake2_
128_concat
)
T
::
AccountId
=>
Vec
<
VestingScheduleOf
<
T
>>
;
}
add_extra_genesis
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment