fix: Several bugs in the box proxy api #159
GitHub Actions / Test results
succeeded
Dec 10, 2024 in 0s
111 passed, 0 failed and 0 skipped
✔️ test-results.xml
111 tests were completed in 89s with 111 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
src/util/base-32.spec.ts | 6✔️ | 9ms | ||
tests/approvals.spec.ts | 51✔️ | 180ms | ||
tests/expected-output.spec.ts | 20✔️ | 31ms | ||
tests/onchain/abi-decorators.spec.ts | 2✔️ | 13s | ||
tests/onchain/accounts.spec.ts | 1✔️ | 15s | ||
tests/onchain/arc4-types.spec.ts | 6✔️ | 39s | ||
tests/onchain/box-proxies.spec.ts | 1✔️ | 12s | ||
tests/onchain/implicit-create.spec.ts | 5✔️ | 16s | ||
tests/onchain/inheritance.spec.ts | 2✔️ | 21s | ||
tests/onchain/precompiled.spec.ts | 4✔️ | 16s | ||
tests/onchain/primitives.spec.ts | 5✔️ | 40s | ||
tests/onchain/shadowed-variables.spec.ts | 1✔️ | 10s | ||
tests/onchain/state-totals.spec.ts | 7✔️ | 18s |
✔️ src/util/base-32.spec.ts
src/util/base-32.spec.ts
✔️ base-32 encoding > Zero address should be AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAY5HFKQ
✔️ base-32 encoding > encode and decode should return same value > Uint8Array[]
✔️ base-32 encoding > encode and decode should return same value > Uint8Array[ 1 ]
✔️ base-32 encoding > encode and decode should return same value > Uint8Array[ 1, 2, 3, 4, 5, 6, 7, 8 ]
✔️ base-32 encoding > encode and decode should return same value > Uint8Array[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
✔️ base-32 encoding > encode and decode should return same value > Uint8Array[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
✔️ tests/approvals.spec.ts
tests/approvals.spec.ts
✔️ Approvals > There should be no general error logs
✔️ Approvals > 'tests/approvals/while-loops.algo.ts' > compiles without errors
✔️ Approvals > 'tests/approvals/uint64-expressions.al…' > compiles without errors
✔️ Approvals > 'tests/approvals/switch-statements.alg…' > compiles without errors
✔️ Approvals > 'tests/approvals/strings.algo.ts' > compiles without errors
✔️ Approvals > 'tests/approvals/state-totals.algo.ts' > compiles without errors
✔️ Approvals > 'tests/approvals/shadowed-variables.al…' > compiles without errors
✔️ Approvals > 'tests/approvals/reserve-scratch.algo.…' > compiles without errors
✔️ Approvals > 'tests/approvals/property-ordering.alg…' > compiles without errors
✔️ Approvals > 'tests/approvals/prefix-postfix-operat…' > compiles without errors
✔️ Approvals > 'tests/approvals/precompiled-apps.algo…' > compiles without errors
✔️ Approvals > 'tests/approvals/precompiled-factory.a…' > compiles without errors
✔️ Approvals > 'tests/approvals/pre-approved-sale.alg…' > compiles without errors
✔️ Approvals > 'tests/approvals/object-destructuring.…' > compiles without errors
✔️ Approvals > 'tests/approvals/numeric-literal-expre…' > compiles without errors
✔️ Approvals > 'tests/approvals/non-arc4.algo.ts' > compiles without errors
✔️ Approvals > 'tests/approvals/named-types.algo.ts' > compiles without errors
✔️ Approvals > 'tests/approvals/logic-sig.algo.ts' > compiles without errors
✔️ Approvals > 'tests/approvals/local-state.algo.ts' > compiles without errors
✔️ Approvals > 'tests/approvals/jsdoc.algo.ts' > compiles without errors
✔️ Approvals > 'tests/approvals/itxn.algo.ts' > compiles without errors
✔️ Approvals > 'tests/approvals/intrinsic-calls.algo.…' > compiles without errors
✔️ Approvals > 'tests/approvals/inheritance-a.algo.ts' > compiles without errors
✔️ Approvals > 'tests/approvals/inheritance-b.algo.ts' > compiles without errors
✔️ Approvals > 'tests/approvals/implicit-create.algo.…' > compiles without errors
✔️ Approvals > 'tests/approvals/global-state.algo.ts' > compiles without errors
✔️ Approvals > 'tests/approvals/for-of-loops.algo.ts' > compiles without errors
✔️ Approvals > 'tests/approvals/for-loops.algo.ts' > compiles without errors
✔️ Approvals > 'tests/approvals/ensure-budget.algo.ts' > compiles without errors
✔️ Approvals > 'tests/approvals/do-loops.algo.ts' > compiles without errors
✔️ Approvals > 'tests/approvals/destructuring-iterato…' > compiles without errors
✔️ Approvals > 'tests/approvals/destructured-params.a…' > compiles without errors
✔️ Approvals > 'tests/approvals/conditional-expressio…' > compiles without errors
✔️ Approvals > 'tests/approvals/casting.algo.ts' > compiles without errors
✔️ Approvals > 'tests/approvals/call-expressions.algo…' > compiles without errors
✔️ Approvals > 'tests/approvals/byte-expressions.algo…' > compiles without errors
✔️ Approvals > 'tests/approvals/box-proxies.algo.ts' > compiles without errors
✔️ Approvals > 'tests/approvals/boolean-expressions.a…' > compiles without errors
✔️ Approvals > 'tests/approvals/boolean-conversions.a…' > compiles without errors
✔️ Approvals > 'tests/approvals/biguint-expressions.a…' > compiles without errors
✔️ Approvals > 'tests/approvals/avm11.algo.ts' > compiles without errors
✔️ Approvals > 'tests/approvals/assert-match.algo.ts' > compiles without errors
✔️ Approvals > 'tests/approvals/array-literals.algo.ts' > compiles without errors
✔️ Approvals > 'tests/approvals/array-destructuring.a…' > compiles without errors
✔️ Approvals > 'tests/approvals/arc4-types.algo.ts' > compiles without errors
✔️ Approvals > 'tests/approvals/arc4-struct.algo.ts' > compiles without errors
✔️ Approvals > 'tests/approvals/arc4-encode-decode.al…' > compiles without errors
✔️ Approvals > 'tests/approvals/arc28-events.algo.ts' > compiles without errors
✔️ Approvals > 'tests/approvals/accounts.algo.ts' > compiles without errors
✔️ Approvals > 'tests/approvals/abi-decorators.algo.ts' > compiles without errors
✔️ Approvals > There should be no differences to committed changes
✔️ tests/expected-output.spec.ts
tests/expected-output.spec.ts
✔️ Expected output > 'tests/expected-output/uint64-expressi…' > has expected output
✔️ Expected output > 'tests/expected-output/prefix-postfix-…' > has expected output
✔️ Expected output > 'tests/expected-output/object-destruct…' > has expected output
✔️ Expected output > 'tests/expected-output/numeric-literal…' > has expected output
✔️ Expected output > 'tests/expected-output/null-values.alg…' > has expected output
✔️ Expected output > 'tests/expected-output/mutating-tuples…' > has expected output
✔️ Expected output > 'tests/expected-output/logic-sig.algo.…' > has expected output
✔️ Expected output > 'tests/expected-output/invalid-array-u…' > has expected output
✔️ Expected output > 'tests/expected-output/global-state.al…' > has expected output
✔️ Expected output > 'tests/expected-output/dynamic-imports…' > has expected output
✔️ Expected output > 'tests/expected-output/conditional-exp…' > has expected output
✔️ Expected output > 'tests/expected-output/cant-create.alg…' > has expected output
✔️ Expected output > 'tests/expected-output/byte-expression…' > has expected output
✔️ Expected output > 'tests/expected-output/biguint-express…' > has expected output
✔️ Expected output > 'tests/expected-output/array-literals.…' > has expected output
✔️ Expected output > 'tests/expected-output/array-destructu…' > has expected output
✔️ Expected output > 'tests/expected-output/arc4-types.algo…' > has expected output
✔️ Expected output > 'tests/expected-output/arc4-struct.alg…' > has expected output
✔️ Expected output > 'tests/expected-output/arc28-events.al…' > has expected output
✔️ Expected output > 'tests/expected-output/abi-decorators.…' > has expected output
✔️ tests/onchain/abi-decorators.spec.ts
tests/onchain/abi-decorators.spec.ts
✔️ abi-decorators > can be created
✔️ abi-decorators > methods can be called
✔️ tests/onchain/accounts.spec.ts
tests/onchain/accounts.spec.ts
✔️ accounts > returns account data
✔️ tests/onchain/arc4-types.spec.ts
tests/onchain/arc4-types.spec.ts
✔️ arc4-types > runs
✔️ arc4-struct > testVectorCreationAndEquality
✔️ arc4-struct > add vectors
✔️ arc4-struct > implicit casting and spreading
✔️ arc4-encode-decode > encoding
✔️ arc4-encode-decode > decoding
✔️ tests/onchain/box-proxies.spec.ts
tests/onchain/box-proxies.spec.ts
✔️ BoxProxies > Should run
✔️ tests/onchain/implicit-create.spec.ts
tests/onchain/implicit-create.spec.ts
✔️ implicit-create > NoBare can be created
✔️ implicit-create > NoNoOp can be created
✔️ implicit-create > ExplicitBareCreateFromBase can be created
✔️ implicit-create > ExplicitAbiCreateFromBase can't be created with bare
✔️ implicit-create > ExplicitAbiCreateFromBase can be created with abi
✔️ tests/onchain/inheritance.spec.ts
tests/onchain/inheritance.spec.ts
✔️ inheritance > non arc4 > Simple contract can be created
✔️ inheritance > arc4 > ARC4 contract can be created
✔️ tests/onchain/precompiled.spec.ts
tests/onchain/precompiled.spec.ts
✔️ precompiled > Hello contract can be deployed
✔️ precompiled > HelloTemplate contract can be deployed
✔️ precompiled > HelloTemplateCustomPrefix contract can be deployed
✔️ precompiled > LargeProgram contract can be deployed
✔️ tests/onchain/primitives.spec.ts
tests/onchain/primitives.spec.ts
✔️ primitives > uint64 > can be created
✔️ primitives > biguint > can be created
✔️ primitives > bytes > can be created
✔️ primitives > strings > can be joined
✔️ primitives > strings > can be interpolated
✔️ tests/onchain/shadowed-variables.spec.ts
tests/onchain/shadowed-variables.spec.ts
✔️ Shadowed variables > Should create and run
✔️ tests/onchain/state-totals.spec.ts
tests/onchain/state-totals.spec.ts
✔️ State totals > BaseWithState has correct totals
✔️ State totals > BaseWithState runs
✔️ State totals > SubClassWithState has correct totals
✔️ State totals > SubClassWithState runs
✔️ State totals > SubClassWithExplicitTotals has correct totals
✔️ State totals > ExtendsSubWithTotals has correct totals
✔️ State totals > ExtendsSubWithTotals runs
Loading