@@ -40,9 +40,9 @@ export const buildContracts = () => {
40
40
exe ( `make build` ) ;
41
41
} ;
42
42
43
- /** Install all contracts and save their wasm hashes to .soroban */
43
+ /** Install all contracts and save their wasm hashes to .stellar */
44
44
export const installContracts = ( ) => {
45
- const contractsDir = `./.soroban /contract-wasm-hash` ;
45
+ const contractsDir = `./.stellar /contract-wasm-hash` ;
46
46
mkdirSync ( contractsDir , { recursive : true } ) ;
47
47
48
48
const wasmFiles = readdirSync ( `./target/wasm32-unknown-unknown/release` ) . filter ( ( file ) => file . endsWith ( '.wasm' ) ) ;
@@ -55,7 +55,7 @@ export const installContracts = () => {
55
55
/* Install a contract */
56
56
const install = ( wasm : string ) => {
57
57
exe (
58
- `stellar contract install --wasm ${ wasm } --ignore-checks > ./.soroban /contract-wasm-hash/${ filenameNoExtension ( wasm ) } .txt` ,
58
+ `stellar contract install --wasm ${ wasm } --ignore-checks > ./.stellar /contract-wasm-hash/${ filenameNoExtension ( wasm ) } .txt` ,
59
59
) ;
60
60
} ;
61
61
@@ -67,7 +67,7 @@ export const readTextFile = (path: string): string => readFileSync(path, { encod
67
67
68
68
// This is a function so its value can update during init.
69
69
export const loanManagerAddress = ( ) : string =>
70
- process . env . CONTRACT_ID_LOAN_MANAGER || readTextFile ( './.soroban /contract-ids/loan_manager.txt' ) ;
70
+ process . env . CONTRACT_ID_LOAN_MANAGER || readTextFile ( './.stellar /contract-ids/loan_manager.txt' ) ;
71
71
72
72
export const createContractBindings = ( ) => {
73
73
bind ( 'loan_manager' , process . env . CONTRACT_ID_LOAN_MANAGER ) ;
@@ -79,7 +79,7 @@ export const createContractBindings = () => {
79
79
} ;
80
80
81
81
const bind = ( contractName : string , address : string | undefined ) => {
82
- const address_ = address || readTextFile ( `./.soroban /contract-ids/${ contractName } .txt` ) ;
82
+ const address_ = address || readTextFile ( `./.stellar /contract-ids/${ contractName } .txt` ) ;
83
83
exe (
84
84
`stellar contract bindings typescript --contract-id ${ address_ } --output-dir ./packages/${ contractName } --overwrite` ,
85
85
) ;
0 commit comments