Skip to content

Commit ffff719

Browse files
committed
refactor: replace Impl pattern for stubbing in testing implementation
with `Internal` namespace replacement pattern for consistency
1 parent d7a6a4b commit ffff719

24 files changed

+380
-384
lines changed

examples/rollup.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const config: RollupOptions = {
1212
'examples/hello-world-abi/contract.algo.ts',
1313
'examples/hello-world/contract.algo.ts',
1414
'examples/htlc-logicsig/signature.algo.ts',
15+
'examples/local-storage/contract.algo.ts',
1516
'examples/marketplace/contract.algo.ts',
1617
'examples/precompiled/precompiled-factory.algo.ts',
1718
'examples/precompiled/precompiled-typed.algo.ts',

src/impl/clone.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { getEncoder, toBytes } from './encoded-types'
22

3-
export function cloneImpl<T>(typeInfoString: string, value: T): T {
3+
export function clone<T>(typeInfoString: string, value: T): T {
44
if (value && typeof value === 'object' && 'copy' in value && typeof value.copy === 'function') {
55
return value.copy() as T
66
}

src/impl/emit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { sha512_256 } from './crypto'
44
import { getArc4Encoded, getArc4TypeName } from './encoded-types'
55
import { log } from './log'
66

7-
export function emitImpl<T>(typeInfoString: string, event: T | string, ...eventProps: unknown[]) {
7+
export function emit<T>(typeInfoString: string, event: T | string, ...eventProps: unknown[]) {
88
let eventData
99
let eventName
1010
if (typeof event === 'string') {

0 commit comments

Comments
 (0)