Working tree is now the canonical repo. Off-chain play-money + trustless on-chain (FPMM AMM + CLOB via UMA settlement), AI market factory, creator/social/distribution, mobile shell + push, one-command demo + deploy-kit. Secrets excluded (see ENV-AND-KEYS.md). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
16 lines
671 B
JavaScript
16 lines
671 B
JavaScript
const shouldBehaveLikeProxy = require('../Proxy.behaviour');
|
|
const shouldBehaveLikeTransparentUpgradeableProxy = require('./TransparentUpgradeableProxy.behaviour');
|
|
|
|
const TransparentUpgradeableProxy = artifacts.require('TransparentUpgradeableProxy');
|
|
|
|
contract('TransparentUpgradeableProxy', function (accounts) {
|
|
const [proxyAdminAddress, proxyAdminOwner] = accounts;
|
|
|
|
const createProxy = async function (logic, admin, initData, opts) {
|
|
return TransparentUpgradeableProxy.new(logic, admin, initData, opts);
|
|
};
|
|
|
|
shouldBehaveLikeProxy(createProxy, proxyAdminAddress, proxyAdminOwner);
|
|
shouldBehaveLikeTransparentUpgradeableProxy(createProxy, accounts);
|
|
});
|