1
1
import { INITIAL_BALANCES } from '@/constants' ;
2
- import { Accounts , Assets } from '@/types' ;
2
+ import { Accounts , Asset , AssetLocation , AssetSourceRelation } from '@/types' ;
3
3
4
4
export const POLIMEC_WASM =
5
5
'../../target/release/wbuild/polimec-runtime/polimec_runtime.compact.compressed.wasm' ;
6
6
7
+ const usdc_location = {
8
+ parents : 1 ,
9
+ interior : {
10
+ x3 : [ { parachain : 1000 } , { palletInstance : 50 } , { generalIndex : 1337 } ] ,
11
+ } ,
12
+ } ;
13
+ const usdt_location = {
14
+ parents : 1 ,
15
+ interior : {
16
+ x3 : [ { parachain : 1000 } , { palletInstance : 50 } , { generalIndex : 1984 } ] ,
17
+ } ,
18
+ } ;
19
+ const dot_location = {
20
+ parents : 1 ,
21
+ interior : {
22
+ here : undefined ,
23
+ } ,
24
+ } ;
25
+
7
26
export const polimec_storage = {
8
27
System : {
9
28
Account : [
@@ -21,23 +40,81 @@ export const polimec_storage = {
21
40
ForeignAssets : {
22
41
Account : [
23
42
[
24
- [ Assets . USDC , Accounts . BOB ] ,
43
+ [ usdc_location , Accounts . BOB ] ,
25
44
{
26
45
balance : INITIAL_BALANCES . USDC ,
27
46
} ,
28
47
] ,
29
48
[
30
- [ Assets . USDT , Accounts . BOB ] ,
49
+ [ usdt_location , Accounts . BOB ] ,
31
50
{
32
51
balance : INITIAL_BALANCES . USDT ,
33
52
} ,
34
53
] ,
35
54
[
36
- [ Assets . DOT , Accounts . BOB ] ,
55
+ [ dot_location , Accounts . BOB ] ,
37
56
{
38
57
balance : INITIAL_BALANCES . DOT ,
39
58
} ,
40
59
] ,
41
60
] ,
61
+ Asset : [
62
+ [
63
+ [ usdc_location ] ,
64
+ {
65
+ owner : Accounts . ALICE ,
66
+ issuer : Accounts . ALICE ,
67
+ admin : Accounts . ALICE ,
68
+ freezer : Accounts . ALICE ,
69
+ supply : INITIAL_BALANCES . USDC ,
70
+ deposit : 0n ,
71
+ min_balance : 70000n ,
72
+ is_sufficient : true ,
73
+ accounts : 1 ,
74
+ sufficients : 1 ,
75
+ approvals : 0 ,
76
+ status : 'Live' ,
77
+ } ,
78
+ ] ,
79
+ [
80
+ [ usdt_location ] ,
81
+ {
82
+ owner : Accounts . ALICE ,
83
+ issuer : Accounts . ALICE ,
84
+ admin : Accounts . ALICE ,
85
+ freezer : Accounts . ALICE ,
86
+ supply : INITIAL_BALANCES . USDT ,
87
+ deposit : 0n ,
88
+ min_balance : 70000n ,
89
+ is_sufficient : true ,
90
+ accounts : 1 ,
91
+ sufficients : 1 ,
92
+ approvals : 0 ,
93
+ status : 'Live' ,
94
+ } ,
95
+ ] ,
96
+ [
97
+ [ dot_location ] ,
98
+ {
99
+ owner : Accounts . ALICE ,
100
+ issuer : Accounts . ALICE ,
101
+ admin : Accounts . ALICE ,
102
+ freezer : Accounts . ALICE ,
103
+ supply : INITIAL_BALANCES . DOT ,
104
+ deposit : 0n ,
105
+ min_balance : 100000000n ,
106
+ is_sufficient : true ,
107
+ accounts : 1 ,
108
+ sufficients : 1 ,
109
+ approvals : 0 ,
110
+ status : 'Live' ,
111
+ } ,
112
+ ] ,
113
+ ] ,
114
+ Metadata : [
115
+ [ [ usdc_location ] , { symbol : 'USDC' , name : 'USDC' , decimals : 6 , isFrozen : false } ] ,
116
+ [ [ usdt_location ] , { symbol : 'USDT' , name : 'USDC' , decimals : 6 , isFrozen : false } ] ,
117
+ [ [ dot_location ] , { symbol : 'DOT' , name : 'DOT' , decimals : 10 , isFrozen : false } ] ,
118
+ ] ,
42
119
} ,
43
120
} as const ;
0 commit comments