-
Notifications
You must be signed in to change notification settings - Fork 138
/
Copy pathflow-core-contracts.yaml
139 lines (125 loc) Β· 4.54 KB
/
flow-core-contracts.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
description: Flow Core Contracts
maintainers:
- bastian@dapperlabs.com
- joshua.hannan@dapperlabs.com
url: https://github.com/onflow/flow-core-contracts.git
branch: master
go_tests:
- path: lib/go/test
command: make test
files:
- path: contracts/FlowToken.cdc
# language=Python prefix="replace: Callable[[str, str], None]\n"
prepare: |
from pathlib import Path
replace(
'import FungibleToken from 0xFUNGIBLETOKENADDRESS',
f'import FungibleToken from "{Path("../../flow-ft/contracts/FungibleToken.cdc").resolve()}"'
)
- path: contracts/FlowFees.cdc
# language=Python prefix="replace: Callable[[str, str], None]\n"
prepare: |
from pathlib import Path
replace(
'import FungibleToken from 0xFUNGIBLETOKENADDRESS',
f'import FungibleToken from "{Path("../../flow-ft/contracts/FungibleToken.cdc").resolve()}"'
)
replace(
'import FlowToken from 0xFLOWTOKENADDRESS',
f'import FlowToken from "{Path("FlowToken.cdc").resolve()}"'
)
- path: contracts/FlowIDTableStaking.cdc
# language=Python prefix="replace: Callable[[str, str], None]\n"
prepare: |
from pathlib import Path
replace(
'import FungibleToken from 0xFUNGIBLETOKENADDRESS',
f'import FungibleToken from "{Path("../../flow-ft/contracts/FungibleToken.cdc").resolve()}"'
)
replace(
'import FlowToken from 0xFLOWTOKENADDRESS',
f'import FlowToken from "{Path("FlowToken.cdc").resolve()}"'
)
- path: contracts/FlowStorageFees.cdc
# language=Python prefix="replace: Callable[[str, str], None]\n"
prepare: |
from pathlib import Path
replace(
'import FungibleToken from 0xFUNGIBLETOKENADDRESS',
f'import FungibleToken from "{Path("../../flow-ft/contracts/FungibleToken.cdc").resolve()}"'
)
replace(
'import FlowToken from 0xFLOWTOKENADDRESS',
f'import FlowToken from "{Path("FlowToken.cdc").resolve()}"'
)
- path: contracts/FlowServiceAccount.cdc
# language=Python prefix="replace: Callable[[str, str], None]\n"
prepare: |
from pathlib import Path
replace(
'import FungibleToken from 0xFUNGIBLETOKENADDRESS',
f'import FungibleToken from "{Path("../../flow-ft/contracts/FungibleToken.cdc").resolve()}"'
)
replace(
'import FlowToken from 0xFLOWTOKENADDRESS',
f'import FlowToken from "{Path("FlowToken.cdc").resolve()}"'
)
replace(
'import FlowFees from 0xFLOWFEESADDRESS',
f'import FlowFees from "{Path("FlowFees.cdc").resolve()}"'
)
replace(
'import FlowStorageFees from 0xFLOWSTORAGEFEESADDRESS',
f'import FlowStorageFees from "{Path("FlowStorageFees.cdc").resolve()}"'
)
- path: contracts/StakingProxy.cdc
- path: contracts/LockedTokens.cdc
# language=Python prefix="replace: Callable[[str, str], None]\n"
prepare: |
from pathlib import Path
replace(
'import FlowToken from 0xFLOWTOKENADDRESS',
f'import FlowToken from "{Path("FlowToken.cdc").resolve()}"'
)
replace(
'import FungibleToken from 0xFUNGIBLETOKENADDRESS',
f'import FungibleToken from "{Path("../../flow-ft/contracts/FungibleToken.cdc").resolve()}"'
)
replace(
'import FlowIDTableStaking from 0xFLOWIDTABLESTAKINGADDRESS',
f'import FlowIDTableStaking from "{Path("FlowIDTableStaking.cdc").resolve()}"'
)
replace(
'import FlowStorageFees from 0xFLOWSTORAGEFEESADDRESS',
f'import FlowStorageFees from "{Path("FlowStorageFees.cdc").resolve()}"'
)
replace(
'import StakingProxy from 0xSTAKINGPROXYADDRESS',
f'import StakingProxy from "{Path("StakingProxy.cdc").resolve()}"'
)
- path: contracts/FlowStakingCollection.cdc
member_account_access:
- 'LockedTokens.cdc'
# language=Python prefix="replace: Callable[[str, str], None]\n"
prepare: |
from pathlib import Path
replace(
'import FungibleToken from 0xFUNGIBLETOKENADDRESS',
f'import FungibleToken from "{Path("../../flow-ft/contracts/FungibleToken.cdc").resolve()}"'
)
replace(
'import FlowToken from 0xFLOWTOKENADDRESS',
f'import FlowToken from "{Path("FlowToken.cdc").resolve()}"'
)
replace(
'import FlowIDTableStaking from 0xFLOWIDTABLESTAKINGADDRESS',
f'import FlowIDTableStaking from "{Path("FlowIDTableStaking.cdc").resolve()}"'
)
replace(
'import LockedTokens from 0xLOCKEDTOKENSADDRESS',
f'import LockedTokens from "{Path("LockedTokens.cdc").resolve()}"'
)
replace(
'import FlowStorageFees from 0xFLOWSTORAGEFEESADDRESS',
f'import FlowStorageFees from "{Path("FlowStorageFees.cdc").resolve()}"'
)