@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from "@storybook/react";
2
2
import { CreateSession } from "./CreateSession" ;
3
3
import { ETH_CONTRACT_ADDRESS } from "@cartridge/utils" ;
4
4
import { parseSessionPolicies } from "@/hooks/session" ;
5
- import { controllerConfigs } from "@cartridge/presets " ;
5
+ import { controllerConfigs } from "@cartridge/controller " ;
6
6
7
7
const meta : Meta < typeof CreateSession > = {
8
8
component : CreateSession ,
@@ -106,72 +106,72 @@ export const Default: Story = {
106
106
] ,
107
107
} ,
108
108
"0x047d88C65A627b38d728a783382Af648D79AED80Bf396047F9E839e8501d7F6D" :
109
- {
110
- name : "Pillage" ,
111
- description : "Allows you raid a structure and pillage resources" ,
112
- methods : [
113
- {
114
- name : "Battle Pillage" ,
115
- description : "Pillage a structure" ,
116
- entrypoint : "battle_pillage" ,
117
- } ,
118
- ] ,
119
- } ,
109
+ {
110
+ name : "Pillage" ,
111
+ description : "Allows you raid a structure and pillage resources" ,
112
+ methods : [
113
+ {
114
+ name : "Battle Pillage" ,
115
+ description : "Pillage a structure" ,
116
+ entrypoint : "battle_pillage" ,
117
+ } ,
118
+ ] ,
119
+ } ,
120
120
"0x001cE27792b23cE379398F5468b69739e89314b2657Cfa3A9c388BDFD33DcFbf" :
121
- {
122
- name : "Battle contract" ,
123
- description : "Required to engage in battles" ,
124
- methods : [
125
- {
126
- name : "Battle Start" ,
127
- description : "Start a battle" ,
128
- entrypoint : "battle_start" ,
129
- isRequired : true ,
130
- } ,
131
- {
132
- name : "Battle Force Start" ,
133
- description : "Force start a battle" ,
134
- entrypoint : "battle_force_start" ,
135
- } ,
136
- {
137
- name : "Battle Join" ,
138
- description : "Join a battle" ,
139
- entrypoint : "battle_join" ,
140
- } ,
141
- ] ,
142
- } ,
121
+ {
122
+ name : "Battle contract" ,
123
+ description : "Required to engage in battles" ,
124
+ methods : [
125
+ {
126
+ name : "Battle Start" ,
127
+ description : "Start a battle" ,
128
+ entrypoint : "battle_start" ,
129
+ isRequired : true ,
130
+ } ,
131
+ {
132
+ name : "Battle Force Start" ,
133
+ description : "Force start a battle" ,
134
+ entrypoint : "battle_force_start" ,
135
+ } ,
136
+ {
137
+ name : "Battle Join" ,
138
+ description : "Join a battle" ,
139
+ entrypoint : "battle_join" ,
140
+ } ,
141
+ ] ,
142
+ } ,
143
143
"0x04718f5a0Fc34cC1AF16A1cdee98fFB20C31f5cD61D6Ab07201858f4287c938D" :
144
- {
145
- name : "STRK Token" ,
146
- description : "Starknet token contract" ,
147
- methods : [
148
- {
149
- name : "Mint" ,
150
- entrypoint : "mint" ,
151
- } ,
152
- {
153
- name : "Burn" ,
154
- entrypoint : "burn" ,
155
- } ,
156
- {
157
- name : "Allowance" ,
158
- entrypoint : "allowance" ,
159
- } ,
160
- ] ,
161
- } ,
144
+ {
145
+ name : "STRK Token" ,
146
+ description : "Starknet token contract" ,
147
+ methods : [
148
+ {
149
+ name : "Mint" ,
150
+ entrypoint : "mint" ,
151
+ } ,
152
+ {
153
+ name : "Burn" ,
154
+ entrypoint : "burn" ,
155
+ } ,
156
+ {
157
+ name : "Allowance" ,
158
+ entrypoint : "allowance" ,
159
+ } ,
160
+ ] ,
161
+ } ,
162
162
"0x051Fea4450Da9D6aeE758BDEbA88B2f665bCbf549D2C61421AA724E9AC0Ced8F" :
163
- {
164
- methods : [
165
- {
166
- entrypoint : "request_random" ,
167
- } ,
168
- ] ,
169
- } ,
163
+ {
164
+ methods : [
165
+ {
166
+ entrypoint : "request_random" ,
167
+ } ,
168
+ ] ,
169
+ } ,
170
170
} ,
171
171
messages,
172
172
} ,
173
173
} ) ,
174
- onConnect : ( ) => { } ,
174
+ onConnect : ( ) => { } ,
175
175
} ,
176
176
} ;
177
177
@@ -184,6 +184,6 @@ export const WithPreset: Story = {
184
184
verified : true ,
185
185
policies : { ...controllerConfigs [ "dope-wars" ] . policies ! , messages } ,
186
186
} ) ,
187
- onConnect : ( ) => { } ,
187
+ onConnect : ( ) => { } ,
188
188
} ,
189
189
} ;
0 commit comments