async createDeployMessage(imageBase64, constructorParams, initParams, _keyPair) {
    const keyPair = _keyPair === undefined ? this.tonWrapper.keys[0] : _keyPair;

    let encodeParams = {
      abi: {
        type: "Contract",
        value: this.abi,
      },
      deploy_set: {
        tvc: imageBase64,
        initial_data: initParams,
      },
      call_set: {
        function_name: 'constructor',
        input: constructorParams,
      },
      signer: {
        type: 'None',
      }
    };
    
    if (keyPair) {
      encodeParams = {
        ...encodeParams,
        signer: {
          type: 'Keys',
          keys: keyPair,
        }
      }
    }
    
    return this.tonWrapper.ton.abi.encode_message(encodeParams);
  }
/**
   * Creates deploy message without broadcasting it.
   * @dev Useful for deriving contract address.
   * @param imageBase64 Base64 encoded code
   * @param constructorParams Constructor params for contract constructor
   * @param initParams Initial state params for the contract
   * @param _keyPair Keys to use (first keys from the tonWrapper by default)
   * @returns {Promise<*>}
   */
Creates deploy message without broadcasting it.
@dev Useful for deriving contract address.
Creates deploy message without broadcasting it . @dev Useful for deriving contract address .
async createDeployMessage(imageBase64, constructorParams, initParams, _keyPair) {
    const keyPair = _keyPair === undefined ? this.tonWrapper.keys[0] : _keyPair;
    let encodeParams = {
      abi: {
        type: "Contract",
        value: this.abi,
      },
      deploy_set: {
        tvc: imageBase64,
        initial_data: initParams,
      },
      call_set: {
        function_name: 'constructor',
        input: constructorParams,
      },
      signer: {
        type: 'None',
      }
    };
    if (keyPair) {
      encodeParams = {
        ...encodeParams,
        signer: {
          type: 'Keys',
          keys: keyPair,
        }
      }
    }
    return this.tonWrapper.ton.abi.encode_message(encodeParams);
  }
async createDeployMessage ( imageBase64 , constructorParams , initParams , _keyPair ) { const keyPair = _keyPair === undefined ? this . tonWrapper . keys [ 0 ] : _keyPair ; let encodeParams = { abi : { type : "Contract" , value : this . abi , } , deploy_set : { tvc : imageBase64 , initial_data : initParams , } , call_set : { function_name : 'constructor' , input : constructorParams , } , signer : { type : 'None' , } } ; if ( keyPair ) { encodeParams = { ... encodeParams , signer : { type : 'Keys' , keys : keyPair , } } } return this . tonWrapper . ton . abi . encode_message ( encodeParams ) ; }
Creates deploy message without broadcasting it.
Creates deploy message without broadcasting it .